It crashed when unspawning an AI which will destroy its entity. Inside DestroyEntities "IsProcessing" is true, but when it breaks into the debugger, "ProcessingScopeCount" is 0 (so IsProcessing should return false). In MassAgentComponent it checks "IsProcessing" and if it's true it will defer the job. It didn't defer the job in this case, but the checkf still failed.
My only explanation is that some small task managed to run on some other thread between all of these checks meaning that this flow isn't 100% thread safe. Am I missing some piece of logic that would make this thread-safe? I couldn't find any suspicious task in "parallel threads", but ProcessingScopeCount is 0 so it should have completed again.
My theory:
No concrete steps. Only happened once from report.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-318908 in the post.
0 |
Component | UE - AI - Mass |
---|---|
Affects Versions | 5.6.1 |
Created | Sep 7, 2025 |
---|---|
Updated | Sep 8, 2025 |