BabylonJS / BabylonReactNative

Build React Native applications with the power of Babylon Native
MIT License
382 stars 60 forks source link

Leaked graphics resources crash app when engine is disposed #465

Open CedricGuillemet opened 2 years ago

CedricGuillemet commented 2 years ago

Linked to https://github.com/BabylonJS/BabylonReactNative/issues/464

Context: Graphics resources are created and not disposed like VertexBuffer for example. Bgfx is shutdown when the engine is disposed. After some time, the GC tries to free the resources but because bgfx is not valid anymore, app crashes.

bghgary commented 1 month ago

@CedricGuillemet Is this still true?

CedricGuillemet commented 1 month ago

Hard to be sure without testing but I guess, yes. In the mean time, no user complained about this. I think we can close it.