rdiankov / openrave

Open Robotics Automation Virtual Environment: An environment for testing, developing, and deploying robotics motion planning algorithms.
http://www.openrave.org
Other
713 stars 343 forks source link

Initializing multiple environments with different viewers causes crash. #377

Open mklingen opened 8 years ago

mklingen commented 8 years ago

This simple script

env = openravepy.Environment()
env.SetViewer('qtcoin') 

env2 = openravepy.Environment() 
env2.SetViewer('qtcoin') 

Results in a crash:

WARNING: QApplication was not created in the main() thread.
python: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
Segmentation fault

Is it possible to create multiple environments with their own viewers?

DavidB-CMU commented 8 years ago

@mklingen I noticed the same thing. Rosen mentioned back in 2009 that it was a problem with qtcoin.

In the meantime you can use the package or_rviz and publish the environment to a different ROS topic.