Robotics StackExchange | Archived questions

rqt plugin crash when publisher node stops

I have made a rqt plugin that subscribes to a node. When that node stops, rqt crashes. I want detect that the node has stopped through some kind of exception handling to prevent rqt from crashing. I have done the same for a rqt plugin that calls a service with rospy.ServiceException and gotten the desired behavior. Does anyone have a suggestion to a solution for this problem?

Asked by fonstein on 2017-04-20 13:07:48 UTC

Comments

How does the rqt plugin crash? What is the error?

Asked by Geoff on 2017-04-20 22:27:08 UTC

There is no error. rqt just closes.

Asked by fonstein on 2017-04-21 02:28:15 UTC

There is no output at all in the console? What about a log file under ~/.ros/log? If there is nothing in either of those, you will need to run rqt in gdb and get a backtrace you can post here.

Asked by Geoff on 2017-04-21 03:03:24 UTC

Hi, sorry for the late reply. I tried to run it again now and the console gives the following output: [1] 5128 segmentation fault (core dumped) rqt. I also found the log files, but not sure what I'm looking for...

Asked by fonstein on 2017-04-24 14:31:37 UTC

If you post the log files then we can look for you.

A segmentation fault means that there is probably a bug in your code where you are trying to access invalid memory. You should post your code as well.

Asked by Geoff on 2017-04-24 18:20:05 UTC

I am not allowed to upload my log files due to not enough points. I get error: [Errno 104] Connection reset by peer in the rqt gui node. Below is a link to my repository. The repository subscribes to a few nodes in rov-control under vortexntnu. https://github.com/vortexntnu/rov-gui

Asked by fonstein on 2017-04-27 10:02:40 UTC

Answers