Skip to content
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

Bad state: Cannot clone a disposed image #40

Open
Kevin301099 opened this issue Feb 24, 2022 · 6 comments
Open

Bad state: Cannot clone a disposed image #40

Kevin301099 opened this issue Feb 24, 2022 · 6 comments

Comments

@Kevin301099
Copy link

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.

Navigate new screen and back to blur hash screen, I am getting this error

@YDA93
Copy link

YDA93 commented Apr 5, 2022

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.

Navigate new screen and back to blur hash screen, I am getting this error

Have you found any workaround?

@felipecastrosales
Copy link

After installing and applying the flutter_blurhash package, I started encountering this error frequently in my console.

I believe this issue might be related to the usage of Slivers or widget rebuildings.

Any news about this?

@felipecastrosales
Copy link

Any expectation about this? @Solido

@felipecastrosales
Copy link

Hey folks, I created a minimal reproducible example for this, check the video below with an easy way to reproduce this:

BAD_STATE.mp4

For more details and to see the code example above:

@kienvtqhi
Copy link

kienvtqhi commented Jan 10, 2024

Use BlurHashImage instead of. It worked for me

Before:
BlurHash(hash: userProfile.mainPhotoBlurhash)

After:
Image( image: BlurHashImage(userProfile.mainPhotoBlurhash), fit: BoxFit.cover, )

@felipecastrosales
Copy link

@kienvtqhi can you add evidence in video here?

Use BlurHashImage instead of. It worked for me

Before: BlurHash(hash: userProfile.mainPhotoBlurhash)

After: Image( image: BlurHashImage(userProfile.mainPhotoBlurhash), fit: BoxFit.cover, )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants