davidpol/SurvivalShooterECS

EnemyAttackSystem cause a error when you killed a attacking enemy

lvcoc opened this issue · 6 comments

lvcoc commented

System.ArgumentException: The entity does not exist
Thrown from job: EnemyAttackSystem.<>c__DisplayClass_OnUpdate_LambdaJob0
This Exception was thrown from a job compiled with Burst, which has limited exception support. Turn off burst (Jobs -> Burst -> Enable Compilation) to inspect full exceptions & stacktraces.

I think maybe EnemyAttackData linked to this enemy
Did anyone can help me to fix it?

Is this happening on the latest version of the project without any custom changes? I just upgraded it to Unity 2020.3.30 and Entities 0.17.0 and everything seems to be working fine.

Having said that, you might want to disable Burst compilation to get a complete stacktrace as suggested in the error message.

lvcoc commented

Is this happening on the latest version of the project without any custom changes? I just upgraded it to Unity 2020.3.30 and Entities 0.17.0 and everything seems to be working fine.

Having said that, you might want to disable Burst compilation to get a complete stacktrace as suggested in the error message.

Thanks!I will take a try!

lvcoc commented

Is this happening on the latest version of the project without any custom changes? I just upgraded it to Unity 2020.3.30 and Entities 0.17.0 and everything seems to be working fine.

Having said that, you might want to disable Burst compilation to get a complete stacktrace as suggested in the error message.

Sorry to bother you,but it still happened。
image

image

image
image
image
image

Thank you! I was finally able to reproduce this and hopefully the latest commit fixes the issue.

lvcoc commented

Thank you! I was finally able to reproduce this and hopefully the latest commit fixes the issue.

OK,thanks a lot anyway

lvcoc commented

Thank you! I was finally able to reproduce this and hopefully the latest commit fixes the issue.
YES!It fixed!love you!