Skip to content

[camera][iOS] app crashes with Check failed: task_runners_.GetPlatformTaskRunner()->RunsTasksOnCurrentThread(). Process 521 stopped * thread #4, queue = 'io.flutter.camera.dispatchqueue' when using startImageStream on master channel  #94723

@ljmatan

Description

@ljmatan

Unlike #44436, it crashes with any resolution preset.

Device is iPhone SE 2019, iOS 15.1

Flutter doctor

[✓] Flutter (Channel master, 2.6.0-12.0.pre.854, on macOS 12.0.1 21A559 darwin-arm, locale en-GB)
    • Flutter version 2.6.0-12.0.pre.854 at /Users/threeofthem/SDKs/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 361d416e6a (6 days ago), 2021-11-29 22:01:32 -0800
    • Engine revision 7ba215c2c6
    • Dart version 2.16.0 (build 2.16.0-55.0.dev)
    • DevTools version 2.8.0

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/threeofthem/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] VS Code (version 1.62.3)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.29.0

[✓] Connected device (3 available)
    • sdk gphone64 arm64 (mobile) • emulator-5554             • android-arm64  • Android 12 (API 31) (emulator)
    • Matan’s iPhone (mobile)     • 00008030-000470342683802E • ios            • iOS 15.1 19B74
    • Chrome (web)                • chrome                    • web-javascript • Google Chrome 96.0.4664.55
    ! Device 52007e785ffc85c7 is not authorized.
      You might need to check your device for an authorization dialog.

• No issues found!

Logs:

The selected imageFormatGroup is not supported by iOS. Defaulting to brga8888
[VERBOSE-3:platform_message_handler_ios.mm(106)] Check failed: task_runners_.GetPlatformTaskRunner()->RunsTasksOnCurrentThread().
* thread #29, queue = 'io.flutter.camera.dispatchqueue', stop reason = signal SIGABRT
    frame #0: 0x00000001b84a2964 libsystem_kernel.dylib`__pthread_kill + 8
libsystem_kernel.dylib`__pthread_kill:
->  0x1b84a2964 <+8>:  b.lo   0x1b84a2984               ; <+40>
    0x1b84a2968 <+12>: pacibsp 
    0x1b84a296c <+16>: stp    x29, x30, [sp, #-0x10]!
    0x1b84a2970 <+20>: mov    x29, sp
Target 0: (Runner) stopped.

Code is nothing special, same as in example but after the initialisation I'm calling the startImageStream method.

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listc: crashStack traces logged to the consolec: fatal crashCrashes that terminate the processc: regressionIt was better in the past than it is nowfound in release: 2.6Found to occur in 2.6has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: cameraThe camera pluginpackageflutter/packages repository. See also p: labels.platform-iosiOS applications specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions