Ask Your Question
2

rviz segmentation fault on Nvidia Jetson TK1 [closed]

asked 2015-06-27 01:45:05 -0500

updated 2015-06-27 15:56:03 -0500

ahendrix gravatar image

Hi all,

I am a beginner to ROS.I have successfully installed ROS indigo on Nvidia Jetson TK1, but the rviz failed to run because of a segfault. I have checked the article ( http://wiki.ros.org/rviz/Troubleshooting ) and tried all the methods including unset GTK_IM_MODULE environment variable,running rviz with the environment variable OGRE_RTT_MODE set to either "Copy", "PBuffer", or "FBO",etc. The segmentation fault error still occurs as below:

ubuntu@tegra-ubuntu:~$ rosrun rviz rviz
[ INFO] [949364906.861452095]: rviz version 1.11.7
[ INFO] [949364906.861787179]: compiled against OGRE version 1.8.1 (Byatis)
[ INFO] [949364907.443213679]: Stereo is NOT SUPPORTED
[ INFO] [949364907.444094845]: OpenGl version: 4.4 (GLSL 4.4).
Segmentation fault

run rviz with "-l"

ubuntu@tegra-ubuntu:~$ rosrun rviz rviz -l
[ INFO] [949364916.841945093]: rviz version 1.11.7
[ INFO] [949364916.842273343]: compiled against OGRE version 1.8.1 (Byatis)
[ INFO] [949364917.054474760]: Creating resource group General
[ INFO] [949364917.054978760]: Creating resource group Internal
[ INFO] [949364917.055237676]: Creating resource group Autodetect
[ INFO] [949364917.055584760]: SceneManagerFactory for type 'DefaultSceneManager' registered.
[ INFO] [949364917.056144176]: Registering ResourceManager for type Material
[ INFO] [949364917.056595510]: Registering ResourceManager for type Mesh
[ INFO] [949364917.056888010]: Registering ResourceManager for type Skeleton
[ INFO] [949364917.057175176]: MovableObjectFactory for type 'ParticleSystem' registered.
[ INFO] [949364917.057444843]: OverlayElementFactory for type Panel registered.
[ INFO] [949364917.057695260]: OverlayElementFactory for type BorderPanel registered.
[ INFO] [949364917.057930426]: OverlayElementFactory for type TextArea registered.
[ INFO] [949364917.058175926]: Registering ResourceManager for type Font
[ INFO] [949364917.058447010]: ArchiveFactory for archive type FileSystem registered.
[ INFO] [949364917.058704926]: ArchiveFactory for archive type Zip registered.
[ INFO] [949364917.058785676]: ArchiveFactory for archive type EmbeddedZip registered.
[ INFO] [949364917.058894010]: DDS codec registering
[ INFO] [949364917.059020010]: FreeImage version: 3.15.4
[ INFO] [949364917.059126010]: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
[ INFO] [949364917.059508926]: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2,pfm,pct,pict,pic,3fr,arw,bay,bmq,cap,cine,cr2,crw,cs1,dc2,dcr,drf,dsc,dng,erf,fff,ia,iiq,k25,kc2,kdc,mdc,mef,mos,mrw,nef,nrw,orf,pef,ptx,pxn,qtk,raf,raw,rdc,rw2,rwl,rwz,sr2,srf,srw,sti
[ INFO] [949364917.059652510]: Registering ResourceManager for type HighLevelGpuProgram
[ INFO] [949364917.059771843]: Registering ResourceManager for type Compositor
[ INFO] [949364917.060263593]: MovableObjectFactory for type 'Entity' registered.
[ INFO] [949364917.060380343]: MovableObjectFactory for type 'Light' registered.
[ INFO] [949364917.060491093]: MovableObjectFactory for type 'BillboardSet' registered.
[ INFO] [949364917.060601843]: MovableObjectFactory for type 'ManualObject' registered.
[ INFO] [949364917.060719676]: MovableObjectFactory for type 'BillboardChain' registered.
[ INFO] [949364917.060829843]: MovableObjectFactory for type 'RibbonTrail' registered.
[ INFO] [949364917.061028926]: *-*-* OGRE Initialising
[ INFO] [949364917.061139760]: *-*-* Version 1.8.1 (Byatis)
[ INFO] [949364917.061271926]: Loading library /usr/lib/arm-linux-gnueabihf/OGRE-1.8.0/RenderSystem_GL
[ INFO] [949364917.068032676]: Installing plugin: GL RenderSystem
[ INFO] [949364917.068307176]: OpenGL Rendering Subsystem created.
[ INFO] [949364917.071679093 ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by redskydeng
close date 2015-12-08 23:04:53.058334

4 Answers

Sort by ยป oldest newest most voted
2

answered 2015-09-27 23:54:40 -0500

vishu2287 gravatar image

updated 2015-09-27 23:55:35 -0500

rviz segmentation fault try to tollow these steps. Its working well for me

$ sudo apt-get remove ros-indigo-robot-model $ cd ~/catkin_ws/src $ git clone https://github.com/ros/robot_model.git $ cd ~/catkin_ws $ catkin_make $ source devel/setup.bash

edit flag offensive delete link more

Comments

1

Thank you, Vishu2287, After I did $sudo apt-get install ros-indigo-robot-model, this problem was solved.

redskydeng gravatar imageredskydeng ( 2015-12-03 00:00:16 -0500 )edit
2

answered 2015-06-27 10:06:03 -0500

duck-development gravatar image

source

echo "unset GTK_IM_MODULE" >> ~/.bashrc

source ~/.bashrc

rosrun rviz rviz

did you unset in the same bash Window?

edit flag offensive delete link more

Comments

Thanks for your reply! I did unset GTK_IM_MODULE in the same bash window and checked it with "echo $GTK_IM_MODULE",the environment variable was empty.The error is as same as before.

redskydeng gravatar imageredskydeng ( 2015-06-29 05:37:05 -0500 )edit

Works for me, thanks

Felix Endres gravatar imageFelix Endres ( 2017-03-30 06:35:27 -0500 )edit
1

answered 2015-09-02 16:02:09 -0500

Both rviz and collada crash in libpcre3. GTK uses it for IM. Both previous answers are correct.

It's most likely a build server mismatch. Someone should check that the build server is using the latest libpcre3 1:8.31-2ubuntu2.1

Rebuilding collada should fix one issue. Unfortunately you will probably have to rebuild gtk for the other crash.

edit flag offensive delete link more

Comments

1

PCRE caused me grief with robot_state_publisher on ARM. My workaround is upgrade PCRE packages to version 8.35 from Utopic. See my other answer for details.

NStiurca gravatar imageNStiurca ( 2015-09-11 14:16:34 -0500 )edit
0

answered 2015-07-26 18:09:33 -0500

I found that rebuilding robot_model from source fixed the rviz segmentation fault issue for me. Apparently the issue has to do with string comparison in the mesh_loader and/or collada_urdf packages. Before compiling robot_model, ros-indigo-collada-urdf needed to be installed:

$ sudo apt-get install ros-indigo-collada-urdf

When run on the robot, this also addresses the "robot_state_publisher died" issue.

These posts provided the answers:

http://answers.ros.org/question/20968... http://answers.ros.org/question/52098...

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2015-06-27 01:45:05 -0500

Seen: 2,693 times

Last updated: Sep 27 '15