Sudoku crashes on startup

Bug #270644 reported by Maxcel
26
This bug affects 2 people
Affects Status Importance Assigned to Milestone
GNOME Games
Fix Released
Critical
gnome-games (Ubuntu)
Fix Released
Medium
Martin Pitt

Bug Description

Binary package hint: gnome-games

Distribution: Ubuntu 8.04 (hardy)
Gnome Release: 2.22.3 2008-07-09 (Ubuntu)
BugBuddy Version: 2.22.0

System: Linux 2.6.24-19-generic #1 SMP Wed Aug 20 22:56:21 UTC 2008 i686
X Vendor: The X.Org Foundation
X Vendor Release: 10400090
Selinux: No
Accessibility: Disabled
GTK+ Theme: Human
Icon Theme: Human

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 ---------------------
    if self.select_game():
  File "/var/lib/python-support/python2.5/gnome_sudoku/main.py", line 64, in _
    ret = fun(ui,*args,**kwargs)
  File "/var/lib/python-support/python2.5/gnome_sudoku/main.py", line 214, in
select_game
    choice =
game_selector.NewOrSavedGameSelector().run_swallowed_dialog(self.swallower)
  File "/var/lib/python-support/python2.5/gnome_sudoku/game_selector.py", line
191, in run_swallowed_dialog
    self.setup_dialog()
  File "/var/lib/python-support/python2.5/gnome_sudoku/game_selector.py", line
76, in setup_dialog
    self.make_saved_game_model()
  File "/var/lib/python-support/python2.5/gnome_sudoku/game_selector.py", line
151, in make_saved_game_model
    sudoku.sudoku_grid_from_string(g['game'].split('\n')[1].replace('
','')).grid,
  File "/var/lib/python-support/python2.5/gnome_sudoku/sudoku.py", line 232, in
sudoku_grid_from_string
    assert(len(s)<=GROUP_SIZE**2)
AssertionError
--------------------------------------------------
Traceback (most recent call last):
  File "/usr/games/gnome-sudoku", line 55, in <module>
    start_game()
  File "/var/lib/python-support/python2.5/gnome_sudoku/gnome_sudoku.py", line
21, in start_game
    main.start_game()
  File "/var/lib/python-support/python2.5/gnome_sudoku/main.py", line 1039, in
start_game
    u = UI()
  File "/var/lib/python-support/python2.5/gnome_sudoku/main.py", line 200, in
__init__
    if self.select_game():
  File "/var/lib/python-support/python2.5/gnome_sudoku/main.py", line 64, in _
    ret = fun(ui,*args,**kwargs)
  File "/var/lib/python-support/python2.5/gnome_sudoku/main.py", line 214, in
select_game
    choice =
game_selector.NewOrSavedGameSelector().run_swallowed_dialog(self.swallower)
  File "/var/lib/python-support/python2.5/gnome_sudoku/game_selector.py", line
191, in run_swallowed_dialog
    self.setup_dialog()
  File "/var/lib/python-support/python2.5/gnome_sudoku/game_selector.py", line
76, in setup_dialog
    self.make_saved_game_model()
  File "/var/lib/python-support/python2.5/gnome_sudoku/game_selector.py", line
151, in make_saved_game_model
    sudoku.sudoku_grid_from_string(g['game'].split('\n')[1].replace('
','')).grid,
  File "/var/lib/python-support/python2.5/gnome_sudoku/sudoku.py", line 232, in
sudoku_grid_from_string
    assert(len(s)<=GROUP_SIZE**2)
AssertionError

Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

this sometimes happens when a file in ~/.sudoku gets corrupted
try removing the (hidden) directory ".sudoku" inside your home folder
be advised that this way you'll lose all your saved games...

Changed in gnome-games:
assignee: nobody → azimout
Revision history for this message
Pedro Villavicencio (pedro) wrote :

thanks for the report, may you tell us a few easy steps in order to reproduce the crash? thanks.

Changed in gnome-games:
assignee: azimout → desktop-bugs
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Pedro Villavicencio (pedro) wrote :
Changed in gnome-games:
status: Incomplete → Triaged
Changed in gnome-games:
status: Unknown → Confirmed
Revision history for this message
albannach1 (albannach1) wrote :

Ubuntu 8.10

Tried removing and reinstalling gnome-games, didn't work

gnome-sudoku stopped working after I installed python 2.6.1 from source

sudoku simply crashes on open. If I enter "gnome-sudoku" in the Terminal I get the following output:

Traceback (most recent call last):
  File "/usr/games/gnome-sudoku", line 35, in <module>
    import gtk
ImportError: No module named gtk

I also tried removing the hidden ".sudoku" directory but it didn't help

Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

albannach, it seems the problem is caused by your custom installation of python 2.6.1, and thus unrelated to this bug report

Revision history for this message
albannach1 (albannach1) wrote : Re: [Bug 270644] Re: Sudoku crashes on startup
Download full text (3.5 KiB)

Ok. Sorry. Thanks for the help though.

On Tue, Dec 9, 2008 at 8:15 AM, Dimitrios Symeonidis <email address hidden>wrote:

> albannach, it seems the problem is caused by your custom installation of
> python 2.6.1, and thus unrelated to this bug report
>
> --
> Sudoku crashes on startup
> https://bugs.launchpad.net/bugs/270644
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in The GNOME games package: Confirmed
> Status in "gnome-games" source package in Ubuntu: Triaged
>
> Bug description:
> Binary package hint: gnome-games
>
> Distribution: Ubuntu 8.04 (hardy)
> Gnome Release: 2.22.3 2008-07-09 (Ubuntu)
> BugBuddy Version: 2.22.0
>
> System: Linux 2.6.24-19-generic #1 SMP Wed Aug 20 22:56:21 UTC 2008 i686
> X Vendor: The X.Org Foundation
> X Vendor Release: 10400090
> Selinux: No
> Accessibility: Disabled
> GTK+ Theme: Human
> Icon Theme: Human
>
> 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 ---------------------
> if self.select_game():
> File "/var/lib/python-support/python2.5/gnome_sudoku/main.py", line 64, in
> _
> ret = fun(ui,*args,**kwargs)
> File "/var/lib/python-support/python2.5/gnome_sudoku/main.py", line 214,
> in
> select_game
> choice =
> game_selector.NewOrSavedGameSelector().run_swallowed_dialog(self.swallower)
> File "/var/lib/python-support/python2.5/gnome_sudoku/game_selector.py",
> line
> 191, in run_swallowed_dialog
> self.setup_dialog()
> File "/var/lib/python-support/python2.5/gnome_sudoku/game_selector.py",
> line
> 76, in setup_dialog
> self.make_saved_game_model()
> File "/var/lib/python-support/python2.5/gnome_sudoku/game_selector.py",
> line
> 151, in make_saved_game_model
> sudoku.sudoku_grid_from_string(g['game'].split('\n')[1].replace('
> ','')).grid,
> File "/var/lib/python-support/python2.5/gnome_sudoku/sudoku.py", line 232,
> in
> sudoku_grid_from_string
> assert(len(s)<=GROUP_SIZE**2)
> AssertionError
> --------------------------------------------------
> Traceback (most recent call last):
> File "/usr/games/gnome-sudoku", line 55, in <module>
> start_game()
> File "/var/lib/python-support/python2.5/gnome_sudoku/gnome_sudoku.py",
> line
> 21, in start_game
> main.start_game()
> File "/var/lib/python-support/python2.5/gnome_sudoku/main.py", line 1039,
> in
> start_game
> u = UI()
> File "/var/lib/python-support/python2.5/gnome_sudoku/main.py", line 200,
> in
> __init__
> if self.select_game():
> File "/var/lib/python-support/python2.5/gnome_sudoku/main.py", line 64, in
> _
> ret = fun(ui,*args,**kwargs)
> File "/var/lib/python-support/python2.5/gnome_sudoku/main.py", line 214,
> in
> select_game
> choice =
> game_selector.NewOrSavedGameSelector().run_swallowed_dialog(self.swallower)
> File "/var/lib/python-support/python2.5/gnome_sudoku/game_selector.py",
> line
> 191, in run_swallowed_dialog
> self.setup_dialog()
> File "/var/lib/python-support/python2.5/gnome_sudoku/game_selector.py",
> line
> 76, in setup_dialog
> self.ma...

Read more...

Changed in gnome-games:
status: Confirmed → Invalid
Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

the upstream report was marked as a duplicate of another one, changing accordingly

Changed in gnome-games:
status: Invalid → Unknown
Changed in gnome-games:
status: Unknown → Confirmed
Revision history for this message
Saivann Carignan (oxmosys) wrote :

I attach a debdiff that fixes this issue. This debdiff only add a simple patch already pushed upstream in bug 516491 by revision 8911. It has been tested by my (I have a saved file that cause the game to crash) and the game succesfully print a error message on terminal and ignore the bad saved file.

This build should also be available in my PPA in the next minutes :
https://edge.launchpad.net/~saivann/+archive/ppa

Revision history for this message
Saivann Carignan (oxmosys) wrote :

I also attach an example file that cause gnome-sudoku to crash. You only need to put this file in ~/.sudoku/saved to reproduce the crash.

Revision history for this message
Sebastien Bacher (seb128) wrote :

thanks for your work, I'm not sure that's worth the backport efforts since we will get 2.26.1 in jaunty anyway though

Revision history for this message
Martin Pitt (pitti) wrote :

Taking for sponsoring

Changed in gnome-games (Ubuntu):
assignee: desktop-bugs → pitti
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-games - 1:2.26.0-0ubuntu4

---------------
gnome-games (1:2.26.0-0ubuntu4) jaunty; urgency=low

  * debian/patches/03_sudoku_crash_saved_files.patch: Fix gnome-sudoku crash
    when reading corrupted saved games. (LP: #270644)

 -- Saivann Carignan <email address hidden> Mon, 30 Mar 2009 12:22:00 +0200

Changed in gnome-games:
status: Triaged → Fix Released
Changed in gnome-games:
status: Confirmed → Fix Released
Changed in gnome-games:
importance: Unknown → Critical
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.