HomeWildfire Games

Fix crash in dynamic subscriptions when components unsubscribe during deletion.

Description

Fix crash in dynamic subscriptions when components unsubscribe during deletion.
Discussed with Philip.
Reviewed by fatherbushido
Differential Revision: https://code.wildfiregames.com/D264

Event Timeline

elexis added a subscriber: elexis.Apr 18 2017, 12:45 AM

Not sure why, couldn't reproduce with the visual replay, but got an error when hosting svn game:

ComponentManagerSerialization.cpp(186): Assertion failed: "m_DestructionQueue.empty()"
Assertion failed: "m_DestructionQueue.empty()"
Location: ComponentManagerSerialization.cpp:186 (SerializeState)

Replay


Patch
Revision 19425

Don't have a stack nor mainlog.html unfortunately, can't reproduce it when hosting a different game or visually replaying the thing.

Perhaps it can be reproduced by spawning and deleting some entities every turn. Perhaps it will reappear some time, perhaps it was a false alert, dunno