-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scenes unable to be opened upon cylic preload() in script #78128
Comments
seems like something is going on in cache.. |
|
Can you attach the corrupted scene? If it hasn't changed, perhaps this is due to cyclic |
Here! |
I deleted my .godot folder, but the scene remains corrupted |
The file is not corrupted. Probably the problem is the one I wrote above or similar. Try replacing |
This was it. I changed the post title, but if this is a duplicate you can close it. |
CC @adamscott |
I would close this issue as duplicate of #70985. |
Here's what working for me to fix this error: close editor, search in the .editor folder for all files containing the corrupted scene's name (they are going to be name something like your_scene_name.tscn-editstate-2e5312b3e75d2338868814f479b1feeb.cfg), delete them, restart editor. |
Godot version
4.1 beta1
System information
Godot v4.1.beta1 - Windows 10.0.19045 - Vulkan (Mobile) - dedicated NVIDIA GeForce GTX 750 Ti (NVIDIA; 31.0.15.1694) - 12th Gen Intel(R) Core(TM) i5-12400F (12 Threads)
Issue description
Update: I had a cylic preload in my script that prevented the file from being opened.
preload("res://Client/Scenes/GUI/Interface/Interface.tscn").instantiate()
Seemingly randomly, several of my scene files have failed to open with the following message in the console:
![image](https://private-user-images.githubusercontent.com/40964335/244990597-61c38e04-8b9f-448b-a038-69f10ef44eb6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNDAzOTMsIm5iZiI6MTczOTI0MDA5MywicGF0aCI6Ii80MDk2NDMzNS8yNDQ5OTA1OTctNjFjMzhlMDQtOGI5Zi00NDhiLWEwMzgtNjlmMTBlZjQ0ZWI2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDAyMTQ1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTljYmY0YWUwYjVkYWRkMzVmN2NmMTUwNGNmMDk2NDA4YWM3NzRiNTdiNGQ0N2JlMzQ5MmI5M2I4ZWIxNzcxMDgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.aKxaxj3UGWvdFJGtNa8NwwBRDSh_A83n2EilmpXYDxc)
Oddly enough, after giving up on one of my old scenes that had corrupted, I tried to reopen it a few days later and it was working fine again despite displaying the "scene is invalid/corrupt" message.
Despite displaying as corrupted, the scene is still loaded into my game through and instance and works just fine, I just can't access it in editor.
Steps to reproduce
According to my version control, I haven't updated the scene at all even though it worked earlier.
Today I edited the script that scene contained, saved it, and later came back and the scene couldn't be opened any more.
Minimal reproduction project
n/a
The text was updated successfully, but these errors were encountered: