Skip to content

Rendering Issues on honor 20 / Realme 11. #160522

Closed

Description

@ibrahimEltayfe

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!

Activity

  1. added
    from: performance template
    on Dec 18, 2024
  2. changed the title [-]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[/+] on Dec 18, 2024
  3. jonahwilliams commented on Dec 18, 2024

    @jonahwilliams
    Contributor

    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.

  4. added
    e: impeller
    team-engine
    on Dec 18, 2024
  5. changed the title [-]Rendering Issues and janks on Android with Impeller after Upgrading to Flutter 3.27[/-] [+]Rendering Issues on honor 20 / Realme 11.[/+] on Dec 18, 2024
  6. ahmedkamel237 commented on Dec 19, 2024

    @ahmedkamel237

    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,

  7. jonahwilliams commented on Dec 19, 2024

    @jonahwilliams
    Contributor

    Could you please explain why support for my device was removed in Impeller?

    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.

    Additionally, I’m curious why Flutter doesn’t automatically fall back to Skia on unsupported devices.

    This is in fact exactly how it works.

  8. self-assigned this
    on Jan 6, 2025
  9. added
    P1
    triaged-engine
    and removed
    from: performance template
    on Jan 6, 2025
  10. jonahwilliams commented on Jan 7, 2025

    @jonahwilliams
    Contributor

    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.

  11. ibrahimEltayfe commented on Jan 8, 2025

    @ibrahimEltayfe
    Author

    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.

    The rendering issues are no longer present on these devices:
    Realme 11 Pro 5G
    Honor 20 Pro

    Everything is working smoothly now.

    Flutter 3.28.0-2.0.pre.38645 • channel master • https://github.com/flutter/flutter.git
    Framework • revision b5df29072d (7 hours ago) • 2025-01-07 21:50:21 -0800
    Engine • revision b5df29072d
    Tools • Dart 3.7.0 (build 3.7.0-267.0.dev) • DevTools 2.41.0
    
  12. jonahwilliams commented on Jan 8, 2025

    @jonahwilliams
    Contributor

    @ibrahimEltayfe is that all of them? or were there still issues present on master?

  13. added
    waiting for response
    on Jan 9, 2025
  14. ibrahimEltayfe commented on Jan 9, 2025

    @ibrahimEltayfe
    Author

    @ibrahimEltayfe is that all of them? or were there still issues present on master?

    Yes, that's all. The rendering issues are resolved.

  15. removed
    waiting for response
    on Jan 9, 2025
  16. github-actions commented on Jan 23, 2025

    @github-actions

    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 -v and a minimal reproduction of the issue.

  17. locked as resolved and limited conversation to collaborators on Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1e: impellerteam-enginetriaged-engine

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions