-
Notifications
You must be signed in to change notification settings - Fork 161
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
thread error if set "reopen_on_read_failure" to be true #78
Comments
RTP streams do lose data in my experience. I am not happy that video_stream_opencv doesn't deal with that problem gracefully enough, but I don't have a test environment to reproduce the problem. Did you find a fix? |
I'm encountering the same problem and have setup a way to reproduce the failure in a debugging session. Here's what's happening: In video_stream.cpp's do_capture() method, we get to line 129 where unsubscribe() is called. It's my first time looking at this code base, so I don't a solution yet, but it seems like we either need to not restart the thread when resubscribing or exit the thread before doing the unsubscribe/resubscribe. I'll report back if I come up with a solution, but if I don't, I hope the above is useful to someone. |
Because I got Error "Could not capture frame" sometimes, I set "reopen_on_read_failure" to be true.
However, this will result in the thread error as follows and shut down the camera node.
Btw, I will always get frame dropping and I cannot find the reasons. Is that common? Three kinds of dropping messages are as follows.
Thanks a lot!
The text was updated successfully, but these errors were encountered: