Ooops! Occasional Seg Fault running Voices Under Water

Unfortunately some people are having problems running Voices Under Water (Team Superfly Funky Stuff) and getting a Segmentation Fault before even seeing the menu screen ... :( ... it looks like there's a problem loading up the background music which is an OGG file.  Whether there's a problem with OGG files in general, this OGG file in particular, or the version of AVbin you may or may not be using, I've yet to find out.  If you're experiencing problems, here's the quick fix:

  1. Download the MP3 music file VoicesUnderWater.mp3 (you might need to right-click and Save As) and put it in the data/ directory.
  2. Alter gamelib/res.py by changing line 25 from
    music = pyglet.resource.media('04 - Voices Under Water.ogg')
    to
    music = pyglet.resource.media('VoicesUnderWater.mp3')
Let me know if you still have problems :)



btw ... Anyone else seeing this?

- Safe

safe on 2010/09/02 20:19 of Superfly Funky Stuff


Comments: (log in to comment)

I'm not getting a segmentation faults, but I do get this:


Traceback (most recent call last):
  File "run_game.py", line 3, in <module>
    from gamelib import main
  File "/home/max/pyweek-entries/voices_under_water-1.1/gamelib/main.py", line 21, in <module>
    from gamelib import guiutil
  File "/home/max/pyweek-entries/voices_under_water-1.1/gamelib/guiutil.py", line 10, in <module>
    from res import *
  File "/home/max/pyweek-entries/voices_under_water-1.1/gamelib/res.py", line 16, in <module>
    splash_images = pyglet.image.ImageGrid(pyglet.resource.image('splash.png'), 1, 15)
  File "/tmp/ve/lib/python2.6/site-packages/pyglet/resource.py", line 492, in image
    identity = self._cached_images[name] = self._alloc_image(name)
  File "/tmp/ve/lib/python2.6/site-packages/pyglet/resource.py", line 440, in _alloc_image
    return img.get_texture(True)
  File "/tmp/ve/lib/python2.6/site-packages/pyglet/image/__init__.py", line 798, in get_texture
    force_rectangle)
  File "/tmp/ve/lib/python2.6/site-packages/pyglet/image/__init__.py", line 783, in create_texture
    rectangle, force_rectangle)
  File "/tmp/ve/lib/python2.6/site-packages/pyglet/image/__init__.py", line 1483, in create
    blank)
  File "/tmp/ve/lib/python2.6/site-packages/pyglet/gl/lib.py", line 105, in errcheck
    raise GLException(msg)
pyglet.gl.lib.GLException: invalid value
Hey taejo ... what platform are you running?  This can happen with (a) some graphics cards (b) 64-bit Windows (apparently) or (c) something I've done wrong!

Try again with:

python -O run_game.py

This will tell pyglet to ignore any OpenGL errors though YMMV!  Let me know how you get on ...
I'm getting the same thing. In my case it's happening when it tries to create a 3000 x 141 texture, which appears to be too big for my graphics system.
Thanks gcewing.  Sounds like option (c) then.  Best take a look at what's going on.