rqt plugin crash when publisher node stops

asked 2017-04-20 13:07:48 -0500

fonstein gravatar image

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?

edit retag flag offensive close merge delete

Comments

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

Geoff gravatar image Geoff  ( 2017-04-20 22:27:08 -0500 )edit

There is no error. rqt just closes.

fonstein gravatar image fonstein  ( 2017-04-21 02:28:15 -0500 )edit

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.

Geoff gravatar image Geoff  ( 2017-04-21 03:03:24 -0500 )edit

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...

fonstein gravatar image fonstein  ( 2017-04-24 14:31:37 -0500 )edit

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.

Geoff gravatar image Geoff  ( 2017-04-24 18:20:05 -0500 )edit

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

fonstein gravatar image fonstein  ( 2017-04-27 10:02:40 -0500 )edit