Skip to content

[BUG] MLkit - Already running  #373

Open
@bernaferrari

Description

@bernaferrari

PlatformException(ALREADY_RUNNING, Start cannot be called when already running, , null)

I'm getting that weird exception when hot restarting (not hot reloading) an app using MLKit. With QRView it works fine. Re-running works.

MLKitScanner(
      onError: (context, error) => Text(
        error.toString(),
        style: const TextStyle(color: Colors.red),
      ),
      qrCodeCallback: (code) {
        debugPrint('Code ${code.displayValue}');
      },
    )
Flutter 2.3.0-24.1.pre • channel beta • https://github.com/flutter/flutter.git
Framework • revision 615957513e (3 weeks ago) • 2021-06-25 09:24:44 -0700
Engine • revision 9d517f475b
Tools • Dart 2.14.0 (build 2.14.0-188.5.beta

Testing in a Galaxy S9 with Android 10.

Metadata

Metadata

Assignees

No one assigned

    Labels

    MLKitbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions