Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault with VNC #1171

Open
guhur opened this issue Nov 20, 2017 · 4 comments
Open

Segmentation fault with VNC #1171

guhur opened this issue Nov 20, 2017 · 4 comments

Comments

@guhur
Copy link

guhur commented Nov 20, 2017

rviz is working fine but I would like to use it in headless mode.
So I configured vnc4server.

When I launch vnc, I have this error:

~$ rviz --verbose
QXcbConnection: Failed to initialize XRandr
Qt: XKEYBOARD extension not present on the X server.
[ INFO] [1511197994.229080382]: rviz version 1.12.13
[ INFO] [1511197994.229162184]: compiled against Qt version 5.5.1
[ INFO] [1511197994.229193910]: compiled against OGRE version 1.9.0 (Ghadamon)
Segmentation fault (core dumped)

Using gdb, I have this message:

Starting program: /opt/ros/kinetic/bin/rviz
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffdd600700 (LWP 1315)]
QXcbConnection: Failed to initialize XRandr
Qt: XKEYBOARD extension not present on the X server.
[ INFO] [1511197778.554813126]: rviz version 1.12.13
[ INFO] [1511197778.554892702]: compiled against Qt version 5.5.1
[ INFO] [1511197778.554921888]: compiled against OGRE version 1.9.0 (Ghadamon)
[New Thread 0x7fffd5051700 (LWP 1445)]
[New Thread 0x7fffd4850700 (LWP 1448)]
[New Thread 0x7fffcffff700 (LWP 1449)]
[New Thread 0x7fffcf7fe700 (LWP 1464)]

Thread 1 "rviz" received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0 0x0000000000000000 in ?? ()
#1 0x00007fffcd9aa6eb in ?? ()
from /usr/lib/x86_64-linux-gnu/OGRE-1.9.0/RenderSystem_GL.so.1.9.0
#2 0x00007fffcd9b46e8 in ?? ()
from /usr/lib/x86_64-linux-gnu/OGRE-1.9.0/RenderSystem_GL.so.1.9.0
#3 0x00007fffcd9a53dc in ?? ()
from /usr/lib/x86_64-linux-gnu/OGRE-1.9.0/RenderSystem_GL.so.1.9.0
#4 0x00007fffcd9c3ae2 in Ogre::GLRenderSystem::_createRenderWindow(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned int, unsigned int, bool, std::map<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::less<std::__cxx11::basic_string<char, std::char_traits, std::allocator > >, Ogre::STLAllocator<std::pair<std::__cxx11::basic_string<char, std::char_traits, std::allocator > const, std::__cxx11::basic_string<char, std::char_traits, std::allocator > >, Ogre::CategorisedAllocPolicy<(Ogre::MemoryCategory)0> > > const*)
() from /usr/lib/x86_64-linux-gnu/OGRE-1.9.0/RenderSystem_GL.so.1.9.0
#5 0x00007ffff3d3588c in Ogre::Root::createRenderWindow(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned int, unsigned int, bool, std::map<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::less<std::__cxx11::basic_string<char, std::char_traits, std::allocator > >, Ogre::STLAllocator<std::pair<std::__cxx11::basic_string<char, std::char_traits, std::allocator > const, std::__cxx11::basic_string<char, std::char_traits, std::allocator > >, Ogre::CategorisedAllocPolicy<(Ogre::MemoryCategory)0> > > const*) ()
from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.9.0
#6 0x00007ffff7ad74da in rviz::RenderSystem::tryMakeRenderWindow(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned int, unsigned int, std::map<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::less<std::__cxx11::basic_string<char, std::char_traits, std::allocator > >, Ogre::STLAllocator<std::pair<std::__cxx11::basic_string<char, std::char_traits, std::allocator > const, std::__cxx11::basic_string<char, std::char_traits, std::allocator > >, Ogre::CategorisedAllocPolicy<(Ogre::MemoryCategory)0> > > const*, int) ()
from /opt/ros/kinetic/lib/librviz.so
#7 0x00007ffff7ad8c9e in rviz::RenderSystem::makeRenderWindow(unsigned long, unsigned int, unsigned int, double) () from /opt/ros/kinetic/lib/librviz.so
#8 0x00007ffff7adb175 in rviz::RenderSystem::RenderSystem() ()
from /opt/ros/kinetic/lib/librviz.so
#9 0x00007ffff7adb2d5 in rviz::RenderSystem::get() ()
from /opt/ros/kinetic/lib/librviz.so
#10 0x00007ffff7ad6691 in rviz::QtOgreRenderWindow::QtOgreRenderWindow(QWidget*) () from /opt/ros/kinetic/lib/librviz.so
#11 0x00007ffff7afcd19 in rviz::RenderPanel::RenderPanel(QWidget*) ()
from /opt/ros/kinetic/lib/librviz.so
#12 0x00007ffff7b47bc0 in rviz::VisualizationFrame::initialize(QString const&)
---Type to continue, or q to quit---
() from /opt/ros/kinetic/lib/librviz.so
#13 0x00007ffff7b52e29 in rviz::VisualizerApp::init(int, char**) ()
from /opt/ros/kinetic/lib/librviz.so
#14 0x0000000000400c90 in main ()

Also, rosrun rviz rviz -l returns:

QXcbConnection: Failed to initialize XRandr
Qt: XKEYBOARD extension not present on the X server.
[ INFO] [1511198329.345779768]: rviz version 1.12.13
[ INFO] [1511198329.345816580]: compiled against Qt version 5.5.1
[ INFO] [1511198329.345828467]: compiled against OGRE version 1.9.0 (Ghadamon)
[ INFO] [1511198329.428276270]: Creating resource group General
[ INFO] [1511198329.428619301]: Creating resource group Internal
[ INFO] [1511198329.428692519]: Creating resource group Autodetect
[ INFO] [1511198329.428775788]: SceneManagerFactory for type 'DefaultSceneManager' registered.
[ INFO] [1511198329.428923511]: Registering ResourceManager for type Material
[ INFO] [1511198329.428983064]: Registering ResourceManager for type Mesh
[ INFO] [1511198329.429032188]: Registering ResourceManager for type Skeleton
[ INFO] [1511198329.429087105]: MovableObjectFactory for type 'ParticleSystem' registered.
[ INFO] [1511198329.429155337]: ArchiveFactory for archive type FileSystem registered.
[ INFO] [1511198329.429204636]: ArchiveFactory for archive type Zip registered.
[ INFO] [1511198329.429250777]: ArchiveFactory for archive type EmbeddedZip registered.
[ INFO] [1511198329.429296780]: DDS codec registering
[ INFO] [1511198329.429348173]: FreeImage version: 3.17.0
[ INFO] [1511198329.429396029]: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
[ INFO] [1511198329.429509106]: 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,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] [1511198329.429559857]: PVRTC codec registering
[ INFO] [1511198329.429608151]: ETC codec registering
[ INFO] [1511198329.429653783]: Registering ResourceManager for type HighLevelGpuProgram
[ INFO] [1511198329.429702114]: Registering ResourceManager for type Compositor
[ INFO] [1511198329.429840179]: MovableObjectFactory for type 'Entity' registered.
[ INFO] [1511198329.429892701]: MovableObjectFactory for type 'Light' registered.
[ INFO] [1511198329.429941093]: MovableObjectFactory for type 'BillboardSet' registered.
[ INFO] [1511198329.429988917]: MovableObjectFactory for type 'ManualObject' registered.
[ INFO] [1511198329.430034693]: MovableObjectFactory for type 'BillboardChain' registered.
[ INFO] [1511198329.430081126]: MovableObjectFactory for type 'RibbonTrail' registered.
[ INFO] [1511198329.430160043]: --* OGRE Initialising
[ INFO] [1511198329.430209330]: --* Version 1.9.0 (Ghadamon)
[ INFO] [1511198329.430262142]: OverlayElementFactory for type Panel registered.
[ INFO] [1511198329.430309144]: OverlayElementFactory for type BorderPanel registered.
[ INFO] [1511198329.430355935]: OverlayElementFactory for type TextArea registered.
[ INFO] [1511198329.430403963]: Registering ResourceManager for type Font
[ INFO] [1511198329.430456771]: Loading library /usr/lib/x86_64-linux-gnu/OGRE-1.9.0/RenderSystem_GL
[ INFO] [1511198329.431821782]: Installing plugin: GL RenderSystem
[ INFO] [1511198329.431907189]: OpenGL Rendering Subsystem created.
[ INFO] [1511198329.432646519]: Plugin successfully installed
[ INFO] [1511198329.432710833]: Loading library /usr/lib/x86_64-linux-gnu/OGRE-1.9.0/Plugin_OctreeSceneManager
[ INFO] [1511198329.433815044]: Installing plugin: Octree Scene Manager
[ INFO] [1511198329.433924941]: Plugin successfully installed
[ INFO] [1511198329.433979862]: Loading library /usr/lib/x86_64-linux-gnu/OGRE-1.9.0/Plugin_ParticleFX
[ INFO] [1511198329.434959263]: Installing plugin: ParticleFX
[ INFO] [1511198329.436901600]: Particle Emitter Type 'Point' registered
[ INFO] [1511198329.436941372]: Particle Emitter Type 'Box' registered
[ INFO] [1511198329.436969408]: Particle Emitter Type 'Ellipsoid' registered
[ INFO] [1511198329.436994837]: Particle Emitter Type 'Cylinder' registered
[ INFO] [1511198329.437016871]: Particle Emitter Type 'Ring' registered
[ INFO] [1511198329.437039255]: Particle Emitter Type 'HollowEllipsoid' registered
[ INFO] [1511198329.437061161]: Particle Affector Type 'LinearForce' registered
[ INFO] [1511198329.437084190]: Particle Affector Type 'ColourFader' registered
[ INFO] [1511198329.437106237]: Particle Affector Type 'ColourFader2' registered
[ INFO] [1511198329.437128256]: Particle Affector Type 'ColourImage' registered
[ INFO] [1511198329.437151104]: Particle Affector Type 'ColourInterpolator' registered
[ INFO] [1511198329.437173100]: Particle Affector Type 'Scaler' registered
[ INFO] [1511198329.437194823]: Particle Affector Type 'Rotator' registered
[ INFO] [1511198329.437216608]: Particle Affector Type 'DirectionRandomiser' registered
[ INFO] [1511198329.437238314]: Particle Affector Type 'DeflectorPlane' registered
[ INFO] [1511198329.437259426]: Plugin successfully installed
[ INFO] [1511198329.437296165]: CPU Identifier & Features
[ INFO] [1511198329.437317788]: -------------------------
[ INFO] [1511198329.437338666]: * CPU ID: GenuineIntel: Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz
[ INFO] [1511198329.437455811]: * SSE: yes
[ INFO] [1511198329.437478089]: * SSE2: yes
[ INFO] [1511198329.437498467]: * SSE3: yes
[ INFO] [1511198329.437518618]: * MMX: yes
[ INFO] [1511198329.437538561]: * MMXEXT: yes
[ INFO] [1511198329.437559130]: * 3DNOW: no
[ INFO] [1511198329.437579000]: * 3DNOWEXT: no
[ INFO] [1511198329.437598874]: * CMOV: yes
[ INFO] [1511198329.437618638]: * TSC: yes
[ INFO] [1511198329.437638516]: * FPU: yes
[ INFO] [1511198329.437658413]: * PRO: yes
[ INFO] [1511198329.437678474]: * HT: no
[ INFO] [1511198329.437698620]: -------------------------
[ INFO] [1511198329.437721826]: ******************************
*** Starting GLX Subsystem ***


[ INFO] [1511198329.437751826]: Registering ResourceManager for type Texture
[ INFO] [1511198329.437819274]: GLRenderSystem::_createRenderWindow "OgreWindow(0)", 1x1 windowed miscParams: FSAA=4 contentScalingFactor=1.000000 externalGLControl=� externalWindowHandle=65011713 parentWindowHandle=65011713
Segmentation fault (core dumped)

My core file:
core.tar.gz

(glxgears works fine)

@wtmilk
Copy link

wtmilk commented Jan 27, 2018

have you fixed this problem?

@guhur
Copy link
Author

guhur commented Mar 10, 2018

No I stop using rviz on that remote computer

@mei123hao
Copy link

same question. ASk for help!

@rhaschke
Copy link
Contributor

Usually, these issues are related to remote OpenGL usage. Doing heavy graphics output, as rviz does, isn't recommended over network anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants