ros-visualization / visualization_tutorials

Tutorials related to using and extending RViz and interactive_markers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rviz_python_tutorial myviz.py segmentation fault

awesomebytes opened this issue · comments

I was starting to get myself familiar with librviz from python and trying the example in rviz_python_tutorial just crashes with segmentation fault.

I do:

roscd rviz_python_tutorial

(To be in the folder where config.myviz is, which will be loaded.)

Then:

rosrun rviz_python_tutorial myviz.py

And I get the output:

[ INFO] [1437573701.223369341]: Stereo is NOT SUPPORTED
[ INFO] [1437573701.223440384]: OpenGl version: 3 (GLSL 1.3).
Segmentation fault (core dumped)

After a brief splash of the window.

I tried on two machines with ROS hydro and got the same behaviour. With Rviz 1.10.19. It crashes just after myviz.show().

I noticed that the line 74:

self.frame.setStatusBar( None )

Has something to do with the crash. If I comment out that line, it works!

Ok I just found this ticket: ros-visualization/rviz#895 which mainly is what this own ticket is about

If you have time, please try ros-visualization/rviz#896 which is a proposed solution to ros-visualization/rviz#895.

I applied ros-visualization/rviz#896 to the branch hydro-devel and the myviz.py is example is still crashing

@awesomebytes I found the same to be true, but after trying a few different things I have a new fix (still in ros-visualization/rviz#896) can you give that a try?

I'll probably go ahead and merge it since I observed it fixing the issue. Last time I think I had other changes that made me think it had been fixed when it had not.

I'm going to close this, please comment here if the problem persists after the change I merged (and released).