Fatal Error opening UEFN Project

Summary

When opening a project in UEFN v31.30 the engine crashes. This crash did not occur in UEFN v31.20

Fatal error: [File:D:\build++Fortnite\Sync\Engine\Source\Runtime\RenderCore\Private\ShaderParameters.cpp] [Line: 26] Failure to bind non-optional shader resource parameter OutTarget0! The parameter is either not present in the shader, or the shader compiler optimized it out.

Please select what you are reporting on:

Unreal Editor for Fortnite

What Type of Bug are you experiencing?

Engine Crash

Steps to Reproduce

Open Project. See attached video

Expected Result

Project will not crash the engine when trying to open it.

Observed Result

Engine crashes when trying to open the project.

Platform(s)

PC

Island Code

0909-1879-4957

Additional Notes

Crash Logs
UECC-Windows-6689E0044154D4740F5CCEBEF23EA024_0000.zip (277.0 KB)

hi @Cleverlike_Studios
Your error log contains

Guid format shader working directory is -4 characters bigger than the processId version (C:/Users/yourName/AppData/Local/UnrealEditorFortnite/Intermediate/Shaders/WorkingDirectory/30488/).

This shows the corrupted shader area which is NOT cleared by verifying your UEFN installation.

There are lots of leftover files from the earlier UEFN versions.

This was solved in the post
31.20 [Solved] UEFN Fix Validation Error pop up wont “Run” - General / Issues and Bug Reporting - Epic Developer Community Forums (unrealengine.com)

This clears the areas programmatically

Thanx for getting back to me on this. I’ve tried this yesterday, and the .bat deleted only what was in the downloads folder (where I saved the “UEFNfixRun2.txt” file). Note: I did change the file paths in the UEFNfixRun2.txt to match the user name, as running it without changing the user name gave the error that the path did not exist.

So my next step was to

  • Close UEFN
  • Manually delete the “intermediate” folder
  • Restart UEFN
  • Reopen the project in question

This process did not fix the issue.

Would you suggest also deleting the “Saved” folder?

Thanx for you assistance and help :slight_smile:

-Ian

Checking back in with this. Any progress or suggestions?

hi @Cleverlike_Studios
Working on a similar problem

[2024.10.18-02.34.52:241][ 0]LogShaderCompilers: Display: Compiling shader autogen file: C:/Users/jxxx/AppData/Local/UnrealEditorFortnite/Intermediate/ShaderAutogen/PCD3D_SM5/AutogenShaderHeaders.ush
The Shader settings are wrong yours is PCD3D_SM6

[2024.10.09-16.12.47:884][ 0]LogShaderCompilers: Display: Compiling shader autogen file: C:/Users/ixxx/AppData/Local/UnrealEditorFortnite/Intermediate/ShaderAutogen/PCD3D_SM6/AutogenShaderHeaders.ush

First, try the easier shortcut to UEFN and add DX11 as an Additional Parameter

in this picture, copy and paste the line below we need to add Dx11 and sm5
to give -d3d11 -sm5 at the end of Target box

"C:\Program Files\Epic Games\Fortnite\FortniteGame\Binaries\Win64\UnrealEditorFortnite-Win64-Shipping.exe" -d3d11 -sm5

Now start UEFN from the Desktop Shortcut

This is a highly technical soloution to the problem only if you are comfortable

This has been rewritten for UEFN (Unreal Engine Fortnite) , which is based on UE 5.5

You need to change the Base system on startup
go into Windows File Explorer copy and paste the path C:\Program Files\Epic Games\Fortnite\Engine\Config
Highlight “BaseEngine.ini”. Right Click “Open with” select Notepad

Control+F find “WindowsTargetSettings” at line 2840

[/Script/WindowsTargetPlatform.WindowsTargetSettings]
+D3D12TargetedShaderFormats=PCD3D_SM5
+D3D11TargetedShaderFormats=PCD3D_SM5
bEnableDistanceFields=true
bEnableRayTracing=true
bTarget32Bit=false

Add the line at the beginning

DefaultGraphicsRHI=DefaultGraphicsRHI_DX11

Make sure you have PCD3D_SM5 NOT PCD3D_SM6

so this section looks like

[/Script/WindowsTargetPlatform.WindowsTargetSettings]
DefaultGraphicsRHI=DefaultGraphicsRHI_DX11
+D3D12TargetedShaderFormats=PCD3D_SM5
+D3D11TargetedShaderFormats=PCD3D_SM5
bEnableDistanceFields=true
bEnableRayTracing=true
bTarget32Bit=false

Type Control +s ,Save the file on closing notepad and restart UE Editor.
You system now uses DefaultGraphicsRHI_DX11

If you like using the Windows Command shell use the command
notepad C:\Program Files\Epic Games\Fortnite\Engine\Config\BaseEngine.ini

Thank you for getting back to me. I will try this and get back to you.

:saluting_face:That worked. Thanx for the assist. Here is a quick TL;DR tutorial to address this issue.

1 Like


Will have another go at doing this tomorrow, found the location but must have done it wrong

Thanks for the info

That above was after adding -d3d11 -sm5

This was the original issue - I am back to this now

hi @Fallen-Champ ,
Please refer to the new thread
[Solved] How to fix Fatal Errors in UEFN related to Graphic Cards and Shaders and Derived Data problems