Baseflow / Baseflow/flutter_cached_network_image
Failed to decode image
- Dominant language
- Dart
- Stars
- 2.6k
- Forks
- 731
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 1
Description
## 🐛 Bug Report
I found a bug on my android simulator, but I can't reproduce it. This bug only shows on CachedNetworkImage widget, Image.network works fine.
### Expected behavior
When the bug happen, the image won't be shown and the console shows bug log.I run 'flutter clean' the bug still exists, but when I clean the app cache on simulator, the bug has been resolved, app works fine
Here is the bug log
```
Another exception was thrown: Exception: Invalid image data
D/EGL_emulation( 5595): app_time_stats: avg=93.80ms min=7.37ms max=2484.41ms count=32
E/FlutterJNI( 5595): Failed to decode image
E/FlutterJNI( 5595): android.graphics.ImageDecoder$DecodeException: Failed to create image decoder with message 'unimplemented'Input contained an error.
E/FlutterJNI( 5595): at android.graphics.ImageDecoder.nCreate(Native Method)
E/FlutterJNI( 5595): at android.graphics.ImageDecoder.access$200(ImageDecoder.java:172)
E/FlutterJNI( 5595): at android.graphics.ImageDecoder$ByteBufferSource.createImageDecoder(ImageDecoder.java:242)
E/FlutterJNI( 5595): at android.graphics.ImageDecoder.decodeBitmapImpl(ImageDecoder.java:1870)
E/FlutterJNI( 5595): at android.graphics.ImageDecoder.decodeBitmap(ImageDecoder.java:1863)
E/FlutterJNI( 5595): at io.flutter.embedding.engine.FlutterJNI.decodeImage(FlutterJNI.java:524)
```
### Reproduction steps
I can't reproduce it, but I guess it's related to cache
### Configuration
**Version:** 3.2.1
**Platform:**
- [ ] :iphone: iOS
- [ ] :robot: Android
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.