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

Fixed segfault when hovering over tree elements and showing tooltips. #10492

Merged
merged 1 commit into from
Aug 21, 2017

Conversation

Rubonnek
Copy link
Member

@Rubonnek Rubonnek commented Aug 21, 2017

Fixes #10372

I'm still not sure why I have to add this null pointer check in this commit when it was done above. For some reason after adding this check I'm not getting any segmentation fault.

@Rubonnek Rubonnek changed the title Fixed segfault when hovering tree element and showing tooltips. Fixed segfault when hovering over tree elements and showing tooltips. Aug 21, 2017
@Rubonnek Rubonnek force-pushed the fix-segfault-on-arch-linux branch from 3d96eb9 to 0017e21 Compare August 21, 2017 02:28
@reduz reduz merged commit d8cd849 into godotengine:master Aug 21, 2017
@Rubonnek Rubonnek deleted the fix-segfault-on-arch-linux branch August 21, 2017 03:30
@akien-mga akien-mga added this to the 3.0 milestone Aug 21, 2017
@akien-mga
Copy link
Member

That fix looks kind of weird indeed, I don't see what would be making gui.tooltip null between the first and the second check.

@RandomShaper
Copy link
Member

It happens on GCC 7, as another similar issue. I'm starting to think we are being hit by undefined behaviour. That would explain why the code doesn't look as the error condition should happen.

If that was the case, this fix wouldn't be addressing the root cause, but I can't be sure.

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.

4 participants