-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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 hiding a panel from a NOTIFICATION_MOUSE_ENTER
notification
#85277
Comments
NOTIFICATION_MOUSE_ENTER
notification
I confirm the crash, and it's a regression in 4.2. Up to 4.2-dev2 included, the MRP works fine, like in 4.1.3-stable. From 4.2-dev3 to 4.2-beta5, the MRP doesn't crash, but the label isn't hidden. The From 4.2-beta6 onward, it's crashing as described in the OP, with this backtrace:
The regression timings are consistent with this being a consequence of #67791 (which regressed on the signal emission) and #84547 (which fixed the regression, but now we get a crash instead). |
A related crash can still happen on mouse exit when hiding a grandparent.
We should probably check if the Also Mouse enter and exit notifications may trigger strangely if |
Here is an updated mrp that shows the crash happening in Hitting space will change the panels filter from pass to stop, which sends mouse exit notifications to its parents. BTW, This won't happen for mouse enter notification because a list of Controls is used instead of a list of indexes, so it can't go out of bounds. |
Godot version
v4.2.rc.custom_build [7022271]
System information
Godot v4.2.rc (7022271) - Debian GNU/Linux trixie/sid trixie - X11 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 6GB (nvidia) - AMD Ryzen 5 1600 Six-Core Processor (12 Threads)
Issue description
Found a consistent crash when calling
hide()
from_notification()
.It does not happen if the call is deferred.
Steps to reproduce
The
hide_test.gd
script has a booleancause_crash
. If it is true, hovering the mouse over the label crashes without an error in the Godot Editor Console. If it's false it hides the label as expected.Minimal reproduction project
hide_crash.zip
The text was updated successfully, but these errors were encountered: