Skip to content
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

Validate custom type script before loading it #103467

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Mar 2, 2025

Fixes #103450

In unlikely scenario that the custom type script's UID is invalid, the engine will now remove the meta and return null instead of trying to load it.
As I noted in the issue though, the ResourceLoader shouldn't crash either way, so there might be a deeper issue here.

@KoBeWi KoBeWi requested a review from a team as a code owner March 2, 2025 13:58
@AThousandShips AThousandShips added this to the 4.4 milestone Mar 2, 2025
@ndbn
Copy link

ndbn commented Mar 2, 2025

Applied it locally, all seems good, any crash not reproduced

@akien-mga akien-mga merged commit dc128dd into godotengine:master Mar 2, 2025
26 checks passed
@akien-mga
Copy link
Member

Thanks!

@KoBeWi KoBeWi deleted the the_script_you_are_looking_for_is_no_longer_here branch March 2, 2025 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RC3] Godot crash when you try to replace resource with missing UID file
4 participants