Skip to content

Fix camera cleanup#47

Merged
lindestad merged 1 commit into
mainfrom
fix-camera-cleanup
May 10, 2026
Merged

Fix camera cleanup#47
lindestad merged 1 commit into
mainfrom
fix-camera-cleanup

Conversation

@lindestad
Copy link
Copy Markdown
Collaborator

Fixes cleanup issues found while investigating startup/shutdown behavior.

The RPi GStreamer reader now keeps a stable process reference while cleanup can clear the instance field, and cleanup waits after killing a stuck subprocess so it is reaped. The app shutdown path also releases the default webcam handle.

This intentionally does not change camera defaults or startup behavior.

Validated with:

  • env UV_CACHE_DIR=/tmp/uv-cache uv run --frozen --group dev pytest
  • env UV_CACHE_DIR=/tmp/uv-cache uv run --frozen --group lint ruff check .
  • git diff --check

@lindestad lindestad requested a review from Gutteerz May 6, 2026 17:04
@lindestad lindestad marked this pull request as ready for review May 6, 2026 17:04
@lindestad lindestad merged commit 4eb92b5 into main May 10, 2026
1 check passed
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.

1 participant