flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
165.01k stars 27.19k forks source link

improve the iOS camera plugin thread model #96429

Closed hellohuanlin closed 2 years ago

hellohuanlin commented 2 years ago

Use case

This issue will be the main issue that tracks various threading problems in iOS camera plugin.

Proposal

We wrote up a formal proposal to improve the thread model, with detailed execution plan in the end. There are also a couple non-threading issues that we'd like to address in the spirit of "yak shaving".

Action Items

We need to fix these threading related issues:

These are optional cleanups not related to threading:

jmagman commented 2 years ago

I think this is already what https://github.com/flutter/flutter/issues/52578 is tracking. Can we close this, and you can just add a comment to that issue with a link to your proposal?

hellohuanlin commented 2 years ago

@jmagman Looks like #52578 only tracks the crash with calling engine API on the background thread. Though either way is fine for me.

hellohuanlin commented 2 years ago

Re-opened this issue to track various threading related tasks in the proposal

hellohuanlin commented 2 years ago

im closing this issue since all required action items are complete.

github-actions[bot] commented 2 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.