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

image_view freeze after 3 seconds

asked 2014-09-30 17:45:09 -0600

Alex1602 gravatar image

Hi,

I'm trying to display a simple video stream using camera1394 and image_view on Indigo and Ubuntu 14.04. I start camera1394 with this command:

rosrun camera1394 camera1394_node _guid:=b09d01008f706od:=640x480_mono8 _iso_speed:=400 _frame_rate:=30

and then I start image_view with this:

rosrun image_view image_view image:=camera/image_raw

I can see the correct stream for about 3 seconds and then the image stream freeze, but I can still use 'q' to close the image_view, so image_view is not completely crashing. The problem is, there is no error message or anything so I don't know where the problem is. If I restart image_view, it display a new image and then stop immediately.

Does anyone ran into the same problem?

edit retag flag offensive close merge delete

Comments

benabruzzo gravatar image benabruzzo  ( 2014-10-14 11:09:09 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
2

answered 2014-09-30 18:40:06 -0600

kmhallen gravatar image

updated 2014-10-26 13:33:13 -0600

I have the same problem. It seems to be dependent on the amount of processor usage in the rest of the system. With several image_view windows open, half of them freeze in less than a second.

This problem appears to be present in 1.12.6 and greater. The major change was the move from using GTK to using OpenCV to display the image window. My temporary solution is to compile 1.12.5 from source.

Edit: Issue opened at https://github.com/ros-perception/ima...
Edit: Fixed in 1.12.11

edit flag offensive delete link more

Comments

Have you opened a bug report for this yet?

ahendrix gravatar image ahendrix  ( 2014-09-30 18:41:45 -0600 )edit

That sound plausible. The same setup is working on my laptop with an i5 but not on the desktop with a core2 Duo. I'll try with 1.12.5 to see if it fixes the problem.

Alex1602 gravatar image Alex1602  ( 2014-10-01 08:31:57 -0600 )edit

Is the issue with image_view only? Without displaying the images, would code still have access to topics that are updating?

benabruzzo gravatar image benabruzzo  ( 2014-10-14 11:09:39 -0600 )edit
1

Yes. This bug only applies to image_view. If you're having trouble with something else, you should ask a new question.

ahendrix gravatar image ahendrix  ( 2014-10-14 13:03:15 -0600 )edit
0

answered 2014-10-17 21:15:30 -0600

I'm also have the same issue with image_view freezing after a few seconds (tested using webcam input): Ubuntu 14.04, Indigo, image_view version 1.12.9. Unfortunately compiling image_view 1.12.5 didn't fix the problem for me.

Enabling autosize and adding a blank title seems to extend the time to freeze (up to about a minute). It's not a solution, but seems to help:

rosrun usb_cam usb_cam_node &
rosrun image_view image_view image:=/usb_cam/image_raw _autosize:=true _window_name:=""
edit flag offensive delete link more

Question Tools

3 followers

Stats

Asked: 2014-09-30 17:45:09 -0600

Seen: 2,385 times

Last updated: Oct 26 '14