Skip to content

Image loading fails on Xiaomi devices running Android 15 in Flutter 3.27.4 (local & network images) #169183

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ffdsss opened this issue May 21, 2025 · 2 comments
Labels
r: fixed Issue is closed as already fixed in a newer version

Comments

@ffdsss
Copy link

ffdsss commented May 21, 2025

Steps to reproduce

Flutter version: 3.27.4
Device: Xiaomi phone
Android version: 15
Issue: Local and network image loading fails

On Xiaomi devices running Android 15, both local and network images fail to load in Flutter 3.27.4. This issue does not occur on:

Samsung Android 15

Samsung Android 13

Xiaomi Android 13

It appears to be device-specific to Xiaomi on Android 15.

Expected results

Error logs:

E/FlutterJNI( 1593): Failed to decode image
E/FlutterJNI( 1593): android.graphics.ImageDecoder$DecodeException: Failed to create image decoder with message 'unimplemented' Input contained an error.
E/FlutterJNI( 1593): at android.graphics.ImageDecoder.nCreate(Native Method)
E/FlutterJNI( 1593): at android.graphics.ImageDecoder.-$$Nest$smnCreate(Unknown Source:0)
E/FlutterJNI( 1593): at android.graphics.ImageDecoder$ByteBufferSource.createImageDecoder(ImageDecoder.java:254)
E/FlutterJNI( 1593): at android.graphics.ImageDecoder.decodeBitmapImpl(ImageDecoder.java:1860)
E/FlutterJNI( 1593): at android.graphics.ImageDecoder.decodeBitmap(ImageDecoder.java:1852)
E/FlutterJNI( 1593): at io.flutter.embedding.engine.FlutterJNI.decodeImage(FlutterJNI.java:561)

Actual results

Error logs:

E/FlutterJNI( 1593): Failed to decode image
E/FlutterJNI( 1593): android.graphics.ImageDecoder$DecodeException: Failed to create image decoder with message 'unimplemented' Input contained an error.
E/FlutterJNI( 1593): at android.graphics.ImageDecoder.nCreate(Native Method)
E/FlutterJNI( 1593): at android.graphics.ImageDecoder.-$$Nest$smnCreate(Unknown Source:0)
E/FlutterJNI( 1593): at android.graphics.ImageDecoder$ByteBufferSource.createImageDecoder(ImageDecoder.java:254)
E/FlutterJNI( 1593): at android.graphics.ImageDecoder.decodeBitmapImpl(ImageDecoder.java:1860)
E/FlutterJNI( 1593): at android.graphics.ImageDecoder.decodeBitmap(ImageDecoder.java:1852)
E/FlutterJNI( 1593): at io.flutter.embedding.engine.FlutterJNI.decodeImage(FlutterJNI.java:561)

Code sample

Image

Image

Image

Image

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[Paste your output here]
@danagbemava-nc danagbemava-nc added the in triage Presently being triaged by the triage team label May 21, 2025
@danagbemava-nc
Copy link
Member

Hi @ffdsss, stable 3.27 is an older version of flutter. Kindly upgrade to the latest stable version (3.32.0) to see if you still experience this issue.

If you still experience this issue on the latest stable version, please provide the following information

  • The updated output of flutter doctor -v
  • The gpu of the device you're experiencing the issue with
  • Are you using impeller or skia?

@danagbemava-nc danagbemava-nc added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 21, 2025
@ffdsss
Copy link
Author

ffdsss commented May 22, 2025

I solved this problem after upgrading to version 3.32.0-0.5pre,thank you

@ffdsss ffdsss closed this as completed May 22, 2025
@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 22, 2025
@danagbemava-nc danagbemava-nc added r: fixed Issue is closed as already fixed in a newer version and removed in triage Presently being triaged by the triage team labels May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
r: fixed Issue is closed as already fixed in a newer version
Projects
None yet
Development

No branches or pull requests

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy