exception on Fairy Tunes "Exception Uncaught"
I get an exception on the opening map-like screen, right after I press enter to start. Is this a gag? I'm not sure. Does anyone else see this?On either Python2.7 or Python2.6, WindowsXP, pip installed latest pygame, pyglet, cocos2d:
F:\Documents and Settings\jhartley\Desktop\pyweek11\Exception_Uncaught_1.4
> python26 run_game.py
entering game scene: level 0
entering game scene: level 0
307 607
303 597
300 554
0
BattleLayer.__init__()
Traceback (most recent call last):
File "_ctypes/callbacks.c", line 295, in 'calling callback function'
File "F:\Documents and Settings\jhartley\Desktop\pyweek11\Exception_Uncaught_1.4\pyglet\window\win32\__init__.py", line 849, in _wnd_proc
result = event_handler(msg, wParam, lParam)
File "F:\Documents and Settings\jhartley\Desktop\pyweek11\Exception_Uncaught_1.4\pyglet\window\win32\__init__.py", line 918, in _event_key
self.dispatch_event(ev, symbol, modifiers)
File "F:\Documents and Settings\jhartley\Desktop\pyweek11\Exception_Uncaught_1.4\pyglet\window\__init__.py", line 1218, in dispatch_event
EventDispatcher.dispatch_event(self, *args)
File "F:\Documents and Settings\jhartley\Desktop\pyweek11\Exception_Uncaught_1.4\pyglet\event.py", line 340, in dispatch_event
if handler(*args):
File "F:\Documents and Settings\jhartley\Desktop\pyweek11\Exception_Uncaught_1.4\gamelib\world_scene.py", line 177, in on_key_press
self.scene.run_next_level()
File "F:\Documents and Settings\jhartley\Desktop\pyweek11\Exception_Uncaught_1.4\gamelib\world_scene.py", line 196, in run_next_level
s = battle_scene.get_battle_scene(self.level_num)
File "F:\Documents and Settings\jhartley\Desktop\pyweek11\Exception_Uncaught_1.4\gamelib\battle_scene.py", line 597, in get_battle_scene
scene = BattleScene(level_index)
File "F:\Documents and Settings\jhartley\Desktop\pyweek11\Exception_Uncaught_1.4\gamelib\battle_scene.py", line 583, in __init__
self.bs = BattleLayer(level_index)
File "F:\Documents and Settings\jhartley\Desktop\pyweek11\Exception_Uncaught_1.4\gamelib\battle_scene.py", line 223, in __init__
color=(128, 0, 0, 255), bold=True)
File "F:\Documents and Settings\jhartley\Desktop\pyweek11\Exception_Uncaught_1.4\cocos\text.py", line 59, in __init__
self.create_element()
File "F:\Documents and Settings\jhartley\Desktop\pyweek11\Exception_Uncaught_1.4\cocos\text.py", line 62, in create_element
self.element = self.klass(group=self.group, batch=self.batch, **self.kwargs)
File "F:\Documents and Settings\jhartley\Desktop\pyweek11\Exception_Uncaught_1.4\pyglet\text\__init__.py", line 441, in __init__
'halign': halign,
File "F:\Documents and Settings\jhartley\Desktop\pyweek11\Exception_Uncaught_1.4\pyglet\text\document.py", line 593, in set_style
0, len(self.text), attributes)
File "F:\Documents and Settings\jhartley\Desktop\pyweek11\Exception_Uncaught_1.4\pyglet\text\document.py", line 504, in set_style
self.dispatch_event('on_style_text', start, end, attributes)
File "F:\Documents and Settings\jhartley\Desktop\pyweek11\Exception_Uncaught_1.4\pyglet\event.py", line 340, in dispatch_event
if handler(*args):
File "F:\Documents and Settings\jhartley\Desktop\pyweek11\Exception_Uncaught_1.4\pyglet\text\layout.py", line 983, in on_style_text
self._init_document()
File "F:\Documents and Settings\jhartley\Desktop\pyweek11\Exception_Uncaught_1.4\pyglet\text\layout.py", line 956, in _init_document
self._update()
File "F:\Documents and Settings\jhartley\Desktop\pyweek11\Exception_Uncaught_1.4\pyglet\text\layout.py", line 893, in _update
lines = self._get_lines()
File "F:\Documents and Settings\jhartley\Desktop\pyweek11\Exception_Uncaught_1.4\pyglet\text\layout.py", line 869, in _get_lines
glyphs = self._get_glyphs()
File "F:\Documents and Settings\jhartley\Desktop\pyweek11\Exception_Uncaught_1.4\pyglet\text\layout.py", line 995, in _get_glyphs
glyphs.extend(font.get_glyphs(text[start:end]))
File "F:\Documents and Settings\jhartley\Desktop\pyweek11\Exception_Uncaught_1.4\pyglet\font\base.py", line 285, in get_glyphs
self.glyphs[c] = glyph_renderer.render(c)
File "F:\Documents and Settings\jhartley\Desktop\pyweek11\Exception_Uncaught_1.4\pyglet\font\win32.py", line 508, in render
glyph = self.font.create_glyph(image)
File "F:\Documents and Settings\jhartley\Desktop\pyweek11\Exception_Uncaught_1.4\pyglet\font\base.py", line 260, in create_glyph
glyph = texture.fit(image)
File "F:\Documents and Settings\jhartley\Desktop\pyweek11\Exception_Uncaught_1.4\pyglet\font\base.py", line 151, in fit
region.blit_into(image, 0, 0, 0)
File "F:\Documents and Settings\jhartley\Desktop\pyweek11\Exception_Uncaught_1.4\pyglet\image\__init__.py", line 1708, in blit_into
self.owner.blit_into(source, x + self.x, y + self.y, z + self.z)
File "F:\Documents and Settings\jhartley\Desktop\pyweek11\Exception_Uncaught_1.4\pyglet\image\__init__.py", line 1598, in blit_into
source.blit_to_texture(self.target, self.level, x, y, z)
File "F:\Documents and Settings\jhartley\Desktop\pyweek11\Exception_Uncaught_1.4\pyglet\image\__init__.py", line 948, in blit_to_texture
data)
WindowsError: exception: access violation reading 0x09283028
(log in to comment)
Comments
Good idea, but it didn't help, I still get the same exception. I'm also winxp sp3 32 bit, and see this with either Python 2.7 or 2.6.5.
Doing the same with the embedded cocos doesn't help either.
claxo on
2010/08/30 23:25:
win xp sp3 32bits, python 2.6.5Runs ok here (both with the included pyglet and with pyglet 1.1.4)
I noticed that the game includes a very old pyglet version (1.1.1), you can try renaming the dir
pyglet -> _pyglet
to let the app found your python wide pyglet, or, if not having it, copyng one from other pyweek entry.