-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
fix: implement more robust config and tear down bookkeeping #3664
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
base: main
Are you sure you want to change the base?
Conversation
- Add shutdown method to stop all outputs and release resources - Schedule shutdown with warning if it takes longer than expected
* Cleaning up capture sessions in deinit likely indicates some bookkeeping isn't completing and is likely to obscure rather than fix bugs * Adding a completion handler to config adds a lot of complexity we can avoid and replace with a more correct DispatchGroup (the group doesn't notify until any async audio and location work complete) * Switch existing DispatchTime usage for dropping redundant config calls to a simple monotonic counter that uses an unfair lock * remove didScheduleShutdown as deactivateCameraSession() is safe to call repeatedly
|
@rustle is attempting to deploy a commit to the mrousavy's Team Team on Vercel. A member of the Team first needs to authorize it. |
mrousavy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your PR!
Left some comments
cd7d8ff to
eb07d6a
Compare
|
I've added a comment to explain the manual delegate cleanup and made the work in deinit much smaller and synchronous, but if your preference is still to drop those neither are strictly necessary for this PR to work well. |
What
This is a revision pass on the work done in #3650
Fix the navigation freeze on React Navigation/Fabric by shutting the camera session down deterministically when the view unmounts.
Changes
Instead of introducing a new shutdown method revise use of configure
Tested on
iPhone 12 mini running 18.7.1
Related issues