Robotics StackExchange | Archived questions

Segmentation fault when running rviz over XServer

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:

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]: MovableObjectFactory for type 'Entity' registered.
[ INFO] [1579969886.500977500]: MovableObjectFactory for type 'Light' registered.
[ INFO] [1579969886.501064711]: MovableObjectFactory for type 'BillboardSet' registered.
[ INFO] [1579969886.501145911]: MovableObjectFactory for type 'ManualObject' registered.
[ INFO] [1579969886.501226312]: MovableObjectFactory for type 'BillboardChain' registered.
[ INFO] [1579969886.501322234]: MovableObjectFactory for type 'RibbonTrail' registered.
[ INFO] [1579969886.501487757]: *-*-* OGRE Initialising
[ INFO] [1579969886.501559790]: *-*-* Version 1.9.0 (Ghadamon)
[ INFO] [1579969886.501654029]: OverlayElementFactory for type Panel registered.
[ INFO] [1579969886.501743730]: OverlayElementFactory for type BorderPanel registered.
[ INFO] [1579969886.501848680]: OverlayElementFactory for type TextArea registered.
[ INFO] [1579969886.501928753]: Registering ResourceManager for type Font
[ INFO] [1579969886.502020823]: Loading library /usr/lib/x86_64-linux-gnu/OGRE-1.9.0/RenderSystem_GL
[ INFO] [1579969886.506705942]: Installing plugin: GL RenderSystem
[ INFO] [1579969886.506868890]: OpenGL Rendering Subsystem created.
[ INFO] [1579969886.525599290]: Plugin successfully installed
[ INFO] [1579969886.525702796]: Loading library /usr/lib/x86_64-linux-gnu/OGRE-1.9.0/Plugin_OctreeSceneManager
[ INFO] [1579969886.527200403]: Installing plugin: Octree Scene Manager
[ INFO] [1579969886.527289342]: Plugin successfully installed
[ INFO] [1579969886.527346638]: Loading library /usr/lib/x86_64-linux-gnu/OGRE-1.9.0/Plugin_ParticleFX
[ INFO] [1579969886.529691946]: Installing plugin: ParticleFX
[ INFO] [1579969886.529786432]: Particle Emitter Type 'Point' registered
[ INFO] [1579969886.529848717]: Particle Emitter Type 'Box' registered
[ INFO] [1579969886.529895712]: Particle Emitter Type 'Ellipsoid' registered
[ INFO] [1579969886.529976911]: Particle Emitter Type 'Cylinder' registered
[ INFO] [1579969886.530050870]: Particle Emitter Type 'Ring' registered
[ INFO] [1579969886.530124321]: Particle Emitter Type 'HollowEllipsoid' registered
[ INFO] [1579969886.530216179]: Particle Affector Type 'LinearForce' registered
[ INFO] [1579969886.530293241]: Particle Affector Type 'ColourFader' registered
[ INFO] [1579969886.530384882]: Particle Affector Type 'ColourFader2' registered
[ INFO] [1579969886.530434561]: Particle Affector Type 'ColourImage' registered
[ INFO] [1579969886.530481102]: Particle Affector Type 'ColourInterpolator' registered
[ INFO] [1579969886.530552333]: Particle Affector Type 'Scaler' registered
[ INFO] [1579969886.530624206]: Particle Affector Type 'Rotator' registered
[ INFO] [1579969886.530697818]: Particle Affector Type 'DirectionRandomiser' registered
[ INFO] [1579969886.530770045]: Particle Affector Type 'DeflectorPlane' registered
[ INFO] [1579969886.530842197]: Plugin successfully installed
[ INFO] [1579969886.530938195]: CPU Identifier & Features
[ INFO] [1579969886.531026827]: -------------------------
[ INFO] [1579969886.531097721]:  *   CPU ID: GenuineIntel: Intel(R) Core(TM) i3-5010U CPU @ 2.10GHz
[ INFO] [1579969886.531192698]:  *      SSE: yes
[ INFO] [1579969886.531257746]:  *     SSE2: yes
[ INFO] [1579969886.531329902]:  *     SSE3: yes
[ INFO] [1579969886.531399579]:  *      MMX: yes
[ INFO] [1579969886.531468657]:  *   MMXEXT: yes
[ INFO] [1579969886.531543661]:  *    3DNOW: no
[ INFO] [1579969886.531614318]:  * 3DNOWEXT: no
[ INFO] [1579969886.531683867]:  *     CMOV: yes
[ INFO] [1579969886.531752834]:  *      TSC: yes
[ INFO] [1579969886.531822036]:  *      FPU: yes
[ INFO] [1579969886.531909499]:  *      PRO: yes
[ INFO] [1579969886.531993804]:  *       HT: no
[ INFO] [1579969886.532059894]: -------------------------
[ INFO] [1579969886.532153524]: ******************************
*** Starting GLX Subsystem ***
******************************
[ INFO] [1579969886.534179844]: Registering ResourceManager for type Texture
[ INFO] [1579969886.534302535]: GLRenderSystem::_createRenderWindow "OgreWindow(0)", 1x1 windowed  miscParams: FSAA=4 contentScalingFactor=1,000000 externalGLControl= externalWindowHandle=2621441 parentWindowHandle=2621441
[ INFO] [1579969886.559483823]: GLXWindow::create used FBConfigID = 144
[ INFO] [1579969886.559974423]: GL_VERSION = 1.4 (4.6.13559 Compatibility Profile Context 26.20.12028.2)
[ INFO] [1579969886.560453085]: GL_VENDOR = ATI Technologies Inc.
[ INFO] [1579969886.560814932]: GL_RENDERER = Radeon (TM) RX 470 Graphics
[ INFO] [1579969886.560976903]: GL_EXTENSIONS = GL_ARB_depth_texture GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_imaging GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_shadow GL_ARB_shadow_ambient GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_filter_anisotropic GL_ARB_texture_mirrored_repeat GL_ARB_texture_non_power_of_two GL_ARB_texture_rectangle GL_ARB_transpose_matrix GL_ARB_vertex_program GL_ARB_window_pos GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_equation_separate GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_copy_texture GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_object GL_EXT_multi_draw_arrays GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_EXT_subtexture GL_EXT_texture3D GL_EXT_texture_compression_s3tc GL_EXT_texture_edge_clamp GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod GL_EXT_texture_lod_bias GL_EXT_texture_mirror_clamp GL_EXT_texture_object GL_EXT_texture_rectangle GL_EXT_vertex_array GL_ATI_draw_buffers GL_ATI_texture_env_combine3 GL_ATI_texture_mirror_once GL_ATIX_texture_env_combine3 GL_IBM_texture_mirrored_repeat GL_INGR_blend_func_separate GL_NV_blend_square GL_NV_texgen_reflection GL_NV_texture_rectangle GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_SGIX_shadow_ambient GL_SUN_multi_draw_arrays
[ INFO] [1579969886.561230224]: Supported GLX extensions: GLX_ARB_create_context GLX_ARB_create_context_profile GLX_ARB_fbconfig_float GLX_ARB_get_proc_address GLX_ARB_multisample GLX_EXT_fbconfig_packed_float GLX_EXT_import_context GLX_EXT_visual_info GLX_EXT_visual_rating GLX_MESA_copy_sub_buffer GLX_OML_swap_method GLX_SGIS_multisample GLX_SGIX_fbconfig GLX_SGIX_pbuffer GLX_SGIX_visual_select_group GLX_SGI_make_current_read GLX_SGI_swap_control
[ INFO] [1579969886.561366995]: ***************************
[ INFO] [1579969886.561449746]: *** GL Renderer Started ***
[ INFO] [1579969886.561553868]: ***************************
Segmentation fault (core dumped)

Asked by Herobone on 2020-01-25 11:55:52 UTC

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.

Asked by gvdhoorn on 2020-01-25 12:40:37 UTC

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.

Asked by Herobone on 2020-01-26 11:00:07 UTC

Answers