Skip to content

Use cache-less resource loading to resolve C# GC_handle crash issues. - #206

Open
Seb105 wants to merge 2 commits into
Cat-Lips:mainfrom
Seb105:Resource-Loader-no-cache
Open

Use cache-less resource loading to resolve C# GC_handle crash issues.#206
Seb105 wants to merge 2 commits into
Cat-Lips:mainfrom
Seb105:Resource-Loader-no-cache

Conversation

@Seb105

@Seb105 Seb105 commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Fixes #205

This PR replaces all instances GD.Load(...) with ResourceLoader.Load(..., cacheMode: IgnoreDeep)

This appears to resolve the CTD issue however it will always load a resource from disk, never from Godot's cache (as it is the cache causing this crash). Resource loading may be slower depending on how you use ResouceTree as a result.

In the issue I linked in #205 there are some examples of a resource cache implementation, which I haven't done in this PR.

Testing:

dotnet test is passing, and it compiles & works for my actual project whilst resolving the issue. but I couldn't get the test project to work even before making my changes, so I can't confirm full coverage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ResourceTree] crash to desktop due to C# resource loader issues

1 participant