-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[camera_avfoundation] dealloc camera on dispose #7211
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
Conversation
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.
LGTM
@hellohuanlin for secondary review
auto label is removed for flutter/packages/7211, due to - The status or check suite Linux repo_checks has failed. Please fix the issues identified (or deflake) before re-applying this label. |
auto label is removed for flutter/packages/7211, due to - The status or check suite Mac_arm64 ios_platform_tests_shard_1 master has failed. Please fix the issues identified (or deflake) before re-applying this label. |
flutter/packages@cc9ff47...82e8d1e 2024-08-04 engine-flutter-autoroll@skia.org Manual roll Flutter from f10a497 to cbfb222 (23 revisions) (flutter/packages#7298) 2024-08-04 30872003+misos1@users.noreply.github.com [camera_avfoundation] dealloc camera on dispose (flutter/packages#7211) 2024-08-03 engine-flutter-autoroll@skia.org Manual roll Flutter from 4ff9462 to f10a497 (22 revisions) (flutter/packages#7297) 2024-08-03 engine-flutter-autoroll@skia.org Manual roll Flutter from 85960d2 to 4ff9462 (45 revisions) (flutter/packages#7296) 2024-08-03 engine-flutter-autoroll@skia.org Manual roll Flutter from 9d5ede0 to 85960d2 (24 revisions) (flutter/packages#7295) 2024-08-02 stuartmorgan@google.com Roll to 9d5ede0, disabling impeller for google_maps_flutter_android (flutter/packages#7294) 2024-08-02 30872003+misos1@users.noreply.github.com [camera_avfoundation] fix stopVideoRecording waiting indefinitely and video lag at start (flutter/packages#7065) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com,rmistry@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
flutter/packages@cc9ff47...82e8d1e 2024-08-04 engine-flutter-autoroll@skia.org Manual roll Flutter from f10a497 to cbfb222 (23 revisions) (flutter/packages#7298) 2024-08-04 30872003+misos1@users.noreply.github.com [camera_avfoundation] dealloc camera on dispose (flutter/packages#7211) 2024-08-03 engine-flutter-autoroll@skia.org Manual roll Flutter from 4ff9462 to f10a497 (22 revisions) (flutter/packages#7297) 2024-08-03 engine-flutter-autoroll@skia.org Manual roll Flutter from 85960d2 to 4ff9462 (45 revisions) (flutter/packages#7296) 2024-08-03 engine-flutter-autoroll@skia.org Manual roll Flutter from 9d5ede0 to 85960d2 (24 revisions) (flutter/packages#7295) 2024-08-02 stuartmorgan@google.com Roll to 9d5ede0, disabling impeller for google_maps_flutter_android (flutter/packages#7294) 2024-08-02 30872003+misos1@users.noreply.github.com [camera_avfoundation] fix stopVideoRecording waiting indefinitely and video lag at start (flutter/packages#7065) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com,rmistry@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
flutter/packages@cc9ff47...82e8d1e 2024-08-04 engine-flutter-autoroll@skia.org Manual roll Flutter from f10a497 to cbfb222 (23 revisions) (flutter/packages#7298) 2024-08-04 30872003+misos1@users.noreply.github.com [camera_avfoundation] dealloc camera on dispose (flutter/packages#7211) 2024-08-03 engine-flutter-autoroll@skia.org Manual roll Flutter from 4ff9462 to f10a497 (22 revisions) (flutter/packages#7297) 2024-08-03 engine-flutter-autoroll@skia.org Manual roll Flutter from 85960d2 to 4ff9462 (45 revisions) (flutter/packages#7296) 2024-08-03 engine-flutter-autoroll@skia.org Manual roll Flutter from 9d5ede0 to 85960d2 (24 revisions) (flutter/packages#7295) 2024-08-02 stuartmorgan@google.com Roll to 9d5ede0, disabling impeller for google_maps_flutter_android (flutter/packages#7294) 2024-08-02 30872003+misos1@users.noreply.github.com [camera_avfoundation] fix stopVideoRecording waiting indefinitely and video lag at start (flutter/packages#7065) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com,rmistry@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
When is camera disposed in
disposeCamera
it callsclose
and leaves_camera
untouched so after another call tosessionQueueCreateCameraWithName
it callsclose
second time and only here is_camera
disposed by assigning new value into that variable. Callingclose
2x may be unexpected and prone to later errors if someone adds here something which expects that it will be called only once. Also having dangling_camera
after dispose (without creating new one) can have other unintended consequences although maybe benign for now. For example there is[_motionManager stopAccelerometerUpdates]
which is called only indealloc
.Pre-launch Checklist
dart format
.)[shared_preferences]
pubspec.yaml
with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.md
to add a description of the change, following repository CHANGELOG style, or this PR is exempt from CHANGELOG changes.///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.