Hazeron Forums
Stack overflow crash - Printable Version

+- Hazeron Forums (https://hazeron.com/mybb)
+-- Forum: Shores of Hazeron (https://hazeron.com/mybb/forumdisplay.php?fid=1)
+--- Forum: Bug Reports (https://hazeron.com/mybb/forumdisplay.php?fid=17)
+---- Forum: Closed Bug Reports (https://hazeron.com/mybb/forumdisplay.php?fid=18)
+---- Thread: Stack overflow crash (/showthread.php?tid=2926)



Stack overflow crash - Vooker525 - 03-06-2023

I made ringworld city too complex and game started to crash on save load. Debugger says this: "Unhandled exception at 0x000000005D1C7638 (Qt5Core.dll) in Hazeron Starship.exe: 0xC00000FD: Stack overflow (parameters: 0x0000000000000001, 0x000000CB60E03000)."

First i lowered active point light from 20 to 6 to avoid crash and continued to build up scene. After some time i saved game a couldn't load since then. Lowering every setting to minimum and thread count from max 16 to 8 didn't help. Scene is complex: around 250 buildings in render range, around 20-50 street lights, dense foliage zone, lots of graded area, couple of vehicles, spacecraft with 2 spacecrafts inside, and it's a ringworld arc lit by 2 stars (by the time of writing).
Save file: https://drive.google.com/file/d/1SQdCQKlsA-j2gAL1OdPRipKYGZg8QLlV/view?usp=share_link
Test your hardware

I restarted PC, hoping OS will free up some potentially occupied corrupted space in RAM, left by game if there is any (silly, but some things can be fixed by restarting). That didn't help


RE: Stack overflow crash - AnrDaemon - 03-09-2023

(03-06-2023, 07:04 PM)Vooker525 Wrote: I restarted PC, hoping OS will free up some potentially occupied corrupted space in RAM
Windows is not written in Java. If anything would have been left out, it is enough to force-kill all SoH processes running after you have closed everything visible.


RE: Stack overflow crash - Kiwi - 03-13-2023

(03-06-2023, 07:04 PM)Vooker525 Wrote: I made ringworld city too complex and game started to crash on save load. Debugger says this: "Unhandled exception at 0x000000005D1C7638 (Qt5Core.dll) in Hazeron Starship.exe: 0xC00000FD: Stack overflow (parameters: 0x0000000000000001, 0x000000CB60E03000)."

Seems like it could be this issue coming up again: https://www.hazeron.com/mybb/showthread.php?tid=2858

I believe it was fixed by just increasing the maximum acceptable size of the stack, but if the underlying issue causing the stack size to become very large wasn't fixed then it would be possible for a save file to become so complex that it overflows the new limit and starts to crash again.

When I have some time later today, I'll have a look at your save and see if i can replicate the issue and hopefully fix it with the same hack I used in the linked thread.


RE: Stack overflow crash - Kiwi - 03-14-2023

Downloaded the save, and managed to reproduce the crash. Debugging with Visual Studio showed the same stack overflow error as previously reported.

I used editbin to increase the stack size from ~16MB to 100MB, and the game was once again able to load normally (albeit very slowly).

I'm pretty confident in saying that this is a continuation of the previous stack size issue, as reported in the thread I linked in my other reply.


RE: Stack overflow crash - Haxus - 03-24-2023

I increased the stack size. Will post an update today.