Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

image_view crashes #102

Closed
hcostelha opened this issue Oct 1, 2014 · 19 comments
Closed

image_view crashes #102

hcostelha opened this issue Oct 1, 2014 · 19 comments

Comments

@hcostelha
Copy link

I have a bag with 4 video feeds, 1 obtained from a drone camera and 3 from a pi camera. Whenever I try to view the images using the feeds from the camera using image_view, it crashes.
Using rqt_view does not have any problem whatsoever.
Running through gdb (I compiled image_view with debug information), I get the following backtrace:
#0 0x00007ffff614054d in cv::resizeAreaFast_Invoker<unsigned char, int, cv::ResizeAreaFastVec >::operator()(cv::Range const&) const ()
from /usr/lib/x86_64-linux-gnu/libopencv_imgproc.so.2.4
#1 0x00007ffff6617210 in ?? () from /usr/lib/x86_64-linux-gnu/libopencv_core.so.2.4
#2 0x00007fffef5ddb3a in ?? () from /usr/lib/libtbb.so.2
#3 0x00007fffef5d9816 in ?? () from /usr/lib/libtbb.so.2
#4 0x00007fffef5d8f4b in ?? () from /usr/lib/libtbb.so.2
#5 0x00007fffef5d50ff in ?? () from /usr/lib/libtbb.so.2
#6 0x00007fffef5d52f9 in ?? () from /usr/lib/libtbb.so.2
#7 0x00007ffff5dcf182 in start_thread (arg=0x7fffb2be8700) at pthread_create.c:312
#8 0x00007ffff69a6fbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Funny thing though, if I run in debug mode through QtCreator, it does not crash...

I am using Kubuntu 14.04 with all updates with indigo (also fully updated) as of today, 1/oct.

Any ideas? I can share the bag I am using (~750Mb) if anyone wants to test.
Although I can use rqt_image, image_view would be much better for my needs, and it was working without any problems in ros hydro and kubuntu 12.04 (for that same bag).

@vrabaud
Copy link
Contributor

vrabaud commented Oct 2, 2014

Not sure if it is related to #101 but please provide a link to your bag. Thx.

@hcostelha
Copy link
Author

The bag can be downloaded here: https://dl.dropboxusercontent.com/u/9090110/cam_tests_flight2_2014-09-04-16-46-28.bag

The camera2, camera3 and camera4 are the ones which are problematic with image_view in ros indigo.

@vrabaud
Copy link
Contributor

vrabaud commented Oct 4, 2014

ok, I am on Kubuntu 14.04 too and I do not get any crashes ....
I do:

rosbag play -l cam_tests_flight2_2014-09-04-16-46-28.bag &
rosrun image_view image_view image:=/camera2/image/compressed

The window stays gray but I get this error:

[ERROR] [1412404632.430314076]: Client [/image_view_1412404632114300336] wants topic /camera2/image/compressed to have datatype/md5sum [sensor_msgs/Image/060021388200f6f0f447d0fcd9c64743], but our version has [sensor_msgs/CompressedImage/8f7a12909da2c9d3332d540a0977563f]. Dropping connection.

How did you record your bag ?

@hcostelha
Copy link
Author

Since it is a compressed video feed, you need to view it using:
rosrun image_view image_view image:=/camera2/image _image_transport:=compressed

@vrabaud
Copy link
Contributor

vrabaud commented Oct 26, 2014

Hi, image_view image:=/camera2/image _image_transport:=compressed now works for me. Been busy lately, sorry.

@hcostelha
Copy link
Author

I updated to the latest versions and I still have the same problem. I am running on Xubuntu 14.04 64bit installation (all updates as of 31/october). Can the issue be reopened?

@vrabaud vrabaud reopened this Oct 31, 2014
@vrabaud
Copy link
Contributor

vrabaud commented Oct 31, 2014

you get the exact same backtrace ? on the same bag ?

@hcostelha
Copy link
Author

The backtrace is not exactly the same but very similar (only the first line changes). I tested it with camera2 on the exact same bag. Note that sometimes it is able to run, but most of the times it fails (the same command, the same bag), which indicates that it could be some race condition.

#0  0x00007ffff614054d in cv::resizeAreaFast_Invoker<unsigned char, int, cv::ResizeAreaFastVec<unsigned char> >::operator()(cv::Range const&) const () from /usr/lib/x86_64-linux-gnu/libopencv_imgproc.so.2.4
#1  0x00007ffff66172a0 in ?? () from /usr/lib/x86_64-linux-gnu/libopencv_core.so.2.4
#2  0x00007fffef5ddb3a in ?? () from /usr/lib/libtbb.so.2
#3  0x00007fffef5d9816 in ?? () from /usr/lib/libtbb.so.2
#4  0x00007fffef5d8f4b in ?? () from /usr/lib/libtbb.so.2
#5  0x00007fffef5d50ff in ?? () from /usr/lib/libtbb.so.2
#6  0x00007fffef5d52f9 in ?? () from /usr/lib/libtbb.so.2
#7  0x00007ffff5dcf182 in start_thread (arg=0x7fffc9e04700) at pthread_create.c:312
#8  0x00007ffff69a6fbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

@vrabaud
Copy link
Contributor

vrabaud commented Nov 10, 2014

sorry to bother, but you do have the 1.12.11 version right ?

@vrabaud
Copy link
Contributor

vrabaud commented Nov 16, 2014

hi, which version do you have ?

@lorenzoriano
Copy link

I have 1.12.11 and it doesn't crash anymore when using compressed images. I guess the bug has been resolved, but the debs are not updated yet.

@vrabaud
Copy link
Contributor

vrabaud commented Nov 20, 2014

cool ! Good news then. public is still on 1.12.10 indeed.

@vrabaud vrabaud closed this as completed Nov 20, 2014
@hcostelha
Copy link
Author

Indeed, I still have ros-indigo-image-view 1.12.10. I will try with 1.12.11 when its out and reply

@hcostelha
Copy link
Author

Sorry to say, but I have installed ros-indigo-image-view 1.12.11 and I still get exactly the same output. Note that sometimes it is able to show the images, but most of the times it crashes. Try to get the bag playing first and then run the image_view node to see it happening.

Can the issue be reopened? Can I do anything else to determine what can be done?

@vrabaud vrabaud reopened this Nov 22, 2014
@vrabaud
Copy link
Contributor

vrabaud commented Nov 22, 2014

I do not get that error anymore. The easiest would be to revert image_view to previous versions and see when the break happened.

@vrabaud
Copy link
Contributor

vrabaud commented Dec 21, 2014

can you please try with trunk ? I reverted some old commits, it should work for you now.

@vrabaud
Copy link
Contributor

vrabaud commented Feb 21, 2015

Ping ?

@hcostelha
Copy link
Author

Sorry for the late reply. I tried with version 1.12.12 and I still get a crash occasionally, but it rarely happens. Running through GDB I wasn't able to get it to crash at all, so I would leave this one closed for now.
Thanks for your help.

@vrabaud
Copy link
Contributor

vrabaud commented Mar 3, 2015

right. thx ! same here: even reverting to a very old image_view, I do get a crash once in a while.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants