-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
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
Occasionally freeze when moving the mouse in the editor #69942
Comments
I was just about to report the same issue 👍 I use Arch Linux and was using a When I was able to reproduce the freeze with gdb on, interrupting the process shows that the main thread is stuck at a pthread mutex lock inside the Lines 828 to 848 in f128170
|
Notable all reports are on linux. Has this occurred before or is it recent? Most recent PR is #69943. (If this is occurring on 3.x and master). Just looking at that PR, I can see a possible problem:
How often is Yes, it looks like there might be a thread continuously calling this function. It may not be a cause of this issue but it's making me suspicious enough to make a PR. Ok scratch that, this PR was merged after 3.5.1, so can't be responsible for the 3.5.1 freeze, and we now think the while loop should be running till exit, so the last sleep would only occur on exit. |
i have this problem too. the current and only seaming work around is using 3.2.3 as that is the latest working version. 3.3.x breaks in the same way as 3.5.1 i hope this helps some EDIT: another work around is going through lutris(and wine) with the windows version of godot. |
Void Linux, Wayland, Sway 1.8.2. Godot 3.5.1 constantly freezes in the editor after few minutes of work. As @timothyqiu mentioned |
BTW for anyone getting this, it would be really helpful to know how far back in terms of versions this freezing happens, because it might help pinpoint which change might be responsible (i.e. if you download some old builds 3.4, 3.3 etc and see if you can work out how far back this was happening, or when it started). |
For me it seems:
This commit happened between these versions and looks related. |
That indeed looks likely as it looks like the There's also not a great deal of commits in this area over the past few years, which makes it easier to pin down (this @pouleyKetchoupp one and another mouse one by Aaron was the only ones I spotted recently). Although this is most likely to do with introduction of the input thread, I had to google what This will likely require someone who can reproduce the problem to fix, maybe by commenting in and out bits of code to try and pin down the culprit. Also I noticed several concerns raised in #41910 (the original master version) about threading and locking. |
IME stands for Input Method Editors and it is mostly used in Asian languages. (Arabic uses a RTL keyboard layout, which does not need an IME) |
@lawnjelly I use IME (fcitx5) for Japanese input occasionally, but I only use English layout in Godot. In fact, to reproduce the freeze I don't even need to input anything, just start selecting text in the editor with mouse and moving the mouse cursor around, same as @Rindbee mentioned in the description. Just a guess, as I'm not familiar with the code, when we select text it seems got auto-copied to PRIMARY clipboard, there is a mutex lock in OS_X11::set_clipboard maybe it got dead-locked somehow with the one in OS_X11::set_ime_position. |
That's a system thing not a Godot thing |
True, I was confused by PRIMARY mentioned in |
It seems that a thread is reserved when compiling (
After freezing, when switching to other workspaces, there will often be a pop-up window that will not disappear. |
Godot version
f692b47
System information
Linux mint 21, forward_plus ,NVIDIA GeForce GTX 1050 Ti
Issue description
I occasionally get stuck when moving the mouse in the editor. I have encountered it many times so far, but I have not explored the specific cause. Cannot use the screenshot tool to take a screenshot after being stuck.
Recently I tried to reproduce it by just moving the mouse, and I only succeeded once, but still can't find any reproducible steps. Might be related to the tooltip popup. When the popup does not disappear with the mouse movement, it means that it has been stuck.
I use i3wm, prone to this problem in the following situations.
Just using the mouse to move in the editor will also encounter this issue.
There are no signs or messages. Might be related to #69582, I'm not sure.
Steps to reproduce
Sorry, this issue came up by accident and I'm not sure of the exact steps to reproduce.
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: