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 593201 - GNUChess automatically saves your preference when you click "3D Mode" in the preferences dialogue -- please read comments
GNUChess automatically saves your preference when you click "3D Mode" in the ...
Status: RESOLVED DUPLICATE of bug 577240
Product: gnome-games-superseded
Classification: Deprecated
Component: glchess
2.26.x
Other All
: Normal enhancement
: ---
Assigned To: GNOME Games maintainers
GNOME Games maintainers
Depends on:
Blocks:
 
 
Reported: 2009-08-26 18:17 UTC by gnome
Modified: 2009-09-01 23:00 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26



Description gnome 2009-08-26 18:17:45 UTC
Version: 2.26.1

What were you doing when the application crashed?
Started GNUChess after it had crashed and it attempted to reload with the same settings.


Distribution: Ubuntu 9.04 (jaunty)
Gnome Release: 2.26.1 2009-05-06 (Ubuntu)
BugBuddy Version: 2.26.0

System: Linux 2.6.28-15-generic #49-Ubuntu SMP Tue Aug 18 18:40:08 UTC 2009 i686
X Vendor: The X.Org Foundation
X Vendor Release: 10600000
Selinux: No
Accessibility: Disabled
GTK+ Theme: Human
Icon Theme: Human
GTK+ Modules: canberra-gtk-module

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

Traceback (most recent call last):
  • File "/var/lib/python-support/python2.6/glchess/gtkui/chessview.py", line 168 in __expose
    self.view.feedback.renderGL()
  • File "/var/lib/python-support/python2.6/glchess/display.py", line 489 in renderGL
    self.scene.controller.render()
  • File "/var/lib/python-support/python2.6/glchess/scene/opengl/opengl.py", line 396 in render
    self.drawPieces()
  • File "/var/lib/python-support/python2.6/glchess/scene/opengl/opengl.py", line 897 in drawPieces
    piece.draw()
  • File "/var/lib/python-support/python2.6/glchess/scene/opengl/opengl.py", line 143 in draw
    self.chessSet.drawPiece(self.name, state, self.scene)
  • File "/var/lib/python-support/python2.6/glchess/scene/opengl/new_models.py", line 111 in drawPiece
    if glGetBoolean(GL_TEXTURE_2D):
  • File "/usr/lib/python2.6/dist-packages/OpenGL/wrapper.py", line 1631 in __call__
    return self.finalise()( *args, **named )
  • File "/usr/lib/python2.6/dist-packages/OpenGL/wrapper.py", line 683 in wrapperCall
    converter( pyArgs, index, self )
  • File "/usr/lib/python2.6/dist-packages/OpenGL/converters.py", line 195 in __call__
    return self.arrayType.zeros( self.getSize(pyArgs) )
  • File "/usr/lib/python2.6/dist-packages/OpenGL/arrays/arraydatatype.py", line 98 in zeros
    return cls.returnHandler().zeros( dims, typeCode or cls.typeConstant )
  • File "/usr/lib/python2.6/dist-packages/OpenGL/arrays/nones.py", line 32 in zeros
    raise TypeError( """Can't create NULL pointer filled with values""" )
TypeError: ("Can't create NULL pointer filled with values", 'Failure in cConverter <OpenGL.converters.SizedOutput object at 0x89e4224>', [GL_TEXTURE_2D], 1, <OpenGL.wrapper.glGetIntegerv object at 0x89ea4cc>)


----------- .xsession-errors ---------------------
    self.chessSet.drawPiece(self.name, state, self.scene)
  File "/var/lib/python-support/python2.6/glchess/scene/opengl/new_models.py", line 111, in drawPiece
    if glGetBoolean(GL_TEXTURE_2D):
  File "/usr/lib/python2.6/dist-packages/OpenGL/wrapper.py", line 1631, in __call__
    return self.finalise()( *args, **named )
  File "/usr/lib/python2.6/dist-packages/OpenGL/wrapper.py", line 683, in wrapperCall
    converter( pyArgs, index, self )
  File "/usr/lib/python2.6/dist-packages/OpenGL/converters.py", line 195, in __call__
    return self.arrayType.zeros( self.getSize(pyArgs) )
  File "/usr/lib/python2.6/dist-packages/OpenGL/arrays/arraydatatype.py", line 98, in zeros
    return cls.returnHandler().zeros( dims, typeCode or cls.typeConstant )
  File "/usr/lib/python2.6/dist-packages/OpenGL/arrays/nones.py", line 32, in zeros
    raise TypeError( """Can't create NULL pointer filled with values""" )
TypeError: ("Can't create NULL pointer filled with values", 'Failure in cConverter <OpenGL.converters.SizedOutput object at 0x89e4224>', [GL_TEXTURE_2D], 1, <OpenGL.wrapper.glGetIntegerv object at 0x8
--------------------------------------------------
Comment 1 gnome 2009-08-26 18:24:32 UTC
This bug effectively means that I cannot restart GNUChess from the Applications->Games->Chess menu under Ubuntu, as the application now crashes each time I launch it.
Comment 2 Fabio Durán Verdugo 2009-08-26 18:30:05 UTC
Thanks for the bug report. This particular bug has already been reported into
our bug tracking system, but please feel free to report any further bugs you
find.

*** This bug has been marked as a duplicate of bug 552981 ***
Comment 3 gnome 2009-08-26 18:48:47 UTC
I don't think this particular bug is a duplicate - it is not about the crash itself, but the fact that GNUChess (or Gnome Chess) tries to start with the same settings each time, so I can never get into the program preferences to switch off 3D mode. One crash has effectively disabled this program for me, which is a completely separate issue to the cause of the crash in the first place.
Comment 4 Fabio Durán Verdugo 2009-08-26 18:53:58 UTC
hi, the stacktraces are identical. i can say this is a dup of 552981.
Comment 5 gnome 2009-08-26 18:58:24 UTC
I think you've missed my point - bug 552981 is something to do with Python/GTK/Gl (and the other bug I filed - or rather the application did for me - is a duplicate of that bug). However, the other problem/bug is that GNUChess remembers if you selected 3D mode or not and uses that every time from then on, so if 3D mode crashes your system then GNUChess will crash every single time you load it from then on. It doesn't attempt to drop back to 2D mode or fall back to a previous configuration, so once you've selected 3D mode you can no longer use GNUChess with manually finding the configuration file for the program and disabling 3D mode, which is probably beyond the reach of most new users.
Comment 6 André Klapper 2009-08-26 19:12:30 UTC
I can confirm that this is exactly the same bug as bug 552981 and both have exactly the same reason for crashing.
Comment 7 gnome 2009-08-26 19:19:50 UTC
Okay, let me explain again:

1. GNUChess crashes in 3D Mode - bug 552981 and duplicates.

2. GNUChess automatically saves your preference when you click "3D Mode" in the preferences dialogue, so there is no way to start GNUChess again if 3D Mode causes it to crash. The sensible thing for GNUChess to do would be to not remember your preferences until you clicked a button (Accept / OK seem to be the accepted standards), so if a particular preference causes GNUChess to crash you can restart it with your previous set of preferences. If you like the new preferences and they don't cause the application to crash, you can elect to have them apply from there on. Without this option, you cannot get out of the "GNUChess crashes every time I launch it" loop without manually editing the preferences file (wherever it happens to be stored).

If it would make things easier, I am happy to file issue #2 as a separate bug without a stack trace, but it is a different problem to the cause of the original crash.
Comment 8 Fabio Durán Verdugo 2009-08-26 19:40:30 UTC
your idea can report as enhancement :-)
Comment 9 André Klapper 2009-08-26 19:54:43 UTC
Fabio: In that case please properly change status, priority, summary and component.
Comment 10 Fabio Durán Verdugo 2009-08-27 12:56:17 UTC
maybe, can be a "solution" to the bug #552981
http://bugzilla.gnome.org/show_bug.cgi?id=552981

(In reply to comment #7)

> 2. GNUChess automatically saves your preference when you click "3D Mode" in the
> preferences dialogue, so there is no way to start GNUChess again if 3D Mode
> causes it to crash. The sensible thing for GNUChess to do would be to not
> remember your preferences until you clicked a button (Accept / OK seem to be
> the accepted standards), so if a particular preference causes GNUChess to crash
> you can restart it with your previous set of preferences. If you like the new
> preferences and they don't cause the application to crash, you can elect to
> have them apply from there on. Without this option, you cannot get out of the
> "GNUChess crashes every time I launch it" loop without manually editing the
> preferences file (wherever it happens to be stored).
> 
> If it would make things easier, I am happy to file issue #2 as a separate bug
> without a stack trace, but it is a different problem to the cause of the
> original crash.
Comment 11 peter 2009-09-01 13:19:01 UTC
Perhaps a workaround to this, rather than denial would have been helpful to us guys trying gnome rather than KDE.

My workaround is this (ubuntu 9.04):-
In System->Preferences->MainMenu under system tools enable Configuration Editor

In Applications->System Tools->Configuration Editor select apps->glchess
and unclick the 3D box

Job Done.
Comment 12 gnome 2009-09-01 13:33:52 UTC
The workaround fixes the problem for me, although personally I think it involves too many steps for a novice user and I don't know if it will work if someone is running GNUChess under a different environment (KDE, Fluxbox etc.).
Comment 13 Robert Ancell 2009-09-01 23:00:47 UTC

*** This bug has been marked as a duplicate of bug 577240 ***