Skip to content

A Dart object attempted to access a native peer, but the native peer has been collected (nullptr). This is usually the result of calling methods on a native-backed object when the native resources have already been disposed. #5

Description

@gaojiewan

When my item uses the component (CachedNetworkImage) that caches images to load the images, it crashes. Specifically, it occurs within the RenderTurnableBook component, when the paint method is called, and the line "canvas.restore();" is executed. It will crash. The specific crash log is as follows: Bad state: A Dart object attempted to access a native peer, but the native peer has been collected (nullptr). This is usually the result of calling methods on a native-backed object when the native resources have already been disposed.

When I replaced it with Image.network to load, it displayed normally again, but in this case, the image would load very slowly.

Image

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