GNOME Bugzilla – Bug 516491
Crashing on malformed savefile
Last modified: 2009-11-26 19:04:28 UTC
The first time was OK, the current game was saved after quitting. The second time, I started a new game, then quitted. The third time, I'm getting this error. Distribution: Ubuntu 7.10 (gutsy) Gnome Release: 2.21.91 2008-02-12 (JHBuild) BugBuddy Version: 2.18.1 System: Linux 2.6.22-14-generic #1 SMP Tue Feb 12 07:42:25 UTC 2008 i686 X Vendor: The X.Org Foundation X Vendor Release: 10300000 Selinux: No Accessibility: Enabled GTK+ Theme: Clearlooks Icon Theme: gnome 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 (5785 sec old) --------------------- (evolution:25280): e-data-server-DEBUG: Loading categories from "/home/claude/.evolution/categories.xml" (evolution:25280): e-data-server-DEBUG: Loaded 29 categories Loading Spamassasin as the default junk plugin (gnome-screenshot:7274): atk-bridge-WARNING **: AT_SPI_REGISTRY was not started at session startup. (gnome-screenshot:7274): atk-bridge-WARNING **: IOR not set. (gnome-screenshot:7274): atk-bridge-WARNING **: Could not locate registry (gedit:6996): atk-bridge-WARNING **: AT_SPI_REGISTRY was not started at session startup. (gedit:6996): atk-bridge-WARNING **: IOR not set. (gedit:6996): atk-bridge-WARNING **: Could not locate registry -------------------------------------------------- Traceback (most recent call last):
+ Trace 189208
start_game()
main.start_game()
profile_me()
prof.runcall(start_game)
return self._prof.runcall(func, args, kw)
u = UI()
if self.select_game():
ret = fun(ui,*args,**kwargs)
choice = game_selector.NewOrSavedGameSelector().run_swallowed_dialog(self.swallower)
self.setup_dialog()
self.make_saved_game_model()
sudoku.sudoku_grid_from_string(g['game'].split('\n')[1].replace(' ','')).grid,
assert(len(s)<=GROUP_SIZE**2) AssertionError
I debugged the error and here's the s variable content raising the error: '0841003000700080010100007898None30590020096None1508100820904601000000400300090008004200' The problem seems to be some None value herein.
Created attachment 105257 [details] problematic saved game
I've had this same problem twice recently. If it would be helpful, I can attach the bad saved games.
*** Bug 537089 has been marked as a duplicate of this bug. ***
*** Bug 534008 has been marked as a duplicate of this bug. ***
*** Bug 562294 has been marked as a duplicate of this bug. ***
I hit this bug in gnome-sudoku 2.24.2. Editing the saved game file to replace the 'None' with '0' allows the game to start up properly.
Fixed on trunk. The patch ignores malformed save files. http://svn.gnome.org/viewvc/gnome-games?view=revision&revision=8911 The fix will be in 2.27.1. Potential 2.26.x material...
Committed to 2.26 branch. Will be in 2.26.1
*** Bug 577635 has been marked as a duplicate of this bug. ***
*** Bug 592164 has been marked as a duplicate of this bug. ***
*** Bug 593189 has been marked as a duplicate of this bug. ***
*** Bug 593493 has been marked as a duplicate of this bug. ***
*** Bug 594316 has been marked as a duplicate of this bug. ***
*** Bug 595405 has been marked as a duplicate of this bug. ***
*** Bug 595644 has been marked as a duplicate of this bug. ***
*** Bug 596693 has been marked as a duplicate of this bug. ***
*** Bug 598333 has been marked as a duplicate of this bug. ***
*** Bug 598489 has been marked as a duplicate of this bug. ***
*** Bug 598498 has been marked as a duplicate of this bug. ***
*** Bug 599921 has been marked as a duplicate of this bug. ***
*** Bug 544357 has been marked as a duplicate of this bug. ***
*** Bug 601117 has been marked as a duplicate of this bug. ***
*** Bug 601131 has been marked as a duplicate of this bug. ***
*** Bug 603064 has been marked as a duplicate of this bug. ***