-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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 in ros::Time::now () at /home/perc/workspace/RealsenseSDK_Gated_master #2645
Comments
Would it be possible for you to try the latest 2.16.3 SDK and see if it makes a difference to your problem? It contains a ROS build fix for Debian packages. https://github.com/IntelRealSense/librealsense/releases/tag/v2.16.3 |
thanks, |
That one-line description is all the information I have about the ROS build fix in 2.16.3, unfortunately. The most recent version of the ROS wrapper, updated September 27 2018, states that it supports ROS Kinetic distributions. Again, Intel can provide an official answer to that question about which ROS version they use. |
the documentation for v 1.16.3 is :-) |
tested realsense version 2.16.3 - same result :-( Omer |
Thanks for trying 2.16.3. I'm sorry that doing so did not resolve your problem. Hopefully the Intel team on this forum will be able to lead you towards a solution. |
@omerbrandis can you post the code segment that causes the issue? |
Hello, I Can't post the code segment. Omer. |
I have the same issue, it occurs when am trying to subscribe for multiple messages, it segfaults on L261 or L255 time.cpp (https://github.com/IntelRealSense/librealsense/blob/master/third-party/realsense-file/rosbag/rostime/src/time.cpp)
here is the stack trace - |
@omerbrandis i was able to resolve it by putting real sense library last in the order of linked libraries. |
hello dsharma2701
can you please shed some light on how you controlled the order of linkage ?
I''m using catkin_make/cmake
and In my package's cmakelist's file "realsense2" appears
after ${catkin_LIBRARIES}
( but i got the segfault).
Thanks,
omer
…On Tue, Nov 6, 2018 at 3:12 AM dsharma2701 ***@***.***> wrote:
@omerbrandis <https://github.com/omerbrandis> i was able to resolve it by
putting real sense library last in the order of linked libraries.
I dug in the code and it seems like librealsense is redefining the
ros::Time::now() under thirdparty, not sure why same namespace was used ?
Since the linkage was going there it segfaults, if you declare the linkage
order to have ROS libs be the priority then you can work around it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2645 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADAtc-24QXrkhwZAw0oVXbGroD1a0bKuks5usOIIgaJpZM4YD9jx>
.
|
@dsharma2701 @omerbrandis It seems that changing linkage order works only if you do not use rs API. For example, if you use second linkage order defined in my CMakeLists.txt, segmentation fault occurs only if you use rs API, like here in main.cpp. If no rs API is used, this workaround helps. Unfortunately, this workaround doesn't work in my ROS project. So I expect maintainers' kindly help to resolve this issue fundamentally. @RealSense-Customer-Engineering Thanks very much. |
I agree this is a problem. |
I recently came across this issue as well. The link order when using ros and catkin seems to be random, so a special order is not a viable solution. I tried "put everything in a namespace" and it actually works quite well. I have renamed all occurences of "ros" to "rs2rosinternal" with some sed magic. You can run the following commands to do the same (in the librealsense top-level folder): If you want to automate it and use it in a script a slightly more escaped version is needed: Hope that helps. |
Should be resolved in 2.17.0 |
Dear support,
I have an application written in c++ that uses libreasense sdk v 2.16.1 ( the latest available )
AND ros kenetic ( indipendently from its use by librealsense).
(ubuntu 16.04)
while i was using a "older" version of ros kenetic everything worked well,
but now i was forced to update my installation of ros kenetic to the latest one available
( ros core shows i'm now running version 1.12.14 ( used to be 1.12.12 ))
and now my application crashes when I send it a ros message to a topic its listening on.
in other works, i have not changed my code, i only updated my installation of ros and now my application crashes.
here is the back trace in for core file generated
it shows the problem to be in librealsense.
#0 0x00007f689dc2c410 in ros::Time::now () at /home/perc/workspace/RealsenseSDK_Gated_master__Debian_CreatePackage_xenial/src/third-party/realsense-file/rosbag/rostime/src/time.cpp:261
#1 0x00007f689e73bd6a in ros::Subscription::handleMessage(ros::SerializedMessage const&, bool, bool, boost::shared_ptr<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 > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits, std::allocator > const, std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > > > const&, boost::shared_ptrros::PublisherLink const&) () from /opt/ros/kinetic/lib/libroscpp.so
#2 0x00007f689e717beb in ros::TransportPublisherLink::handleMessage(ros::SerializedMessage const&, bool, bool) () from /opt/ros/kinetic/lib/libroscpp.so
#3 0x00007f689e717729 in ros::TransportPublisherLink::onMessage(boost::shared_ptrros::Connection const&, boost::shared_array const&, unsigned int, bool) ()
from /opt/ros/kinetic/lib/libroscpp.so
#4 0x00007f689e69924b in ros::Connection::readTransport() () from /opt/ros/kinetic/lib/libroscpp.so
#5 0x00007f689e71278a in ros::TransportTCP::socketUpdate(int) () from /opt/ros/kinetic/lib/libroscpp.so
#6 0x00007f689e74f4f0 in ros::PollSet::update(int) () from /opt/ros/kinetic/lib/libroscpp.so
#7 0x00007f689e6d4ac5 in ros::PollManager::threadFunc() () from /opt/ros/kinetic/lib/libroscpp.so
#8 0x00007f68826e55d5 in ?? () from /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.58.0
#9 0x00007f689dfb46ba in start_thread (arg=0x7f68541e7700) at pthread_create.c:333
#10 0x00007f688325941d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
I was unable to perform ros downgrade.
please advise.
Omer Brandis.
The text was updated successfully, but these errors were encountered: