-
Notifications
You must be signed in to change notification settings - Fork 190
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] Running out of CmaMemory #1125
Comments
When changing the while loop to the following, it will work endlessly for me. Endless translates to 10 minutes currently ;)
Did I do something illegal by requesting the metadata right after a capture separately? |
Hi, thanks for reporting this. Yes, I think there might be something leaking there, so we'll have to look into that. In the meantime, a workaround (which may actually be better regardless in this sort of scenario) might be to use the "persistent allocator". This will allocate the buffers for each use case ("preview" or "still") just once, and hang on to them. To do this, add:
and create the Picamera2 object with
@will-v-pi Could I ask you to have a look at the regular DmaAllocator in this particular case? Thanks! |
Can confirm that it works with the PersistentAllocator continuously. Will use this until this issue is solved. Thank you very much! |
Hi, thanks for the fix, changed my installation and it works fine now! |
Describe the bug
Hello @davidplowman, as per request, I create a separate issue about my issue running out of CmaMemory.
With reference to this issue comment in #1102 that is dedicated to the Pi 5. I am on a Pi 4 currently.
To Reproduce
Following script dies after about 10 loops:
During script runtime, you see the Cma is getting lower and lower, finally the script fails and the CmaMemory is free again:
Expected behaviour
Script not dying ;)
Console Output, Screenshots
Hardware :
Raspberry Pi 4 and IMX708 original camera module.
The text was updated successfully, but these errors were encountered: