Leaking WebGLRenderer and more when rerendering on iOS #3092
Unanswered
Jashpatel1
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using r3f for a 3d viewer web-app. When I try to navigate outside of the 3D-containing component and then navigate back into it (change of props) (in effect rerendering the ), It creates a new WebGL2 canvas everytime whose context is not being lost. After hitting a certain number of canvases, safari forces a reload and crashes the app. This issue is only reproduced on Safari and Chrome on iOS. On Android Chrome or web chrome it works fine. I have tried manually forcing the canvas to dispose:

gl.dispose() gl.forceContextLoss() gl = undefined
I have also disposed of all objects using dispose from react-three-fiber:
dispose(model.scene)
I have seen references to the same issue here: #514
Beta Was this translation helpful? Give feedback.
All reactions