Skip to content

camera plugin crashes app on Huawei devices with "Request has already been finished" #73336

@Anudin

Description

@Anudin

Steps to Reproduce

I build a quick demo project, just run that and press the floating action button.
Note that this project uses the git version, which was suggested here, but the crash was also reproducible with 0.6.3+2.

Results:

It crashes reliably on two tested Huawei phones when controller.takePicture() is called.
No issues on a moto g7 plus and OnePlus 6 device.

Logs I added logs and device info to https://github.com/Anudin/flutter-camera-crash-demo/tree/master/logs

flutter analyze

Analyzing demo...
   info • Unused import: 'package:demo/main.dart' • test/widget_test.dart:11:8 • unused_import
  error • The function 'MyApp' isn't defined • test/widget_test.dart:16:29 • undefined_function
2 issues found. (ran in 1.4s)

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: crashStack traces logged to the consolee: device-specificOnly manifests on certain devicesp: cameraThe camera pluginpackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions