GNOME Bugzilla – Bug 408837
crash in Sudoku: EOFError
Last modified: 2008-02-15 10:36:09 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)
+ Trace 111435
return Unpickler(file).load()
dispatch[key](self)
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):
start_game()
u = UI()
self.sudoku_maker = sudoku_maker.SudokuMaker()
self.load()
loaded = pickle.load(ifi)
raise EOFError EOFError
*** Bug 411361 has been marked as a duplicate of this bug. ***
*** Bug 411442 has been marked as a duplicate of this bug. ***
*** Bug 409178 has been marked as a duplicate of this bug. ***
*** Bug 412789 has been marked as a duplicate of this bug. ***
*** Bug 413217 has been marked as a duplicate of this bug. ***
*** Bug 416644 has been marked as a duplicate of this bug. ***
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.
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.
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.
*** Bug 407566 has been marked as a duplicate of this bug. ***
*** Bug 424736 has been marked as a duplicate of this bug. ***
*** Bug 442070 has been marked as a duplicate of this bug. ***
*** Bug 481640 has been marked as a duplicate of this bug. ***
*** Bug 495340 has been marked as a duplicate of this bug. ***
*** Bug 483972 has been marked as a duplicate of this bug. ***
*** Bug 490710 has been marked as a duplicate of this bug. ***
*** Bug 435212 has been marked as a duplicate of this bug. ***
*** Bug 505426 has been marked as a duplicate of this bug. ***
*** Bug 514960 has been marked as a duplicate of this bug. ***
*** Bug 516470 has been marked as a duplicate of this bug. ***