Repository navigation
Closed
Labels
P1High-priority issues at the top of the work liste: impellerImpeller rendering backend issues and features requeststeam-engineOwned by Engine teamtriaged-engineTriaged by Engine team
Description
Steps to reproduce
After updating to the latest version of Flutter and enabling the Impeller rendering engine for Android, I have noticed significant rendering issues on some devices, These issues are present during normal app usage
- Update Flutter to the latest stable version (version 3.27.0).
- Enable Impeller as the rendering engine (used by default).
- Build and run the app on these devices:
(honor_20_pro, Android version: 10).
(Realme 11 pro 5g, Android version: 14).
(Redmi note 9s, Android version: 12).
on [Redmi note 9s]
There are general rendering issues appearing throughout the app, particularly in lists and during animations.
on [Realme 11 pro 5g, honor_20_pro]
There are rendering issues especially noticeable in bottom sheets. These may include visual glitches or graphical distortions when bottom sheets are opened or closed.
Code sample
Overall
Performance profiling on master channel
- The issue still persists on the master channel
Timeline Traces
Timeline Traces JSON
For Redmi note 9s
[dart_devtools_2024-12-18_18_40_42.892.json](https://github.com/user-attachments/files/18186183/dart_devtools_2024-12-18_18_40_42.892.json)
For honor 20 pro
-will provide it tomorrow-
For Realme 11 pro
-will provide it tomorrow-
Video demonstration
Video demonstration
- honor_20_pro - using impeller
honor_20_pro.mp4
- Realme 11 pro 5g - using impeller
Realme_11_pro_5g.mov
- Redmi note 9s - using impeller (Lists and animations here are laggy)
Redmi-note-9s-using-impeller.mp4
- Redmi note 9s - using Skia
Redmi-note-9s-using-skia.mp4
What target platforms are you seeing this bug on?
Android
OS/Browser name and version | Device information
-
honor 20 pro
- Android version: 10
- CPU: Huawei Kirin 980
- Model: YAL-L41
-
Realme 11 Pro 5g
- Android version: 14
- CPU: MediaTek Dimensity 7050
- Model: RMX3741
-
Redmi note 9s
- Android version: 12
- CPU: Octa-core-Max 2.23 GHz
- Model: M2003J6A1G
Does the problem occur on emulator/simulator as well as on physical devices?
Unknown
Is the problem only reproducible with Impeller?
Yes
Logs
No response
Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.27.0, on macOS 14.1.2 23B92 darwin-x64, locale
en-EG)
• Flutter version 3.27.0 on channel stable at
/Users/baianat/Documents/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 8495dee1fd (8 days ago), 2024-12-10 14:23:39 -0800
• Engine revision 83bacfc525
• Dart version 3.6.0
• DevTools version 2.40.2
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /Users/baianat/Library/Android/sdk
• Platform android-34, build-tools 34.0.0
• ANDROID_HOME = /Users/baianat/Library/Android/sdk
• ANDROID_SDK_ROOT = /Users/baianat/Library/Android/sdk
• Java binary at:
/Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home/bin/java
• Java version Java(TM) SE Runtime Environment (build 17.0.12+8-LTS-286)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15A507
• CocoaPods version 1.14.3
[✓] 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+-79915915-b509.11)
[✓] Connected device (2 available)
• macOS (desktop) • macos • darwin-x64 • macOS 14.1.2 23B92 darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 131.0.6778.140
! Error: Browsing on the local area network for Abdelrahman’s iPhone. Ensure
the device is unlocked and attached with a cable or associated with the
same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code
-27)
[✓] Network resources
• All expected network resources are available.
• No issues found!Reacted by Ahmed Kamel, karim elsayed and MTMVIDA18
Reacted by Abdelrahman Younis
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work liste: impellerImpeller rendering backend issues and features requeststeam-engineOwned by Engine teamtriaged-engineTriaged by Engine team
Activity
[-]Rendering Issues and Junks on Android with Impeller after Upgrading to Flutter 3.27[/-][+]Rendering Issues and janks on Android with Impeller after Upgrading to Flutter 3.27[/+]jonahwilliams commentedon Dec 18, 2024
The Redmi Note 9S was removed from the supported device list in 3.27.1, so I'd recommend updating.
The other two devices we'll need to investigate.
[-]Rendering Issues and janks on Android with Impeller after Upgrading to Flutter 3.27[/-][+]Rendering Issues on honor 20 / Realme 11.[/+]ahmedkamel237 commentedon Dec 19, 2024
Inquiry About Impeller Support and Skia Fallback for Redmi Note 9s
Hello @jonahwilliams,
I noticed that my device, the Redmi Note 9s, is no longer supported when using Impeller. However, it works perfectly fine with Skia as the rendering engine.
Could you please explain why support for my device was removed in Impeller? Additionally, I’m curious why Flutter doesn’t automatically fall back to Skia on unsupported devices. Wouldn’t such a fallback mechanism improve compatibility and ensure better user experiences on a wider range of devices?
Thank you for all your efforts and dedication to improving Flutter!
Best regards,
jonahwilliams commentedon Dec 19, 2024
The driver present on the device was failing to compile several of our shaders and reporting error messages that indicate some minor level of spec violation. Given the risk of a cherry pick, I decided to disable these devices until we have more time to investigate them.
This is in fact exactly how it works.
[Impeller] protect onscreen cmd buffer with render ready semaphore. (#…
jonahwilliams commentedon Jan 7, 2025
I've landed a fix for several related rendering problems on master channel. I haven't verified each different device + driver combo, so if you have time I'd appreciate if you could test and confirm if you're still seeing the issue.
ibrahimEltayfe commentedon Jan 8, 2025
The rendering issues are no longer present on these devices:
Realme 11 Pro 5G
Honor 20 Pro
Everything is working smoothly now.
jonahwilliams commentedon Jan 8, 2025
@ibrahimEltayfe is that all of them? or were there still issues present on master?
ibrahimEltayfe commentedon Jan 9, 2025
Yes, that's all. The rendering issues are resolved.
github-actions commentedon Jan 23, 2025
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.