FS#7772 - Sudoku: "Solve" Crash
Rockbox 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!
Closed by teru
2009-12-16 12:00
Reason for closing: Fixed
Additional comments about closing: Warning: Undefined array key "typography" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 371 Warning: Undefined array key "camelcase" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 407
2009-12-16 12:00
Reason for closing: Fixed
Additional comments about closing: Warning: Undefined array key "typography" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 371 Warning: Undefined array key "camelcase" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 407
Fixed in r24024
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
Doesn't happen on my Sansa - Rockbox version is chrisjs169-070915 (custom build, but should be fine in official). Try updating Rockbox and see if it fixes it.
Have just installed the latest build (r14728-070916) and have succeeded in recreating the error. I generated a blank Sudoku grid, exited the app (saving the grid), opened the app (loading the grid), and then selected solve, which generated the same error with a different address: 000497BC
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.
Ok, that helped. Now I get data aborts both times. For clarification, "generate a new Sudoku puzzle" refers to selecting "New" and not "Generate". The address is different on my Sansa, but I'm using a custom build, so that is (to a degree) normal.
Ah yes, sorry for the ambiguity!
I can reconfirm this bug still exists (iPod Video 60 Gig) r18335 clean install.
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.
still exists in r19466.
I made a fix for this issue.
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.