Model doesn't get removed correctly. Engine assert crash (DEF-2827)

Crash
Assertion failed: (i < Size()), function operator[], file /Users/builder/ci/builds/engine-darwin-master/build/tmp/dynamo_home/sdk/include/dmsdk/dlib/array.h, line 410.

After creating/removing a few gameobjects with models it just crashes with above message.
After a long time of error checking my project it seems like I am actually doing it right with no leaks so I created a small project for you to test if interested.
Created gameobject with one model in it.
Creates several instances of gameobject via a factory. Put them in a table.
When there are more than 4 objects on screen, delete the first in the table.

After 26 instances has been created it crashes.

I got a project to try if interested.

2 Likes

Thanks for reporting, I have filed a bug for this: DEF-2827
Will look into this as soon as I can, seems like a really serious bug!

4 Likes

We might have localised the bug, working on a fix, will let you know when it lands in alpha/beta!

3 Likes