Skip to content
This repository was archived by the owner on Jun 25, 2023. It is now read-only.

Bad State: Stream has already been listened to. #62

@jakehockey10

Description

@jakehockey10

I'm running into the error: Bad State: Stream has already been listened to. when attempting to view an image after the first build. It occurs in the _loadAsync method of _image_provider_io.dart. I was wondering how to diagnose this and how to fix it. Could I get some help getting pointed in the right direction? It seems to behave slightly better if I make the following changes:

image

But I'm not sure if this is appropriate, and I have to leave the page and come back to get the image widget to "try again."

Not sure if it is related or not, but if there are "enough" widgets, I can get the app to throw an out-of-memory exception as well. This current test was putting ~80 image widgets into a GridView.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions