Hey, My game has started to freeze when loading in between scenes. I can load up each scene separately and run them just fine but for some reason they won’t load when I advance from scene to scene while inside the game. This has never happened before and I have never had an issue with this previously. I just booted up the game one day and it stopped working properly.
When the game tries to load in between scenes it cuts to the GDevelop loading screen, which it normally wouldn’t do, and it acts like its trying to load but it never gets anywhere. Ive sat waiting for it to load for about 20 minutes and it doesn’t ever get anywhere.
Any clue as to why it would just one day stop cooperating?
can you show the events that lead to the scene switch, as well as the ones that run at the beginning of the second one? Also, do you by any chance have any 3d models in the game?
Other possible problems could be endless while loops or events that can not execute because they get stuck. I saw this when Firebase authentication or Firebase calls didn’t work and there was no event to catch this (was with an older GD version).
Here are the events for one of the scene switches from main menu to level selection
I’m not exactly sure I understand what you are referring to. What is Firebase authentication or Firebase calls? I have been working in this game for a while so I started with an older version of GDevelop but I have been keeping up with the updates. Maybe something got a little messed up one day after an update?
Firebase is just a way to remotely store and change info, so you probably arent using it. However, are there any repeat events? Also, since you are doing the same action on similar objects, maybe use an object group? Saves me tons of time.
Is this happening when the action "Pause the scene and start “LEVEL SELECTION” is called?
If so, the difference between starting the scene directly from GDevelop or going into it from another scene would be that you stop the previous scene. What happens if you don’t stop the scene and go directly into LEVEL SELECTION?
From your description and screenshots I am not certain what is happening, but I try to help with debugging
Ive been dealing with this issue for months now as my game gets bigger and bigger. The only thing that I can find to make it better is to remove objects from the scene or try to reduce file sizes of any models or textures. I think Gdevelop has some limitation with how much stuff can be in one scene…
Info i have gathered from testing
. 1. Disabling all extensions does not fix it.
2. Disabling all events does not fix it.
3. Using events to try to unload assets between scene does not fix it (Delete all objects at end of scene, Unload all audio ,etc)
3. Add a short delay between scene transition does not fix it
4. Debugger does not provide any info because it just says “Disconnected” as soon as the freeze happens
5. Only thing that fixes it is removing objects/compressing object file sizes, but I have already compressed my files enough and things are looking bad now. Is this an engine limitation? how can I fix it without destroying my visuals?
& when I said previously “some issue with how many objects can be in one scene” its not quite that, its more like as more and more things get loaded back to back, at some point it will just stop working.
if I go
Level 1 → Level 2 → Level 3 (freeze on 3)
If I just go Level 3, it works
If I go Level 3->4-5 (Freeze on 5)
And so on.
I have found some relevant info in the console
everytime the freeze happens, it gives errors related to the GLTFloader Couldnt load textureblob file://
&
““Array buffer allocation failed””
All audio stops, and the loading bar stops and I have to force quit the game
Is this something i can fix myself, or is it a more fundamental limit I am hitting with something inside of the way models are loaded?
I asked ChatGPT
My computer has 32gb of ram and never gets anyhere near that, the game is freezing when it takes up 5gb of ram or so (but I am using the preview so the exported game is likely less , hard to see how much the game portion is using)