ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

rviz seg faults when adding camera, depth cloud or image displays

asked 2015-02-18 07:14:50 -0500

ffurrer gravatar image

updated 2015-02-19 02:20:05 -0500


When I try to add one of the three (Camera, Depth Cloud, Image) displays in rviz, it immediately seg faults.

gdb gives me the following output:

Program received signal SIGSEGV, Segmentation fault.
__strcmp_ssse3 () at ../sysdeps/x86_64/multiarch/../strcmp.S:286
286     ../sysdeps/x86_64/multiarch/../strcmp.S: No such file or directory.
(gdb) bt
#0  __strcmp_ssse3 () at ../sysdeps/x86_64/multiarch/../strcmp.S:286
#1  0x00007fff77bd309e in QMetaType::registerNormalizedType(QByteArray const&, void (*)(void*), void* (*)(void const*), void (*)(void*), void* (*)(void*, void const*), int, QFlags<QMetaType::TypeFlag>, QMetaObject const*) () from /usr/lib/x86_64-linux-gnu/
#2  0x00007fff773c87b7 in ?? () from /usr/lib/x86_64-linux-gnu/
#3  0x00007ffff7dea13a in call_init (l=<optimized out>, argc=argc@entry=1, argv=argv@entry=0x7fffffffba88, env=env@entry=0x7fffffffba98) at dl-init.c:78
#4  0x00007ffff7dea223 in call_init (env=<optimized out>, argv=<optimized out>, argc=<optimized out>, l=<optimized out>) at dl-init.c:36
#5  _dl_init (main_map=main_map@entry=0x1494d80, argc=1, argv=0x7fffffffba88, env=0x7fffffffba98) at dl-init.c:126
#6  0x00007ffff7deec70 in dl_open_worker (a=a@entry=0x7fffffff9c68) at dl-open.c:577
#7  0x00007ffff7de9ff4 in _dl_catch_error (objname=objname@entry=0x7fffffff9c58, errstring=errstring@entry=0x7fffffff9c60, mallocedp=mallocedp@entry=0x7fffffff9c50, operate=operate@entry=0x7ffff7dee9a0 <dl_open_worker>, args=args@entry=0x7fffffff9c68) at dl-error.c:187
#8  0x00007ffff7dee3bb in _dl_open (file=0x1426438 "/opt/ros/indigo/lib//", mode=-2147483391, caller_dlopen=<optimized out>, nsid=-2, argc=1, argv=0x7fffffffba88, env=0x7fffffffba98) at dl-open.c:661
#9  0x00007fffedefb02b in dlopen_doit (a=a@entry=0x7fffffff9e80) at dlopen.c:66
#10 0x00007ffff7de9ff4 in _dl_catch_error (objname=0x633770, errstring=0x633778, mallocedp=0x633768, operate=0x7fffedefafd0 <dlopen_doit>, args=0x7fffffff9e80) at dl-error.c:187
#11 0x00007fffedefb62d in _dlerror_run (operate=operate@entry=0x7fffedefafd0 <dlopen_doit>, args=args@entry=0x7fffffff9e80) at dlerror.c:163
#12 0x00007fffedefb0c1 in __dlopen (file=<optimized out>, mode=<optimized out>) at dlopen.c:87
#13 0x00007fffeff40c33 in Poco::SharedLibraryImpl::loadImpl(std::string const&) () from /usr/lib/
#14 0x00007fffeff4114f in Poco::SharedLibrary::SharedLibrary(std::string const&) () from /usr/lib/
#15 0x00007ffff52dae9b in class_loader::class_loader_private::loadLibrary(std::string const&, class_loader::ClassLoader*) () from /opt/ros/indigo/lib/
#16 0x00007ffff52d559c in class_loader::ClassLoader::loadLibrary() () from /opt/ros/indigo/lib/
#17 0x00007ffff52d57d0 in class_loader::ClassLoader::ClassLoader(std::string const&, bool) () from /opt/ros/indigo/lib/
#18 0x00007ffff52de698 in class_loader::MultiLibraryClassLoader::loadLibrary(std::string const&) () from /opt/ros/indigo/lib/
#19 0x00007ffff7ac5a5c in pluginlib::ClassLoader<image_transport::SubscriberPlugin>::loadLibraryForClass(std::string const&) () from /opt/ros/indigo/lib/
#20 0x00007ffff7acc35c in pluginlib::ClassLoader<image_transport::SubscriberPlugin>::createInstance(std::string const&) () from /opt/ros/indigo/lib/
#21 0x00007ffff7ac0298 in rviz::ImageDisplayBase::scanForTransportSubscriberPlugins() () from /opt/ros/indigo/lib/
#22 0x00007fff95b01b31 in rviz::ImageDisplay::onInitialize() () from /opt/ros/indigo/lib/
#23 0x00007ffff7a977ef in rviz::Display::initialize(rviz::DisplayContext*) () from /opt/ros/indigo/lib/
#24 0x00007ffff7b48815 in rviz::VisualizationManager::addDisplay(rviz::Display*, bool) () from /opt/ros/indigo/lib/
#25 0x00007ffff7b48c66 in rviz::VisualizationManager::createDisplay(QString const&, QString const&, bool) () from /opt/ros/indigo/lib/ ...
edit retag flag offensive close merge delete


I would need a backtrace from gdb (use the bt command after it crashes) to try and diagnose what is the issue. I'm not sure that image_view and rviz use exactly the same code base, so I'm dubious of the relationship, but it is possible. I'll try to reproduce on my machine.

William gravatar image William  ( 2015-02-18 12:58:54 -0500 )edit

--Also, are you using the shadow-fixed or public deb repository?-- Nvm, you are using 1.11.4, that's in public currently.

William gravatar image William  ( 2015-02-18 12:59:15 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-02-19 12:42:25 -0500

William gravatar image

Based on your backtrace I would say that you have some problem where the image transport plugin is compiled against Qt5 but rviz is compiled against Qt4. I believe it is related to this issue:

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-02-18 07:14:50 -0500

Seen: 1,191 times

Last updated: Feb 19 '15