This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#7772 - Sudoku: "Solve" Crash
Attached to Project:
Rockbox
Opened by Paul (tritonman) - Thursday, 13 September 2007, 19:41 GMT+2
Last edited by Teruaki Kawashima (teru) - Wednesday, 16 December 2009, 13:00 GMT+2
Opened by Paul (tritonman) - Thursday, 13 September 2007, 19:41 GMT+2
Last edited by Teruaki Kawashima (teru) - Wednesday, 16 December 2009, 13:00 GMT+2
|
DetailsRockbox Version: r14655-070909
Player: Sansa e270 Whilst using the "Sudoku" plugin, if you generate a new Sudoku puzzle and then try and get the plugin to solve it, you get the following error: Data abort at 000497F0 The player totally hangs, forcing you to hold the power button for 10s to turn the power off. Very nice app otherwise! |
This task depends upon
Closed by Teruaki Kawashima (teru)
Wednesday, 16 December 2009, 13:00 GMT+2
Reason for closing: Fixed
Additional comments about closing: Fixed in r24024
Wednesday, 16 December 2009, 13:00 GMT+2
Reason for closing: Fixed
Additional comments about closing: Fixed in r24024
I also tried creating myself a new gird and putting in some random numbers (so the grid is still unsolvable), and this generated the same error, with the address I just gave above.
Full Workable puzzle on Wikipedia works, solves and does not crash.
First and last line only of WP puzzle, not a solvable my logic single solution puzzle, freezes instead of giving up.
Solution, don’t make unsolvable puzzles. There are 6,670,903,752,021,072,936,960* solutions to a blank page.
http://en.wikipedia.org/wiki/Sudoku Asking your iPod tryicky questions? http://xkcd.com/246/
Good luck with Version 3.0 Thanks everyone for the wonderful firmware.
the cause seems to be that function spawn_option() is called recursively and the function allocates some amount of memory in stack, results in run out the memory.
this patch gets rid of the current solve function and use one in generator.c. it dose no recursive call, in theory, it won't crash the player.
one thing i'm afraid of is that the sove function is less capable than current one in terms of solving puzzles.
as far as i tested on my gigabeat x, there is no crash and puzzles are solved properly.
so i think this is committable. but to make it sure, if anyone knows the solve function is good or not, please let me know.