Closed TahaTesser closed 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.
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
ps: I am using Wayland Session
Hmm, you’re saying the snap used to work on Wayland and then broke?
Hmm, you’re saying the snap used to work on Wayland and then broke?
yes the snap worked, then after the update it broke
I just tried this on Wayland and still no error :/
@metainfa, could you please try the version in edge to see if that makes any difference:
snap refresh flutter --edge
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
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.
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
done, the result is the same:
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
My apologies, seems the link I shared above may actually be unrelated...
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
Hi @MarcusTomlinson, works, no issue!
❯ snap list | grep flutter
flutter 0+git.7dd8c44 44 latest/edge flutter-team* classic
ps: if need i can try snap stable channel
Excellent, thanks for the update @metainfa!
I'm a Flutter triage member, we've seen some reports recently that shows some users are facing issues with Flutter on Snap
Some users did confirm they got Flutter working after switching to
git clone
method of installation Reference 1 Reference 2 Reference 3 Reference 4Looks 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