Bug#440488: fretsonfire: segfaults as soon as it tries to play a song

2008-01-16 Thread Jeremy Lainé

I can confirm that in my case the crash is due to an OpenGL call, usually 
glGetDoublev but sometimes glGetIntegerv.

I used the attached patch to trace these OpenGL calls.

Jeremy

-- 
http://www.jerryweb.org/ : JerryWeb.org
http://sailcut.sourceforge.net/  : Sailcut CAD
diff -urN usr/share/games/fretsonfire/game/DebugGL.py 
/usr/share/games/fretsonfire/game/DebugGL.py
--- usr/share/games/fretsonfire/game/DebugGL.py 1970-01-01 01:00:00.0 
+0100
+++ /usr/share/games/fretsonfire/game/DebugGL.py2008-01-16 
09:01:37.0 +0100
@@ -0,0 +1,13 @@
+import OpenGL
+
+def glGetDoublev(n):
+print glGetDoublev(0x%x) : start % n
+ret = OpenGL.GL.glGetDoublev(n)
+print glGetDoublev : stop
+return ret
+
+def glGetIntegerv(n):
+print glGetIntegerv(0x%x) : start %n
+ret = OpenGL.GL.glGetIntegerv(n)
+print glGetIntegerv : stop
+return ret
diff -urN usr/share/games/fretsonfire/game/Dialogs.py 
/usr/share/games/fretsonfire/game/Dialogs.py
--- usr/share/games/fretsonfire/game/Dialogs.py 2007-04-07 14:19:48.0 
+0200
+++ /usr/share/games/fretsonfire/game/Dialogs.py2008-01-15 
23:42:08.0 +0100
@@ -25,6 +25,7 @@
 import pygame
 from OpenGL.GL import *
 from OpenGL.GLU import *
+from DebugGL import *
 import math
 import os
 import fnmatch
diff -urN usr/share/games/fretsonfire/game/Font.py 
/usr/share/games/fretsonfire/game/Font.py
--- usr/share/games/fretsonfire/game/Font.py2007-02-20 20:42:45.0 
+0100
+++ /usr/share/games/fretsonfire/game/Font.py   2008-01-15 23:26:43.0 
+0100
@@ -22,6 +22,7 @@
 
 import pygame
 from OpenGL.GL import *
+from DebugGL import *
 import sys
 
 from Texture import Texture
diff -urN usr/share/games/fretsonfire/game/Scene.py 
/usr/share/games/fretsonfire/game/Scene.py
--- usr/share/games/fretsonfire/game/Scene.py   2007-02-20 20:42:45.0 
+0100
+++ /usr/share/games/fretsonfire/game/Scene.py  2008-01-16 07:37:05.0 
+0100
@@ -32,6 +32,7 @@
 from OpenGL.GL import *
 from OpenGL.GLU import *
 #from OpenGL.GLUT import *
+from DebugGL import *
 import math
 import colorsys
 import pygame
diff -urN usr/share/games/fretsonfire/game/View.py 
/usr/share/games/fretsonfire/game/View.py
--- usr/share/games/fretsonfire/game/View.py2007-09-01 20:14:34.0 
+0200
+++ /usr/share/games/fretsonfire/game/View.py   2008-01-15 23:24:22.0 
+0100
@@ -23,6 +23,7 @@
 from __future__ import division
 from OpenGL.GL import *
 from OpenGL.GLU import *
+from DebugGL import *
 
 import Log
 


signature.asc
Description: This is a digitally signed message part.
___
Pkg-games-devel mailing list
Pkg-games-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-devel

Bug#440488: fretsonfire: segfaults as soon as it tries to play a song

2008-01-05 Thread Jeremy Lainé
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I am also consistently seeing a crash in the same circumstances as those
described by Josh. I am running an up-to-date sid on amd64.

The crash seems to be due to an OpenGL call:

(gdb) bt
#0  0x2b09b1e3db2d in ?? () from /usr/lib/libGLcore.so.1
#1  0x2b09b1e3dfee in ?? () from /usr/lib/libGLcore.so.1
#2  0x2b09b0def98c in ffi_call_unix64 () from /usr/lib/libffi.so.4
#3  0x2b09b0def837 in ffi_call () from /usr/lib/libffi.so.4
#4  0x2b09b0bc2f0a in _CallProc () from
/usr/lib/python2.4/site-packages/_ctypes.so
#5  0x2b09b0bbdfc3 in ?? () from
/usr/lib/python2.4/site-packages/_ctypes.so
#6  0x00415520 in PyObject_Call ()
#7  0x00474bcd in PyEval_EvalFrame ()
#8  0x00477905 in PyEval_EvalCodeEx ()
#9  0x004bf727 in ?? ()


By the way, there is something odd about line 170 in GameEngine.py (glw
is defined but not used):

glw = int(viewport[2])
glh = int(viewport[3])
glViewport(int(viewport[0]), int(viewport[1]), int(glh), int(glh))

Cheers,
Jeremy
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHf0Up4mJJZqJp2ScRAmZUAJ906Qeud3wLoecB3CZI0Bw9kzqgawCeO5MI
fJtTLFLRcWbDx0Lo/K1GdK4=
=P9AC
-END PGP SIGNATURE-



___
Pkg-games-devel mailing list
Pkg-games-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-devel


Bug#440488: fretsonfire: segfaults as soon as it tries to play a song

2007-09-03 Thread Andreas Henriksson
I've just played some frets on fire and noticed that, not always but
often, after *finishing* a level I get the same or similar segfault in
pygame...

[EMAIL PROTECTED]:/tmp/fof$ fretsonfire 
Fatal Python error: (pygame parachute) Segmentation Fault
/usr/games/fretsonfire: line 4: 18217 Aborted ./FretsOnFire.py 
$@
[EMAIL PROTECTED]:/tmp/fof$ ls
[EMAIL PROTECTED]:/tmp/fof$ ulimit -c
0
[EMAIL PROTECTED]:/tmp/fof$ ulimit -c unlimited
[EMAIL PROTECTED]:/tmp/fof$ ulimit -c
unlimited
[EMAIL PROTECTED]:/tmp/fof$ fretsonfire 
Fatal Python error: (pygame parachute) Segmentation Fault
/usr/games/fretsonfire: line 4: 18391 Aborted ./FretsOnFire.py 
$@
[EMAIL PROTECTED]:/tmp/fof$ ulimit -c
unlimited
[EMAIL PROTECTED]:/tmp/fof$ ls
[EMAIL PROTECTED]:/tmp/fof$ 

Unfortunately I haven't been able to get a core dump to analyze. If
someone has suggestions on how to debug this I could try. Additionally
this looks like a problem in some library written in C (pygame?) rather
then in fretsonfire itself, since it's a segfault and not a python
trace.


-- 
Regards,
Andreas Henriksson



___
Pkg-games-devel mailing list
Pkg-games-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-devel


Bug#440488: fretsonfire: segfaults as soon as it tries to play a song

2007-09-02 Thread Matthew Johnson
close 437330
tag 440488 unreproducible moreinfo
thanks

On Sun Sep 02 20:49, Andreas Henriksson wrote:
 I'm running on pure amd64 sid here. The new version (fretsonfire
 1.2.451.dfsg-2) works fine for me.

OK, I've now made sure my system is up to date on sid, sorry for jumping
the gun; it works fine. Andreas - sorry fo doubting your fix!

Josh - are you sure you have an up-to-date system? I had problems with
running -2 on etch, but none on sid.

you can drop the CC of 437330 after this message

Thanks,
Matt

--
Matthew Johnson


signature.asc
Description: Digital signature
___
Pkg-games-devel mailing list
Pkg-games-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-devel