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
Intermittent crash when saving edited script resources #41393
Comments
I can conform the crash. (I've experience this before didn't know how to reproduce)
|
Reverting #40647 helps the crash with the call stack above, but then I get another crash while repeating the same reproduction steps (Windows 10 too):
So I'm not sure if there's something wrong with #40647 or it may have just revealed some regression (need bisect?) @ThakeeNathees @AberrantWolf for how long have you experienced this crash? |
I've only been building from code for the last 3 days. Definitely from yesterday, though. Possibly not the day before, but I don't recall (and didn't edit much code that day). |
me too yesterday. must be caused by a very recent change. |
Should be fixed by #41399. All those crashes are related to script resources being manually unreferenced in a thread, which explains intermittent crashes, so indeed #40647 is not a cause.
Yeah it is caused by #41359. |
Godot version:
4.0 (5f63682)
OS/device including version:
Windows 10 (10.0.19041)
64-bit build, observed on 64-bit debug/release-debug builds (others not attempted)
Issue description:
The Godot editor crashes (eventually) when saving a modified GDScript resource.
Steps to reproduce:
I tracked the crash down what appears to be a String assignment/copy on line 1857 of
script_editor_plugin.cpp
, where the Stringpath
is assigned. The assignment goes into theCowData::_ref
function, but the incoming reference appears to be invalid, even though if I navigate up the stack frame and examine what appears to be the relevant structures directly, the string which I believe is being assigned appears to be a valid string.The text was updated successfully, but these errors were encountered: