SerGreen / TheWitnessPuzzles

Puzzle game for Android and Windows, inspired by Jonathan Blow's "The Witness". Created using MonoGame.
112 stars 11 forks source link

Seed 000000079 crashes on mobile #25

Open romainrichard opened 3 months ago

romainrichard commented 3 months ago

The app seems to freeze and closes after about 10s. As I'm playing in sequential mode this was blocking my progress.

To fix it I edited the settings.cfg file and changed the seed to 80. I also generated the puzzle 79 on pc (which didn't crash but was pretty slow), saved the level and transfered the file to my phone. I'm able to load that puzzle just fine now.

So the issue isn't the puzzle itself but generating it on mobile.

SerGreen commented 3 months ago

Oh god, that level 79 generation is very slow indeed. I think it's caused by the sheer size of the grid and amount of rules present. It's trying to check all possible solutions for the puzzle before approving it and the amount of brute force is just too much. On mobile it may be the OS closing the app as not responding after 10 sec. I should add a timeout or something to prevent such cases. Thanks for reporting.

image