Bug#514781: sudoku: repeatable crash due to AssertionError

Eric Cooper ecc at cmu.edu
Tue Feb 10 20:19:00 UTC 2009


Package: gnome-games
Version: 1:2.24.2-1
Severity: normal

After solving a puzzle using multiple trackers, I got into a state
that I've reported before (#489822), where the program doesn't notice
that the puzzle is solved.  My usual workaround is to clear one
square, quit, restart sudoku, and then fill in the missing square.

But this time, I couldn't restart.  The presence of the saved game
causes the following error, before the window even appears.

  Traceback (most recent call last):
    File "/usr/games/gnome-sudoku", line 66, 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 1055, in start_game
      u = UI()
    File "/var/lib/python-support/python2.5/gnome_sudoku/main.py", line 199, 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 213, 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


I'm attaching the file
.sudoku/saved/005000000090805001108002040300001690906308402072600003060400908800206010000000300
which causes this crash.  I couldn't run gnome-sudoku until I had
removed it from .sudoku/saved/.

I notice the occurrence of None in the string that represents the
grid, when all the other elements are digits -- that looks like a bug.
And indeed, when I change that None to 0 with an editor, the program
starts up correctly.

-- System Information:
Debian Release: 5.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'stable'), (400, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gnome-games depends on:
ii  crafty                 20.14-1           state-of-the-art chess engine, com
ii  ggzcore-bin            0.0.14.1-1        GGZ Gaming Zone: various command-l
ii  gnome-games-data       1:2.24.2-1        data files for the GNOME games
ii  gnuchess               5.07-4.1          Plays a game of chess, either agai
ii  gstreamer0.10-plugins- 0.10.19-2         GStreamer plugins from the "base" 
ii  guile-1.8-libs         1.8.5+1-4.1       Main Guile libraries
ii  libatk1.0-0            1.22.0-1          The ATK accessibility toolkit
ii  libc6                  2.7-18            GNU C Library: Shared libraries
ii  libcairo2              1.6.4-7           The Cairo 2D vector graphics libra
ii  libgcc1                1:4.3.2-1.1       GCC support library
ii  libgconf2-4            2.22.0-1          GNOME configuration database syste
ii  libggz2                0.0.14.1-1        GGZ Gaming Zone: common utilities 
ii  libggzcore9            0.0.14.1-1        GGZ Gaming Zone: core client front
ii  libggzmod4             0.0.14.1-1        GGZ Gaming Zone: game frontend lib
ii  libglib2.0-0           2.16.6-1          The GLib library of C routines
ii  libgnome2-0            2.20.1.1-1        The GNOME 2 library - runtime file
ii  libgnomeui-0           2.20.1.1-2        The GNOME 2 libraries (User Interf
ii  libgnomevfs2-0         1:2.22.0-5        GNOME Virtual File System (runtime
ii  libgstreamer0.10-0     0.10.19-3         Core GStreamer libraries and eleme
ii  libgtk2.0-0            2.12.11-4         The GTK+ graphical user interface 
ii  libpango1.0-0          1.20.5-3          Layout and rendering of internatio
ii  librsvg2-2             2.22.2-2lenny1    SAX-based renderer library for SVG
ii  librsvg2-common        2.22.2-2lenny1    SAX-based renderer library for SVG
ii  libstdc++6             4.3.2-1.1         The GNU Standard C++ Library v3
ii  libx11-6               2:1.1.5-2         X11 client-side library
ii  libxml2                2.6.32.dfsg-5     GNOME XML library
ii  python                 2.5.2-3           An interactive high-level object-o
ii  python-glade2          2.12.1-6          GTK+ bindings: Glade support
ii  python-gnome2          2.22.0-1          Python bindings for the GNOME desk
ii  python-gnome2-desktop  2.22.0-2          Python bindings for the GNOME desk
ii  python-gtk2            2.12.1-6          Python bindings for the GTK+ widge
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

Versions of packages gnome-games recommends:
ii  gnome-games-extra-data        2.22.0-1   games for the GNOME desktop (extra
pn  gvfs                          <none>     (no description available)

Versions of packages gnome-games suggests:
pn  gnome-hearts                  <none>     (no description available)

-- no debconf information






More information about the pkg-gnome-maintainers mailing list