Skip to content

GLTF Memory Leak on page reload #3590

@darklight9811

Description

@darklight9811

I know there is already an issue on this, but since this looks kinda severe, I wanted to bring attention to this again.

When loading a GLTF model using react-three-fiber, if you reload the page, it will not dispose of the model and keep adding up until you run out of memory. This is not threejs related (tested on pure threejs), and I noticed it happening on GLTF (I didn't test on other loaders yet).

An example of the issue is on react-three-fiber GLTF official example:
https://codesandbox.io/p/sandbox/6etx1?file=%2Fsrc%2FApp.js
(example shown on the loading models page)

Running on brave browser

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions