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

threaded camera deadlock on stop stream #165

Open
bsekura opened this issue Mar 6, 2024 · 1 comment
Open

threaded camera deadlock on stop stream #165

bsekura opened this issue Mar 6, 2024 · 1 comment

Comments

@bsekura
Copy link

bsekura commented Mar 6, 2024

Threaded camera CameraCallback creates a loop camera_frame_thread_loop that continuously acquires the lock. When stop_stream is called, it tries to lock the camera first, but it never succeeds. As a result, one cannot stop the threaded camera - it continues on indefinitely.

@bsekura
Copy link
Author

bsekura commented Mar 6, 2024

This is happening on Windows using media foundation backend. frame internally calls source reader ReadSample, which is a blocking call. So this results in this thread being blocked on ReadSample for most of its time, practically holding the lock all the time.

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

1 participant