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 408837 - crash in Sudoku: EOFError
crash in Sudoku: EOFError
Status: RESOLVED FIXED
Product: gnome-games-superseded
Classification: Deprecated
Component: gnome-sudoku
unspecified
Other All
: High critical
: ---
Assigned To: GNOME Games maintainers
GNOME Games maintainers
: 407566 409178 411361 411442 412789 413217 416644 424736 435212 442070 481640 483972 490710 495340 505426 514960 516470 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-02-17 07:26 UTC by jean-philippe.terranova
Modified: 2008-02-15 10:36 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
Generated puzzle file that causes an EOFError (43.28 KB, text/plain)
2007-03-16 00:26 UTC, Robert Ancell
Details

Description jean-philippe.terranova 2007-02-17 07:26:33 UTC
What were you doing when the application crashed?



Distribution: Ubuntu 7.04 (feisty)
Gnome Release: 2.17.91 2007-02-12 (Ubuntu)
BugBuddy Version: 2.17.3

System: Linux 2.6.20-8-386 #2 Tue Feb 13 05:15:43 UTC 2007 i686
X Vendor: The X.Org Foundation
X Vendor Release: 70101000
Selinux: No
Accessibility: Disabled

Memory status: size: 0 vsize: 0 resident: 0 share: 0 rss: 0 rss_rlim: 0
CPU usage: start_time: 0 rtime: 0 utime: 0 stime: 0 cutime:0 cstime: 0 timeout: 0 it_real_value: 0 frequency: 0



----------- .xsession-errors ---------------------
    loaded = pickle.load(ifi)
  • File "pickle.py", line 1370 in load
    return Unpickler(file).load()
  • File "pickle.py", line 858 in load
    dispatch[key](self)
  • File "pickle.py", line 880 in load_eof
    raise EOFError EOFError /usr/share/themes/LegacyHuman/gtk-2.0/gtkrc:55: Clearlooks configuration option "sunkenmenu" is not supported and will be ignored. /usr/share/themes/LegacyHuman/gtk-2.0/gtkrc:56: Clearlooks configuration option "menuitemstyle" is not supported and will be ignored. /usr/share/themes/LegacyHuman/gtk-2.0/gtkrc:57: Clearlooks configuration option "listviewitemstyle" is not supported and will be ignored. (bug-buddy:6866): Gtk-WARNING **: Theme directory 48x48/mimetypes of theme Snow-Apple has no size field -------------------------------------------------- Traceback (most recent call last):
  • File "/usr/games/gnome-sudoku", line 22 in <module>
    start_game()
  • File "/usr/lib/python2.5/site-packages/gnome_sudoku/gnome_sudoku.py", line 963 in start_game
    u = UI()
  • File "/usr/lib/python2.5/site-packages/gnome_sudoku/gnome_sudoku.py", line 365 in __init__
    self.sudoku_maker = sudoku_maker.SudokuMaker()
  • File "/usr/lib/python2.5/site-packages/gnome_sudoku/sudoku_maker.py", line 312 in __init__
    self.load()
  • File "/usr/lib/python2.5/site-packages/gnome_sudoku/sudoku_maker.py", line 397 in load
    loaded = pickle.load(ifi)
  • File "pickle.py", line 1370 in load
    return Unpickler(file).load()
  • File "pickle.py", line 858 in load
    dispatch[key](self)
  • File "pickle.py", line 880 in load_eof
    raise EOFError EOFError

Comment 1 Susana 2007-02-24 20:40:04 UTC
*** Bug 411361 has been marked as a duplicate of this bug. ***
Comment 2 Susana 2007-02-24 20:40:32 UTC
*** Bug 411442 has been marked as a duplicate of this bug. ***
Comment 3 Andreas Røsdal 2007-02-25 16:16:37 UTC
*** Bug 409178 has been marked as a duplicate of this bug. ***
Comment 4 Andreas Røsdal 2007-02-27 22:00:02 UTC
*** Bug 412789 has been marked as a duplicate of this bug. ***
Comment 5 Andreas Røsdal 2007-02-28 21:15:35 UTC
*** Bug 413217 has been marked as a duplicate of this bug. ***
Comment 6 Pedro Villavicencio 2007-03-10 01:37:50 UTC
*** Bug 416644 has been marked as a duplicate of this bug. ***
Comment 7 Robert Ancell 2007-03-16 00:26:29 UTC
Created attachment 84693 [details]
Generated puzzle file that causes an EOFError

Copying this file into ~/.gnome2/gnome-sudoku will cause gnome-sudoku to crash on startup. This crash occurred for me after Sudoku had previously crashed. Basically I think that the crash caused the saved file to be corrupted.
Comment 8 Robert Ancell 2007-03-16 00:27:31 UTC
The solution to this and many of the other critical bugs is to catch any exception caused when loading external files.

The big problem is once a corrupt file exists Sudoku will never recover until the file is removed.
Comment 9 Robert Ancell 2007-03-16 03:29:38 UTC
Fixed in 2.18 and 2.20 by catching exceptions when loading corrupted/missing/read only/etc pickle files.

If you are in this situation then current stable releases of Sudoku will always crash on startup. The workaround is to delete ~/.gnome2/gnome-sudoku/* if this occurs.

I've opened up a general Sudoku bug to add better support for corrupted pickle files: #418834

This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.

Comment 10 Robert Ancell 2007-03-16 03:34:57 UTC
*** Bug 407566 has been marked as a duplicate of this bug. ***
Comment 11 Robert Ancell 2007-03-31 04:03:02 UTC
*** Bug 424736 has been marked as a duplicate of this bug. ***
Comment 12 Thomas Andersen 2007-09-30 23:12:28 UTC
*** Bug 442070 has been marked as a duplicate of this bug. ***
Comment 13 Thomas Andersen 2007-09-30 23:12:45 UTC
*** Bug 481640 has been marked as a duplicate of this bug. ***
Comment 14 palfrey 2007-11-16 13:46:39 UTC
*** Bug 495340 has been marked as a duplicate of this bug. ***
Comment 15 palfrey 2007-11-16 15:57:04 UTC
*** Bug 483972 has been marked as a duplicate of this bug. ***
Comment 16 palfrey 2007-11-16 15:57:09 UTC
*** Bug 490710 has been marked as a duplicate of this bug. ***
Comment 17 palfrey 2007-11-16 15:57:15 UTC
*** Bug 435212 has been marked as a duplicate of this bug. ***
Comment 18 Thomas Andersen 2007-12-24 16:46:17 UTC
*** Bug 505426 has been marked as a duplicate of this bug. ***
Comment 19 Thomas Andersen 2008-02-10 12:34:05 UTC
*** Bug 514960 has been marked as a duplicate of this bug. ***
Comment 20 Gianluca Borello 2008-02-15 10:36:09 UTC
*** Bug 516470 has been marked as a duplicate of this bug. ***