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 435035 - RuntimeError loading Glade file
RuntimeError loading Glade file
Status: RESOLVED FIXED
Product: gnome-games-superseded
Classification: Deprecated
Component: glchess
2.22.x
Other All
: Urgent critical
: ---
Assigned To: Jason Clinton
GNOME Games maintainers
This bug is on the auto-stacktrace-re...
: 440233 499110 512340 533207 535293 535586 535930 536048 537238 537332 537334 537504 538086 538097 538158 538265 538326 538327 538465 538885 538928 539181 539412 539514 539520 539731 539764 539802 540265 540266 540536 540573 540624 540626 540630 549089 550745 567379 570854 579792 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-05-01 22:32 UTC by cacu100
Modified: 2009-04-22 11:41 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
Fix our sys.path (1.81 KB, patch)
2008-04-20 20:23 UTC, Jason Clinton
rejected Details | Review

Description cacu100 2007-05-01 22:32:45 UTC
What were you doing when the application crashed?



Distribution: Ubuntu 7.04 (feisty)
Gnome Release: 2.18.1 2007-04-10 (Ubuntu)
BugBuddy Version: 2.18.1

System: Linux 2.6.20-15-386 #2 Sun Apr 15 07:34:00 UTC 2007 i686
X Vendor: The X.Org Foundation
X Vendor Release: 70200000
Selinux: No
Accessibility: Disabled
GTK+ Theme: Nuvola
Icon Theme: Nuvola

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 (6 sec old) ---------------------
Traceback (most recent call last):
  • File "/usr/games/glchess", line 20 in <module>
    start_game()
  • File "/usr/lib/python2.5/site-packages/glchess/glchess.py", line 3 in start_game
    app = main.Application()
  • File "/usr/lib/python2.5/site-packages/glchess/main.py", line 770 in __init__
    self.ui = UI(self)
  • File "/usr/lib/python2.5/site-packages/glchess/main.py", line 674 in __init__
    gtkui.GtkUI.__init__(self)
  • File "/usr/lib/python2.5/site-packages/glchess/gtkui/gtkui.py", line 586 in __init__
    self._gui = loadGladeFile('glchess.glade')
  • File "/usr/lib/python2.5/site-packages/glchess/gtkui/gtkui.py", line 54 in loadGladeFile
    return gtk.glade.XML(os.path.join(GLADE_DIR, name), root, domain = DOMAIN)
RuntimeError: could not create GladeXML object
--------------------------------------------------
Traceback (most recent call last):
  • File "/usr/games/glchess", line 20 in <module>
    start_game()
  • File "/usr/lib/python2.5/site-packages/glchess/glchess.py", line 3 in start_game
    app = main.Application()
  • File "/usr/lib/python2.5/site-packages/glchess/main.py", line 770 in __init__
    self.ui = UI(self)
  • File "/usr/lib/python2.5/site-packages/glchess/main.py", line 674 in __init__
    gtkui.GtkUI.__init__(self)
  • File "/usr/lib/python2.5/site-packages/glchess/gtkui/gtkui.py", line 586 in __init__
    self._gui = loadGladeFile('glchess.glade')
  • File "/usr/lib/python2.5/site-packages/glchess/gtkui/gtkui.py", line 54 in loadGladeFile
    return gtk.glade.XML(os.path.join(GLADE_DIR, name), root, domain = DOMAIN)
RuntimeError: could not create GladeXML object

Comment 1 Robert Ancell 2007-05-22 13:11:58 UTC
*** Bug 440233 has been marked as a duplicate of this bug. ***
Comment 2 Robert Ancell 2007-08-29 03:18:00 UTC
Closing as have had no duplicates and is in an external library. The RuntimeError exception is too generic so it does not make sense for us to catch it.
Comment 3 Robert Ancell 2007-12-04 05:19:48 UTC
Please attach your version of /usr/share/games/glchess/glchess.glade, to confirm it is a valid file. Thanks.
Comment 4 Robert Ancell 2007-12-04 05:20:03 UTC
*** Bug 499110 has been marked as a duplicate of this bug. ***
Comment 5 Philip Withnall 2008-01-27 12:46:12 UTC
*** Bug 512340 has been marked as a duplicate of this bug. ***
Comment 6 Jason Clinton 2008-04-20 20:23:28 UTC
Created attachment 109598 [details] [review]
Fix our sys.path
Comment 7 Jason Clinton 2008-04-20 20:26:37 UTC
Josselin Mouette <joss@debian.org> patched their installation of Gnome Games to fix the sys.path usage. It looks good to me. Posted it here.
Comment 8 Robert Ancell 2008-04-21 03:28:36 UTC
This code cannot be removed unless the glChess .py files are installed in the system path (as is the case in Debian/most distributions). If they are installed elsewhere (e.g. I install my builds on gnome-games into ~/build) this allows glChess to run properly.

Are you saying you get this RuntimeError exception from the Glade libraries? We need to investigate why this is occuring. At the worst putting an extra line (even if it is invalid) into sys.path should not cause any crashes.
Comment 9 Robert Ancell 2008-04-21 03:32:09 UTC
Note the path went from being static to dynamic in this revision:
http://svn.gnome.org/viewvc/gnome-games?view=revision&revision=5726

And the variable changed form in this revision:
http://svn.gnome.org/viewvc/gnome-games?view=revision&revision=7137

(I'm not automake expert)
Comment 10 Thomas Andersen 2008-04-21 10:54:21 UTC
Perhaps this patch was meant for bug #528953 instead?
Comment 11 Jason Clinton 2008-04-21 19:39:32 UTC
Yes, I put it on the wrong bug. For this bug, I am seeing glchess crash because it's trying to load its glade files from the build directory instead of the install path. I'll investigate further.
Comment 12 Andreas Røsdal 2008-04-26 15:45:49 UTC
(removing gnome-target, because this isn't a GNOME showstopper)
Comment 13 mat 2008-05-30 00:14:18 UTC
*** Bug 535586 has been marked as a duplicate of this bug. ***
Comment 14 mat 2008-05-30 14:31:26 UTC
Works again in 2.22.2.1 (broken in 2.22.2)
Comment 15 Gianluca Borello 2008-05-30 16:59:26 UTC
*** Bug 535293 has been marked as a duplicate of this bug. ***
Comment 16 Gianluca Borello 2008-05-31 00:26:25 UTC
this is fixed in latest version of glchess in ubuntu hardy:

gnome-games (1:2.22.2.1-0ubuntu1) hardy-proposed; urgency=low

  * New upstream version:
    GLChess
    - Fix our sys.path usage

 -- Sebastien Bacher <seb128@canonical.com>  Fri, 30 May 2008 10:13:38 +0200


can we mark this bug as FIXED (again)?
Comment 17 Gianluca Borello 2008-05-31 16:38:19 UTC
*** Bug 535930 has been marked as a duplicate of this bug. ***
Comment 18 Gianluca Borello 2008-06-01 15:58:55 UTC
*** Bug 536048 has been marked as a duplicate of this bug. ***
Comment 19 Jason Clinton 2008-06-07 20:54:22 UTC
It seems that I inadvertently fixed this as a side effect of more sane sys.path usage. Closing as requested.
Comment 20 Gianluca Borello 2008-06-09 15:11:44 UTC
*** Bug 537334 has been marked as a duplicate of this bug. ***
Comment 21 Gianluca Borello 2008-06-09 15:11:44 UTC
*** Bug 537332 has been marked as a duplicate of this bug. ***
Comment 22 Gianluca Borello 2008-06-10 10:53:51 UTC
*** Bug 537504 has been marked as a duplicate of this bug. ***
Comment 23 Gianluca Borello 2008-06-13 17:25:33 UTC
*** Bug 538158 has been marked as a duplicate of this bug. ***
Comment 24 Gianluca Borello 2008-06-13 17:34:50 UTC
*** Bug 538086 has been marked as a duplicate of this bug. ***
Comment 25 Gianluca Borello 2008-06-13 17:34:58 UTC
*** Bug 537238 has been marked as a duplicate of this bug. ***
Comment 26 Gianluca Borello 2008-06-13 17:35:19 UTC
*** Bug 538097 has been marked as a duplicate of this bug. ***
Comment 27 Gianluca Borello 2008-06-14 17:15:20 UTC
*** Bug 538327 has been marked as a duplicate of this bug. ***
Comment 28 Gianluca Borello 2008-06-14 17:15:26 UTC
*** Bug 538326 has been marked as a duplicate of this bug. ***
Comment 29 Gianluca Borello 2008-06-14 17:16:23 UTC
*** Bug 538265 has been marked as a duplicate of this bug. ***
Comment 30 Gianluca Borello 2008-06-15 22:59:16 UTC
*** Bug 538465 has been marked as a duplicate of this bug. ***
Comment 31 Tero Keinänen 2008-06-18 12:42:28 UTC
*** Bug 538885 has been marked as a duplicate of this bug. ***
Comment 32 Tero Keinänen 2008-06-18 12:52:40 UTC
*** Bug 538928 has been marked as a duplicate of this bug. ***
Comment 33 Tero Keinänen 2008-06-19 21:05:44 UTC
*** Bug 539181 has been marked as a duplicate of this bug. ***
Comment 34 Tero Keinänen 2008-06-21 11:34:05 UTC
*** Bug 539412 has been marked as a duplicate of this bug. ***
Comment 35 Robert Ancell 2008-06-22 04:11:27 UTC
*** Bug 539520 has been marked as a duplicate of this bug. ***
Comment 36 Robert Ancell 2008-06-22 04:11:34 UTC
*** Bug 539514 has been marked as a duplicate of this bug. ***
Comment 37 Robert Ancell 2008-06-22 04:12:17 UTC
Is still occurring in 2.22.2.1...
Comment 38 Gianluca Borello 2008-06-23 13:12:57 UTC
*** Bug 539731 has been marked as a duplicate of this bug. ***
Comment 39 Jason Clinton 2008-06-23 14:56:50 UTC
*All* of the duplicates are from Ubuntu. I am nearly certain this has something to do with the user installing GLChess 1.0 from their Universe and then going back to Gnome Games.

Can one of you who filed a dup. bug confirm that you installed GLChess separately at some point?
Comment 40 Gianluca Borello 2008-06-23 15:31:08 UTC
*** Bug 539764 has been marked as a duplicate of this bug. ***
Comment 41 Jason Clinton 2008-06-23 16:05:56 UTC
Ubuntu's seb128 is uploading a copy of gnome-games-data that conflicts with
glchess.

That should prevent glchess from hanging around in an unconfigured state and causing all kinds of problems. Hopefully that fixes this.
Comment 42 Susana 2008-06-23 20:11:08 UTC
*** Bug 539802 has been marked as a duplicate of this bug. ***
Comment 43 Gianluca Borello 2008-06-26 07:30:39 UTC
*** Bug 540265 has been marked as a duplicate of this bug. ***
Comment 44 Gianluca Borello 2008-06-26 07:30:40 UTC
*** Bug 540266 has been marked as a duplicate of this bug. ***
Comment 45 Jason Clinton 2008-06-28 03:05:22 UTC
*** Bug 540536 has been marked as a duplicate of this bug. ***
Comment 46 Gianluca Borello 2008-06-28 07:51:29 UTC
*** Bug 540573 has been marked as a duplicate of this bug. ***
Comment 47 Robert Ancell 2008-06-29 09:23:54 UTC
*** Bug 540630 has been marked as a duplicate of this bug. ***
Comment 48 Robert Ancell 2008-06-29 09:23:59 UTC
*** Bug 540626 has been marked as a duplicate of this bug. ***
Comment 49 Robert Ancell 2008-06-29 09:24:02 UTC
*** Bug 540624 has been marked as a duplicate of this bug. ***
Comment 50 André Klapper 2008-06-29 12:14:44 UTC
(In reply to comment #41)
> Ubuntu's seb128 is uploading a copy of gnome-games-data that conflicts with
> glchess.
> That should prevent glchess from hanging around in an unconfigured state and
> causing all kinds of problems. Hopefully that fixes this.

176 dups so far.
Seb128, can you please add a comment here when this has been committed in Ubuntu?
Comment 51 Thomas Andersen 2008-08-06 20:02:46 UTC
I just checked and gnome-games is now set as both Conflicts and Replaces for glchess. Given that the bugs have stopped and the frequency they were coming in at before I think it's safe to assume this bug is finally gone. Yippee :)
Comment 52 Robert Ancell 2008-08-14 07:36:37 UTC
*** Bug 533207 has been marked as a duplicate of this bug. ***
Comment 53 Robert Ancell 2008-09-21 11:58:32 UTC
*** Bug 550745 has been marked as a duplicate of this bug. ***
Comment 54 Robert Ancell 2008-09-30 10:35:24 UTC
*** Bug 549089 has been marked as a duplicate of this bug. ***
Comment 55 Robert Ancell 2009-01-18 22:13:56 UTC
*** Bug 567379 has been marked as a duplicate of this bug. ***
Comment 56 Fabio Durán Verdugo 2009-02-07 15:19:05 UTC
*** Bug 570854 has been marked as a duplicate of this bug. ***
Comment 57 palfrey 2009-04-22 11:41:58 UTC
*** Bug 579792 has been marked as a duplicate of this bug. ***