Skip to content

[Impeller] Aliasing artifacts when rendering some SVGs on some Android emulators. #167181

@amrgetment

Description

@amrgetment

Steps to Reproduce

Use an SVG asset and run it on an Android emulator
Or use the following repository:
https://github.com/amrgetment/delete_svg_impeller

Expected results

A smooth rendering to the SVG icon

Actual results

It is a pixelated SVG icon

Code sample

Code sample
SvgPicture.asset(
                  'assets/search_thin.svg',
                  width: 50,
                  height: 50,
                )

Screenshots or Video

Screenshots / Video demonstration

Impeller disabled:

Image

Impeller enabled:

Image

Logs

Logs
✓ Built build/app/outputs/flutter-apk/app-debug.apk
E/flutter (11991): [ERROR:flutter/impeller/toolkit/egl/egl.cc(56)] EGL Error: Success (12288) in ../../../flutter/impeller/toolkit/egl/display.cc:161
I/flutter (11991): [IMPORTANT:flutter/shell/platform/android/android_context_gl_impeller.cc(94)] Using the Impeller rendering backend (OpenGLES).
Connecting to VM Service at ws://127.0.0.1:56085/_kXJxKOkDjc=/ws
Connected to the VM Service.
E/libEGL  (11991): called unimplemented OpenGL ES API
I/Choreographer(11991): Skipped 143 frames!  The application may be doing too much work on its main thread.
I/te_svg_impelle(11991): Waiting for a blocking GC ProfileSaver
E/libEGL  (11991): called unimplemented OpenGL ES API
I/Choreographer(11991): Skipped 65 frames!  The application may be doing too much work on its main thread.
D/ProfileInstaller(11991): Installing profile for com.example.delete_svg_impeller

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.29.3, on macOS 15.3.1 24D70 darwin-x64, locale en-EG) [1,186ms]
    • Flutter version 3.29.3 on channel stable at /Users/amr/fvm/versions/3.29.2
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ea121f8859 (4 days ago), 2025-04-11 19:10:07 +0000
    • Engine revision cf56914b32
    • Dart version 3.7.2
    • DevTools version 2.42.3

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.1) [5.4s]
    • Android SDK at /Users/amr/Desktop/private/programming/sdks/Android/sdk
    • Platform android-35, build-tools 35.0.1
    • ANDROID_HOME = /Users/amr/Desktop/private/programming/sdks/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 21.0.5+-13047016-b750.29)
    • All Android licenses accepted.

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

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

[✓] Android Studio (version 2024.3) [60ms]
    • 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.5+-13047016-b750.29)

[✓] VS Code (version 1.99.2) [53ms]
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.108.0

[✓] VS Code (version 1.100.0-insider) [52ms]
    • VS Code at /Applications/Visual Studio Code - Insiders.app/Contents
    • Flutter extension version 3.109.20250401

[✓] Connected device (3 available) [7.6s]
    • Pixel 3a (mobile) • 127.0.0.1:6555 • android-x64    • Android 11 (API 30)
    • macOS (desktop)   • macos          • darwin-x64     • macOS 15.3.1 24D70 darwin-x64
    • Chrome (web)      • chrome         • web-javascript • Google Chrome 135.0.7049.85

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

• No issues found!

Metadata

Metadata

Assignees

Labels

a: qualityA truly polished experiencec: renderingUI glitches reported at the engine/skia or impeller rendering levele: impellerImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.found in release: 3.29Found to occur in 3.29found in release: 3.31Found to occur in 3.31p: flutter_svgThe Flutter SVG drawing packagesplatform-androidAndroid applications specificallyslimpellerEngine binary size reduction. go/slimpellerteam-engineOwned by Engine team

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions