Skip to content

Multiple issues running Flutter on Linux 5.5 #49185

@antonvalletas

Description

@antonvalletas

Edit from @dnfield: There is a known and resolved Dart bug on Linux 5.5+ that has been fixed on the Flutter master channel. The fix for this bug has not made it into dev, beta, or stable yet. The team is working on that. If you are experiencing this issue and wish to use Flutter, your options are to downgrade your Linux Kernel to 5.4 or to use the master channel. I will update this bug again when the fix for this is available on non-master channels.

Steps to Reproduce

  1. Run any Linux distro on Kernel 5.5rc7
  2. Execute debug on any open emulator on VScode, Android Studio...
  3. Progress will get stuck on "syncing files to device" and the emulator will get stuck on a blank screen. This does not happen on Kernel 5.4.13

Logs

[✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Linux, locale en_US.UTF-8)
    • Flutter version 1.12.13+hotfix.5 at /opt/flutter
    • Framework revision 27321ebbad (6 weeks ago), 2019-12-10 18:15:01 -0800
    • Engine revision 2994f7e1e6
    • Dart version 2.7.0

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /home/valletas/Android/Sdk/
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • Java binary at: /opt/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Android Studio (version 3.5)
    • Android Studio at /opt/android-studio
    • Flutter plugin version 42.1.1
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] IntelliJ IDEA Ultimate Edition (version 2019.3)
    • IntelliJ at /opt/intellij-idea-ultimate-edition
    • Flutter plugin version 42.1.4
    • Dart plugin version 193.5731

[✓] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)

• No issues found!


Linux manjaro 5.5.0-1-MANJARO #1 SMP PREEMPT Mon Jan 20 09:01:28 UTC 2020 x86_64 GNU/Linux

This only happens on kernel 5.5rc7 as stated. On previous kernel 5.4.13, running or debugging Flutter apps works perfectly.
I have already tried killing adb server, restarting, recreating/wiping the emulators... Also, it wont work on a normal device either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    customer: crowdAffects or could affect many people, though not necessarily a specific customer.dependency: dartDart team may need to help usplatform-androidAndroid applications specificallyplatform-linuxBuilding on or for Linux specificallyt: gradle"flutter build" and "flutter run" on AndroidtoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions