Godot 4.7 crashes when it's reimporting a lot of files

Godot Version

4.7

Question

Anyone else experienced this? When I select multiple files and try to reimport, it gets stuck at certain files forever and I have to close godot with task manager. Also happens if I delete the .godot folder to clean up old exports/imports. It’ll just never reimport them

This is incredibly vague. What kind of files? How many? What OS are you on?

Windows 10. Any files, but I usually see it’s stuck on reimporting png. My import is importing png as Texture2D with mode Lossless but when I was importing with VRam Compressed the same thing happened so its unlikely to be related to import mode

What are your specs? What you’re describing only ever happened to me on a very old machine.

Well it didn’t happen on previous versions of godot. It’s responsive and all but it just gets stuck. GPU: gt 1030 and CPU: Intel Core i5-2400. I know these aren’t good specs but the engine is generally very responsive so I doubt that’s the issue

Unfortunately that can very much be the issue. As I said, I had this very same issue on an old laptop with just slightly better specs.

But if you believe this is a bug, try to create a MRP and post that on the github as an issue. But if you can, make sure you test it on another machine. If this doesn’t happen on another PC, then it is likely a problem specific to your PC.

The solution for me was disabling Project Settings->Editor->Import->Use Multiple Threads. After this godot successfully recreated my .godot directory and cleaned up 100 mb of mess

Yes it does happen to me sometimes its sucks

I believe you’re striking this issue: 114121. The workaround mentioned there is the same as what worked for you (disabling Editor > Import > Use Multiple Threads).

And if your project is in a state where it tries to import files when you open it, and freezes before you can actually access the project settings, you can update the setting manually in your project.godot file by adding / editing the editor section:

[editor]

import/use_multiple_threads=false