Ask Your Question
0

Rviz in a Virtual machine VM process died - initially using hector_slam kinetic Ubuntu 16.04 virtual box 5

asked 2017-01-25 11:37:46 -0600

Ben12345 gravatar image

updated 2017-02-03 05:18:47 -0600

Hi,

I'm having trouble with the Hector_slam tutorials, i'm running ROS Kinetic on Ubuntu 16.04.

When i try and run the launch file i get the following:

[rviz-1] process has died [pid 2487, exit code -11, cmd /opt/ros/kinetic/lib/rviz/rviz -d /opt/ros/kinetic/share/hector_slam_launch/rviz_cfg/mapping_demo.rviz __name:=rviz __log:=/home/ben/.ros/log/a7183d30-e320-11e6-a7a4-0800279fda91/rviz-1.log].
log file: /home/ben/.ros/log/a7183d30-e320-11e6-a7a4-0800279fda91/rviz-1*.log

I have no idea why it failed, and even though it generated a log file, it didn't actually write anything to it, as when i open the associated file with a text editor, it's blank.

Any help would be appreciated. Thanks, Ben

edit retag flag offensive close merge delete

Comments

Please tell us what platform this is, and how you installed ROS. From your other questions I gather this could be a raspberry pi, which could be important.

gvdhoorn gravatar imagegvdhoorn ( 2017-01-25 12:45:56 -0600 )edit

Hi, Ubuntu 16.04 running in Virtual box 5.0.30 on a mac. No raspberry pi. Ros was installed via the installation guidelines presented on the website - i.e sudo apt-get install etc etc. It was desktop full.

Ben12345 gravatar imageBen12345 ( 2017-01-25 14:10:56 -0600 )edit

I'm not saying it's definitely the problem, but running RViz in vbox has been problematic before. Have you installed the relevant video drivers / extensions?

Also: are there more lines to the error you posted above?

And: can you rosrun rviz rviz by itself?

gvdhoorn gravatar imagegvdhoorn ( 2017-01-25 14:27:46 -0600 )edit

Hmm that's interesting, i had a few issues with the serial from a VM Ros node about a year ago so that would make sense. I'll give it a try on my dual boot tomorrow. No i cannot run Rviz by itself, i get a segmentation fault and core dump. No additional text from the original question. Thanks

Ben12345 gravatar imageBen12345 ( 2017-01-25 17:22:28 -0600 )edit

Oh and 3D acceleration is enabled, and i'm running OpenGL 2.1 within the VM

Ben12345 gravatar imageBen12345 ( 2017-01-25 17:26:53 -0600 )edit

Ok. May I suggest you update the title of your question then? The current title seems to suggest this is a problem with hector_slam, but it looks more like an RViz<->VBox problem.

gvdhoorn gravatar imagegvdhoorn ( 2017-01-26 01:36:38 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-02-03 05:17:23 -0600

Ben12345 gravatar image

Ok so it seems the problem is with RVIZ and a virtual machine, as this works under a real machine.

A solution for anyone wanting to run Rviz in a virtual box VM is to disable 3D acceleration, i.e switch the VM off, go into settings and uncheck the box for 3D acceleration, i disabled 2D acceleration too.

I imagine there will be a performance hit with any graphics, but something is better than nothing.

edit flag offensive delete link more

Comments

I can reproduce, but the segfault is somewhere in Ogre3D and unfortunately I don't really have time to dig into the root cause. I also noticed that glxgears caused weird behavior in the same situation. Maybe it's a bug in the VB video driver for 16.04. Not free, but Parallels works great for me.

William gravatar imageWilliam ( 2017-02-03 16:15:56 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2017-01-25 11:37:46 -0600

Seen: 823 times

Last updated: Feb 03 '17