gnome-sudoku crashes with TypeError when saving a "very hard" game

Bug #1252220 reported by errors.ubuntu.com bug bridge
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
gnome-sudoku (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

The Ubuntu Error Tracker has been receiving reports about a problem regarding gnome-sudoku. This problem was most recently seen with version 1:3.8.1-1ubuntu1, the problem page at https://errors.ubuntu.com/problem/8c47c556e13b16454ddc18b00d4217bad720461c contains more details.

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gnome_sudoku/main.py", line 52, in inactivate_new_game_etc_
    ret = fun(ui, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/gnome_sudoku/main.py", line 413, in new_cb
    self.select_game()
  File "/usr/lib/python3/dist-packages/gnome_sudoku/main.py", line 52, in inactivate_new_game_etc_
    ret = fun(ui, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/gnome_sudoku/main.py", line 150, in select_game
    choice = game_selector.NewOrSavedGameSelector().run_swallowed_dialog(self.swallower)
  File "/usr/lib/python3/dist-packages/gnome_sudoku/game_selector.py", line 270, in run_swallowed_dialog
    self.setup_dialog()
  File "/usr/lib/python3/dist-packages/gnome_sudoku/game_selector.py", line 93, in setup_dialog
    self.make_saved_game_model()
  File "/usr/lib/python3/dist-packages/gnome_sudoku/game_selector.py", line 187, in make_saved_game_model
    sdifficulty = sr.difficulty()
  File "/usr/lib/python3/dist-packages/gnome_sudoku/sudoku.py", line 836, in difficulty
    self.solve()
  File "/usr/lib/python3/dist-packages/gnome_sudoku/sudoku.py", line 407, in solve
    while not self.guess_least_open_square():
  File "/usr/lib/python3/dist-packages/gnome_sudoku/sudoku.py", line 832, in guess_least_open_square
    return SudokuSolver.guess_least_open_square(self)
  File "/usr/lib/python3/dist-packages/gnome_sudoku/sudoku.py", line 448, in guess_least_open_square
    poss.sort(lambda a, b: len(a[1]) > len(b[1]) and 1 or len(a[1]) < len(b[1]) and -1 or \
TypeError: must use keyword argument for key function

Tags: trusty
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-sudoku (Ubuntu):
status: New → Confirmed
Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

This occurs when you save a "Very Hard" game for latter. It also occurs when trying to launch gnome-sudoku after having saved a "Very Hard" game. I can't reproduce it with any other difficulty level. Deleting the saved game file from ~/.config/gnome-sudoku/saved allows the program to run properly once more.

description: updated
Changed in gnome-sudoku (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

  * 0002-fix-sort-syntax-error.patch: Backport upstream
    commit that fixes crashes when saving a "Very Hard"
    game (LP: #1252220).

Changed in gnome-sudoku (Ubuntu):
status: Confirmed → Triaged
summary: - /usr/games/gnome-sudoku:TypeError:/usr/games/gnome-
- sudoku@23:start_game:start_game:__init__:inactivate_new_game_etc_:select_game:run_swallowed_dialog:setup_dialog:make_saved_game_model:difficulty:solve:guess_least_open_square:guess_least_open_square
+ gnome-sudoku crashes with TypeError when saving a "very hard" game
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-sudoku - 1:3.10.2-0ubuntu2

---------------
gnome-sudoku (1:3.10.2-0ubuntu2) trusty; urgency=medium

  * 0002-fix-sort-syntax-error.patch: Backport upstream
    commit that fixes crashes when saving a "Very Hard"
    game (LP: #1252220).
 -- Andrew Starr-Bochicchio <email address hidden> Thu, 16 Jan 2014 21:24:37 -0500

Changed in gnome-sudoku (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Jane Atkinson (irihapeti) wrote :

I can confirm that the latest update is working correctly.

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.