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 540527 - Crash when loading null PGN file
Crash when loading null PGN file
Status: RESOLVED FIXED
Product: gnome-games-superseded
Classification: Deprecated
Component: glchess
unspecified
Other All
: High critical
: ---
Assigned To: Robert Ancell
GNOME Games maintainers
Depends on:
Blocks:
 
 
Reported: 2008-06-27 18:52 UTC by sttoth
Modified: 2008-06-29 10:49 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description sttoth 2008-06-27 18:52:07 UTC
Version: 2.22.1.1

What were you doing when the application crashed?
in 3D modus gewechselt


Distribution: openSUSE 11.0 (X86-64)
Gnome Release: 2.22.1 2008-06-07 (SUSE)
BugBuddy Version: 2.22.0

System: Linux 2.6.25.5-1.1-default #1 SMP 2008-06-07 01:55:22 +0200 x86_64
X Vendor: The X.Org Foundation
X Vendor Release: 10400090
Selinux: No
Accessibility: Disabled
GTK+ Theme: Gilouche
Icon Theme: Gilouche

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 ---------------------
Object::connect: No such slot AbstractTaskItem::update()
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0
/usr/lib64/python2.5/site-packages/glchess/gtkui/dialogs.py:414: GtkWarning: gtk_file_system_unix_get_info: assertion `g_path_is_absolute (filename)' failed
  fileChooser.set_current_folder(directory)
Traceback (most recent call last):
  • File "/usr/lib64/python2.5/site-packages/glchess/gtkui/dialogs.py", line 458 in _on_response
    error = self.__mainUI.feedback.loadGame(self.__getFilename(), responseId == gtk.RESPONSE_YES)
  • File "/usr/lib64/python2.5/site-packages/glchess/main.py", line 386 in loadGame
    self.application.addPGNGame(p[0], path, configure)
  • File "/usr/lib64/python2.5/site-packages/glchess/chess/pgn.py", line 537 in __getitem__
    return self.__games[index]
IndexError: list index out of range
Object::connect: No such slot AbstractTaskItem::update()
--------------------------------------------------
Traceback (most recent call last):
  • File "/usr/lib64/python2.5/site-packages/glchess/gtkui/dialogs.py", line 458 in _on_response
    error = self.__mainUI.feedback.loadGame(self.__getFilename(), responseId == gtk.RESPONSE_YES)
  • File "/usr/lib64/python2.5/site-packages/glchess/main.py", line 386 in loadGame
    self.application.addPGNGame(p[0], path, configure)
  • File "/usr/lib64/python2.5/site-packages/glchess/chess/pgn.py", line 537 in __getitem__
    return self.__games[index]
IndexError: list index out of range

Comment 1 Robert Ancell 2008-06-29 09:52:16 UTC
*** Bug 536053 has been marked as a duplicate of this bug. ***
Comment 2 Robert Ancell 2008-06-29 10:23:01 UTC
getFilename() has returned None - i.e. no game was selected in the open dialog.

To reproduce:

1. Open load dialog (Ctrl+O)
2. Select a PGN file
3. Delete the file name in the file chooser
4. Select open

The issue is the open button state is not updated when the file text entry is being edited.
Comment 3 Robert Ancell 2008-06-29 10:45:17 UTC
I've changed the open button to be always sensitive as we just cannot get enough information from the GtkFileChooserWidget to decide if the user has selected/entered a valid filename. If a open is clicked with nothing selected an error message is displayed (head) or the button is ignored (stable branch).

Fixed in stable and head:
http://svn.gnome.org/viewvc/gnome-games?view=revision&revision=7747
http://svn.gnome.org/viewvc/gnome-games?view=revision&revision=7746