-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Segfault on project load due to generating thumbnail for a Gradient2D.tres texture file #70974
Comments
Another backtrace:
|
3rd backtrace. They seem to be a bit different.
|
I've tried in a fresh repository clone (it helps sometimes) - this time Godot received a SIGILL, not a SIGSEGV 🤔
|
I've deleted one file that could be a problem here, but now Godot gets into an infinite loop:
|
After clearing the import cache it imports all assets and then crashes:
|
I've bisected my codebase and found a commit that introduces this problem: https://codeberg.org/Liblast/Liblast/commit/de7c0219145e8506538d159a6e555ad5a8c76ab8 The amazing thing is that this code has worked for weeks and only a very recently Godot started crashing every time I load the project. Also - the changes this commit introduces have absolutely nothing to do with gradients or any other visuals. I don't know why they suddenly trigger Godot to crash. This feels very random, and unfortunately it happens every once in a while in Liblast - Godot just refuses to cooperate on code it worked with a day before. Sometimes doing a fresh repository clone helps, sometimes it doesn't. Git bisect final output:
|
Update: I've branched out from the last known good commit and... it's crashing there again. I'm completely stuck. |
Can you bisect the Godot commit? |
I have tested Godot builds back to Beta 4 but they all crash. I don't know if the project will even open in alpha builds any more. |
I tried opening Liblast in almost-newest Godot master and it doesn't crash for me, but all imported files are corrupted for whatever reason (PNGs don't import etc.) Maybe try clearing your user data and temp folders? |
@KoBeWi Did you clone with LFS? All PNG file are stored in it, so if you skipped that, they are just pointers, not actual files. I'm tempted to try on a different OS / machine (virtual?). EDIT: I've renamed
|
@KoBeWi Hmm. Glad it does work for someone :D |
It's called self-contained mode actually: https://docs.godotengine.org/en/stable/tutorials/io/data_paths.html#self-contained-mode |
Thanks, I'll test that. Though even if I find a way to get this to not happen, it's still a bug in the engine - a one that's hard to reproduce but a bug nonetheless. Unfortunately I've seen quite a few of these phantom bugs that seem to depend more on the weather than my code. |
Wow. Self-contained mode worked. One time. For 10 seconds. I guess I need to wipe the editor files every time I want to run it, then I have 10 seconds to do something before it crashes again. I suspect this means it's crashing when trying to make a thumbnail. This gives me an idea. I have some Gradient2D texture resources saved - I'll delete these and see if this persists. |
This seems to be helping. I have deleted these two resources from my game project and it seems to to be crashing. |
This comment has been minimized.
This comment has been minimized.
Fixed by #91630. |
Godot version
Godot 4.0 dev
System information
Arch Linux + X11 + Radeon RX6800XT
Issue description
Yesterday suddenly Godot editor crashed and I am no longer able to load my project. It segfaults every time when I load it - sometimes immediatelly, sometimes after a few seconds.
Here's is the backtrace:
Steps to reproduce
No idea :/
Minimal reproduction project
I don't have one :/
The text was updated successfully, but these errors were encountered: