-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Crash when editing text in LineEdit/TextEdit on Linux/Wayland #101408
Comments
Hey, sorry for that crash. Meanwhile I tried to reproduce it on my own Debian, I'm not using Wayland but X11, and so far no crash. line-edit-textedit-working.webm |
Hi, thank you for your report and for the nice backtrace! It reports that it's related to the primary selection, which is set by selecting text and can be pasted with the middle mouse button. Taking a look at the code, it looks like we're missing a check for the validity of its reference, so we try to dereference a null pointer and there goes the crash. Perhaps you unfocus right while selecting text and the primary selection goes away? Maybe you have some clipboard manager. No idea either. The fix should be trivial. I'll make a PR with that check soon! |
My mouse has a problem where it will sometimes send 2 click inputs very quickly, that must be why the crashes were happening. |
Ooooh then perhaps you're focusing and selecting at the same time. That makes a lot of sense. |
@Riteo Just got this crash again and I wanted to ask something that I'd forgotten to mention, is it normal for this type of crash to make Godot use a lot of memory? |
@em-s-h mhh... Not sure exactly what you're talking about. I mean, once it crashes it crashes. I know though that we have a custom crash handler that prints a stack trace and that might cause higher memory consumption while it figures things out. For reasons I almost never see that code running, so I might be completely wrong. |
Maybe that's it, since it does take a while for Godot to close after crashing, but this is the only crash where this has happened to me |
Hi, I made a PR over at #101799, could you please try it and confirm me that it fixes the issue? |
I don't know if I'll be able to confirm this fix, since the mouse malfunction happens very rarely, and I have no other way of replicating it. |
@em-s-h no worries! I think that the stack trace you attached is enough evidence for a check to be there, tested or not. In a weird twist of fate, surprisingly, I... just started getting this issue constantly 😅 I think I can see myself whether the fix works now XD |
Tested versions
System information
Godot v4.3.stable unknown - Arch Linux #1 SMP PREEMPT_DYNAMIC Thu, 02 Jan 2025 22:52:26 +0000 - Wayland - Vulkan (Forward+) - integrated Intel(R) HD Graphics 5500 (BDW GT2) - Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz (4 Threads)
Issue description
I've had this crash happen 3 times to me so far:
TextEdit
preview of the theme editor;Only the 3rd crash had a backtrace with debug symbols:
I can include the other backtraces if necessary.
Steps to reproduce
I've not found a way to consistently perform this crash, it seems like it happens at random when I interact with a text field on the editor.
Minimal reproduction project (MRP)
N/A
The text was updated successfully, but these errors were encountered: