Segmentation fault when running rviz over XServer

asked 2020-01-25 10:55:52 -0600

Herobone gravatar image

updated 2020-01-25 11:41:23 -0600

gvdhoorn gravatar image

Hey,

I'm currently building a Robot that has an Intel NUC as it's heart. So I cannot access the computer all the time especially not during it's in the arena.

Bun now I want to view what my laser sees. So i tried using rviz. When I connect a screen to the bot and acess it via it's graphical desktop everything works fine. But when I try to run rviz from the SSH-Shell and try to get acess to it's graphical output it starts, shows for a short time the start screen and then dies with no other information than "Segmentation fault (core dumped)"

Of course I could use another Laptop that uses Ubuntu to run rviz with the robot as the ROS-Master but I don't want to carry a robot and two laptops with me.

Again to the error:

  • In desktop it works fine
  • glxgears works
  • XServer running on Windows 10
  • Robot is running kubuntu

I really hope you can help me

Thanks Herobone

rviz output

us@beaubaton:~$ rviz -l
[ INFO] [1579969886.034967275]: rviz version 1.13.7
[ INFO] [1579969886.035028067]: compiled against Qt version 5.9.5
[ INFO] [1579969886.035063391]: compiled against OGRE version 1.9.0 (Ghadamon)
[ INFO] [1579969886.092939570]: Forcing OpenGl version 0.
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
[ INFO] [1579969886.498277990]: Creating resource group General
[ INFO] [1579969886.498429332]: Creating resource group Internal
[ INFO] [1579969886.498508259]: Creating resource group Autodetect
[ INFO] [1579969886.498632371]: SceneManagerFactory for type 'DefaultSceneManager' registered.
[ INFO] [1579969886.498982110]: Registering ResourceManager for type Material
[ INFO] [1579969886.499088180]: Registering ResourceManager for type Mesh
[ INFO] [1579969886.499180648]: Registering ResourceManager for type Skeleton
[ INFO] [1579969886.499280458]: MovableObjectFactory for type 'ParticleSystem' registered.
[ INFO] [1579969886.499430271]: ArchiveFactory for archive type FileSystem registered.
[ INFO] [1579969886.499512898]: ArchiveFactory for archive type Zip registered.
[ INFO] [1579969886.499626017]: ArchiveFactory for archive type EmbeddedZip registered.
[ INFO] [1579969886.499696329]: DDS codec registering
[ INFO] [1579969886.499815727]: FreeImage version: 3.17.0
[ INFO] [1579969886.499888605]: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
[ INFO] [1579969886.500201971]: 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,rgb,rgba,bw,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,x3f,webp,jxr,wdp,hdp
[ INFO] [1579969886.500290169]: PVRTC codec registering
[ INFO] [1579969886.500369364]: ETC codec registering
[ INFO] [1579969886.500453809]: Registering ResourceManager for type HighLevelGpuProgram
[ INFO] [1579969886.500541523]: Registering ResourceManager for type Compositor
[ INFO] [1579969886.500848020 ...
(more)
edit retag flag offensive close merge delete

Comments

What about installing native ROS Melodic under Windows 10 and using RViz from that? No need for any additional laptops, X servers or SSH forwarding of OpenGL applications.

Or you could potentially try using webviz in combination with rosbridge_suite, but that may require some work.

gvdhoorn gravatar imagegvdhoorn ( 2020-01-25 11:40:37 -0600 )edit

Thanks for the tip with the windows installation works fine if i run it when I'm connected to the robots wifi. Webviz sound good too. But since I'm not at all familiar with npm I don't really get how to install it locally on my robot or in a Docker environment.

Herobone gravatar imageHerobone ( 2020-01-26 10:00:07 -0600 )edit