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

Wayland: Check selection devices before using them #101779

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

Riteo
Copy link
Contributor

@Riteo Riteo commented Jan 18, 2025

Should fix #101408.

Looks like we never actually stopped the code from using bad pointers. I even forgot the check in the primary selection code 🤦

@Riteo
Copy link
Contributor Author

Riteo commented Jan 20, 2025

Removing the "needs for testing" tag as the issue is extremely sporadic and unpredictable (happened to me like 5 times in a row and once I actually wanted to study the issue it stopped) and the change improves correctness anyways.

@Riteo
Copy link
Contributor Author

Riteo commented Jan 20, 2025

Update: got another streak of issues (for now) and found out that the check does indeed block the crash! If it actually returned, that is... Added the return check and I can attest that, after doing that, I've seen the thing actually print the message and not crash.

That said, I still have issues reliably reproducing the thing. Hopefully that's all.

Looks like we never actually stopped the code from using bad pointers.
I even forgot the check in the primary selection code 🤦
@Riteo Riteo changed the title Wayland: Apply regular selection fixes to primary selection Wayland: Check selection devices before using them Jan 20, 2025
Copy link
Member

@bruvzg bruvzg left a comment

Choose a reason for hiding this comment

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

I was not able to reproduce the crash, but changes looks fine.

@Repiteo Repiteo merged commit f1c0b5b into godotengine:master Jan 22, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Jan 22, 2025

Thanks!

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 when editing text in LineEdit/TextEdit on Linux/Wayland
4 participants