I am having a weird problem with the latest master branch (I can't remember this happening before, but then I haven't been able to look at this too much) when I try to run an example using launcher.py in the pydev/eclipse debugger. Basically, if I run without the debugger, the example plugin pops right up, if I run in debug mode, I get this error:
Traceback (most recent call last):
File "/home/r/.eclipse/org.eclipse.platform_3.5.0_155965261/plugins/org.python.pydev.debug_1.5.9.2010063001/pysrc/pydevd.py", line 978, in <module>
debugger.run(setup['file'], None, None)
File "/home/r/.eclipse/org.eclipse.platform_3.5.0_155965261/plugins/org.python.pydev.debug_1.5.9.2010063001/pysrc/pydevd.py", line 780, in run
execfile(file, globals, locals) #execute the script
File "/home/r/code/pymt/rte/examples/desktop/start.py", line 282, in <module>
runTouchApp()
File "/home/r/code/pymt/rte/pymt/base.py", line 368, in runTouchApp
pymt_window.mainloop()
File "/home/r/code/pymt/rte/pymt/ui/window/win_pygame.py", line 192, in mainloop
self._mainloop()
File "/home/r/code/pymt/rte/pymt/ui/window/win_pygame.py", line 124, in _mainloop
evloop.idle()
File "/home/r/code/pymt/rte/pymt/base.py", line 221, in idle
pymt_window.dispatch_event('on_draw')
File "/home/r/code/pymt/rte/pymt/event.py", line 366, in dispatch_event
event_type, args, getattr(self, event_type))
File "/home/r/code/pymt/rte/pymt/event.py", line 362, in dispatch_event
if getattr(self, event_type)(*args):
File "/home/r/code/pymt/rte/pymt/ui/window/__init__.py", line 351, in on_draw
w.dispatch_event('on_draw')
File "/home/r/code/pymt/rte/pymt/event.py", line 366, in dispatch_event
event_type, args, getattr(self, event_type))
File "/home/r/code/pymt/rte/pymt/event.py", line 362, in dispatch_event
if getattr(self, event_type)(*args):
File "/home/r/code/pymt/rte/pymt/ui/widgets/composed/innerwindow.py", line 237, in on_draw
glMultMatrixf(self.transform_mat)
File "/home/r/code/pymt/rte/pymt/utils.py", line 132, in new_func
file, line, caller = inspect.stack()[1][1:4]
File "/usr/lib/python2.6/inspect.py", line 953, in stack
return getouterframes(sys._getframe(1), context)
File "/usr/lib/python2.6/inspect.py", line 931, in getouterframes
framelist.append((frame,) + getframeinfo(frame, context))
File "/usr/lib/python2.6/inspect.py", line 900, in getframeinfo
raise TypeError('arg is not a frame or traceback object')
TypeError: arg is not a frame or traceback object
Exception AttributeError: "'NoneType' object has no attribute 'print_exc'" in <bound method TextureRegion.__del__ of <pymt.texture.TextureRegion object at 0x9c382fc>> ignored
(the last 2 lines is has been showing up for a while, I don't think it is related).
Has anyone seen anything like this before? It means no more debugging in pydev, which is rough. I will report a bug here if need be, or on the pydev list.