Moveit_setup_assistant crash with segmentation fault in libQtGUI.so.4
Hi,
I'm digging into my own question and take one step back and trying to start moveit_setup_assistant.
movit_setup_assistant
crashes.- running
roscore
andrviz
in 2 separate terminals prove that rviz works.
I found a similar question with the difference that I run from the buildfarm packages.
My setup:
- Debian Jessie
x86_64
machinekit@xw6600:~$ uname -a Linux xw6600 4.1.36-rt42bdb #2 SMP PREEMPT RT Mon Jan 2 23:56:57 CET 2017 x86_64 GNU/Linux
gdb backtrace:
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f982789ccdc in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
(gdb) backtrace
#0 0x00007f982789ccdc in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#1 0x00007f984bf189ba in call_init (l=<optimized out>, argc=argc@entry=3,
argv=argv@entry=0x7ffd33daf728, env=env@entry=0x7ffd33daf748)
at dl-init.c:78
#2 0x00007f984bf18aa3 in call_init (env=0x7ffd33daf748, argv=0x7ffd33daf728,
argc=3, l=<optimized out>) at dl-init.c:36
#3 _dl_init (main_map=0x7f984c12c1a8, argc=3, argv=0x7ffd33daf728,
env=0x7ffd33daf748) at dl-init.c:126
#4 0x00007f984bf0b1ca in _dl_start_user () from /lib64/ld-linux-x86-64.so.2
#5 0x0000000000000003 in ?? ()
#6 0x00007ffd33daff4c in ?? ()
#7 0x00007ffd33daff8f in ?? ()
#8 0x00007ffd33daffae in ?? ()
#9 0x0000000000000000 in ?? ()
first 4 frames:
(gdb) up 0
#0 0x00007f982789ccdc in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
(gdb) up 1
#1 0x00007f984bf189ba in call_init (l=<optimized out>, argc=argc@entry=3, argv=argv@entry=0x7ffd33daf728,
env=env@entry=0x7ffd33daf748) at dl-init.c:78
78 in dl-init.c
(gdb) up 1
#2 0x00007f984bf18aa3 in call_init (env=0x7ffd33daf748, argv=0x7ffd33daf728, argc=3, l=<optimized out>)
at dl-init.c:36
36 in dl-init.c
(gdb) up 1
#3 _dl_init (main_map=0x7f984c12c1a8, argc=3, argv=0x7ffd33daf728, env=0x7ffd33daf748) at dl-init.c:126
126 in dl-init.c
(gdb) up 1
Any pointers on how to solve this would be highly appreciated. Bas
edit 1:
I have compiled RVIZ from source.
[ INFO] [1493307177.936635482]: rviz version 1.12.4
[ INFO] [1493307177.936815741]: compiled against Qt version 5.3.2
[ INFO] [1493307177.936855956]: compiled against OGRE version 1.9.0 (Ghadamon)
[ INFO] [1493307178.445683205]: Stereo is NOT SUPPORTED
[ INFO] [1493307178.445890356]: OpenGl version: 3 (GLSL 1.3).
And since the first frame states libQtGui.so.4
I've also built moveit
from source (including) and especially for moveit_setup_assistant
making sure I use no Qt4 libraries (for as far as I can tell). Commenting out these lines
Now the backtrace shows:
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f7d9bb53dbc in ?? () from /usr/lib/x86_64-linux-gnu/libQtTest.so.4
So my guess would be that there is some Qt4/5 mixeup somewhere.
backtraces with release binaries never really reveal very much. Could you try a source build of RViz and see if the backtraces improve?
yes, tried that, didn't improve though, see edit 1
MoveIt! is compiled against Qt5 according to kinetic conventions. But it depends on OpenCV3 which uses Qt4. It is relatively old bug: http://answers.ros.org/question/24959...
As workaround I installed Ubuntu+ros-indigo in chroot