#Game freezes when saving

8 messages · Page 1 of 1 (latest)

lone moth
#

Occasionally the numbers on the gold amounts will screw up and all of the digits will stack up into the bottom left corner creating a monstrous number. Once this has happened, if I try to save the game will softlock and force me to alt+f4 to escape.

#

now all the menus are blank

#

it fixed itself after another restart, but the save issue still happens on occasion

opal halo
#

So, I've seen some issues like this when popping in and out of the game with alt-tab. Essentially, the screen size gets measured at specific points during loading sequences. Those measurements are used to position on screen elements. If the game isn't the active window at the time when those measurements are taken, they store empty values, and the result is that everything gets smushed up into one spot like that.

lone moth
#

Ah okay, I do tab out every now and then to my 2nd monitor. I will try to avoid this in future. Thank you!

opal halo
#

alt-tab isn't necessarily going to break something, just try not to do it while transitioning between screens. (Easier said than done, I know that's when I tend to pause to do other things by habit)

opal halo
#

Thinking about this some more, the game takes a screenshot of the map when you save to display alongside your save file. I could see that getting choked up if the screen was incorrectly reported as being 0x0 pixels.

drowsy tapir
# opal halo Thinking about this some more, the game takes a screenshot of the map when you s...

did you try to profile or reproduce if that is the cause of issue? There's a lifecycle event on Android and maybe true for libgdx projects using LWJGL, so having them minimized, will call sooner or later the pause or dispose event.. read here: https://libgdx.com/wiki/app/the-life-cycle