ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
4

gazebo failed on virtualbox with fuerte [closed]

asked 2012-05-17 03:12:52 -0600

sam gravatar image

I use ubuntu 11.10 on virtualbox with 3D support.

I run

  roslaunch gazebo_worlds empty_world.launch

And when I click plane1_model's body and move cursor to gazebo world, gazebo exited.

image description

 OpenGL Warning: crPackDrawElements: trying to use bound but empty      elements buffer, ignoring.
 Qt has caught an exception thrown from an event handler. Throwing
 exceptions from an event handler is not supported in Qt. You must
 reimplement QApplication::notify() and catch all exceptions there.

 terminate called after throwing an instance of 'Ogre::InternalErrorException'
   what():  OGRE EXCEPTION(7:InternalErrorException): Vertex Buffer: Out of      memory in GLHardwareVertexBuffer::lock at      /tmp/buildd/ros-fuerte-visualization-common-1.8.4/debian/ros-fuerte-visualizati     on-common/opt/ros/fuerte/stacks/visualization_common/ogre/build/ogre_src_v     1-7-3/RenderSystems/GL/src/OgreGLHardwareVertexBuffer.cpp (line 126)
 /opt/ros/fuerte/stacks/simulator_gazebo/gazebo/scripts/gui: line 2:  3056 已     經終止            `rospack find gazebo`/gazebo/bin/gzclient -g `rospack find      gazebo`/lib/libgazebo_ros_paths_plugin.so
 [gazebo_gui-3] process has died [pid 3053, exit code 134, cmd      /opt/ros/fuerte/stacks/simulator_gazebo/gazebo/scripts/gui __name:=gazebo_gui      __log:=/home/sam/.ros/log/51435328-a021-11e1-9fcc-080027ef39bc/gazebo_gu     i-3.log].                                                                       
 log file:           /home/sam/.ros/log/51435328-a021-11e1-9fcc-080027ef39bc/gazebo_gui-3*.log

How to solve it?

Thank you~

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by SL Remy
close date 2016-09-08 12:35:33.524557

Comments

Ogre often has trouble doing 3D graphics in a virtual machine. You may need to run it with a real driver (i.e. without virtualbox).

joq gravatar image joq  ( 2012-05-17 06:01:20 -0600 )edit

2 Answers

Sort by » oldest newest most voted
0

answered 2012-06-03 10:42:29 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

From @joq Ogre often has trouble doing 3D graphics in a virtual machine. You may need to run it with a real driver (i.e. without virtualbox).

edit flag offensive delete link more
2

answered 2012-09-06 11:40:33 -0600

SL Remy gravatar image

updated 2012-09-07 02:09:13 -0600

I can confirm that I've used VB with gazebo. I did get a sigsegv, but that didn't happen every time. I was able to move the ground plane, and was even able to get the awesome hector_quadrotor to run nicely

Fuerte (from debs), Gazebo 1.6.14 (from debs), Virtualbox 4.1.20 (Precise guest, Snow Leopard host)

(as hsu pointed out) apt-get install gnome-session-fallback, and login with classic (no effects)

There's also a notable performance benefit to using classic. Will update when done benchmarking.

edit flag offensive delete link more

Comments

Is there any trick you have done? Thank you~

sam gravatar image sam  ( 2012-09-06 15:07:05 -0600 )edit
1

One thing I've learned is to turn off 3d effects in your ubuntu session, i.e. in precise, use gnome-session-fallback rather than unity 3d.

hsu gravatar image hsu  ( 2012-09-06 15:34:35 -0600 )edit
SL Remy gravatar image SL Remy  ( 2012-09-07 02:15:33 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2012-05-17 03:12:52 -0600

Seen: 1,802 times

Last updated: Sep 07 '12