fluttercommunity / flutter_blurhash

Compact representation of a placeholder for an image. Encode a blurry image under 30 caracters for instant display like used by Medium. Maintainer: @Solido
https://pub.dev/packages/flutter_blurhash
MIT License
528 stars 66 forks source link

Cannot clone a disposed image #46

Open YDA93 opened 2 years ago

YDA93 commented 2 years ago

I know this is a duplicated issue.

Please consider a fix. Its causing headache while in development (non fatal exception). As well as in production it's sending so many reports to Crashlytics.

Non-fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: Bad state: Cannot clone a disposed image.
The clone() method of a previously-disposed Image was called. Once an Image object has been disposed, it can no longer be used to create handles, as the underlying data may have been released.. Error thrown Instance of 'ErrorDescription'.
       at Image.clone(Image.java)
       at ImageInfo.clone(image_stream.dart:51)
       at ImageStreamCompleter.setImage(image_stream.dart:635)Ï

Screen Shot 2022-04-21 at 10 38 12 PM

YDA93 commented 2 years ago

Same error but this time has led to a crash

Screen Shot 2022-04-24 at 4 18 26 AM