Can't load after "proxy_unloaded", since updating from 1.9 to 1.12

My code used to work but stopped working after the update. Basically after getting the “proxy_unloaded” message, I fire off the code that loads the next level and its collection proxy “theme”.

And then I get this error:

ERROR:GAMEOBJECT: The collection 'Candy Land' could not be created since there is already a socket with the same name.
ERROR:GAMEOBJECT: AcquireResources NewCollection RESULT_OUT_OF_RESOURCES
WARNING:RESOURCE: Unable to create resource: /tiled levels/themes/candy/candy.collectionc: OUT_OF_RESOURCES
ERROR:GAMESYS: The collection /tiled levels/themes/candy/candy.collectionc could not be loaded.

I can see “there is already a socket” but I don’t know what to do about this - is there another finalisation event I should be waiting for instead of “proxy_unloaded”?

Adding a timer.delay before I load, works, but that is super hacky - I want to know for sure when I am allowed to load a new proxy.

2 Likes

Hi!
It sounds like something with the changes to the update loop might have caused this.
Could you please create a minimal repro case, and add it to a github ticket?
We’ll take a look asap.

2 Likes

Done Crash when loading same collection proxy after receiving "unload" · Issue #11764 · defold/defold · GitHub

Thanks!
I took a look but I cannot reproduce the issue even when using Defold 1.9.0.
I suggest you update your example so that it works with 1.9.x (please specify which version you use), and not in 1.12.0.

You’re welcome - thanks for making a cool engine :+1:
I left a new comment on the bug - my example causes the error in 1.9.8

Hi there, I also reply to the github issue since I think my errors are related. Thanks!

2 Likes