Tested versions
Godot v4.6.1.stable
I think this was working in 4.5
System information
Godot v4.6.1.stable - Windows 11 (build 26200) - Multi-window, 2 monitors - OpenGL 3 (Compatibility) - NVIDIA T1000 8GB (NVIDIA; 32.0.15.8142) - Intel(R) Core(TM) i7-14700 (28 threads) - 47.69 GiB memory
Issue description
I'm getting a crash in a plugin I developed which was working fine in Godot 4.0 through 4.5, but has an issue in 4.6 and the master 4.7 dev branch.
I was able to track it down to :
margin_container.cpp, line 44
Size2 s = c->get_combined_minimum_size();
For some reason the method wrapper is passing a null pointer as a Variant to the parameter list which causes the crash.
This is caused indirectly by adding a dock control to the editor, which in turn tries to resize a MarginContainer, which leads to the above call.
Steps to reproduce
Load the attached project. Open the main.tscn panel in the editor. In the Scene panel, click back and forth between the CoolBeans nodes and the background to select/deselect them a few times. After a couple of clicks back and forth, the project will crash.
Minimal reproduction project (MRP)
minimum_size_crash.zip
Tested versions
Godot v4.6.1.stable
I think this was working in 4.5
System information
Godot v4.6.1.stable - Windows 11 (build 26200) - Multi-window, 2 monitors - OpenGL 3 (Compatibility) - NVIDIA T1000 8GB (NVIDIA; 32.0.15.8142) - Intel(R) Core(TM) i7-14700 (28 threads) - 47.69 GiB memory
Issue description
I'm getting a crash in a plugin I developed which was working fine in Godot 4.0 through 4.5, but has an issue in 4.6 and the master 4.7 dev branch.
I was able to track it down to :
For some reason the method wrapper is passing a null pointer as a Variant to the parameter list which causes the crash.
This is caused indirectly by adding a dock control to the editor, which in turn tries to resize a MarginContainer, which leads to the above call.
Steps to reproduce
Load the attached project. Open the main.tscn panel in the editor. In the Scene panel, click back and forth between the CoolBeans nodes and the background to select/deselect them a few times. After a couple of clicks back and forth, the project will crash.
Minimal reproduction project (MRP)
minimum_size_crash.zip