Hello, I am relatively new to Unreal Engine and am unable to open up my file due to reoccurring crashing occurring at the same point during loading of a level. Whilst working on a landscape scene and was in the process of importing megascans files into Unreal Enginge 5, as well as editing a material setup, the engine crashed. I have tried restarting but it (and any previously saved levels) also crash when compiling shaders.
I am unsure how to proceed and would welcome some support. Can someone please help?
Hey there @ArchitectingAlex1! Welcome to the community! Sounds like itâs probably a crash related to the visuals in one way or another. Could we see the crash logs? If you donât have the debugging symbols, Iâll include a tutorial that explains a bit about them, how to install them etc.
Disclaimer: Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.
Thank you for your speedy reply. I will try my best to send over the information as possible. Here is the call stack however as a new user I am not able to attach any of the information in the crash file.
At the time of the initial crash I was tinkering with importing megascan materials and being prompted for datata tables (which i was selecting to test out what would happen without understanding how that worksâŚ). Currently the crash seems to happen when compiling shaders. Though it also crashed once upon selecting opening a level with the Landscape Material Instance open in a tab.
Assertion failed: IFileManager::Get().MakeDirectory(*DumpDebugInfoPath, true) [File:D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\ShaderCompiler\ShaderCompiler.cpp] [Line: 3714] Failed to create directory for shader debug info âD:/Projects/Unreal Engine Projects/04 Undini Tutorial Series/Second Attempt/Detailed_Landscape 5.0/Saved/ShaderDebugInfo/PCD3D_SM5/M_Landscape_GodTier/FLandscapeXYOffsetVertexFactory/TBasePassPSFPrecomputedVolumetricLightmapLightingPolicySkylight/0â
From the error returned it seems unreal couldnât create a directory. Could it be a file permission problem? Did windows ask for write permission by any chance during the import?
Could it be a disk space problem? (did your d drive fill up during crash)?
I deleted those files and the problem still occurred.
Whatâs more I have tried recreating the project in a completely new file/folder and have just experienced the same crash.
A quick search about âfailed to create directoriesâ suggests that the program unreal engine should be saved on the same drive that the project is being saved onto, which mine is not. Is this a possible cause for the issue, or am i mistaken with something else?
I have apparently somewhat resolved it by moving the base folder higher up the list of subfolders on my drive. Before calling this solved though, can someone please explain the reason for this and best practice in terms of file creating?
Currently I have dropped the project folder on the initial drive which is not ideal, as previously it was in a series of subfolders helping to organise my work. I would ideally have the project folder a bit more organised but do not want to recreate the crash.
It could be the filename / path name length. The path that was listed above was 248 chars. The default limit was 256 chars not counting drive letter and null termination. There appears to be a new feature after windows 10 to allow longer file/path names but you need to activate it.
I personally would try to simplify the file paths and not nest too deep in files as it becomes more and more difficult to read and traverse.
So, you could try renaming some of the longer directories to something simple and see if that fixes it.
Here is the link from Microsoft for the work required to extend the file limits. I have NOT done this, so proceed with caution.
everything is relative paths so you can literally move your entire projects folder to another drive and restart the launcher
then browse to a proj and open, the next time you reboot the launcher the projects should populate.
you can also have projects in more than one location but it can get messy.
I use U:\unreal\projects