-
-
Notifications
You must be signed in to change notification settings - Fork 21.7k
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
Modifying certain Array type through Inspector will cause Editor crash #78578
Comments
My stack trace for the crash:
|
Doesn't seems to be specific to PackedVector2Array. It also happened to some Array[T], such as
Those will cause crashes when you try to edit it via Inspector. But Array[String], Array[StringName] doesn't cause crash, however it behaves weirdly. Array[float] is working fine as intended. |
I debugged this a little and looks like the crash happens because Line 1774 in d87bdef
It then calls that null pointer's |
Should be straight forward to add a null check like so: bool stopped = gui.mouse_focus && gui.mouse_focus->can_process() && _gui_call_input(gui.mouse_focus, mb); Will make a PR tomorrow unless someone else snatches it up before then |
There are a few other places in that function that access |
Good points, will see where it leads |
Seems like regression from #78005, cc @Sauermann. |
Thanks, I will investigate. |
The following thing happens in Lines 1755 to 1757 in cb73a6e
The I find it questionable, that a Control relinquishes its focus during its Also when I edit a number and switch to a different entry-field via TAB-key, I get a different crash, which seems to be more complex:
|
So after some really harduous debugging time where I couldn't understand what was done wrong I realised that |
Modifying the value of an element causes godot/editor/editor_properties_array_dict.cpp Lines 207 to 213 in fee49f4
|
Godot version
e74bf83
System information
Windows 11, Godot v4.1.beta
Issue description
There's nasty bug going on with the latest master branch build of Godot. If you have an exported variable of type PackedVector2Array, and then proceed to modify its value through the Inspector, it will crash the IDE for no reason.
I reopened the same project on 4.0.3 stable version on Steam, and the bug did not happen and I was able to modify my PackedVector2Array freely through the Inspector.
Steps to reproduce
Minimal reproduction project
empty.zip
The text was updated successfully, but these errors were encountered: