godot icon indicating copy to clipboard operation
godot copied to clipboard

GPUParticles2D - editor crash if GPUParticles2D finished signal is connected to queue_free on a one shot system

Open tivec opened this issue 1 year ago • 2 comments

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 to queue_free image
  • Toggle the emitting checkbox on the particle system.
  • Wait one second for the system to finish emitting.
  • Editor crashes.

Minimal reproduction project (MRP)

MRP-ParticleCrash.zip

tivec avatar Jan 17 '24 09:01 tivec

Related to https://github.com/godotengine/godot/issues/81320

tivec avatar Jan 17 '24 09:01 tivec

This would be solved by #74796

Griiimon avatar Apr 24 '24 05:04 Griiimon