Skip to content
New issue

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

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

Already on GitHub? # to your account

Fixed crash when reloading actor during race #2992

Merged
merged 1 commit into from
Dec 26, 2022

Conversation

ohlidalp
Copy link
Member

Reported on Discord by The Jesser#8202

Problem: Race display in top menubar tries to access Actor which was already deleted.

Cause: the top menubar is rendered in between removing the actor and updating the simbuffer, so it draws a dangling Actor pointer from the simbuffer.

Broken by: 5472275 where the race display was moved to top menubar.

Fix: Update simbuffer immediately after removing actor.

Problem: Race display in top menubar tries to access Actor which was already deleted.

Cause: the top menubar is rendered in between removing the actor and updating the simbuffer, so it draws a dangling Actor pointer from the simbuffer.

Broken by: 5472275 where the race display was moved to top menubar.

Fix: Update simbuffer immediately after removing actor.
@ohlidalp ohlidalp merged commit feaae10 into RigsOfRods:master Dec 26, 2022
@ohlidalp ohlidalp deleted the crash_race_reload branch December 26, 2022 15:42
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants