Skip to content

[camerax] Change unawaited usages to await for calls to stop asynchronous camera operations #132499

Closed
flutter/packages
#6068

Description

@camsim99

Currently, the camera_android_camerax implementation uses unawaited to not wait for calls to stop using certain UseCases and disposing of the camera. This may introduce race conditions as discussed in #115925 (comment).

The unawaited usages should be revisited and only used when there is no way to ensure asynchronous completion on the native side.

Activity

  1. added
    in triagePresently being triaged by the triage team
    platform-androidAndroid applications specifically
    packageflutter/packages repository. See also p: labels.
    c: proposalA detailed proposal for a change to Flutter
    team-androidOwned by Android platform team
    and removed
    in triagePresently being triaged by the triage team
    on Aug 15, 2023
  2. camsim99 commented on Aug 15, 2023

    @camsim99
    ContributorAuthor

    Here is an example of a place to reconsider using unawaited: flutter/packages#3586 (comment)

  3. added
    P2Important issues not at the top of the work list
    triaged-androidTriaged by Android platform team
    on Aug 31, 2023
  4. added
    r: fixedIssue is closed as already fixed in a newer version
    on Feb 15, 2024
  5. github-actions commented on Feb 29, 2024

    @github-actions

    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.

  6. locked as resolved and limited conversation to collaborators on Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listc: proposalA detailed proposal for a change to Flutterp: cameraThe camera pluginpackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions