-
Notifications
You must be signed in to change notification settings - Fork 738
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 not functioning (segmentation fault) #516
Comments
I'm confused, https://wiki.ros.org/video_stream_opencv is not in this repo. Did you mean to file a ticket there? |
@SteveMacenski Ah, sorry for the confusion. I am almost certain the issue lies with image_view. Just wanted to provide context of where the image topic i'm feeding image_view is coming from I should add that the purpose of adding the line about changing the launch file option from true to false is there because changing it to false makes that launch file no longer call image_view, which, in turn, makes it run without error |
@SteveMacenski do you have any updates on image_view's issues? I saw in a different thread that it was possible some dev was the last person to push changes to it and might have messed it up? Just to reiterate, this issue thread is about image_view. Sorry for the earlier confusion |
Can you reproduce using a much simpler demo? You have alot of stuff going on in your description, boiling it down to a simple issue with just this tool. Also verify as you mention that you’re compiling against the right version of opencv. How’d you install it, versions, etc. Also, run gdb on it and see where its segfaulting. Maybe its obvious where it is then. |
It could be something to do with the environment that we're running in? I started from a Ubuntu Server setup and installed ROS, a desktop+RDP (because headless setup) and all that, though my intentions are that of #498 plus From both of these dying after I just installed ros ( You can also find the initial things I collected in the above linked issue. |
I have a crash dump here: https://aytimothy.xyz/files/pub/_opt_ros_melodic_lib_image_view_image_view.1001.crash Edit: Link is now to GitHub Gists. You can still download from the external site. |
@aytimothy Have you tried recording a short rosbag of the |
Okay, there's no point in posting a rosbag, because there's literally nothing to report (the rosbag file is empty), besides it saying "topic is not used" in the console even after started. But what seems to be happening is that after it dies the first time, As for reproduction, I managed to reproduce it by literally flashing a new SD card, grabbing Ubuntu Server, setting up ROS, installing the driver and then running it. What's odd is that it sometimes happens on a Raspberry Pi 3, but always on a Raspberry Pi 4. |
@aytimothy Can you please test to see if the issue is resolved now that #526 is merged into Melodic? |
@aytimothy Can you try to record a rosbag with having
I don't know what may cause that behaviour. The launchfiles from I admit that if this issue has to do with some kind of timing/racing condition issue of a driver starting to advertise images and |
@awesomebytes The |
@JWhitleyWork the |
@awesomebytes Thanks for the clarification. |
@awesomebytes Hi I'm having the same issue. I've tried recording a rosbag as per your advice, but I get an error after 200 msgs:
I've attached a rosbag of 30 msgs and the original mp4 here: Running image_view on the rosbag's
I'm on melodic and Ubuntu 18.04. |
I'll take a look see. |
@hoonkai Thanks a lot for reporting and attaching the rosbag! I hope this is helpful for the developers :) |
@awesomebytes Thanks. Can you upload a working mp4 for me to test out |
That fixed it for me! |
The mp4 found in video_stream_opencv was working I thought, up until your feedback. I can't take a look right now, but I'll do! |
@hoonkai Please pull |
Awesome. I'll make release 1.15.0 for melodic now that includes this fix. |
I'm running ros melodic on an nvidia xavier agx, ubuntu 18.04
Running
roslaunch video_stream_opencv video_file.launch
fails with the following outputI've tried to view the log file mentioned at the end of the output and it is empty/does not exist.
Setting the the visualize output line (line 32) of the video_file.launch file to false (shown below) eliminates this error and the program runs without error, successfully publishing the video to /videofile/image_raw
I've verified its successfully publishing to the image topic after setting that visualize launch option to false by:
rostopic echo /videofile/image_raw
, there is outputrosrun ros_deep_learning detectnet /detectnet/image_in:=/videofile/image_raw _model_name:=pednet
Just to isolate the issue more, I then tried to run image_view separately on the /videofile/image_raw topic
rosrun image_view image_view image:=/videofile/image_raw
which fails with
I read on #264 that ros kinetic had this issue because its compiled against opencv2, however I'm using melodic. Surely its compiled against opencv3 right?
For completeness, here is the full log files mentioned at the top of the ROS output
The text was updated successfully, but these errors were encountered: