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.
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 inGthree.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.