Bug#440488: fretsonfire: segfaults as soon as it tries to play a song
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#437330: fretsonfire: segfaults as soon as it tries to play a song
On sön, 2007-09-02 at 19:04 +0100, Matthew Johnson wrote: reopen 437330 thanks Hi! I'm running on pure amd64 sid here. The new version (fretsonfire 1.2.451.dfsg-2) works fine for me. I am seeing this on amd64 too. The error I get after upgrading python-opengl to the one in sid (making it more verbose, the same error happens on the etch version) is: [...] Attached is the diff between -1 and -2; the only relevant differences are those in DummyAmanith.py, GameEngine.py and View.py, which are the patch to fix #437330. Without the patch it works fine on etch, but not with the version of python-opengl in sid. With this patch it appears to work on neither, at least on 64bit systems. I don't quite understand. Are you saying that mixing Etch and Sid is a problem? Tighter (versioned) depenencies would probably solve this if someone figures out exactly which version of what broke the compability in the first place. Anyway, mixing different versions of debian isn't supported AFAIK so the bug should probably be considered fixed and closed. Can you please enlighten me if/what I've misinterpreted in what you wrote? -- 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#437330: patch for TypeError in fretsonfire.
# Disclaimer: I know nothing about python. Never expect any python # changes I do to be correct. tags 437330 + patch thanks Hello David! I had the same problem as you reported about the FretsOnFire game in Debian crashing on startup. The changes in the attached patch made it work for me. (Now the biggest remaining problem is that I miss every note. ;P) HTH, HAND! -- Regards, Andreas Henriksson diff -uri ./game/DummyAmanith.py /tmp/fretsonfire/game/DummyAmanith.py --- ./game/DummyAmanith.py 2007-02-20 20:42:46.0 +0100 +++ /tmp/fretsonfire/game/DummyAmanith.py 2007-08-18 16:09:05.0 +0200 @@ -39,7 +39,9 @@ pass def SetViewport(self, x, y, w, h): -glViewport(x, y, w, h) +glw = int(w) +glh = int(h) +glViewport(x, y, GLsizei(glw), GLsizei(glh)) def SetProjection(self, left, right, bottom, top): glMatrixMode(GL_PROJECTION) diff -uri ./game/GameEngine.py /tmp/fretsonfire/game/GameEngine.py --- ./game/GameEngine.py 2007-04-07 10:11:34.0 +0200 +++ /tmp/fretsonfire/game/GameEngine.py 2007-08-18 16:18:03.0 +0200 @@ -165,7 +165,9 @@ geometry = (0, 0, w, h) self.svg = SvgContext(geometry) self.svg.setRenderingQuality(self.config.get(opengl, svgquality)) -glViewport(*viewport) +glw = int(viewport[2]) +glh = int(viewport[3]) +glViewport(int(viewport[0]), int(viewport[1]), GLsizei(glh), GLsizei(glh)) self.input = Input() self.view = View(self, geometry) diff -uri ./game/View.py /tmp/fretsonfire/game/View.py --- ./game/View.py 2007-03-18 15:01:53.0 +0100 +++ /tmp/fretsonfire/game/View.py 2007-08-18 16:20:33.0 +0200 @@ -136,10 +136,10 @@ viewport = glGetIntegerv(GL_VIEWPORT) if normalize: - w = viewport[2] - viewport[0] - h = viewport[3] - viewport[1] + w = int ( viewport[2] - viewport[0] ) + h = int ( viewport[3] - viewport[1] ) # aspect ratio correction - h *= (float(w) / float(h)) / (4.0 / 3.0) + h *= int((float(w) / float(h)) / (4.0 / 3.0)) viewport = [0, 0, 1, h / w] if yIsDown: ___ Pkg-games-devel mailing list Pkg-games-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/pkg-games-devel