-
Notifications
You must be signed in to change notification settings - Fork 13
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
Program crashes with PiCameraRuntimeError "Timed out waiting for capture to end" #1
Comments
Weird. Looks like it tries to pull a frame form the picam, but the picam isnt ready. Try putting a reasonable delay in the script before starting the picam, then another after initialization and before pulling frames. See if that fixes it. I'm no expert on the picam either, but it can be a bit awkward at times, and seems to need time to settle. |
I tried right now putting There's still the same issue: sometimes it works and continues working, other times it works for a couple of seconds and then crashes with the stacktrace previously shown. |
I think you need a much bigger delay than that. In some instances I have put in delays as long as 10 seconds to ensure stuff has settled down. When you call the script from autostart is there any significant delay in there? I had a similar issue trying to autostart a chromium session in kisok mode, where the executable was being called before other programs it relied on (and networking) had been loaded. You need to give LXDE a chance to settle down first... |
With a 7 seconds delay, the initial crashes occur less frequently. Since for UX reasons I don't want to have too much delay, I coded a monitor that restarts the application when it crashes (and when it crashes, it happens only once during the firsts seconds, so it does not bother me too much). I have another question that is slightly off-topic, but I don't think it deserves another issue page, so I'm gonna ask it here: |
Hi, |
Ok, thanks! |
How did you compile the Mlx90649_driver.cpp - do I need the bcm8235 lib installed ? - I have tried Geany on the Pi and I get errors. |
Hi,
I've tinkered a little bit with your code in order to make it run fullscreen and I placed an instruction in
/etc/xdg/lxsession/LXDE-pi/autostart
to make it autostart when the LXDE starts. The rest of the code is pretty much the same original one.However sometimes when I boot up the raspberry the code crashes and by redirecting stderr on a log file I found out this traceback:
I'm not expert on the picamera and the odd thing is that other times it works perfectly. If there was an error for the buffer length for resolution, shouldn't the code always fail instantly?
Is there a way to fix this issue?
The text was updated successfully, but these errors were encountered: