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 667003 - sudoku: IndexError: list index out of range when starting a games
sudoku: IndexError: list index out of range when starting a games
Status: RESOLVED OBSOLETE
Product: gnome-sudoku
Classification: Applications
Component: general
git master
Other Linux
: Normal critical
: ---
Assigned To: GNOME Games maintainers
GNOME Games maintainers
Depends on:
Blocks:
 
 
Reported: 2011-12-29 18:05 UTC by Jeremy Bicha
Modified: 2013-11-07 16:56 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jeremy Bicha 2011-12-29 18:05:30 UTC
As reported at https://bugs.launchpad.net/ubuntu/+source/gnome-games/+bug/908972

Sudoku starts fine but crashes when clicking Easy/Medium/Hard/Very Hard to actually start a game. This appears to be specific to Ubuntu 12.04 and didn't affect 11.10. I've experienced this crash with gnome-games 3.2.1 and 3.3.3. And we have reports from 64-bit and 32-bit PAE users.

Traceback (most recent call last):
  • File "/usr/games/gnome-sudoku", line 23 in <module>
    start_game()
  • File "/usr/lib/python2.7/dist-packages/gnome_sudoku/gnome_sudoku.py", line 22 in start_game
    main.start_game()
  • File "/usr/lib/python2.7/dist-packages/gnome_sudoku/main.py", line 1002 in start_game
    u = UI()
  • File "/usr/lib/python2.7/dist-packages/gnome_sudoku/main.py", line 153 in __init__
    if self.select_game():
  • File "/usr/lib/python2.7/dist-packages/gnome_sudoku/main.py", line 52 in inactivate_new_game_etc_
    ret = fun(ui, *args, **kwargs)
  • File "/usr/lib/python2.7/dist-packages/gnome_sudoku/main.py", line 170 in select_game
    self.gsd.change_grid(choice[1], 9)
  • File "/usr/lib/python2.7/dist-packages/gnome_sudoku/gsudoku.py", line 388 in change_grid
    self.setup_grid(grid, group_size)
  • File "/usr/lib/python2.7/dist-packages/gnome_sudoku/gsudoku.py", line 419 in setup_grid
    self.grid = sudoku.InteractiveSudoku(grid, group_size = group_size)
  • File "/usr/lib/python2.7/dist-packages/gnome_sudoku/sudoku.py", line 521 in __init__
    SudokuSolver.__init__(self, grid, verbose, group_size)
  • File "/usr/lib/python2.7/dist-packages/gnome_sudoku/sudoku.py", line 293 in __init__
    SudokuGrid.__init__(self, grid, verbose = verbose, group_size = group_size)
  • File "/usr/lib/python2.7/dist-packages/gnome_sudoku/sudoku.py", line 140 in __init__
    self.populate_from_grid(grid)
  • File "/usr/lib/python2.7/dist-packages/gnome_sudoku/sudoku.py", line 218 in populate_from_grid
    self.add(x, y, cell)
  • File "/usr/lib/python2.7/dist-packages/gnome_sudoku/sudoku.py", line 567 in add
    super(InteractiveSudoku, self).add(x, y, val, force)
  • File "/usr/lib/python2.7/dist-packages/gnome_sudoku/sudoku.py", line 513 in add
    SudokuGrid.add(self, x, y, val, *args, **kwargs)
  • File "/usr/lib/python2.7/dist-packages/gnome_sudoku/sudoku.py", line 160 in add
    if self._get_(x, y):
  • File "/usr/lib/python2.7/dist-packages/gnome_sudoku/sudoku.py", line 197 in _get_
    return self.grid[y][x]
IndexError: list index out of range

Comment 1 Ian Abbott 2011-12-29 21:41:30 UTC
Same bug on Arch Linux gnome-games 3.2.1. No bug reported in the Arch Linux bugtracker, but there's a thread in the forums:

https://bbs.archlinux.org/viewtopic.php?pid=1033950
Comment 2 Jeremy Bicha 2011-12-31 23:40:26 UTC
Also seen in Fedora 16 where downgrading from pygobject3-3.0.3-1.fc16 to pygobject3 to 3.0.1-1.fc16 fixed the problem for one bug reporter.

https://bugzilla.redhat.com/show_bug.cgi?id=770402
Comment 3 necedemalis 2012-01-01 11:23:50 UTC
Same bug on debian testing
Comment 4 Ian Abbott 2012-01-03 14:11:34 UTC
Same bug occurred on Gentoo Linux when I upgraded from dev-python/pygobject-3.0.2 to dev-python/pygobject-3.0.3.

Gentoo's dev-python/pygobject-3.0.3 ebuild applies this patch from bug 664864:
http://bugzilla-attachments.gnome.org/attachment.cgi?id=203183

I was hoping that might have fixed the problem, but it didn't.