microsoft / MixedReality-WorldLockingTools-Unity

Unity tools to provide a stable coordinate system anchored to the physical world.
https://microsoft.github.io/MixedReality-WorldLockingTools-Unity/README.html
MIT License
188 stars 45 forks source link

Cleanup Error on Playmode Exit #255

Open Waffle1434 opened 2 years ago

Waffle1434 commented 2 years ago

On the latest WLT 1.5.7 release, and also on older versions including 1.4.0+, WLT throws an error whenever I exit playmode:

Some objects were not cleaned up when closing the scene. (Did you spawn new GameObjects from OnDestroy?)
The following scene GameObjects were found:
SpongyWorldAnchorRoot
WorldLockingUpdater

I assume something is either creating GameObjects at a weird time, or they aren't being deleted before the scene closes because they are using special HideFlags or persistence.

fast-slow-still commented 2 years ago

Harmless, but I hate dangling references. Will fix.

If you can provide some basic repro information, like Unity version etc, that would be very helpful. Thanks!

fast-slow-still commented 2 years ago

Also, do you have some extra strict settings on? Those two objects are indeed leaked at shutdown, but I'm not getting any error message. Thanks.

Waffle1434 commented 2 years ago

I don't seem to have extra strict error messages, not sure why its occuring.