Skip to content

Fix MMal no buffers available.#645

Open
dinapappor wants to merge 1 commit intowaveform80:masterfrom
dinapappor:aa/fix_mmal_no_buffers_available
Open

Fix MMal no buffers available.#645
dinapappor wants to merge 1 commit intowaveform80:masterfrom
dinapappor:aa/fix_mmal_no_buffers_available

Conversation

@dinapappor
Copy link
Copy Markdown

@dinapappor dinapappor commented Sep 16, 2020

This fixes picamera.exc.PiCameraMMALError: no buffers available: Resource temporarily unavailable when dealing with raw mmalobj and overlays.

What seems to happen is that we try to send buffers all the time instead of only doing it on port that is an output. This fixes it for me and I have not seen any issues as a result.

Let me know if this is good enough for inclusion or if you want me to do additional digging.

(For some reason I was not able to monkeypatch this from my code, probably because my python is somewhat limited)

@xlla
Copy link
Copy Markdown

xlla commented Dec 6, 2020

it work!

@rschaer
Copy link
Copy Markdown

rschaer commented Jun 22, 2021

This fixed all (no buffer available) error messages when updating dynamic overlays in picamera for me. Saw other solutions suggesting switching between two layers with the same image, and alternatingly removing/adding the overlays on updates. This seems way less hacky. Thank you.

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

Successfully merging this pull request may close these issues.

3 participants