mansrz / pymt

Automatically exported from code.google.com/p/pymt
0 stars 0 forks source link

Crash when using MTScatter #66

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by ryan.pav...@gmail.com on 29 Apr 2009 at 2:39

GoogleCodeExporter commented 9 years ago
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.)

Original comment by txprog on 29 Apr 2009 at 4:36

GoogleCodeExporter commented 9 years ago
Fixed in trunk. See the
http://code.google.com/p/pymt/source/detail?r=73ac098c434a47d540945a0a6a5855f5c5
f6d29f for
the fix.

Original comment by txprog on 7 May 2009 at 10:00