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

Editor: Fix EditorHelpBitTooltip + ProgressDialog causes crash #91716

Conversation

dalexeev
Copy link
Member

@dalexeev dalexeev commented May 8, 2024

The crash only (?) occurs in sanitizer builds. The reason is that ProgressDialog calls Main::iteration() which makes queue_free() unsafe, see #91652 (comment) for details.

This is probably not the only such bug in the editor, and in the future we should reconsider the approach of calling Main::iteration() in many places. But for now, this fix is probably the least invasive option.

CC @timothyqiu @KoBeWi

@dalexeev dalexeev added this to the 4.3 milestone May 8, 2024
@akien-mga akien-mga requested a review from KoBeWi May 8, 2024 15:17
Copy link
Member

@KoBeWi KoBeWi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is some super hack, but it's limited to a helper class, so it's fine.

@akien-mga akien-mga merged commit de19622 into godotengine:master May 13, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@dalexeev dalexeev deleted the editor-fix-help-bit-tooltip-and-progress-dialog-crash branch May 13, 2024 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash if inspector tooltip is dismissed when saving scene
3 participants