My favorites | Sign in
Project Home Downloads Issues
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 66: Crash when using MTScatter
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  txprog
Closed:  May 2009


 
Reported by ryan.pav...@gmail.com, Apr 29, 2009
What steps will reproduce the problem?
1. Run software that does these things: 
w = MTWallpaperWindow(wallpaper='wallpaper.png', fullscreen=False)
	k = MTKinetic()
...
self.mtobject = MTScatterImage(filename=self.imgpath) 
k.add_widget(self.mtobject)
(in objects - so several of these added)
...
k.process_kinetic()
	w.add_widget(k)
	runTouchApp()



2. Run the app.
3. Play around with the items on the screen for a while using a multi-touch surface.

What is the expected output? What do you see instead?
Expected output - being able to continue to work with the items on screen
File "./mainpymt.py", line 56, in <module>
    runTouchApp()
  File "/usr/local/lib/python2.6/dist-packages/pymt/mtpyglet.py", line 477, in runTouchApp
    pymt_evloop.run()
  File "/var/lib/python-support/python2.6/pyglet/app/xlib.py", line 94, in run
    sleep_time = self.idle()
  File "/usr/local/lib/python2.6/dist-packages/pymt/mtpyglet.py", line 368, in idle
    self.process_2dcur_events()
  File "/usr/local/lib/python2.6/dist-packages/pymt/mtpyglet.py", line 269, in 
process_2dcur_events
    cur.xpos * l.width, l.height - l.height * cur.ypos)
  File "/var/lib/python-support/python2.6/pyglet/window/__init__.py", line 1217, in 
dispatch_event
    EventDispatcher.dispatch_event(self, *args)
  File "/var/lib/python-support/python2.6/pyglet/event.py", line 349, in dispatch_event
    getattr(self, event_type)(*args)
  File "/usr/local/lib/python2.6/dist-packages/pymt/ui/window.py", line 273, in on_touch_move
    if w.dispatch_event('on_touch_move', touches, touchID, x, y):
  File "/usr/local/lib/python2.6/dist-packages/pymt/ui/widgets/widget.py", line 286, in 
dispatch_event
    if getattr(self, event_type)(*args):
  File "/usr/local/lib/python2.6/dist-packages/pymt/ui/widgets/kinetic.py", line 74, in 
on_touch_move
    return super(MTKinetic, self).on_touch_move(touches, touchID, x, y)
  File "/usr/local/lib/python2.6/dist-packages/pymt/ui/widgets/widget.py", line 416, in 
on_touch_move
    if w.dispatch_event('on_touch_move', touches, touchID, x, y):
  File "/usr/local/lib/python2.6/dist-packages/pymt/ui/widgets/widget.py", line 286, in 
dispatch_event
    if getattr(self, event_type)(*args):
  File "/usr/local/lib/python2.6/dist-packages/pymt/ui/widgets/scatter.py", line 302, in 
on_touch_move
    self.rotate_zoom_move(touchID, x, y)
  File "/usr/local/lib/python2.6/dist-packages/pymt/ui/widgets/scatter.py", line 232, in 
rotate_zoom_move
    scale = new_dist/old_dist
ZeroDivisionError: float division
AL lib: ALc.c:1302: exit() 1 device(s) and 1 context(s) NOT deleted


What version of the product are you using? On what operating system?
svn revision 801 on Ubuntu 9.04

Please provide any additional information below.

Apr 29, 2009
Project Member #1 txprog
Thank for reporting, it's a known bug, but missing in issue list.
This happen when you move too close 2 points on a scatter widget.
(open a point with right click, and move a second point near the first... and crash.)
Status: Accepted
Labels: -Priority-Medium Priority-High Milestone-0.3 Component-Core
May 7, 2009
Project Member #2 txprog
Fixed in trunk. See the
https://code.google.com/p/pymt/source/detail?r=73ac098c434a47d540945a0a6a5855f5c5f6d29f for
the fix.
Status: Done
Owner: txprog

Powered by Google Project Hosting