Open thiagocarvalhodev opened 1 year ago
Hello, I have the same error in android : Exception: Decoded image has been disposed.
flutter: 3.3.10 cached_network_image : 3.2.3
#0 Codec.getNextFrame (dart:ui/painting.dart:2002:7)
#1 MultiImageStreamCompleter._decodeNextFrameAndSchedule (package:cached_network_image/src/image_provider/multi_image_stream_completer.dart:127:34)
#2 MultiImageStreamCompleter.addListener (package:cached_network_image/src/image_provider/multi_image_stream_completer.dart:170:42)
#3 ImageStream.addListener (package:flutter/src/painting/image_stream.dart:373:26)
#4 _ImageState._listenToStream (package:flutter/src/widgets/image.dart:1209:19)
#5 _ImageState.didChangeDependencies (package:flutter/src/widgets/image.dart:1068:7)
Thanks for your help
I'm facing the same issue. Not sure how to reproduce but I'm seeing some reports on the crashlytics tool we use
flutter 3.10 cached_network_image 3.3.0
Non-fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: Exception: Decoded image has been disposed. Error thrown resolving an image frame. at Codec.getNextFrame(dart:ui) at MultiImageStreamCompleter._decodeNextFrameAndSchedule(multi_image_stream_completer.dart:127) at MultiImageStreamCompleter.addListener(multi_image_stream_completer.dart:170) at ImageStream.addListener(image_stream.dart:376)
I also getting same issue in cached_network_image: ^3.4.1 library,Fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: Exception: Decoded image has been disposed. Error thrown . at _NativeCodec.getNextFrame(dart:ui) at MultiImageStreamCompleter._decodeNextFrameAndSchedule(multi_image_stream_completer.dart:133) at MultiImageStreamCompleter.addListener(multi_image_stream_completer.dart:176) at ImageStream.addListener(image_stream.dart:402) at _DecorationImagePainter.paint(decoration_image.dart:371) at _BoxDecorationPainter._paintBackgroundImage(box_decoration.dart:488)
🐛 Bug Report
Expected behavior
Should load the image correctly.
Reproduction steps
I'm checking how much memory is currently in the cache and then cleaning the cache when full.
I'm receiving the following logs on Crashlytics:
Check the code:
Configuration
Version: 3.2.3
Platform: