-
Notifications
You must be signed in to change notification settings - Fork 355
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
camera.close() with long exposure hangs, then kernel panics #528
Comments
I am having exactly the same issue! picamera V1.13 with camera module V2.1 on Pi 3 B+. It seems to me like the issue is specifically around trying to close the camera while the framerate is < 1, as I was able to workaround the issue by setting the framerate back up to 1 before calling camera.close(): Editing @avenhaus 's example with my workaround:
|
Stretch and pi-timolo.py 11.11 and earlier has long exposure low light camera freezing issue that requires a reboot to gain control of camera back per waveform80/picamera#528 This adhoc fix will resolve issue if running the latest Stretch firmware.
Seeing this as well.
|
I also have this problem on a Computer Module 3 with rpi-upgrade, apt packages, and picamera all recent as of this post. Using a V1 (OmniVision) camera. The workaround worked for me. I see that sensor mode 3 is used for full-frame captures with fps < 1; is it possible that mode 3 is the culprit for some reason? |
Apart from the issue before .close(), there seems to be a problem with the timings, maybe also the order of how settings are applied. It seems that a good amount of from picamera import PiCamera
from datetime import datetime
from time import sleep
class SkyPiCamera(PiCamera):
def __init__(self, *args, **kwargs):
# self.CAPTURE_TIMEOUT = 120 # enable if you hit the timeout
super().__init__(*args, **kwargs)
with SkyPiCamera(resolution=[3280, 2464], sensor_mode=3, framerate=1 / 10) as camera:
print("opened successfully!")
camera.shutter_speed = 10000000
#sleep(0.5)
camera.iso = 800
camera.exposure_mode = "sports"
print("camera configured")
sleep(20)
for cnt, _ in enumerate(
camera.capture_continuous("test{counter}.jpg", format="jpeg", burst=True)
):
print ('click!')
break
camera.framerate = 1 |
picamera V1.13 with camera module V2.1 on Pi Zero W:
Calling close() after setting low frame rate hangs. After some minutes the Pi crashes with a kernel panic "Fatal exception in interrupt". I can consistently reproduce with the following code:
Background: I am trying to take a long time lapse. I am closing the camera after each shot to save battery power. Reproduced on 2 different boars with 4.8A power supply.
The text was updated successfully, but these errors were encountered: