Bug with go.delete if create obj in on_input (DEF-3218) (SOLVED)

#1

I make i simple test to reproduce bug. I get 3 different errors in same code. Not sure why it happened.
Steps to reproduce:
create objects in update
create objects on input
delete random objects.
sometimes it failed

Errors:

  • Assertion failed: i < Size(), file C:\buildbot\slave\builds\engine-win32-64-master\build\tmp\dynamo_home\sdk\include\dmsdk/dlib/array.h, line 410
  • Assertion failed: collection->m_InstancesToAddTail == index || instance->m_NextToAdd != INVALID_INSTANCE_INDEX, file …\src\gameobject\gameobject.cpp, line 1478
  • sometimes no assert but dmengine is crashed

example:https://yadi.sk/d/RWFr4PxK3TyQwB

@sven

5 Likes

#2

Thanks for reporting and also giving such a good repro case!

3 Likes

#3

Solved in Defold 1.2.126

2 Likes

split this topic #4

4 posts were split to a new topic: Crash when playing flipbook animations

0 Likes