Giter Site home page Giter Site logo

Comments (5)

dirk-thomas avatar dirk-thomas commented on September 6, 2024

Can you please provide more information. Which version of ROS 2 have you built? Is there any error output? Have you tried running the bridge with gdb to get more information what happened?

from ros1_bridge.

jhoare avatar jhoare commented on September 6, 2024

dynamic_bridge will crash with the following error:

terminate called after throwing an instance of 'std::length_error'
  what():  basic_string::_M_create
Aborted

I ran it in GDB, and here is the stacktrace:

#0  0x00007ffff1979428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#1  0x00007ffff197b02a in __GI_abort () at abort.c:89
#2  0x00007ffff1fb284d in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3  0x00007ffff1fb06b6 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007ffff1fb0701 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5  0x00007ffff1fb0919 in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6  0x00007ffff1fd926f in std::__throw_length_error(char const*) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#7  0x00007ffff2042099 in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#8  0x0000000000460b1a in void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >(__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, __gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::forward_iterator_tag) ()
#9  0x000000000045cc08 in void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct_aux<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >(__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, __gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::__false_type) ()
#10 0x00000000004579ee in void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >(__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, __gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >) ()
#11 0x0000000000453b22 in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, void>(__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, __gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<char> const&) ()
#12 0x000000000044d4cf in main::{lambda()#2}::operator()() const ()
#13 0x0000000000450284 in void rclcpp::timer::GenericTimer<main::{lambda()#2}, std::chrono::_V2::steady_clock, (void*)0>::execute_callback_delegate<{lambda()#2}, (std::chrono::_V2::steady_clock)0>() ()
#14 0x0000000000450133 in rclcpp::timer::GenericTimer<main::{lambda()#2}, std::chrono::_V2::steady_clock, (void*)0>::execute_callback() ()
#15 0x00007ffff7476acf in rclcpp::executor::Executor::execute_timer(std::shared_ptr<rclcpp::timer::TimerBase>) () from /home/jhoare/projects/remotework/ros2_ws/install/lib/librclcpp.so
#16 0x00007ffff74765ce in rclcpp::executor::Executor::execute_any_executable(std::shared_ptr<rclcpp::executor::AnyExecutable>) () from /home/jhoare/projects/remotework/ros2_ws/install/lib/librclcpp.so
#17 0x00007ffff747635c in rclcpp::executor::Executor::spin_once(std::chrono::duration<long, std::ratio<1l, 1000000000l> >) () from /home/jhoare/projects/remotework/ros2_ws/install/lib/librclcpp.so
#18 0x00007ffff7475db6 in rclcpp::executor::Executor::spin_node_once_nanoseconds(std::shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, std::chrono::duration<long, std::ratio<1l, 1000000000l> >) () from /home/jhoare/projects/remotework/ros2_ws/install/lib/librclcpp.so
#19 0x0000000000455019 in void rclcpp::executor::Executor::spin_node_once<rclcpp::node::Node, std::ratio<1l, 1000l> >(std::shared_ptr<rclcpp::node::Node>, std::chrono::duration<long, std::ratio<1l, 1000l> >) ()
#20 0x000000000044e841 in main ()

I built from source following the instructions here: https://github.com/ros2/ros2/wiki/Linux-Development-Setup it looks like it has checked out the release-beta1 branch/tag on all of the repositories.

The image example works correctly on my machine.

from ros1_bridge.

Karsten1987 avatar Karsten1987 commented on September 6, 2024

I get the same error when publishing laserscan msgs. Using the latest version built from source.

from ros1_bridge.

Karsten1987 avatar Karsten1987 commented on September 6, 2024

the bug was introduced in here: #36
I'll follow up the discussion on the referenced PR.

from ros1_bridge.

wjwwood avatar wjwwood commented on September 6, 2024

Should be fixed by #58, @Karsten1987 tested it.

from ros1_bridge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.