godot
godot copied to clipboard
GPUParticles2D - editor crash if GPUParticles2D finished signal is connected to queue_free on a one shot system
Tested versions
v4.2.1.stable.official [b09f793f5]
System information
Godot v4.2.1.stable - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1660 Ti (NVIDIA; 31.0.15.3699) - AMD Ryzen 7 4800H with Radeon Graphics (16 Threads)
Issue description
If you connect the finished
signal of a one-shot GPUParticles2D
to its queue_free
function and the system is the root of the scene, triggering emit on the system in the editor will cause it to crash.
Steps to reproduce
- Create a new scene, make GPUParticles2D into its root.
- Disable emitting, set the system to one shot, add a process material.
- Via the signals panel on the GPUParticles2D node, connect the
finished
signal toqueue_free
- Toggle the
emitting
checkbox on the particle system. - Wait one second for the system to finish emitting.
- Editor crashes.
Minimal reproduction project (MRP)
Related to https://github.com/godotengine/godot/issues/81320
This would be solved by #74796