| Issue 63: | PyMT examples crash after duration or clicking | |
| 1 person starred this issue and may be notified of changes. | Back to list |
[INFO ] Fbo will use hardware Framebuffer [INFO ] listening for Tuio on 127.0.0.1:3333 [INFO ] Leaving application in progress... Traceback (most recent call last): File "flickthepic.py", line 114, in <module> runTouchApp() File "/usr/lib/python2.5/site-packages/pymt/mtpyglet.py", line 477, in runTouchApp pymt_evloop.run() File "/usr/lib/python2.5/site-packages/pyglet/app/xlib.py", line 94, in run sleep_time = self.idle() File "/usr/lib/python2.5/site-packages/pymt/mtpyglet.py", line 357, in idle frame_dt = pyglet.clock.tick() File "/usr/lib/python2.5/site-packages/pyglet/clock.py", line 698, in tick return _default.tick(poll) File "/usr/lib/python2.5/site-packages/pyglet/clock.py", line 317, in tick item.next_ts = self._get_soft_next_ts(ts, item.interval) File "/usr/lib/python2.5/site-packages/pyglet/clock.py", line 585, in _get_soft_next_ts if not taken(next_ts, interval / 4): File "/usr/lib/python2.5/site-packages/pyglet/clock.py", line 563, in taken if abs(item.next_ts - ts) <= e: TypeError: unsupported operand type(s) for -: 'NoneType' and 'float' This occurs with both Linux and Windows with: PyMT 0.2 Pyglet 1.1.3 Numpy 1.3.0 Python 2.5 and 2.6 Example taken from "Flickthepic", but occurs with most tested apps.
Apr 27, 2009
Not a viable repair, but a quick fix for continued use while testing, a simple try/catch can be put around the "if abs()" statement in order to catch the TypeError.
Apr 27, 2009
You can do that in your own installation of pyglet :) We cannot release a special-pymt version of pyglet anyway :/
Apr 27, 2009
Sorry for any confusion! That's all I meant it as; for user testing purposes.
May 7, 2009
(No comment was entered for this change.)
Owner:
txprog
May 7, 2009
(No comment was entered for this change.)
Status:
Blocked
Aug 29, 2009
(No comment was entered for this change.)
Labels:
Milestone-0.3.1
Oct 29, 2009
With the switch to pyopengl, clock have been rewrited. No more bug on this.
Status:
WontFix
Oct 29, 2009
(No comment was entered for this change.)
Labels:
-Milestone-0.3.1 Milestone-0.4
|
Labels: -Priority-Medium Priority-High Milestone-0.3 Component-Core