Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

references to Entity data during a call to Icon.OnPhysicsUpdate() can crash if the entity has been destroyed. #303

Open
se5a opened this issue Oct 9, 2020 · 0 comments

Comments

@se5a
Copy link
Contributor

se5a commented Oct 9, 2020

There's a race condition here where the core engine can destroy and entity before the UI checks to see if the entity has been destroyed and tries to update it during the OnPhysicsUpdate calls.
SystemMapRendering is supposed to check if any of the icons related to specific entities are due for destruction before doing the physicsUpdateCalls and draws, but it appears that this is not raceproof.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant