alexlarsson / gthree

Gthree is a GObject/Gtk+ port of three.js
MIT License
84 stars 13 forks source link

Crash on finalizing `Gthree.Mesh` #88

Closed lw64 closed 1 year ago

lw64 commented 1 year ago

In the toon demo, the reference to the mesh is stored in a global variable. But if you don't have it like that and want to unref it, it tries to access the realized_resource array in Gthree.Renderer. But often the renderer is already disposed before and therefore the array is freed.

Being able to completely destroy a scene again would be very useful, especially because you can also utilize gtk UI files more.

lw64 commented 1 year ago

Hrm. I cannot reproduce it anymore...