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

[BUG]Program blocking due to camera disconnection #1065

Open
HELLO-hyq opened this issue Jun 27, 2024 · 1 comment
Open

[BUG]Program blocking due to camera disconnection #1065

HELLO-hyq opened this issue Jun 27, 2024 · 1 comment

Comments

@HELLO-hyq
Copy link

When the line connecting to the camera is disconnected and picam2.stop() is performed, it blocks at this line of code, is there a more robust solution?

@davidplowman
Copy link
Collaborator

Just to clarify, can you confirm that you're running the latest Bookworm OS and that all your software is up to date. Then your test script looks something like this:

from picamera2 import Picamera2
picam2 = Picamera2()
picam2.start()
# Now unplug the camera
picam2.stop()

Thanks.

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

2 participants