godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
89.16k stars 20.21k forks source link

Godot debugger crashes when loading and unloading specific scenes without error #70501

Open RavinMaddHatter opened 1 year ago

RavinMaddHatter commented 1 year ago

Godot version

Godot Engine v4.0.beta8.official.45cac42c0

System information

Windows 10, Vulkan API 1.3.194 - Using Vulkan Device #0: NVIDIA - NVIDIA GeForce RTX 2080

Issue description

When switching between 2 scenes by adding child and queue_free. and hooking up some connections to UI elements a crash occurs with no debug info and no error.

Video of occurrence is here. https://youtu.be/3SqTafYZL50

Steps to reproduce

Easies method to reproduce is to open the above project and run it, the default scene should be save, and when it runs it should switch between 2 scenes at 0.5 second intervals until it crashes.

One note, if you remove the tilemap from skymap the repro seems to break.

Minimal reproduction project

Some extra art assets are included, however when i was removing them the reproduction seemed to be impacted. In-order to reduce churn i left the assets in. repro bug in scene switching.zip

RavinMaddHatter commented 1 year ago

If you need more info i am also in the godot discord @Madhatter

Calinou commented 1 year ago

The minimal reproduction project didn't upload (likely because you clicked away from the text field while it was still uploading). Try editing your post and upload it again.

RavinMaddHatter commented 1 year ago

Re-uploaded. verified the download

RavinMaddHatter commented 1 year ago

I have been running the repro case after only deleting tile map in the skymap scene. and it has been running for hundreds of cycles without failure... IE the bug definitely exists in the tilemap. I have other tile maps that don't do this, if i figure out what exactly is causing it i will update.