Robotics StackExchange | Archived questions

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

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::exceptiondetail::cloneimpleboos::exception_detail::error_info_injector<boos::lock_error> what(): boost: mutex lock failed in pthreadmutexlock: 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)

Asked by Kansai on 2020-08-15 10:33:14 UTC

Comments

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

Asked by Raymond Leong on 2021-10-09 00:02:34 UTC

Answers

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.

Asked by cyberguy42 on 2021-10-13 13:07:58 UTC

Comments