Skip to content

Flutter 3.27.1 with Impeller enabled not running on VanillaIceCream preview image Android Emulator. #160439

Closed

Description

@rubenlop88

Steps to reproduce

  1. Download latest Android Studio
  2. Download latest Android SDK and Emulator
  3. Create new Flutter project
  4. Upgrade Gradle plugin to 8.7.3 using Android Studio assistant
  5. Run the project

Expected results

The project runs and the app is shown on the emulator

Actual results

The project runs but the app is stuck in the splash screen.

Code sample

Any new project.

Screenshots or Video

No response

Logs

Logs
✓ Built build/app/outputs/flutter-apk/app-debug.apk
Installing build/app/outputs/flutter-apk/app-debug.apk...
I/flutter (16651): [IMPORTANT:flutter/shell/platform/android/android_context_vk_impeller.cc(60)] Using the Impeller rendering backend (Vulkan).

Android Logcat:

2024-12-17 11:57:54.353 16651-16651 platform                com.example.prueba                   E  Failed to open rendernode: No such file or directory

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.27.1, on macOS 15.2 24C101 darwin-arm64, locale es-419)
    • Flutter version 3.27.1 on channel stable at /Users/rubenlopez/fvm/versions/3.27.1
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 17025dd882 (20 hours ago), 2024-12-17 03:23:09 +0900
    • Engine revision cb4b5fff73
    • Dart version 3.6.0
    • DevTools version 2.40.2

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0-rc3)
    • Android SDK at /Users/rubenlopez/Library/Android/sdk
    • Platform android-35, build-tools 35.0.0-rc3
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 21.0.3+-79915917-b509.11)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16C5032a
    • CocoaPods version 1.16.2

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

[✓] Android Studio (version 2024.2)
    • 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 21.0.3+-79915917-b509.11)

[✓] Android Studio (version 2023.3)
    • Android Studio at /Users/rubenlopez/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 17.0.10+0-17.0.10b1087.21-11572160)

[✓] IntelliJ IDEA Ultimate Edition (version 2024.3.1)
    • IntelliJ at /Users/rubenlopez/Applications/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 83.0.4
    • Dart plugin version 243.23177

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

[✓] Connected device (6 available)
    • SM A035M (mobile)               • R9HT905W5TL               • android-arm64  • Android 13 (API 33)
    • sdk gphone64 arm64 (mobile)     • emulator-5554             • android-arm64  • Android 14 (API 34) (emulator)
    • iPhone de Ruben (mobile)        • 00008110-000E6D5E36F8401E • ios            • iOS 18.2 22C152
    • macOS (desktop)                 • macos                     • darwin-arm64   • macOS 15.2 24C101 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad     • darwin         • macOS 15.2 24C101 darwin-arm64
    • Chrome (web)                    • chrome                    • web-javascript • Google Chrome 131.0.6778.140

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Activity

  1. jonahwilliams commented on Dec 17, 2024

    @jonahwilliams
    Contributor

    What is the Android emulator version / what device image are you using?

  2. alihassan143 commented on Dec 17, 2024

    @alihassan143

    use gradle distribution 8.11.1 and setting.gradle version to 8.2 it will work without issue

  3. rubenlop88 commented on Dec 17, 2024

    @rubenlop88
    Author

    What is the Android emulator version / what device image are you using?

    Properties
    avd.ini.displayname              Pixel 8 Pro API VanillaIceCream
    avd.ini.encoding                 UTF-8
    AvdId                            Pixel_8_Pro_API_VanillaIceCream
    disk.dataPartition.size          8G
    fastboot.chosenSnapshotFile      
    fastboot.forceChosenSnapshotBoot no
    fastboot.forceColdBoot           no
    fastboot.forceFastBoot           yes
    hw.accelerometer                 yes
    hw.arc                           false
    hw.audioInput                    yes
    hw.battery                       yes
    hw.camera.back                   virtualscene
    hw.camera.front                  emulated
    hw.cpu.ncore                     4
    hw.device.hash2                  MD5:d1059e12633e5f5c541cb4a6eac71aeb
    hw.device.manufacturer           Google
    hw.device.name                   pixel_8_pro
    hw.dPad                          no
    hw.gps                           yes
    hw.gpu.enabled                   yes
    hw.gpu.mode                      auto
    hw.initialOrientation            portrait
    hw.keyboard                      yes
    hw.lcd.density                   480
    hw.lcd.height                    2992
    hw.lcd.width                     1344
    hw.mainKeys                      no
    hw.ramSize                       2048
    hw.sdCard                        yes
    hw.sensors.orientation           yes
    hw.sensors.proximity             yes
    hw.trackBall                     no
    image.androidVersion.api         34
    image.androidVersion.codename    VanillaIceCream
    image.sysdir.1                   system-images/android-VanillaIceCream/google_apis_playstore/arm64-v8a/
    PlayStore.enabled                true
    runtime.network.latency          none
    runtime.network.speed            full
    showDeviceFrame                  yes
    skin.dynamic                     yes
    tag.display                      Google Play
    tag.displaynames                 Google Play
    tag.id                           google_apis_playstore
    tag.ids                          google_apis_playstore
    vm.heapSize                      256
    
  4. rubenlop88 commented on Dec 17, 2024

    @rubenlop88
    Author
    Captura de pantalla 2024-12-17 a la(s) 1 36 05 p  m
  5. rubenlop88 commented on Dec 17, 2024

    @rubenlop88
    Author

    @alihassan143 I made the change but I still have the same problem.

  6. rubenlop88 commented on Dec 17, 2024

    @rubenlop88
    Author

    @jonahwilliams Do you need anything else?

  7. jonahwilliams commented on Dec 17, 2024

    @jonahwilliams
    Contributor

    Was this android emulator created with the stable API 35 android emulator image or the vanilla ice cream image?

  8. rubenlop88 commented on Dec 17, 2024

    @rubenlop88
    Author

    @jonahwilliams Vanilla Ice Cream image. What's the difference? Should I try with the API 35 image?

    Captura de pantalla 2024-12-17 a la(s) 5 38 12 p  m
  9. jonahwilliams commented on Dec 17, 2024

    @jonahwilliams
    Contributor

    I thought (I could be wrong) VanillaIceCream was the pre-release image and API 35 is the "stable" version.

  10. rubenlop88 commented on Dec 17, 2024

    @rubenlop88
    Author

    Oh, I didn't know that. I'll test with the API 35 image.

  11. jonahwilliams commented on Dec 17, 2024

    @jonahwilliams
    Contributor

    I have a similar setup and it is working for me, though I can also reproduce #160442 and the rendering is veryyyyy slow.

  12. rubenlop88 commented on Dec 18, 2024

    @rubenlop88
    Author

    It works with the API 35 image. Is this the expected behavior? Should this be documented as: 'Impeller only works on certain images'? Or should Impeller have worked with the preview image as well? I can also reproduce issue 160442.

  13. rubenlop88 commented on Dec 18, 2024

    @rubenlop88
    Author
  14. jonahwilliams commented on Dec 18, 2024

    @jonahwilliams
    Contributor

    It should have worked with the preview image too. But I think something significant changed between the API 34 and 35 images as 35 seems to be the first image that claims vulkan support on macOS. I don't think there is any action we (flutter) can take here.

  15. changed the title [-]Flutter 3.27.1 with Impeller enabled not running on Android Emulator[/-] [+]Flutter 3.27.1 with Impeller enabled not running on VanillaIceCream preview image Android Emulator.[/+] on Dec 18, 2024
  16. safwanjmuhammedtechnopalette commented on Dec 27, 2024

    @safwanjmuhammedtechnopalette
  17. shimulxx commented on Jan 1, 2025

    @shimulxx

    only solve to use by following line on android AndroidManifest.xml in application:

    <meta-data
                android:name="io.flutter.embedding.android.EnableImpeller"
                android:value="false" />
    
  18. shimulxx commented on Jan 2, 2025

    @shimulxx

    PC with nvidia gpu installed works well, but amd gpu is not working. I tested this situation on linux mint os.

  19. added
    P3Issues that are less important to the Flutter project
    on Jan 6, 2025
  20. locked as off topic and limited conversation to collaborators on Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecte: impellerImpeller rendering backend issues and features requeststeam-engineOwned by Engine teamtriaged-engineTriaged by Engine team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions