godotengine / godotengine/godot
Resource docker crashes with 2k files (2gb in size in total)
- Dominant language
- C++
- Stars
- 117k
- Forks
- 26.8k
- PR merge metrics
- PR metrics pending
Description
### Tested versions
- Reproducible in v4.4.beta4.mono.official on windows 11
### System information
Windows 11 - Godot v4.4-beta4
### Issue description
At first I thought it was because I was using something that uses VSS to keep backups of my files, but I copied the project to the Documents folder (that doesn't have that backup) and it still fails. As you can see, lots of random "Can't open file", "Check user write permissions" before the stacktrace that I don't really know where they are coming from. It is related to having LOTS (2k) of files (totalling around 2GB) in one subfolder of the resource folder (Confirmed).
Using process monitor from sysinternals, I don't see any attempt at reading or writing the files that it complains about. What I see is trying to access `/res:` which is quite confusing.
[StackTrace 2025-02-18.txt](https://github.com/user-attachments/files/18855453/StackTrace.2025-02-18.txt)
### Steps to reproduce
Just hovering into some of the files that are in the resource folder docker makes it crash
### Minimal reproduction project (MRP)
I am not sure I can provide this. https://github.com/lorelib/openlore is the base project, but I have added 2 thousand of copyrighted files into it and the it starts having issues, 4.3 is horrible in this case, and 4.4 improved things a bit at the beginning with beta2 (and #93064), but not for this amount of big-ish files
I will try to provide one if I can recreate some files without copyright that trigger the same problem.
Contributor guide
Research direction
Start with the attached StackTrace 2025-02-18.txt and reproduce the crash by hovering files in the Resource dock of the linked openlore project. Compare behavior across Godot 4.3, 4.4 beta versions, and the change referenced by #93064. Done means the editor no longer crashes when the resource folder contains about 2,000 large files.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, godot
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100