Closed matthaeusheer closed 3 years ago
@matthaeusheer Hi, it looks the program which crashes is an image viewer, not a node of this repo. Please check if image_view
can be used standalone?
Hello @matthaeusheer seems like this is the same that is being reported here: https://github.com/ros-perception/image_pipeline/issues/516
It's a problem of image_view
not of video_stream_opencv
(or so it looks like, no conclusion yet).
Hereby I'll ask you to report in that issue instead. Before doing so you can try the following things:
image_view
(in the launchfile set visualize
to false
) and try to check the image topic with another tool like rqt_image_view
or Rviz.image_view
(which we already suspect from the other reports https://github.com/ros-drivers/video_stream_opencv/issues/70 https://github.com/ros-drivers/video_stream_opencv/issues/64).image_view
and see if it crashes. If it doesn't, it may have to do with some kind of initialization and race condition between the video_stream_opencv
node publishing the images and camera info... if it does crash well... see next point.image_view
in isolation by playing that rosbag to check if it crashes. I've asked another user that reports the same issue in the repository of image_view
: https://github.com/ros-perception/image_pipeline/issues/516 This is to make sure the issue has nothing to do with the format of the images published by video_stream_opencv
. If it would actually crash image_view
, it would be a perfect way to reproduce the bug for the maintainers to fix. I'd ask you to attach the rosbag to the GitHub issue I just mentioned.Thanks for reporting this bug :)
Hey
I can confirm that <arg name="visualize" value="false" />
does solve the issue, so your assumption might be right.
I'll record the bag and post it to the image_view issue.
If I might ask, I have some other questions which are not expected behavior 1) When the last frame of a video file is reached I get errors (regardless whether looping is set to true or false)
[ERROR] [1588929063.926041994]: Could not capture frame
[ERROR] [1588929063.959889255]: Could not capture frame
[ERROR] [1588929063.993355098]: Could not capture frame
...
edit: have just seen that this is an already reported issue #61.
2) Providing the argument for video_stream_provider, e.g. roslaunch video_stream_opencv video_file.launch video_stream_provider:=/path/to/file.mp4
seems to have no effect. To change the video I have to go into the actual launch file and set it there, otherwise the one specified in the launchfile is used.
Thanks a lot
Streaming from camera.launch works fine. But: running video_file.launch does crash immediately. I tried the small example mp4 movie, the same happens with my own movies. The log given down below is actually empty.
Cheers