canonical / flutter-snap

GNU General Public License v3.0
18 stars 8 forks source link

Issues with Flutter on Snap after recent upgrade #21

Closed TahaTesser closed 3 years ago

TahaTesser commented 3 years ago

I'm a Flutter triage member, we've seen some reports recently that shows some users are facing issues with Flutter on Snap

  1. https://github.com/flutter/flutter/issues/72456
  2. https://github.com/flutter/flutter/issues/72659
  3. https://github.com/flutter/flutter/issues/72703
  4. https://github.com/flutter/flutter/issues/72985

Some users did confirm they got Flutter working after switching to git clone method of installation Reference 1 Reference 2 Reference 3 Reference 4

Looks like people are facing issues when they're upgrading from the previous version Refrence

Reporting to find out if there is a bigger problem or it has been resolved already I personally tried to reproduce using Flutter on Snap, I didn't see any issues with my reproduction Ref

MarcusTomlinson commented 3 years ago

Hmm, that's no good. I've commented asking users to try a full re-install, let's see if that makes any difference. I too cannot reproduce these issues :/ I've tried multiple upgrade paths too without error.

The first sounds possibly Wayland-specific, the second about "Error connecting to the service protocol" is brand new to me, and the third may have been caused by a recent change (but again, hard to diagnose when you can't reproduce).

Let's see if we get any further response then.

metainfa commented 3 years ago

Hi @MarcusTomlinson

I removed manually installed flutter (no issue when manually installed) and installed from snap package, the issue is still here Can't run on Snap Flutter.

ps: I am using Wayland Session

neofetch ``` .-/+oossssoo+/-. akusa@bronod `:+ssssssssssssssssss+:` ------------ -+ssssssssssssssssssyyssss+- OS: Ubuntu 20.04.1 LTS x86_64 .ossssssssssssssssssdMMMNysssso. Kernel: 5.4.0-58-generic /ssssssssssshdmmNNmmyNMMMMhssssss/ Uptime: 6 days, 23 hours +ssssssssshmydMMMMMMMNddddyssssssss+ Packages: 1945 (dpkg), 14 (snap) /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/ Shell: zsh 5.8 .ssssssssdMMMNhsssssssssshNMMMdssssssss. Resolution: 1920x1080 +sssshhhyNMMNyssssssssssssyNMMMysssssss+ DE: GNOME ossyNMMMNyMMhsssssssssssssshmmmhssssssso WM: Mutter ossyNMMMNyMMhsssssssssssssshmmmhssssssso WM Theme: Adwaita +sssshhhyNMMNyssssssssssssyNMMMysssssss+ Theme: Yaru [GTK2/3] .ssssssssdMMMNhsssssssssshNMMMdssssssss. Icons: Yaru [GTK2/3] /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/ Terminal: gnome-terminal +sssssssssdmydMMMMMMMMddddyssssssss+ CPU: Intel i3-2100T (4) @ 2.500GHz /ssssssssssshdmNNNNmyNMMMMhssssss/ GPU: Intel 2nd Generation Core Processor Family .ossssssssssssssssssdMMMNysssso. Memory: 8080MiB / 15883MiB -+sssssssssssssssssyyyssss+- `:+ssssssssssssssssss+:` .-/+oossssoo+/-. ```
flutter doctor -v ``` ❯ flutter doctor -v [✓] Flutter (Channel dev, 1.26.0-1.0.pre, on Linux, locale ru_RU.UTF-8) • Flutter version 1.26.0-1.0.pre at /home/akusa/snap/flutter/common/flutter • Framework revision 63062a6443 (9 дней назад), 2020-12-13 23:19:13 +0800 • Engine revision 4797b06652 • Dart version 2.12.0 (build 2.12.0-141.0.dev) [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2) • Android SDK at /home/akusa/dst/android/sdk • Platform android-30, build-tools 30.0.2 • ANDROID_HOME = /home/akusa/dst/android/sdk • Java binary at: /usr/lib/jvm/java-8-openjdk-amd64/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_275-8u275-b01-0ubuntu1~20.04-b01) • All Android licenses accepted. [✓] Linux toolchain - develop for Linux desktop • clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final) • cmake version 3.10.2 • ninja version 1.8.2 • pkg-config version 0.29.1 [!] Android Studio (not installed) • Android Studio not found; download from https://developer.android.com/studio/index.html (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions). [✓] VS Code (version 1.52.1) • VS Code at /usr/share/code • Flutter extension version 3.17.0 [✓] Connected device (2 available) • C5503 (mobile) • EP74086AFF • android-arm • Android 5.1.1 (API 22) • Linux (desktop) • linux • linux-x64 • Linux ! Doctor found issues in 1 category. ```
flutter run -v -d linux ``` [ +130 ms] executing: [/home/akusa/snap/flutter/common/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ +67 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H [ ] 63062a64432cce03315d6b5196fda7912866eb37 [ +1 ms] executing: [/home/akusa/snap/flutter/common/flutter/] git tag --points-at 63062a64432cce03315d6b5196fda7912866eb37 [ +26 ms] Exit code 0 from: git tag --points-at 63062a64432cce03315d6b5196fda7912866eb37 [ ] 1.26.0-1.0.pre [ +84 ms] executing: [/home/akusa/snap/flutter/common/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +8 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/dev [ ] executing: [/home/akusa/snap/flutter/common/flutter/] git ls-remote --get-url origin [ +10 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ +74 ms] executing: [/home/akusa/snap/flutter/common/flutter/] git rev-parse --abbrev-ref HEAD [ +8 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] dev [ +97 ms] 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. [ +3 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. [ +111 ms] executing: /home/akusa/dst/android/sdk/platform-tools/adb devices -l [ +26 ms] 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. [ +2 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. [ +119 ms] executing: /home/akusa/dst/android/sdk/platform-tools/adb devices -l [ +38 ms] Skipping pub get: version match. [ +164 ms] Found plugin integration_test at /home/akusa/snap/flutter/common/flutter/packages/integration_test/ [ +235 ms] Found plugin integration_test at /home/akusa/snap/flutter/common/flutter/packages/integration_test/ [ +7 ms] Generating /home/akusa/git/bug/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java [ +161 ms] Initializing file store [ +17 ms] Skipping target: gen_localizations [ +6 ms] complete [ +8 ms] Launching lib/main.dart on Linux in debug mode... [ +10 ms] /home/akusa/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /home/akusa/snap/flutter/common/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root /home/akusa/snap/flutter/common/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names --experimental-emit-debug-metadata --output-dill /tmp/flutter_tools.VTNFYR/flutter_tool.FUGQXX/app.dill --packages /home/akusa/git/bug/.dart_tool/package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root --initialize-from-dill build/cache.dill.track.dill [ +39 ms] Building Linux application... [ +62 ms] <- compile package:bug/main.dart [ +5 ms] executing: [build/linux/debug/] cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug /home/akusa/git/bug/linux [ +33 ms] List of devices attached EP74086AFF device usb:5-2 product:C5503 model:C5503 device:C5503 transport_id:2 [ +11 ms] List of devices attached EP74086AFF device usb:5-2 product:C5503 model:C5503 device:C5503 transport_id:2 [ +183 ms] -- Configuring done [ ] -- Generating done [ ] -- Build files have been written to: /home/akusa/git/bug/build/linux/debug [ +5 ms] executing: ninja -C build/linux/debug install [ +68 ms] ninja: Entering directory `build/linux/debug' [+8446 ms] [1/5] Generating /home/akusa/git/bug/linux/flutter/ephemeral/libflutter_linux_gtk.so, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_basic_message_channel.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_binary_codec.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_binary_messenger.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_engine.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_json_message_codec.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_json_method_codec.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_method_call.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_method_channel.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_method_response.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_plugin_registrar.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_plugin_registry.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_standard_message_codec.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_standard_method_codec.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_string_codec.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_value.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_view.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/flutter_linux.h, _phony_ [ +31 ms] [ +190 ms] executing: [/home/akusa/snap/flutter/common/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ ] [ +114 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H [ ] [ +1 ms] 63062a64432cce03315d6b5196fda7912866eb37 [ ] [ +1 ms] executing: [/home/akusa/snap/flutter/common/flutter/] git tag --points-at 63062a64432cce03315d6b5196fda7912866eb37 [ ] [ +24 ms] Exit code 0 from: git tag --points-at 63062a64432cce03315d6b5196fda7912866eb37 [ ] [ ] 1.26.0-1.0.pre [ ] [ +71 ms] executing: [/home/akusa/snap/flutter/common/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ ] [ +9 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] [ ] origin/dev [ ] [ ] executing: [/home/akusa/snap/flutter/common/flutter/] git ls-remote --get-url origin [ ] [ +16 ms] Exit code 0 from: git ls-remote --get-url origin [ ] [ ] https://github.com/flutter/flutter.git [ ] [ +166 ms] executing: [/home/akusa/snap/flutter/common/flutter/] git rev-parse --abbrev-ref HEAD [ ] [ +32 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] [ +1 ms] dev [ ] [ +160 ms] 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. [ ] [ +5 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] Artifact Instance of 'MaterialFonts' is not required, skipping update. [ ] [ ] Artifact Instance of 'GradleWrapper' 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. [ +15 ms] [ ] 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. [ +6 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. [ ] [ ] 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. [ ] [ +187 ms] Initializing file store [ +2 ms] [ +11 ms] Done initializing file store [ ] [ +68 ms] Skipping target: gen_localizations [ ] [+4258 ms] Skipping target: unpack_linux [ ] [ +766 ms] Skipping target: kernel_snapshot [ ] [ +628 ms] Skipping target: debug_bundle_linux_assets [ ] [ +1 ms] Persisting file store [ ] [ +18 ms] Done persisting file store [ ] [ +15 ms] build succeeded. [ ] [ +16 ms] "flutter assemble" took 6 145ms. [ ] [ +244 ms] ensureAnalyticsSent: 237ms [ ] [ +3 ms] Running shutdown hooks [ ] [ ] Shutdown hooks complete [ +7 ms] [ ] exiting with code 0 [+1363 ms] [2/5] Building CXX object CMakeFiles/bug.dir/flutter/generated_plugin_registrant.cc.o [ +156 ms] [3/5] Building CXX object CMakeFiles/bug.dir/my_application.cc.o [ +202 ms] [4/5] Linking CXX executable intermediates_do_not_run/bug [ ] [4/5] Install the project... [ +33 ms] -- Install configuration: "Debug" [ +52 ms] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/bug [ ] -- Set runtime path of "/home/akusa/git/bug/build/linux/debug/bundle/bug" to "$ORIGIN/lib" [ ] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/icudtl.dat [ +3 ms] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/lib/libflutter_linux_gtk.so [ +256 ms] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets [ ] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets/packages [ ] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets/packages/cupertino_icons [ ] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets/packages/cupertino_icons/assets [ ] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf [ ] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets/fonts [ ] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets/fonts/MaterialIcons-Regular.otf [ +1 ms] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets/NOTICES [ +1 ms] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets/kernel_blob.bin [ +79 ms] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets/FontManifest.json [ ] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets/version.json [ ] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets/AssetManifest.json [ +27 ms] Building Linux application... (completed in 11,1s) [ +851 ms] Error waiting for a debug connection: The log reader stopped unexpectedly. [ +6 ms] Error launching application on Linux. [+3300 ms] "flutter run" took 16 229ms. [ +6 ms] #0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3) #1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:623:7) #2 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1134:12) #3 FlutterCommand.run. (package:flutter_tools/src/runner/flutter_command.dart:986:27) #4 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19) #5 AppContext.run (package:flutter_tools/src/base/context.dart:149:12) #6 CommandRunner.runCommand (package:args/command_runner.dart:197:13) #7 FlutterCommandRunner.runCommand. (package:flutter_tools/src/runner/flutter_command_runner.dart:274:9) #8 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19) #9 AppContext.run (package:flutter_tools/src/base/context.dart:149:12) #10 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:230:5) #11 run.. (package:flutter_tools/runner.dart:63:9) #12 run. (package:flutter_tools/runner.dart:61:12) #13 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19) #14 AppContext.run (package:flutter_tools/src/base/context.dart:149:12) #15 runInContext (package:flutter_tools/src/context_runner.dart:70:10) #16 main (package:flutter_tools/executable.dart:88:3) [ +32 ms] ensureAnalyticsSent: 30ms [ +3 ms] Running shutdown hooks [ ] Shutdown hook priority 4 [ +7 ms] Shutdown hooks complete [ ] exiting with code 1 ```
MarcusTomlinson commented 3 years ago

ps: I am using Wayland Session

Hmm, you’re saying the snap used to work on Wayland and then broke?

metainfa commented 3 years ago

Hmm, you’re saying the snap used to work on Wayland and then broke?

yes the snap worked, then after the update it broke

MarcusTomlinson commented 3 years ago

I just tried this on Wayland and still no error :/

log ```bash marcustomlinson@ubuntu-air:~/Projects/flutter/my_app$ echo $WAYLAND_DISPLAY wayland-0 marcustomlinson@ubuntu-air:~/Projects/flutter/my_app$ echo $XDG_SESSION_TYPE wayland marcustomlinson@ubuntu-air:~/Projects/flutter/my_app$ snap remove --purge flutter flutter removed marcustomlinson@ubuntu-air:~/Projects/flutter/my_app$ rm -rf ~/snap/flutter marcustomlinson@ubuntu-air:~/Projects/flutter/my_app$ snap install flutter --classic flutter 0+git.7c12b87 from Flutter Team✓ installed marcustomlinson@ubuntu-air:~/Projects/flutter/my_app$ flutter channel dev Initializing Flutter Downloading https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_1.22.5-stable.tar.xz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 116M 100 116M 0 0 196k 0 0:10:07 0:10:07 --:--:-- 3061k Flutter initialized Downloading Dart SDK from Flutter engine ae90085a8437c0ae94d6b5ad2741739ebc742cb4... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 171M 100 171M 0 0 2375k 0 0:01:14 0:01:14 --:--:-- 708k Building flutter tool... Flutter 1.22.5 • channel stable • https://github.com/flutter/flutter.git Framework • revision 7891006299 (12 days ago) • 2020-12-10 11:54:40 -0800 Engine • revision ae90085a84 Tools • Dart 2.10.4 Flutter assets will be downloaded from https://storage.googleapis.com. Make sure you trust this source! Downloading Material fonts... 5.3s Downloading Gradle Wrapper... 0.3s Downloading package sky_engine... 1.0s Downloading flutter_patched_sdk tools... 8.5s Downloading flutter_patched_sdk_product tools... 7.9s Downloading linux-x64 tools... 97.9s Downloading linux-x64/font-subset tools... 1.6s Switching to flutter channel 'dev'... git: From https://github.com/flutter/flutter git: * [new branch] Hixie-patch-3 -> origin/Hixie-patch-3 git: * [new branch] Hixie-patch-4 -> origin/Hixie-patch-4 git: + 022b333a08...8f89f6505b beta -> origin/beta (forced update) git: a12e2a473a..63062a6443 dev -> origin/dev git: * [new branch] devtools -> origin/devtools git: + cc49058cb8...667b5e2cb7 experimental_skshaper -> origin/experimental_skshaper (forced update) git: a12e2a473a..8f89f6505b flutter-1.25-candidate.8 -> origin/flutter-1.25-candidate.8 git: * [new branch] flutter-1.26-candidate.0 -> origin/flutter-1.26-candidate.0 git: * [new branch] flutter-1.26-candidate.1 -> origin/flutter-1.26-candidate.1 git: * [new branch] flutter-1.26-candidate.2 -> origin/flutter-1.26-candidate.2 git: * [new branch] flutter-1.26-candidate.3 -> origin/flutter-1.26-candidate.3 git: * [new branch] issue_72385_logging -> origin/issue_72385_logging git: 78cbfbff42..32741c0ec8 master -> origin/master git: * [new branch] revert-72304-flutter-engine-flutter-autoroll-ccbad057-c657-48c0-8ca6-c7a817e924d8-1607984013 -> origin/revert-72304-flutter-engine-flutter-autoroll-ccbad057-c657-48c0-8ca6-c7a817e924d8-1607984013 git: * [new tag] 1.25.0-8.1.pre -> 1.25.0-8.1.pre git: * [new tag] 1.26.0-1.0.pre -> 1.26.0-1.0.pre git: Switched to a new branch 'dev' git: Branch 'dev' set up to track remote branch 'dev' from 'origin'. Successfully switched to flutter channel 'dev'. To ensure that you're on the latest build from this channel, run 'flutter upgrade' marcustomlinson@ubuntu-air:~/Projects/flutter/my_app$ flutter upgrade Downloading Dart SDK from Flutter engine 4797b066524201e86d6bc5c110104c390899f264... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 173M 100 173M 0 0 3272k 0 0:00:54 0:00:54 --:--:-- 4380k Building flutter tool... Flutter is already up to date on channel dev Flutter 1.26.0-1.0.pre • channel dev • https://github.com/flutter/flutter.git Framework • revision 63062a6443 (9 days ago) • 2020-12-13 23:19:13 +0800 Engine • revision 4797b06652 Tools • Dart 2.12.0 (build 2.12.0-141.0.dev) marcustomlinson@ubuntu-air:~/Projects/flutter/my_app$ flutter config --enable-linux-desktop Setting "enable-linux-desktop" value to "true". You may need to restart any open editors for them to read new settings. marcustomlinson@ubuntu-air:~/Projects/flutter/my_app$ rm -rf linux/ build/ marcustomlinson@ubuntu-air:~/Projects/flutter/my_app$ flutter create ./ Recreating project .... linux/my_application.h (created) linux/CMakeLists.txt (created) linux/my_application.cc (created) linux/flutter/CMakeLists.txt (created) linux/main.cc (created) linux/.gitignore (created) Running "flutter pub get" in my_app... 2,549ms Wrote 9 files. All done! In order to run your application, type: $ cd . $ flutter run Your application code is in ./lib/main.dart. ^[[Amarcustomlinson@ubuntu-air:~/Projects/flutter/my_app$ flutter run Launching lib/main.dart on Linux in debug mode... Building Linux application... libEGL warning: DRI2: failed to create dri screen Syncing files to device Linux... 195ms Flutter run key commands. r Hot reload. 🔥🔥🔥 R Hot restart. h Repeat this help message. d Detach (terminate "flutter run" but leave application running). c Clear the screen q Quit (terminate the application on the device). An Observatory debugger and profiler on Linux is available at: http://127.0.0.1:38939/enO14xJ_tEg=/ Running with unsound null safety For more information see https://dart.dev/null-safety/unsound-null-safety Lost connection to device. marcustomlinson@ubuntu-air:~/Projects/flutter/my_app$ ```

@metainfa, could you please try the version in edge to see if that makes any difference:

snap refresh flutter --edge
metainfa commented 3 years ago

I tried the error remained:

❯ snap list|grep flutter
flutter              0+git.7c12b87-dirty         42      latest/edge      flutter-team*  classic
❯ flutter create bug
❯ cd bug
❯ flutter run      
Downloading linux-x64/linux-x64-flutter-gtk tools...                6,1s
Downloading linux-x64-profile/linux-x64-flutter-gtk tools...         3,8s
Downloading linux-x64-release/linux-x64-flutter-gtk tools...      2 805ms
Launching lib/main.dart on Linux in debug mode...
Building Linux application...                                           
Error waiting for a debug connection: The log reader stopped unexpectedly.
Error launching application on Linux.
❯ echo $WAYLAND_DISPLAY
wayland-0

~ 
❯ echo $XDG_SESSION_TYPE
wayland
flutter run -v ``` [ +129 ms] executing: [/home/akusa/snap/flutter/common/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ +59 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H [ ] 63062a64432cce03315d6b5196fda7912866eb37 [ +1 ms] executing: [/home/akusa/snap/flutter/common/flutter/] git tag --points-at 63062a64432cce03315d6b5196fda7912866eb37 [ +21 ms] Exit code 0 from: git tag --points-at 63062a64432cce03315d6b5196fda7912866eb37 [ ] 1.26.0-1.0.pre [ +87 ms] executing: [/home/akusa/snap/flutter/common/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +6 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/dev [ ] executing: [/home/akusa/snap/flutter/common/flutter/] git ls-remote --get-url origin [ +8 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ +85 ms] executing: [/home/akusa/snap/flutter/common/flutter/] git rev-parse --abbrev-ref HEAD [ +6 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] dev [ +89 ms] 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. [ +7 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. [ +130 ms] executing: /home/akusa/dst/android/sdk/platform-tools/adb devices -l [ +69 ms] List of devices attached [ +5 ms] 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. [ +2 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. [ +152 ms] Skipping pub get: version match. [ +180 ms] Found plugin integration_test at /home/akusa/snap/flutter/common/flutter/packages/integration_test/ [ +212 ms] Found plugin integration_test at /home/akusa/snap/flutter/common/flutter/packages/integration_test/ [ +6 ms] Generating /home/akusa/git/bug/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java [ +185 ms] Initializing file store [ +18 ms] Skipping target: gen_localizations [ +7 ms] complete [ +7 ms] Launching lib/main.dart on Linux in debug mode... [ +12 ms] /home/akusa/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /home/akusa/snap/flutter/common/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root /home/akusa/snap/flutter/common/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names --experimental-emit-debug-metadata --output-dill /tmp/flutter_tools.HQTWZI/flutter_tool.GPIUCD/app.dill --packages /home/akusa/git/bug/.dart_tool/package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root --initialize-from-dill build/cache.dill.track.dill [ +47 ms] Building Linux application... [ +26 ms] <- compile package:bug/main.dart [ +4 ms] executing: [build/linux/debug/] cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug /home/akusa/git/bug/linux [ +164 ms] -- Configuring done [ ] -- Generating done [ ] -- Build files have been written to: /home/akusa/git/bug/build/linux/debug [ +3 ms] executing: ninja -C build/linux/debug install [ +21 ms] ninja: Entering directory `build/linux/debug' [+7929 ms] [1/5] Generating /home/akusa/git/bug/linux/flutter/ephemeral/libflutter_linux_gtk.so, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_basic_message_channel.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_binary_codec.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_binary_messenger.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_engine.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_json_message_codec.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_json_method_codec.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_method_call.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_method_channel.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_method_response.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_plugin_registrar.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_plugin_registry.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_standard_message_codec.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_standard_method_codec.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_string_codec.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_value.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_view.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/flutter_linux.h, _phony_ [ +12 ms] [ +183 ms] executing: [/home/akusa/snap/flutter/common/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ ] [ +87 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H [ ] [ ] 63062a64432cce03315d6b5196fda7912866eb37 [ ] [ +1 ms] executing: [/home/akusa/snap/flutter/common/flutter/] git tag --points-at 63062a64432cce03315d6b5196fda7912866eb37 [ ] [ +20 ms] Exit code 0 from: git tag --points-at 63062a64432cce03315d6b5196fda7912866eb37 [ ] [ ] 1.26.0-1.0.pre [ ] [ +104 ms] executing: [/home/akusa/snap/flutter/common/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ ] [ +6 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] [ ] origin/dev [ ] [ ] executing: [/home/akusa/snap/flutter/common/flutter/] git ls-remote --get-url origin [ ] [ +6 ms] Exit code 0 from: git ls-remote --get-url origin [ ] [ ] https://github.com/flutter/flutter.git [ ] [ +72 ms] executing: [/home/akusa/snap/flutter/common/flutter/] git rev-parse --abbrev-ref HEAD [ ] [ +10 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] [ ] dev [ ] [ +132 ms] 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. [ ] [ +5 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. [ ] [ +179 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update. [ ] [ ] Artifact Instance of 'GradleWrapper' 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. [ +3 ms] [ ] 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. [ ] [ +185 ms] Initializing file store [ ] [ +15 ms] Done initializing file store [ ] [ +78 ms] Skipping target: gen_localizations [ ] [+3725 ms] Skipping target: unpack_linux [ ] [ +776 ms] Skipping target: kernel_snapshot [ ] [ +671 ms] Skipping target: debug_bundle_linux_assets [ ] [ +1 ms] Persisting file store [ ] [ +22 ms] Done persisting file store [ ] [ +11 ms] build succeeded. [ ] [ +25 ms] "flutter assemble" took 5 727ms. [ ] [ +286 ms] ensureAnalyticsSent: 276ms [ ] [ +3 ms] Running shutdown hooks [ ] [ ] Shutdown hooks complete [ ] [ +1 ms] exiting with code 0 [+1325 ms] [2/5] Building CXX object CMakeFiles/bug.dir/my_application.cc.o [ +134 ms] [3/5] Building CXX object CMakeFiles/bug.dir/flutter/generated_plugin_registrant.cc.o [ +182 ms] [4/5] Linking CXX executable intermediates_do_not_run/bug [ ] [4/5] Install the project... [ +13 ms] -- Install configuration: "Debug" [ +27 ms] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/bug [ ] -- Set runtime path of "/home/akusa/git/bug/build/linux/debug/bundle/bug" to "$ORIGIN/lib" [ ] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/icudtl.dat [ +1 ms] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/lib/libflutter_linux_gtk.so [ +233 ms] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets [ ] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets/packages [ ] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets/packages/cupertino_icons [ ] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets/packages/cupertino_icons/assets [ ] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf [ ] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets/fonts [ ] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets/fonts/MaterialIcons-Regular.otf [ +1 ms] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets/NOTICES [ +1 ms] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets/kernel_blob.bin [ +58 ms] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets/FontManifest.json [ ] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets/version.json [ ] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets/AssetManifest.json [ +19 ms] Building Linux application... (completed in 10,2s) [ +802 ms] Error waiting for a debug connection: The log reader stopped unexpectedly. [ +6 ms] Error launching application on Linux. [+4000 ms] "flutter run" took 16 074ms. [ +7 ms] #0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3) #1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:623:7) #2 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1134:12) #3 FlutterCommand.run. (package:flutter_tools/src/runner/flutter_command.dart:986:27) #4 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19) #5 AppContext.run (package:flutter_tools/src/base/context.dart:149:12) #6 CommandRunner.runCommand (package:args/command_runner.dart:197:13) #7 FlutterCommandRunner.runCommand. (package:flutter_tools/src/runner/flutter_command_runner.dart:274:9) #8 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19) #9 AppContext.run (package:flutter_tools/src/base/context.dart:149:12) #10 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:230:5) #11 run.. (package:flutter_tools/runner.dart:63:9) #12 run. (package:flutter_tools/runner.dart:61:12) #13 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19) #14 AppContext.run (package:flutter_tools/src/base/context.dart:149:12) #15 runInContext (package:flutter_tools/src/context_runner.dart:70:10) #16 main (package:flutter_tools/executable.dart:88:3) [ +30 ms] ensureAnalyticsSent: 26ms [ +2 ms] Running shutdown hooks [ ] Shutdown hook priority 4 [ +7 ms] Shutdown hooks complete [ ] exiting with code 1 ```
metainfa commented 3 years ago

I logged in under the X, the result is the same:

❯ echo $XDG_SESSION_TYPE
x11
❯ flutter run
Launching lib/main.dart on Linux in debug mode...
Building Linux application...                                           
Error waiting for a debug connection: The log reader stopped unexpectedly.
Error launching application on Linux.
MarcusTomlinson commented 3 years ago

From your "bug" project directory please try re-configuring and running the linux build like so:

rm -rf linux/ build/
flutter create ./
flutter run -v
metainfa commented 3 years ago

done, the result is the same:

flutter run -v ``` [ +186 ms] executing: [/home/akusa/snap/flutter/common/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ +82 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H [ ] 63062a64432cce03315d6b5196fda7912866eb37 [ +2 ms] executing: [/home/akusa/snap/flutter/common/flutter/] git tag --points-at 63062a64432cce03315d6b5196fda7912866eb37 [ +29 ms] Exit code 0 from: git tag --points-at 63062a64432cce03315d6b5196fda7912866eb37 [ ] 1.26.0-1.0.pre [ +121 ms] executing: [/home/akusa/snap/flutter/common/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +11 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/dev [ ] executing: [/home/akusa/snap/flutter/common/flutter/] git ls-remote --get-url origin [ +10 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ +105 ms] executing: [/home/akusa/snap/flutter/common/flutter/] git rev-parse --abbrev-ref HEAD [ +14 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] dev [ +133 ms] 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. [ +6 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. [ +184 ms] executing: /home/akusa/dst/android/sdk/platform-tools/adb devices -l [ +100 ms] List of devices attached [ +9 ms] 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. [ +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ +2 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. [ +192 ms] Skipping pub get: version match. [ +254 ms] Found plugin integration_test at /home/akusa/snap/flutter/common/flutter/packages/integration_test/ [ +320 ms] Found plugin integration_test at /home/akusa/snap/flutter/common/flutter/packages/integration_test/ [ +10 ms] Generating /home/akusa/git/bug/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java [ +219 ms] Initializing file store [ +19 ms] Skipping target: gen_localizations [ +8 ms] complete [ +11 ms] Launching lib/main.dart on Linux in debug mode... [ +15 ms] /home/akusa/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /home/akusa/snap/flutter/common/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root /home/akusa/snap/flutter/common/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names --experimental-emit-debug-metadata --output-dill /tmp/flutter_tools.RLIMJI/flutter_tool.OHVJZE/app.dill --packages /home/akusa/git/bug/.dart_tool/package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root --initialize-from-dill build/cache.dill.track.dill [ +47 ms] Building Linux application... [ +49 ms] <- compile package:bug/main.dart [ +73 ms] executing: [build/linux/debug/] cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug /home/akusa/git/bug/linux [ +426 ms] -- The CXX compiler identification is Clang 6.0.0 [ +11 ms] -- Check for working CXX compiler: /snap/flutter/42/usr/bin/clang++ [ +219 ms] -- Check for working CXX compiler: /snap/flutter/42/usr/bin/clang++ -- works [ +1 ms] -- Detecting CXX compiler ABI info [ +197 ms] -- Detecting CXX compiler ABI info - done [ +5 ms] -- Detecting CXX compile features [ +833 ms] -- Detecting CXX compile features - done [ +10 ms] -- Found PkgConfig: /snap/flutter/42/usr/bin/pkg-config (found version "0.29.1") [ +2 ms] -- Checking for module 'gtk+-3.0' [ +67 ms] -- Found gtk+-3.0, version 3.22.30 [ +179 ms] -- Checking for module 'glib-2.0' [ +45 ms] -- Found glib-2.0, version 2.56.4 [ +114 ms] -- Checking for module 'gio-2.0' [ +45 ms] -- Found gio-2.0, version 2.56.4 [ +100 ms] -- Checking for module 'blkid' [ +35 ms] -- Found blkid, version 2.31.1 [ +207 ms] -- Checking for module 'liblzma' [ +49 ms] -- Found liblzma, version 5.2.2 [ +128 ms] -- Configuring done [ +21 ms] -- Generating done [ +2 ms] -- Build files have been written to: /home/akusa/git/bug/build/linux/debug [ +18 ms] executing: ninja -C build/linux/debug install [ +23 ms] ninja: Entering directory `build/linux/debug' [+10808 ms] [1/6] Generating /home/akusa/git/bug/linux/flutter/ephemeral/libflutter_linux_gtk.so, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_basic_message_channel.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_binary_codec.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_binary_messenger.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_engine.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_json_message_codec.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_json_method_codec.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_method_call.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_method_channel.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_method_response.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_plugin_registrar.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_plugin_registry.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_standard_message_codec.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_standard_method_codec.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_string_codec.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_value.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/fl_view.h, /home/akusa/git/bug/linux/flutter/ephemeral/flutter_linux/flutter_linux.h, _phony_ [ +50 ms] [ +244 ms] executing: [/home/akusa/snap/flutter/common/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ ] [ +112 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H [ +20 ms] [ ] 63062a64432cce03315d6b5196fda7912866eb37 [ ] [ +1 ms] executing: [/home/akusa/snap/flutter/common/flutter/] git tag --points-at 63062a64432cce03315d6b5196fda7912866eb37 [ ] [ +26 ms] Exit code 0 from: git tag --points-at 63062a64432cce03315d6b5196fda7912866eb37 [ ] [ ] 1.26.0-1.0.pre [ ] [ +116 ms] executing: [/home/akusa/snap/flutter/common/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ ] [ +8 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] [ ] origin/dev [ ] [ ] executing: [/home/akusa/snap/flutter/common/flutter/] git ls-remote --get-url origin [ ] [ +9 ms] Exit code 0 from: git ls-remote --get-url origin [ ] [ ] https://github.com/flutter/flutter.git [ ] [ +117 ms] executing: [/home/akusa/snap/flutter/common/flutter/] git rev-parse --abbrev-ref HEAD [ ] [ +11 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] [ ] dev [ ] [ +154 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ ] [ +1 ms] 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. [ ] [ +6 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ +32 ms] [ ] 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. [ ] [ +139 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update. [ ] [ ] Artifact Instance of 'GradleWrapper' 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. [ +17 ms] [ ] 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. [ +1 ms] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ +3 ms] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ +13 ms] [ ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'PubDependencies' is not required, skipping update. [ ] [ +356 ms] Initializing file store [ ] [ +24 ms] Done initializing file store [ ] [ +110 ms] Skipping target: gen_localizations [ ] [+4954 ms] Skipping target: unpack_linux [ ] [+1118 ms] Skipping target: kernel_snapshot [ ] [ +756 ms] Skipping target: debug_bundle_linux_assets [ ] [ +1 ms] Persisting file store [ ] [ +27 ms] Done persisting file store [ ] [ +13 ms] build succeeded. [ +8 ms] [ +30 ms] "flutter assemble" took 7 589ms. [ +7 ms] [ +323 ms] ensureAnalyticsSent: 312ms [ ] [ +3 ms] Running shutdown hooks [ ] [ +1 ms] Shutdown hooks complete [ ] [ +3 ms] exiting with code 0 [+1615 ms] [2/6] Building CXX object CMakeFiles/bug.dir/main.cc.o [ +117 ms] [3/6] Building CXX object CMakeFiles/bug.dir/flutter/generated_plugin_registrant.cc.o [ +255 ms] [4/6] Building CXX object CMakeFiles/bug.dir/my_application.cc.o [ +242 ms] [5/6] Linking CXX executable intermediates_do_not_run/bug [ ] [5/6] Install the project... [ +30 ms] -- Install configuration: "Debug" [ ] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/bug [ ] -- Set runtime path of "/home/akusa/git/bug/build/linux/debug/bundle/bug" to "$ORIGIN/lib" [ ] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/icudtl.dat [ +3 ms] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/lib/libflutter_linux_gtk.so [ +353 ms] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets [ +1 ms] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets/packages [ ] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets/packages/cupertino_icons [ ] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets/packages/cupertino_icons/assets [ +1 ms] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf [ +1 ms] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets/fonts [ +1 ms] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets/fonts/MaterialIcons-Regular.otf [ +3 ms] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets/NOTICES [ +2 ms] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets/kernel_blob.bin [ +82 ms] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets/FontManifest.json [ ] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets/version.json [ ] -- Installing: /home/akusa/git/bug/build/linux/debug/bundle/data/flutter_assets/AssetManifest.json [ +43 ms] Building Linux application... (completed in 16,6s) [+1077 ms] Error waiting for a debug connection: The log reader stopped unexpectedly. [ +14 ms] Error launching application on Linux. [+4611 ms] "flutter run" took 23 775ms. [ +11 ms] #0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3) #1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:623:7) #2 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1134:12) #3 FlutterCommand.run. (package:flutter_tools/src/runner/flutter_command.dart:986:27) #4 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19) #5 AppContext.run (package:flutter_tools/src/base/context.dart:149:12) #6 CommandRunner.runCommand (package:args/command_runner.dart:197:13) #7 FlutterCommandRunner.runCommand. (package:flutter_tools/src/runner/flutter_command_runner.dart:274:9) #8 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19) #9 AppContext.run (package:flutter_tools/src/base/context.dart:149:12) #10 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:230:5) #11 run.. (package:flutter_tools/runner.dart:63:9) #12 run. (package:flutter_tools/runner.dart:61:12) #13 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19) #14 AppContext.run (package:flutter_tools/src/base/context.dart:149:12) #15 runInContext (package:flutter_tools/src/context_runner.dart:70:10) #16 main (package:flutter_tools/executable.dart:88:3) [ +83 ms] ensureAnalyticsSent: 79ms [ +2 ms] Running shutdown hooks [ ] Shutdown hook priority 4 [ +8 ms] Shutdown hooks complete [ ] exiting with code 1 ```
MarcusTomlinson commented 3 years ago

Thanks @metainfa, it appears this may not be snap specific. We’re seeing the same from another user using the flutter git repo directly: https://github.com/flutter/flutter/issues/72703#issuecomment-749529246

MarcusTomlinson commented 3 years ago

My apologies, seems the link I shared above may actually be unrelated...

MarcusTomlinson commented 3 years ago

Hi @metainfa, I've just pushed a new version of the snap, please could you see if it fixes the issue for you:

snap refresh flutter --stable
metainfa commented 3 years ago

Hi @MarcusTomlinson, works, no issue!

❯ snap list | grep flutter
flutter              0+git.7dd8c44               44      latest/edge      flutter-team*  classic
flutter doctor -v [✓] Flutter (Channel dev, 1.26.0-1.0.pre, on Linux, locale ru_RU.UTF-8) • Flutter version 1.26.0-1.0.pre at /home/akusa/snap/flutter/common/flutter • Framework revision 63062a6443 (3 недели назад), 2020-12-13 23:19:13 +0800 • Engine revision 4797b06652 • Dart version 2.12.0 (build 2.12.0-141.0.dev) [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2) • Android SDK at /home/akusa/dst/android/sdk • Platform android-30, build-tools 30.0.2 • ANDROID_HOME = /home/akusa/dst/android/sdk • Java binary at: /usr/lib/jvm/java-8-openjdk-amd64/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_275-8u275-b01-0ubuntu1~20.04-b01) • All Android licenses accepted. [✓] Linux toolchain - develop for Linux desktop • clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final) • cmake version 3.10.2 • ninja version 1.8.2 • pkg-config version 0.29.1 [!] Android Studio (not installed) • Android Studio not found; download from https://developer.android.com/studio/index.html (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions). [✓] VS Code (version 1.52.1) • VS Code at /usr/share/code • Flutter extension version 3.18.0 [✓] Connected device (1 available) • Linux (desktop) • linux • linux-x64 • Linux ! Doctor found issues in 1 category.
flutter run Downloading linux-x64/linux-x64-flutter-gtk tools... 7,1s Downloading linux-x64-profile/linux-x64-flutter-gtk tools... 3,8s Downloading linux-x64-release/linux-x64-flutter-gtk tools... 3,2s Launching lib/main.dart on Linux in debug mode... Building Linux application... Syncing files to device Linux... 317ms Flutter run key commands. r Hot reload. 🔥🔥🔥 R Hot restart. h Repeat this help message. d Detach (terminate "flutter run" but leave application running). c Clear the screen q Quit (terminate the application on the device). An Observatory debugger and profiler on Linux is available at: http://127.0.0.1:38571/P5rfb8Mqj7U=/ Running with unsound null safety For more information see https://dart.dev/null-safety/unsound-null-safety Lost connection to device.

ps: if need i can try snap stable channel

MarcusTomlinson commented 3 years ago

Excellent, thanks for the update @metainfa!