-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
[4.0] Error importing resources by drag and drop #53871
Comments
Interestingly, this does not happen when importing multiple assets at the same time (v4.0.dev.custom_build [80e292b]). |
I am also having a lot of import issues in Godot 4.0 (#56216), and the duplicate resources was one of the things I noticed, despite there being no problems in 3.4 release. Deleting either one of the two resources crashes the editor, and as in this case, there is only a single resource after a restart. |
@Gromph, I had similar problems importing wav files in version 4.0-alpha1, but now everything works fine for me. Also, I can't reproduce your problem on either v4.0.alpha3.official [256069e] or v4.0.alpha.custom_build [272b355]. Could you check it again on the latest alpha version? Perhaps your problem has already been fixed. |
With Godot 4 Alpha 3 64 bit on Windows 10 I'm still seeing the same white window, and closing it crashes godot. |
Still having this issue on Godot 4 Alpha 3 64 bit on Windows 10. Whenever I drag and drop multiple resources in (.png files in my case) they also duplicate, crashing me when I try to remove them from the project too. |
Can't reproduce in alpha7. Also Windows 10. |
Me neither, I think this issue can be closed. |
Getting this issue on Godot 4 Beta 17. Dragging a single png into the Godot FileSystem causes the previously mentioned blank screen to pop up. Closing that crashes Godot. After relaunch, I didn't get a duplicate file being created but the file seems to be imported fine now. |
Can confirm exact issue on Windows 11 running Godot 4 Beta 17. |
Getting the same issue on Win10 running Godot 4 RC1. Importing single or multiple PNGs (tried JPEG as well) produces the same result. Importing a .TTF font also produced the issue, though importing a .WAV did not. A .GLTF file exported from Blender imported without incident, textures included. Update: The issue seems to be gone in my project now. I selected everything in .godot/imported and deleted it all. The editor took a moment to re-import everything, and I've since been able to import all of the above file formats without issue. |
Experienced this on RC1 on Win10 while importing a single PNG in a fresh project, was able to fix it thanks to above by deleting the files in .import associated with the one I tried to import :) But then I got the error again right away xD So I have to keep deleting the .import files |
To quote @akien-mga
I can confirm the issue. What's interesting is that dragging from desktop doesn't trigger any error for me. Only from the file explorer. So, I think I know what's up. It doesn't happen when dragging from desktop, but does happen when dragging from the file explorer, i.e. from another app. I think the issue is that upon regaining focus two attempts to rescan happen. One from the drag'n'drop, and another from regaining focus. Which causes a hang, which eventually causes a crash. And which also doesn't actually prevent the texture from reimporting (visible upon a restart). Edit: To clarify, drag'n'drop from the file explorer also works as long as it is in the background, and Godot's window is in focus. If you focus the file explorer window instead, and the drag'n'drop, it will trigger rescan two times, and hang. Edit 2: This is related to threading as well. Update goes through these lines, crashing during the godot/editor/editor_file_system.cpp Lines 1239 to 1248 in a4c2d8d
|
Prevents recursion when importing files due to the ill nature of EditorProgress. The progress dialog will have to be entirely rewritten after 4.0 is out due to it being a constant source of bugs. In the meantime, this fixes the problem. Fixes godotengine#53871. Supersedes godotengine#73159.
Prevents recursion when importing files due to the ill nature of EditorProgress. The progress dialog will have to be entirely rewritten after 4.0 is out due to it being a constant source of bugs. In the meantime, this fixes the problem. Fixes godotengine#53871. Supersedes godotengine#73159.
Godot version
v4.0.dev.20211015.official
System information
Windows 10 21H1, Vulkan, Nvidia GTX 760 472.12
Issue description
When importing a resource such as a png from outside the project by dragging and dropping from file explorer to godot results in a blank white popup window titled Load Errors
The following error is logged to the console:
ERROR: Task 'reimport' already exists.
at: (editor/progress_dialog.cpp:159)
Attempting to close the Load Errors window results in Godot crashing.
Steps to reproduce
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: