CesiumGS / cesium-omniverse

Bringing the 3D geospatial ecosystem to Omniverse
https://cesium.com/platform/cesium-for-omniverse/
Apache License 2.0
51 stars 7 forks source link

Fix crash on scene reload #672

Closed lilleyse closed 5 months ago

lilleyse commented 5 months ago

Fixes #444

An old bug has shown up again. If material pools and their associated Fabric prims are destroyed, and new prims are created later, it causes a crash. https://github.com/CesiumGS/cesium-omniverse/issues/444#issuecomment-1936520180 goes into more detail with reproduction steps.

Unfortunately it seems like the only fix right now is to not destroy the Fabric material resources. This will cause a leak, but only when material pools are destroyed which doesn't happen during normal usage, only when you change certain /Cesium properties or reload the extension.