godotengine / godotengine/godot

Godot freezing when loading a resource into itself

Open
#89,948 2 comments 0 reactions 0 assignees View on GitHub
bug crash topic:animation topic:editor
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

Godot 4.2 and I believe any other godot version

### System information

Godot v4.2.1.stable - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4070 Ti (NVIDIA; 31.0.15.5186) - 12th Gen Intel(R) Core(TM) i9-12900K (24 Threads)

### Issue description

This issue happens when you save any resource and then if the resource allows it, loading the saved resource into itself
To be more specific about my issue, using animation tree and saving the state manager and loading the saved state manager into itself

### Steps to reproduce

First step is to make a state machine in the animation tree node
![image](https://github.com/godotengine/godot/assets/85768334/b15ed28a-79d6-4590-84cd-2974c6df2703)
Then I saved the animation tree like this to a folder
![image](https://github.com/godotengine/godot/assets/85768334/66fb8022-a492-4e5c-9949-18591ffea179)
Then I loaded the saved file from before into the same state machine as before
![image](https://github.com/godotengine/godot/assets/85768334/31a65570-25f1-4749-b43e-f593f562b1f7)
Then godot freezes, which makes sense considering that is an endless loop

### Minimal reproduction project (MRP)

It happens with every project

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.