Unreal Editor (5.1) stuck on Discovering Assets

Hi all,

I have seen similar issues with UE Discovering assets, but I am experiencing it only when I have my startup py script enabled. The py script is responsible for rendering automation and starts many processes like material mapping and render queue manipulation. Every time I set it as startup script my Editor freezes after it starts (specifically ‘Discovering Asset Data’ or ‘Discovering assets’).

This issue is nonexistent with Engine version (5.0.3), only when I updated engine to 5.1 it started happening.

Scripts work fine, as when I import and use them after Editor loads (without startup script enabled) they do things as they are supposed to without any issues. So not sure if it is causing this or if there is a different issue with this whole thing.

Also I have noticed UnrealEditor.exe not responding in Task Manager, and it’s CPU usage is 0% after the freeze point constantly.

If someone has any idea why would this be happening or if there is a way to find out that would be amazing.

Thanks in advance :smiley:

While this is a somewhat older topic, I had an issue like this recnetly, The same project for me worked on different Computers, and Other project on the same Computer where i had the issue worked just fine , Deleting DDC did not helped, rebuiliding did not help, Deleteing the Saved folder, did helped but only till I wanted to restart the project, What fixed it for me is to reinstall the engine fully

I haven’t been active on the forums for a while, but I wanted to share what worked for me:

The issue was caused by a Python script running while the AssetRegistry was loading meshes. After testing, I found that each time I triggered the build mesh settings logic for imported assets at a specific moment, Unreal would get stuck.

To fix it, I rearranged the build mesh settings logic so that it only executes after the AssetRegistry has finished loading assets on startup. Once I made this change, everything worked as expected, and I haven’t encountered any issues since.

I’m not sure if this is an underlying Unreal Engine issue or just a timing conflict with Unreal handling multiple tasks simultaneously, but this solution resolved it for me. Hope this helps!