You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Sphere is starting, world and characters are loaded and Garbage Collector starts, if spawned NPC has memory item, that should be linked to spawn (or anything existing really) is mislinked (link ID doesn't exists), Sphere crashes without error and without any info in logs.
It used to work in rev 3720 it printed debug log and critical error (no id or anything usefull actually), but rev 3882 / 3888 crashes silently.
rev 3720 log:
Expected behaviour would be logging item id with wrong link and removing it during GC (and maybe remove container for this memory, if it is npc?)
The text was updated successfully, but these errors were encountered:
The m_uidLink.ItemFind() returns null pointer, which would be the reason for crash, since it can call GetComponent(COMP_SPAWN) on that.
Fixing it should be something like checking for valid return from ItemFind(). I'm not sure if code bellow is production ready, but I was able to pass GC.
CItem *pItemDef = m_uidLink.ItemFind();
if (pItemDef == nullptr)
{
// return some error code here.
}
CCSpawn *pSpawn = static_cast<CCSpawn*>(pItemDef->GetComponent(COMP_SPAWN));
When Sphere is starting, world and characters are loaded and Garbage Collector starts, if spawned NPC has memory item, that should be linked to spawn (or anything existing really) is mislinked (link ID doesn't exists), Sphere crashes without error and without any info in logs.
It used to work in rev 3720 it printed debug log and critical error (no id or anything usefull actually), but rev 3882 / 3888 crashes silently.
rev 3720 log:
Expected behaviour would be logging item id with wrong link and removing it during GC (and maybe remove container for this memory, if it is npc?)
The text was updated successfully, but these errors were encountered: