After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 462754 - Sudoku does not "remember" any generated puzzles
Sudoku does not "remember" any generated puzzles
Status: RESOLVED OBSOLETE
Product: gnome-games-superseded
Classification: Deprecated
Component: gnome-sudoku
2.18.x
Other All
: Normal major
: ---
Assigned To: GNOME Games maintainers
GNOME Games maintainers
Depends on:
Blocks:
 
 
Reported: 2007-08-02 11:24 UTC by Oded Rimon
Modified: 2008-04-07 00:53 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18



Description Oded Rimon 2007-08-02 11:24:06 UTC
Please describe the problem:
Every time I open gnome-sudoku, I receive the same puzzle (number 62 on my system, level 0.68), which I played at-least 5 times.
This is the hardest puzzle on my system, and that is the reason it opens each time.
However, I generated 75 (!) new puzzles, all Hard and Very Hard. I even played puzzle 62 to erase it from the lists, and then played one of the new 75 to make sure it exists. Everything fine, but then... I close gnome-sudoku, and the next time I open it, I get puzzle 62 again, and no harder puzzles appear on the list.
I did this 3 times, each time I generated a different number of new puzzles (12, 50 and 75) to make sure this isn't caused by me (creating to many or to little puzzles and so on).


Steps to reproduce:
1. Open Sudoku.
2. Generate new puzzles.
3. Exit Sudoku.
4. Re-open Sudoku.


Actual results:
The new puzzles disappear.

Expected results:
The new puzzles should appear, and the puzzles I already played should be erased.

Does this happen every time?
Yes.

Other information:
Comment 1 Andreas Røsdal 2007-08-02 21:15:23 UTC
What is your exact version of gnome-sudoku?
Comment 2 Oded Rimon 2007-08-03 15:50:53 UTC
(In reply to comment #1)
> What is your exact version of gnome-sudoku?
> 

2.18.2.1
Thanks again =).
Comment 3 Glenn Rottingen 2007-09-25 22:29:08 UTC
I have Gnome-games 2.18.2.1 on Fedora 7 and 2.20.0.1-1.FC8 on Fedora 8.
Both do not save Sudoku generated games.  Geneate games, exit sudoku, and reenter and gererated games are gone.  Tried both as user and root.  Same problem.  This was run on several different PC's, ie. Hardware is not the problem.
Comment 4 Thomas Andersen 2007-09-26 09:20:53 UTC
I get this here on 2.20.0.1 too. (gutsy)
Comment 5 Alexey Kurochkin 2007-10-31 21:06:22 UTC
High scores also stuck at one of the games and are not saved any more. The game repeats offering the same puzzles over and over again since it does not remember that they had been solved.

Tried deleting ~/.gnome2/gnome-sudoku
Now the game offers puzzle 36 all the time and complains about loading puzzles instead of recreating the folder:
Unable to load puzzles: <type 'exceptions.IOError'>: [Errno 2] No such file or directory: '~/.gnome2/gnome-sudoku/generated_puzzles'
Comment 6 Pierre-Yves Luyten 2008-01-17 22:49:27 UTC
Gnome-sudoku 2.20.2   under Debian Sid, same error.

It does not remember generated puzzles, nor highscores, nor game being played. 
"
Unable to load puzzles: <type 'exceptions.IOError'>: [Errno 2] No such file or
directory: '~/.gnome2/gnome-sudoku/generated_puzzles'
"

There was no  ~/.gnome2/gnome-sudoku folder, but creating it did not change anything.

Regards.
Comment 7 Thomas M. Hinkle 2008-04-07 00:53:14 UTC
This should be fixed in the latest version. How generated puzzles are stored has been changed substantially, so this code would have been changed as a side effect. As far as I can tell, everything is working normally. It's possible the bug will recur if this was caused by not having permissions to write to the correct directory (~/.gnome2/gnome-sudoku/puzzles). If so, please reopen.