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

The gz::transport::Node construction is throwing exception out_of_range #422

Closed
Levi-Armstrong opened this issue Jul 19, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Levi-Armstrong
Copy link

Levi-Armstrong commented Jul 19, 2023

Environment

  • OS Version: Ubuntu 20.04
  • Source or binary build? Binary version 12

Description

  • Transport node construction is throwing exception.

Steps to reproduce

  1. Everything works until I add gz::transport::Node node to may class see back trace below.

Output

1  __cxa_throw                                                                                                                                                                                                                                                                                                                                                                                                                                                                           0x7f73f5601672 
2  std::__throw_out_of_range(const char *)                                                                                                                                                                                                                                                                                                                                                                                                                                               0x7f73f55f837e 
3  std::__detail::_Map_base<unsigned int, std::pair<unsigned int const, gz::transport::v12::NodeShared *>, std::allocator<std::pair<unsigned int const, gz::transport::v12::NodeShared *>>, std::__detail::_Select1st, std::equal_to<unsigned int>, std::hash<unsigned int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, true>, true>::at shared_mutex              225  0x7f73f40c7d56 
4  std::unordered_map<unsigned int, gz::transport::v12::NodeShared *>::at                                                                                                                                                                                                                                                                                                                                                                                 unordered_map.h           1003 0x7f73f40c7d56 
5  gz::transport::v12::NodeShared::Instance                                                                                                                                                                                                                                                                                                                                                                                                               NodeShared.cc             189  0x7f73f40c7d56 
6  gz::transport::v12::NodePrivate::NodePrivate                                                                                                                                                                                                                                                                                                                                                                                                           char_traits.h             300  0x7f73f40a9dec 
7  gz::transport::v12::Node::Node                                                                                                                                                                                                                                                                                                                                                                                                                         NodePrivate.hh            42   0x7f73f40a9dec 
8  tesseract_gui::SensorSimulator::SensorSimulator                                                                                                                                                                                                                                                                                                                                                                                                        sensor_simulator.cpp      70   0x7f73f60705dc 
9  __gnu_cxx::new_allocator<tesseract_gui::SensorSimulator>::construct<tesseract_gui::SensorSimulator, std::shared_ptr<tesseract_monitoring::ROSEnvironmentMonitor>&, tesseract_gui::SensorSimulatorProperties&>                                                                                                                                                                                                                                          new_allocator.h           146  0x56542de46494 
10 std::allocator_traits<std::allocator<tesseract_gui::SensorSimulator>>::construct<tesseract_gui::SensorSimulator, std::shared_ptr<tesseract_monitoring::ROSEnvironmentMonitor>&, tesseract_gui::SensorSimulatorProperties&>                                                                                                                                                                                                                             alloc_traits.h            483  0x56542de45c12 
11 std::_Sp_counted_ptr_inplace<tesseract_gui::SensorSimulator, std::allocator<tesseract_gui::SensorSimulator>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<std::shared_ptr<tesseract_monitoring::ROSEnvironmentMonitor>&, tesseract_gui::SensorSimulatorProperties&>                                                                                                                                                                            shared_ptr_base.h         548  0x56542de45629 
12 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<tesseract_gui::SensorSimulator, std::allocator<tesseract_gui::SensorSimulator>, std::shared_ptr<tesseract_monitoring::ROSEnvironmentMonitor>&, tesseract_gui::SensorSimulatorProperties&>                                                                                                                                                                                              shared_ptr_base.h         679  0x56542de44a3d 
13 std::__shared_ptr<tesseract_gui::SensorSimulator, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<tesseract_gui::SensorSimulator>, std::shared_ptr<tesseract_monitoring::ROSEnvironmentMonitor>&, tesseract_gui::SensorSimulatorProperties&>                                                                                                                                                                                                  shared_ptr_base.h         1344 0x56542de44086 
14 std::shared_ptr<tesseract_gui::SensorSimulator>::shared_ptr<std::allocator<tesseract_gui::SensorSimulator>, std::shared_ptr<tesseract_monitoring::ROSEnvironmentMonitor>&, tesseract_gui::SensorSimulatorProperties&>                                                                                                                                                                                                                                  shared_ptr.h              359  0x56542de436d1 
15 std::allocate_shared<tesseract_gui::SensorSimulator, std::allocator<tesseract_gui::SensorSimulator>, std::shared_ptr<tesseract_monitoring::ROSEnvironmentMonitor>&, tesseract_gui::SensorSimulatorProperties&>                                                                                                                                                                                                                                         shared_ptr.h              702  0x56542de42b83 
16 std::make_shared<tesseract_gui::SensorSimulator, std::shared_ptr<tesseract_monitoring::ROSEnvironmentMonitor>&, tesseract_gui::SensorSimulatorProperties&>                                                                                                                                                                                                                                                                                             shared_ptr.h              718  0x56542de41e9e 
17 main                                                                                                                                                                                                                                                                                                                                                                                                                                                   sensor_simulator_node.cpp 52   0x56542de3d1c9 

@Levi-Armstrong Levi-Armstrong added the bug Something isn't working label Jul 19, 2023
@Levi-Armstrong
Copy link
Author

Sorry, I had my debugger setup to catch all exceptions. This is handled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

1 participant