Page 1 of 1
Game Crash when too much fill
Posted: Mon Apr 26, 2021 5:00 pm
by SLAPPYHAPPY2000
When using the fill tool on an area too big, like a 128x128 level, you get a very lovely game crash!
I found this out while making one of my levels and I didn't save it beforehand!
Lol!
Re: Game Crash when too much fill
Posted: Wed Apr 28, 2021 2:18 pm
by Holger
Argh, that's horrible!
Indeed I was able to reproduce this inside a Windows 10 VM (while having no problems and no crashes on my Linux box and on my Mac)!
I will try to debug and fix this!

Re: Game Crash when too much fill
Posted: Thu May 06, 2021 1:48 pm
by Holger
Found and fixed it!
The problem was the recursive flood fill function, which went too deep and exploded the stack on a 128x128 sized level!
(Did not happen on Linux with its 8 MB stack size, while it blew up the 1 MB stack on Windows.

)
I've replaced the recursive function with an iterative one, which should also work fine on systems with a small stack.
Will be available in the next release version.