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

terminate called after throwing an instance of 'boost: Exception_detail::clone_impl'

asked 2020-08-15 10:33:14 -0500

Kansai gravatar image

updated 2021-04-24 02:36:30 -0500

miura gravatar image

I am running a simple C++ function with a subscriber and a publisher that listen and publish messages that are going to go to the TurtleSim simulator.

So far everything was going good but suddenly I got

terminate called after throwing an instance of 'boost::exception_detail::clone_imple<boos::exception_detail::error_info_injector<boos::lock_error>> what(): boost: mutex lock failed in pthread_mutex_lock: Invalid argument Aborted (core dumped)

I have no idea what this means and why it happens so I don't even know if I should add any other information here (code, etc) I would appreciate some advise of what does it mean

(I will clarify if more details are needed)

edit retag flag offensive close merge delete

Comments

Hello, I'm having the same problem. Did you resolve this issue?

Raymond Leong gravatar image Raymond Leong  ( 2021-10-09 00:02:34 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-10-13 13:07:58 -0500

cyberguy42 gravatar image

That likely means that something else was wrong and caused the process to terminate. I have seen that message many times when nodes die (whether because I killed them or something else caused them to crash). A technical explanation of the kind of situation that leads to that error and how to avoid it is given in this answer. That being said, it sounds like your situation is similar to this one, so debugging it may not be straightforward.

Personally, I interpret the message as saying 'the node died', so as long as the node only dies when I kill it, I don't worry about it. If I didn't kill it, then I look for what really caused the node to die.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2020-08-15 10:33:14 -0500

Seen: 7,630 times

Last updated: Oct 13 '21