Crash on exit (dmGameObject::ReparentChildNodes)

I’m using Monarch to manage collections in a game I’m doing at Gamedev Camp and it turns out that when I load one area with collection factory and get back to the first area (also loaded and created with collection factory) and when I exit game in that state I always get such crash:

2024-03-02 19_41_rrw.txt (50.0 KB)

On first sight it looks like there are some problems with reparenting / deleting instances?

How can I investigate it further?

Can you isolate this down to a small project that you can share here? I don’t think Monarch has anything to do with it.

I shared the whole project with you. I can’t isolate it to something smaller, as I don’t know where the issue really comes from. I described you the repro steps in DM.

It’s happening when switchin collections created with collectionfactory steered by Monarch, therefore I suspected the Monarch code. I’m also using platypus, and there is reparenting of objects, when switching ground, but I can’t read more from the crash call stack :frowning: