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 426461 - Exceptions from 'print' statements not caught
Exceptions from 'print' statements not caught
Status: RESOLVED FIXED
Product: gnome-games-superseded
Classification: Deprecated
Component: glchess
unspecified
Other All
: High critical
: ---
Assigned To: Robert Ancell
GNOME Games maintainers
: 431784 457344 458765 464684 484725 488295 488662 492182 502617 505063 508079 508080 509874 510077 510892 514213 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-04-05 04:02 UTC by disgrunted.toaster
Modified: 2008-02-10 12:56 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18



Description disgrunted.toaster 2007-04-05 04:02:21 UTC
What were you doing when the application crashed?
I tried to enable 3d mode under the View menu, after I installed the necessary packages (python-gtkglext1, python-opengl etc).  Then it crashed.

I am using the open source ati drivers for my Radeon 7200 /r100;  3d works but this game crashes in 3d.


Distribution: Ubuntu 7.04 (feisty)
Gnome Release: 2.18.0 2007-03-13 (Ubuntu)
BugBuddy Version: 2.18.0

System: Linux 2.6.20-13-generic #2 SMP Sun Mar 25 00:21:25 UTC 2007 i686
X Vendor: The X.Org Foundation
X Vendor Release: 70200000
Selinux: No
Accessibility: Disabled
GTK+ Theme: Human
Icon Theme: Human

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 (127 sec old) ---------------------
** Message: GetValue variable 1 (1)
** Message: GetValue variable 2 (2)
** Message: GetValue variable 1 (1)
** Message: GetValue variable 2 (2)
** Message: GetValue variable 1 (1)
** Message: GetValue variable 2 (2)
** Message: GetValue variable 1 (1)
** Message: GetValue variable 2 (2)
/usr/lib/python2.5/site-packages/apt/__init__.py:18: FutureWarning: apt API not stable yet
  warnings.warn("apt API not stable yet", FutureWarning)
/usr/lib/python2.5/site-packages/GDebi/GDebi.py:90: GtkWarning: gdk_window_set_cursor: assertion `GDK_IS_WINDOW (window)' failed
  self.window_main.set_sensitive(False)
  warnings.warn("apt API not stable yet", FutureWarning)
/usr/lib/python2.5/site-packages/GDebi/GDebi.py:90: GtkWarning: gdk_window_set_cursor: assertion `GDK_IS_WINDOW (window)' failed
  self.window_main.set_sensitive(False)
--------------------------------------------------
Traceback (most recent call last):
  • File "/usr/lib/python2.5/site-packages/glchess/gtkui/gtkui.py", line 169 in __expose
    self.__startGL()
  • File "/usr/lib/python2.5/site-packages/glchess/gtkui/gtkui.py", line 140 in __startGL
    print 'EXTENSIONS=' + OpenGL.GL.glGetString(OpenGL.GL.GL_EXTENSIONS)
IOError: [Errno 32] Broken pipe

Comment 1 Robert Ancell 2007-04-22 13:41:57 UTC
*** Bug 431784 has been marked as a duplicate of this bug. ***
Comment 2 Robert Ancell 2007-04-22 13:46:06 UTC
disgrunted.toaster, does this still occur for you?

Frederick reported in Bug 431784 :
<snip>
I called glChess from the gimmie panel. That seems to be a bit unstable anyway,
so maybe it was gimmie that caused the problem?

The problem hasn't reoccured since then.
</snip>
Comment 3 Robert Ancell 2007-04-22 13:50:01 UTC
I've re-arranged the code in 2.18 so the bug will be clearer as to where the problem is.
Comment 4 Thomas Andersen 2007-07-20 21:53:37 UTC
*** Bug 457344 has been marked as a duplicate of this bug. ***
Comment 5 Thomas Andersen 2007-07-20 21:53:40 UTC
*** Bug 458765 has been marked as a duplicate of this bug. ***
Comment 6 Thomas Andersen 2007-08-22 14:00:56 UTC
*** Bug 464684 has been marked as a duplicate of this bug. ***
Comment 7 Robert Ancell 2007-10-22 00:47:15 UTC
*** Bug 484725 has been marked as a duplicate of this bug. ***
Comment 8 Robert Ancell 2007-10-22 00:47:25 UTC
*** Bug 488295 has been marked as a duplicate of this bug. ***
Comment 9 Robert Ancell 2007-10-22 08:16:28 UTC
*** Bug 488662 has been marked as a duplicate of this bug. ***
Comment 10 Robert Ancell 2007-10-22 08:18:16 UTC
This has nothing to do with the OpenGL.GL.glGetString... This is the print failing. The solution is to remove all print calls and replace with a print function that catches the exceptions. The bug reporters are running on systems where stdout is not present or closed for some reason.
Comment 11 Robert Ancell 2007-10-22 10:25:46 UTC
Added an override in glchess.py to replace sys.stdout with a class that writes to stdout and catches and ignores all exceptions.
Comment 12 Robert Ancell 2007-11-01 00:32:12 UTC
*** Bug 492182 has been marked as a duplicate of this bug. ***
Comment 13 Robert Ancell 2007-12-09 10:09:49 UTC
*** Bug 502617 has been marked as a duplicate of this bug. ***
Comment 14 Robert Ancell 2007-12-24 04:17:44 UTC
*** Bug 505063 has been marked as a duplicate of this bug. ***
Comment 15 Robert Ancell 2008-01-10 06:37:55 UTC
*** Bug 508079 has been marked as a duplicate of this bug. ***
Comment 16 Robert Ancell 2008-01-10 06:38:00 UTC
*** Bug 508080 has been marked as a duplicate of this bug. ***
Comment 17 Thomas Andersen 2008-01-16 21:03:48 UTC
*** Bug 509874 has been marked as a duplicate of this bug. ***
Comment 18 Thomas Andersen 2008-01-18 03:31:58 UTC
*** Bug 510077 has been marked as a duplicate of this bug. ***
Comment 19 Thomas Andersen 2008-01-25 04:18:26 UTC
*** Bug 510892 has been marked as a duplicate of this bug. ***
Comment 20 Thomas Andersen 2008-02-10 12:56:54 UTC
*** Bug 514213 has been marked as a duplicate of this bug. ***