-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Editor freezes when modifying FileSystem's filter path when in Split Mode #87525
Comments
Tested, it's not crashing, it freezes. Can't reproduce in:
Can reproduce in v4.2.dev4.official [549fcce] and newer. It's a regression from #80440. Specifically this is the infinite loop causing the freeze ( godot/editor/filesystem_dock.cpp Lines 1028 to 1040 in 74c32fa
This preceding part (not a part of #80440) seems problematic: godot/editor/filesystem_dock.cpp Lines 1012 to 1019 in 74c32fa
because EditorFileSystem::get_filesystem_path seems to resolve an empty path as the project root directory, making efd above be not null and hence not aborting further execution. But directory ends up still being an empty path.
Any bug is worth being reported, regardless of its rarity. Crashes/freezes are especially frustrating so this report is definitely wanted, thanks! 🙂 |
Did you test 4.3 builds? By this description I think this was fixed already by #86171 Edit: Wait, nevermind, it's a different file. |
I've run it with like a week-old |
I can confirm it happens at current master. The whole code here seems to assume the directory is always starts with "res://" instead of empty one. |
The problematic field is not a filter path, it's a path to the selected file. It's likely meant to navigate to folders by name or for copying the current path, but there are better ways to do both, so I wonder if anyone is even using this field. We could make it uneditable or even remove it. |
Tested versions
System information
Godot v4.2.1.stable - Windows 10.0.22621 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1050 (NVIDIA; 31.0.15.4617) - Intel(R) Core(TM) i5-9300H CPU @ 2.40GHz (8 Threads)
Issue description
While working on my project and navigating through folders in the FileSystem dock, I accidentally discovered a bug that causes Godot to crash. The crash can be triggered by either erasing the contents of the path field and then entering split mode or by erasing the contents while already in split mode and then pressing Enter. Considering the uncommon action of erasing path field content, not sure if worth reporting. New to game development and GitHub contributions.
Steps to reproduce
OR
Minimal reproduction project (MRP)
N/A
The text was updated successfully, but these errors were encountered: