Skip to content

Wrong Flutter behavior with plugins that throw and catch C++ exceptions #66575

@egphilippov1

Description

@egphilippov1

Steps to Reproduce

  1. Run git clone [email protected]:nonlinear-chaos-order-etc-etal/flutter_plugin_sample.git.
  2. If you run cd example && flutter run -d Linux as is, the example crashes after printing "calling FlutterCrashSamplePlugin.sampleMethod()..."

The plugin uses the C++ throw keyword to throw an exception on an error condition.

Expected results:

Need some way to use catch C++ exceptions back in Dart code. I tried to add -fexceptions to CMake files, this did not help.

Plugin should safely return "error: test_cpp_exception" string to Dart code.

Actual results:

Flutter app crashes somewhere on C++ throw inside the plugin. If we comment out the throw line ( https://github.com/nonlinear-chaos-order-etc-etal/flutter_plugin_sample/blob/master/linux/flutter_crash_sample_plugin_plugin.cc#L29 ), C++ plugin safely returns "41!" string.

Logs
flutter run -d Linux --verbose
[ +102 ms] executing: [/media/user/1TB2DATAMASTER/crash_sample_flutter_proper/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +69 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 1fef5912cf778f9b25767f14fd66875400e3e8b5
[        ] executing: [/media/user/1TB2DATAMASTER/crash_sample_flutter_proper/] git tag --points-at HEAD
[ +655 ms] Exit code 0 from: git tag --points-at HEAD
[   +2 ms] executing: [/media/user/1TB2DATAMASTER/crash_sample_flutter_proper/] git describe --match *.*.* --first-parent --long --tags
[  +65 ms] Exit code 0 from: git describe --match *.*.* --first-parent --long --tags
[        ] 1.22.0-9.0.pre-340-g1fef5912cf
[  +16 ms] executing: [/media/user/1TB2DATAMASTER/crash_sample_flutter_proper/] git rev-parse --abbrev-ref --symbolic @{u}
[   +4 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/master
[        ] executing: [/media/user/1TB2DATAMASTER/crash_sample_flutter_proper/] git ls-remote --get-url origin
[   +4 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +45 ms] executing: [/media/user/1TB2DATAMASTER/crash_sample_flutter_proper/] git rev-parse --abbrev-ref HEAD
[   +3 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] master
[  +47 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +131 ms] executing: /home/user/Android/Sdk/platform-tools/adb devices -l
[   +9 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[  +15 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +46 ms] executing: /home/user/Android/Sdk/platform-tools/adb devices -l
[  +40 ms] Found plugin flutter_crash_sample_plugin at /home/user/git/flutter_crash_sample_plugin/
[  +83 ms] Found plugin flutter_crash_sample_plugin at /home/user/git/flutter_crash_sample_plugin/
[   +8 ms] Generating /home/user/git/flutter_crash_sample_plugin/example/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[  +50 ms] Starting incremental build...
[   +1 ms] Initializing file store
[   +8 ms] Skipping target: gen_localizations
[   +4 ms] complete
[   +4 ms] Launching lib/main.dart on Linux in debug mode...
[   +5 ms] /media/user/1TB2DATAMASTER/crash_sample_flutter_proper/bin/cache/dart-sdk/bin/dart --disable-dart-dev
/media/user/1TB2DATAMASTER/crash_sample_flutter_proper/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root
/media/user/1TB2DATAMASTER/crash_sample_flutter_proper/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names --experimental-emit-debug-metadata
-Ddart.developer.causal_async_stacks=true --output-dill /tmp/flutter_tools.HDPKHV/flutter_tool.LVLSBL/app.dill --packages .packages -Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation --filesystem-scheme
org-dartlang-root --initialize-from-dill build/01094840f26094a3fe371d8be6b9cb48.cache.dill.track.dill --flutter-widget-cache
[  +23 ms] Building Linux application...
[  +27 ms] <- compile package:flutter_crash_sample_plugin_example/main.dart
[   +1 ms] executing: [build/linux/debug/] cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug /home/user/git/flutter_crash_sample_plugin/example/linux
[  +11 ms] List of devices attached
[   +2 ms] List of devices attached
[  +67 ms] -- Configuring done
[  +23 ms] -- Generating done
[   +1 ms] -- Build files have been written to: /home/user/git/flutter_crash_sample_plugin/example/build/linux/debug
[   +3 ms] executing: ninja -C build/linux/debug install
[   +4 ms] ninja: Entering directory `build/linux/debug'
[+10369 ms] [1/7] Generating /home/user/git/flutter_crash_sample_plugin/example/linux/flutter/ephemeral/libflutter_linux_gtk.so,
/home/user/git/flutter_crash_sample_plugin/example/linux/flutter/ephemeral/flutter_linux/fl_basic_message_channel.h,
/home/user/git/flutter_crash_sample_plugin/example/linux/flutter/ephemeral/flutter_linux/fl_binary_codec.h,
/home/user/git/flutter_crash_sample_plugin/example/linux/flutter/ephemeral/flutter_linux/fl_binary_messenger.h,
/home/user/git/flutter_crash_sample_plugin/example/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h, /home/user/git/flutter_crash_sample_plugin/example/linux/flutter/ephemeral/flutter_linux/fl_engine.h,
/home/user/git/flutter_crash_sample_plugin/example/linux/flutter/ephemeral/flutter_linux/fl_json_message_codec.h,
/home/user/git/flutter_crash_sample_plugin/example/linux/flutter/ephemeral/flutter_linux/fl_json_method_codec.h,
/home/user/git/flutter_crash_sample_plugin/example/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h,
/home/user/git/flutter_crash_sample_plugin/example/linux/flutter/ephemeral/flutter_linux/fl_method_call.h,
/home/user/git/flutter_crash_sample_plugin/example/linux/flutter/ephemeral/flutter_linux/fl_method_channel.h,
/home/user/git/flutter_crash_sample_plugin/example/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h,
/home/user/git/flutter_crash_sample_plugin/example/linux/flutter/ephemeral/flutter_linux/fl_method_response.h,
/home/user/git/flutter_crash_sample_plugin/example/linux/flutter/ephemeral/flutter_linux/fl_plugin_registrar.h,
/home/user/git/flutter_crash_sample_plugin/example/linux/flutter/ephemeral/flutter_linux/fl_plugin_registry.h,
/home/user/git/flutter_crash_sample_plugin/example/linux/flutter/ephemeral/flutter_linux/fl_standard_message_codec.h,
/home/user/git/flutter_crash_sample_plugin/example/linux/flutter/ephemeral/flutter_linux/fl_standard_method_codec.h,
/home/user/git/flutter_crash_sample_plugin/example/linux/flutter/ephemeral/flutter_linux/fl_string_codec.h, /home/user/git/flutter_crash_sample_plugin/example/linux/flutter/ephemeral/flutter_linux/fl_value.h,
/home/user/git/flutter_crash_sample_plugin/example/linux/flutter/ephemeral/flutter_linux/fl_view.h, /home/user/git/flutter_crash_sample_plugin/example/linux/flutter/ephemeral/flutter_linux/flutter_linux.h,
_phony_
[   +3 ms] [  +88 ms] executing: [/media/user/1TB2DATAMASTER/crash_sample_flutter_proper/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [  +30 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [        ] 1fef5912cf778f9b25767f14fd66875400e3e8b5
[        ] [        ] executing: [/media/user/1TB2DATAMASTER/crash_sample_flutter_proper/] git tag --points-at HEAD
[        ] [   +9 ms] Exit code 0 from: git tag --points-at HEAD
[        ] [   +1 ms] executing: [/media/user/1TB2DATAMASTER/crash_sample_flutter_proper/] git describe --match *.*.* --first-parent --long --tags
[        ] [  +20 ms] Exit code 0 from: git describe --match *.*.* --first-parent --long --tags
[        ] [        ] 1.22.0-9.0.pre-340-g1fef5912cf
[        ] [   +6 ms] executing: [/media/user/1TB2DATAMASTER/crash_sample_flutter_proper/] git rev-parse --abbrev-ref --symbolic @{u}
[        ] [   +4 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] [        ] origin/master
[        ] [        ] executing: [/media/user/1TB2DATAMASTER/crash_sample_flutter_proper/] git ls-remote --get-url origin
[        ] [   +4 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] [        ] https://github.com/flutter/flutter.git
[        ] [  +29 ms] executing: [/media/user/1TB2DATAMASTER/crash_sample_flutter_proper/] git rev-parse --abbrev-ref HEAD
[        ] [   +5 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] [        ] master
[        ] [  +32 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [  +33 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[        ] [  +67 ms] Initializing file store
[        ] [   +4 ms] Done initializing file store
[        ] [  +30 ms] Skipping target: gen_localizations
[        ] [+1156 ms] kernel_snapshot: Starting due to {InvalidatedReason.inputChanged}
[        ] [   +8 ms] /media/user/1TB2DATAMASTER/crash_sample_flutter_proper/bin/cache/dart-sdk/bin/dart --disable-dart-dev
/media/user/1TB2DATAMASTER/crash_sample_flutter_proper/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root
/media/user/1TB2DATAMASTER/crash_sample_flutter_proper/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --target=flutter -Ddart.developer.causal_async_stacks=true -Ddart.vm.profile=false
-Ddart.vm.product=false --bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts
--track-widget-creation --packages /home/user/git/flutter_crash_sample_plugin/example/.packages --output-dill
/home/user/git/flutter_crash_sample_plugin/example/.dart_tool/flutter_build/2ccc72d563fd423317ce348b72cd1083/app.dill --depfile
/home/user/git/flutter_crash_sample_plugin/example/.dart_tool/flutter_build/2ccc72d563fd423317ce348b72cd1083/kernel_snapshot.d package:flutter_crash_sample_plugin_example/main.dart
[   +2 ms] [+1712 ms] unpack_linux: Starting due to {InvalidatedReason.inputChanged}
[        ] [+1440 ms] unpack_linux: Complete
[        ] [+3824 ms] kernel_snapshot: Complete
[        ] [ +484 ms] Skipping target: debug_bundle_linux_assets
[        ] [        ] Persisting file store
[        ] [   +4 ms] Done persisting file store
[        ] [   +3 ms] build succeeded.
[        ] [   +6 ms] "flutter assemble" took 8 787ms.
[        ] [ +256 ms] ensureAnalyticsSent: 253ms
[        ] [   +4 ms] Running shutdown hooks
[        ] [        ] Shutdown hooks complete
[        ] [        ] exiting with code 0
[ +421 ms] [2/7] Building CXX object CMakeFiles/example.dir/flutter/generated_plugin_registrant.cc.o
[  +16 ms] [3/7] Building CXX object CMakeFiles/example.dir/my_application.cc.o
[ +117 ms] [4/7] Building CXX object plugins/flutter_crash_sample_plugin/CMakeFiles/flutter_crash_sample_plugin_plugin.dir/flutter_crash_sample_plugin_plugin.cc.o
[  +82 ms] [5/7] Linking CXX shared library plugins/flutter_crash_sample_plugin/libflutter_crash_sample_plugin_plugin.so
[ +110 ms] [6/7] Linking CXX executable intermediates_do_not_run/example
[        ] [6/7] Install the project...
[   +7 ms] -- Install configuration: "Debug"
[   +2 ms] -- Installing: /home/user/git/flutter_crash_sample_plugin/example/build/linux/debug/bundle/example
[        ] -- Set runtime path of "/home/user/git/flutter_crash_sample_plugin/example/build/linux/debug/bundle/example" to "$ORIGIN/lib"
[        ] -- Installing: /home/user/git/flutter_crash_sample_plugin/example/build/linux/debug/bundle/data/icudtl.dat
[   +1 ms] -- Installing: /home/user/git/flutter_crash_sample_plugin/example/build/linux/debug/bundle/lib/libflutter_linux_gtk.so
[ +105 ms] -- Installing: /home/user/git/flutter_crash_sample_plugin/example/build/linux/debug/bundle/lib/libflutter_crash_sample_plugin_plugin.so
[        ] -- Installing: /home/user/git/flutter_crash_sample_plugin/example/build/linux/debug/bundle/data/flutter_assets
[        ] -- Installing: /home/user/git/flutter_crash_sample_plugin/example/build/linux/debug/bundle/data/flutter_assets/kernel_blob.bin
[  +26 ms] -- Installing: /home/user/git/flutter_crash_sample_plugin/example/build/linux/debug/bundle/data/flutter_assets/FontManifest.json
[        ] -- Installing: /home/user/git/flutter_crash_sample_plugin/example/build/linux/debug/bundle/data/flutter_assets/AssetManifest.json
[        ] -- Installing: /home/user/git/flutter_crash_sample_plugin/example/build/linux/debug/bundle/data/flutter_assets/packages
[        ] -- Installing: /home/user/git/flutter_crash_sample_plugin/example/build/linux/debug/bundle/data/flutter_assets/packages/cupertino_icons
[        ] -- Installing: /home/user/git/flutter_crash_sample_plugin/example/build/linux/debug/bundle/data/flutter_assets/packages/cupertino_icons/assets
[        ] -- Installing: /home/user/git/flutter_crash_sample_plugin/example/build/linux/debug/bundle/data/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf
[        ] -- Installing: /home/user/git/flutter_crash_sample_plugin/example/build/linux/debug/bundle/data/flutter_assets/NOTICES
[        ] -- Installing: /home/user/git/flutter_crash_sample_plugin/example/build/linux/debug/bundle/data/flutter_assets/fonts
[        ] -- Installing: /home/user/git/flutter_crash_sample_plugin/example/build/linux/debug/bundle/data/flutter_assets/fonts/MaterialIcons-Regular.otf
[  +10 ms] Building Linux application... (completed in 11,4s)
[ +460 ms] Observatory URL on device: http://127.0.0.1:38921/hZh3_kdtz9w=/
[   +3 ms] Caching compiled dill
[  +17 ms] Connecting to service protocol: http://127.0.0.1:38921/hZh3_kdtz9w=/
[   +1 ms] Launching a Dart Developer Service (DDS) instance at http://127.0.0.1:0, connecting to VM service at http://127.0.0.1:38921/hZh3_kdtz9w=/.
[ +511 ms] DDS is listening at http://127.0.0.1:44875/JawqVNQAAVA=/.
[  +83 ms] Successfully connected to service protocol: http://127.0.0.1:38921/hZh3_kdtz9w=/
[        ] Waiting for Linux to report its views...
[   +4 ms] Waiting for Linux to report its views... (completed in 4ms)
[   +7 ms] DevFS: Creating new filesystem on the device (null)
[  +14 ms] DevFS: Created new filesystem on the device (file:///tmp/exampleZGIHOS/example/)
[   +1 ms] Updating assets
[  +81 ms] Syncing files to device Linux...
[   +6 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[        ] <- recompile package:flutter_crash_sample_plugin_example/main.dart d23ce3c8-629f-42a1-a607-b6f4068c5321
[        ] <- d23ce3c8-629f-42a1-a607-b6f4068c5321
[        ] flutter: calling FlutterCrashSamplePlugin.sampleMethod()...
[ +115 ms] Updating files
ERROR - 2020-09-25 03:13:23.173629
PUT /JawqVNQAAVA=/
Error thrown by handler.

package:shelf_proxy/shelf_proxy.dart 55:39  proxyHandler.<fn>

ERROR - 2020-09-25 03:13:23.181524
PUT /JawqVNQAAVA=/
Error thrown by handler.

package:shelf_proxy/shelf_proxy.dart 55:39  proxyHandler.<fn>

ERROR - 2020-09-25 03:13:23.183426
PUT /JawqVNQAAVA=/
Error thrown by handler.

package:shelf_proxy/shelf_proxy.dart 55:39  proxyHandler.<fn>

ERROR - 2020-09-25 03:13:23.184652
PUT /JawqVNQAAVA=/
Error thrown by handler.

package:shelf_proxy/shelf_proxy.dart 55:39  proxyHandler.<fn>

ERROR - 2020-09-25 03:13:23.185928
PUT /JawqVNQAAVA=/
Error thrown by handler.

package:shelf_proxy/shelf_proxy.dart 55:39  proxyHandler.<fn>

[+1275 ms] DevFS: Sync finished
[        ] Syncing files to device Linux... (completed in 1 398ms)
[        ] Synced 1.8MB.
[        ] <- accept
[   +1 ms] Service protocol connection closed.
[        ] Lost connection to device.
^COk
flutter doctor -v
[✓] Flutter (Channel master, 1.22.0-10.0.pre.340, on Linux, locale ru_RU.UTF-8)
    • Flutter version 1.22.0-10.0.pre.340 at /media/user/1TB2DATAMASTER/crash_sample_flutter_proper
    • Framework revision 1fef5912cf (15 часов назад), 2020-09-23 21:37:08 -0700
    • Engine revision dd35b5b659
    • Dart version 2.10.0 (build 2.10.0-156.0.dev)

 
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
    • Android SDK at /home/user/Android/Sdk/
    • Platform android-30, build-tools 30.0.1
    • ANDROID_HOME = /home/user/Android/Sdk/
    • ANDROID_SDK_ROOT = /home/user/Android/Sdk/
    • Java binary at: /home/user/bin2/android-studio/as191/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • Ubuntu clang version 12.0.0-++20200919063826+1d8f2e52925-1~exp1~20200919164453.1942
    • cmake version 3.15.3
    • ninja version 1.8.2
    • pkg-config version 0.29.1

[✓] Android Studio (version 3.6)
    • Android Studio at /home/user/bin2/android-studio/as191/android-studio
    • Flutter plugin version 47.1.1
    • Dart plugin version 192.8052
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

[!] IntelliJ IDEA Community Edition (version 2019.3)
    • IntelliJ at /home/user/bin2/idea/ideaIC-2019.3/idea-IC-193.5233.102
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.dev/intellij-setup/#installing-the-plugins

[✓] Connected device (3 available)
    • Linux (desktop)  • linux      • linux-x64      • Linux
    • Web Server (web) • web-server • web-javascript • Flutter Tools
    • Chrome (web)     • chrome     • web-javascript • Google Chrome 85.0.4183.102

! Doctor found issues in 1 category.
Ok


Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work lista: desktopRunning on desktopc: crashStack traces logged to the consoleengineflutter/engine related. See also e: labels.found in release: 1.22Found to occur in 1.22has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-linuxBuilding on or for Linux specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions