-
Notifications
You must be signed in to change notification settings - Fork 357
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
Confusing error when camera isn't enabled in firmware #89
Comments
Good plan - I'll add this as an enhancement for 1.5 |
Lol, only just spotted http://picamera.readthedocs.org/en/release-1.4/faq.html#out-of-memory-when-initializing-the-camera |
Well, it's certainly come up in a few e-mails and forum posts so I added it as a FAQ, but it would indeed be better to add a special error message for that exception if it occurs during _init_camera |
i also meet such a question, it's caused by low power |
@lxg2015 it's not caused by low power. The most common cause is simply that the camera isn't enabled. There are other causes (deliberately setting the GPU memory split too low, or not enough free VC mem due to other processes / crashed processes) but not low power. |
@waveform80 I definitely have the camera enabled but I am still getting this error. Do you have any suggestions on how I could diagnose those other issues you mentioned? |
Also having this issue currently |
Actually it only had to do with plugging into the wrong spot. All good now. |
Another possibility—if you're like me and you're using the Pi headless, you might be tempted to set the memory split to 16 MB, since you don't think you'll need the GPU for UI interactions. The camera subsystem seems to also use the GPU, however, so you should leave it at the default—at least |
Correct; the camera firmware is (almost?) entirely on the GPU (see the Camera hardware chapter for more details). I think 64Mb is the bare minimum for camera usage, but that may not be enough for all operations (e.g. multiple encoders running simultaneously, higher resolutions, etc). |
Plugging it into the right slot in the right direction solved my problem. 😜 I was playing around with it for 2hrs and just realized. |
If I don't run raspi-config to select the "Enable Camera" option, when I try running raspistill it provides the helpful error message:
However in python if I do
it displays:
Maybe picamera could also display a 'helpful' error message, rather the 'cryptic' "Out of memory" ?
The text was updated successfully, but these errors were encountered: