Skip to content

[Flutter Camera] Camera stream crashes randomly #76311

@stefanodecillis

Description

@stefanodecillis

Hi,

I'm writing a simple application which scans QRcode and gives results. I'm using Flutter camera for the streaming and Firebase ML for the QRcode recognizer. As simple as the application is, I'm running in random stops of the camera in both Android and iOS platforms with no errors in logs.

I need to use this application as a totem, so always on. If you try to simple stream from the camera and go back and forth into another screen, the camera will stop randomly (usually around 45 minutes). No stack trace provided in logs.
The application will still run but no the camera (it just freezes on the last frame).

I checked the hardware status and the memory, disk and processors were normal. Only the power consumption was high but I don't know if this can affect the application.
Can you check?

I have both flutter and camera plugin updated at the last version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: crashStack traces logged to the consolefound in release: 1.22Found to occur in 1.22has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: cameraThe camera pluginpackageflutter/packages repository. See also p: labels.r: fixedIssue is closed as already fixed in a newer version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions