Public bug reported:
Binary package hint: python-visual
This might also be an issue with libboost-python1.33.1, I'm not sure.
When calling gcurve in a program, the program crashes with the following
error message:
IDLE 1.2.1 ==== No Subprocess ====
>>>
Traceback (most recent call last):
File "/home/**usernameedited**/Phys172L/fancart.py", line 11, in <module>
mgraph = gcurve(color=color.cyan)
File "/usr/lib/python2.5/site-packages/visual/graph.py", line 489, in __init__
pos = constructorargs(self,args)
File "/usr/lib/python2.5/site-packages/visual/graph.py", line 463, in
constructorargs
obj.gdisplay = getgdisplay()
File "/usr/lib/python2.5/site-packages/visual/graph.py", line 456, in
getgdisplay
return gdisplay()
File "/usr/lib/python2.5/site-packages/visual/graph.py", line 192, in __init__
currentdisplay.select()
RuntimeError: boost::bad_weak_ptr
>>>
Simply running the program reproduces the error. Removing all
references to gcurve in the program prevents the error. I encountered
this on a fresh feisty install on a Gateway Core 2 Duo laptop. I
installed the ubuntu-packaged versions of python2.5, libboost and
python-visual.
The source code for the program which causes the error is:
from visual import *
scene.y = 400 # move animation window down 400 pixels from top of screen
from visual.graph import *
track = box(pos=vector(0,-.05,0), size=(1.0, 0.05, 0.10))
cart = box(pos=vector(-0.5,0,0), size=(0.1, 0.04, 0.06), color=color.green)
cart.m = 0.80
cart.p = cart.m*vector(0.5, 0, 0)
mgraph = gcurve(color=color.cyan)
deltat = 0.01
t = 0
while t < 3.0:
rate(100)
Fnet = vector(-0.4, 0, 0)
cart.p = cart.p + Fnet*deltat
cart.pos = cart.pos + (cart.p/cart.m)*deltat
mgraph.plot( pos=(t, cart.p.x))
t = t + deltat
** Affects: python-visual (Ubuntu)
Importance: Undecided
Status: Unconfirmed
** Description changed:
Binary package hint: python-visual
This might also be an issue with libboost-python1.33.1, I'm not sure.
When calling gcurve in a program, the program crashes with the following
error message:
IDLE 1.2.1 ==== No Subprocess ====
>>>
Traceback (most recent call last):
- File "/home/jbuncher/Phys172L/fancart.py", line 11, in <module>
+ File "/home/**usernameedited**/Phys172L/fancart.py", line 11, in <module>
mgraph = gcurve(color=color.cyan)
File "/usr/lib/python2.5/site-packages/visual/graph.py", line 489, in
__init__
pos = constructorargs(self,args)
File "/usr/lib/python2.5/site-packages/visual/graph.py", line 463, in
constructorargs
obj.gdisplay = getgdisplay()
File "/usr/lib/python2.5/site-packages/visual/graph.py", line 456, in
getgdisplay
return gdisplay()
File "/usr/lib/python2.5/site-packages/visual/graph.py", line 192, in
__init__
currentdisplay.select()
RuntimeError: boost::bad_weak_ptr
>>>
Simply running the program reproduces the error. Removing all
references to gcurve in the program prevents the error. I encountered
this on a fresh feisty install on a Gateway Core 2 Duo laptop. I
installed the ubuntu-packaged versions of python2.5, libboost and
python-visual.
The source code for the program which causes the error is:
from visual import *
scene.y = 400 # move animation window down 400 pixels from top of screen
from visual.graph import *
track = box(pos=vector(0,-.05,0), size=(1.0, 0.05, 0.10))
cart = box(pos=vector(-0.5,0,0), size=(0.1, 0.04, 0.06), color=color.green)
cart.m = 0.80
cart.p = cart.m*vector(0.5, 0, 0)
mgraph = gcurve(color=color.cyan)
deltat = 0.01
t = 0
while t < 3.0:
rate(100)
Fnet = vector(-0.4, 0, 0)
cart.p = cart.p + Fnet*deltat
cart.pos = cart.pos + (cart.p/cart.m)*deltat
mgraph.plot( pos=(t, cart.p.x))
t = t + deltat
--
from visual.graph import * - crashes when gcurve is called - RuntimeError:
boost::bad_weak_ptr
https://bugs.launchpad.net/bugs/117102
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs