-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
fix: Fix blackscreen issues and lifecycle when closing Camera #2339
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This comment was marked as off-topic.
This comment was marked as off-topic.
Hey @xseignard - that's weird, I cannot reproduce this bug at all. Is there an open issue for that which uses 3.7.0? Need the adb logcat logs and a reproduction example please. & thanks for your sponsorship, much appreciated! |
Hey - I tested in the Example app by navigating from and to the code scanner screen. That worked |
Well, looking at all the newly raised issues with 3.7.0 on Android, the example app is definitely not a good proofing 🤷 |
…vy#2339) * fix: Fix Blackscreen by deterministically destroying session if `isActive=false` * Re-open Camera if session died * Simplify Camera * Disconnect is optional, block when resetting state * fix: Log in `configure { ... }` * fix: Make concurrent configure safe * fix: Don't resize preview * fix: Use current `CameraConfiguration` * Don't start if no outputs are available * Only mount with preview outputs * Update CameraSession.kt * Update PreviewView.kt * Better logging * Update CameraSession.kt * Extract * fix: Rebuild entire session if `isActive` changed * isActive safe * Start session at 1 * Create ActiveCameraDevice.kt * interrupts * chore: Freeze `frame` in `useFrameProcessor` * Revert "chore: Freeze `frame` in `useFrameProcessor`" This reverts commit dff93d5. * chore: Better logging * fix: Move HDR to `video`/`photo` config * fix: Fix hdr usage * fix: Ignore any updates after destroying Camera * fix: Fix video HDR * chore: Format code * fix: Check Camera permission * Remove unneeded error * Update CameraSession.kt * Update CameraPage.tsx * Delete OutputConfiguration.toDebugString.kt * Update CameraSession.kt
What
Fixes various blackscreen and out-of-sync issues on Android by deterministically closing and cleaning up the session.
Following changes:
configure { ... }
mechanism could drop important updatesCameraDevice
whenisActive=false
CameraSession
setupChanges
Tested on
Related issues
video={true}
to enable video recordings. #2328