Unreal 5.8.3 NDisplay Packaged App Crash with PostProcessMaterial

Hello,

we updated our project to Unreal 5.8.3 and we now have our program crash systematically crash after 1 min of use with ndisplay enabled, and it was not happening with Unreal 5.7.

We were able to find exactly what was causing the issue, it happens when any PostProcessMaterial is used in the scene, but the crash only appears when the project is packaged.

We were able to reproduce the issue in the nDisplay Template project. I’ve detailed them in the Repro Step, and also provided the crash callstack.

You will see in the repro steps that we didn’t find an easier way to launch a packaged app directly from switchboard, maybe there is ?

It feels like the use of packaged projects with ndisplay isn’t done a lot by ndisplay users, but it has always worked perfectly for us with previous unreal versions.

Maybe there’s a way we do it that’s not the most optimal way and causes the bug, and it could be fixed easily ?

I provided the template project as example, with at the root the .ps1 script that starts the packaged app with correct arguments directly.

This is a big issue for us as important features of our project are done in the PostProcessMaterial, that prevents us from using our software with ndisplay entirely.

Thanks for your help !

Malek

Node_0.log(120 KB)

Steps to Reproduce
Starting with the nDisplay Template project :

Create a new material, and change Material Domain to “PostProcess”

For our test we did a very simple material, only multiplying the PostProcessInput with a constant Color to add a tint to the whole scene (screenshot available below)

Add the material to the PostProcessMaterials Array of the PostProcessVolume of the scene

Create a switchboard config based on NDC_Basic, however launching the node directly from switchboard doesn’t cause the crash, since it only happens with packaged apps.

So we have to package the template project, export NDC_Basic as a .ndisplay file, and retrieve the ndisplay launch arguments from Switchboard -> Settings -> Node_0 -> CommandLineArgs -> UECommandLine

Then replace from the commandline, unrealeditorpath, uproject path and -game map name with the path of the packaged exe directly, and replace the -dc_cfg argument with the path of the exported NDC_Basic .ndisplay file.

Here’s what the full .ps1 ndisplay packaged app launch command looks like : & “.\Package\Windows\NDisplayTemplate58.exe” -messaging -dc_cluster -nosplash -fixedseed -NoVerifyGC -noxrstereo -xrtrackingonly -RemoteControlIsHeadless -StageFriendlyName=“Node_0” -MaxGPUCount=2 -dc_cfg=“.\NDC_Basic.ndisplay” -dx12 -dc_dev_mono -nosound -nomcp -NoLoadingScreen -DisablePython -dc_node=Node_0 Log=Node_0.log -ini:Engine:[/Script/Engine.Engine]:GameEngine=/Script/DisplayCluster.DisplayClusterGameEngine,[/Script/Engine.Engine]:GameViewportClientClassName=/Script/DisplayCluster.DisplayClusterViewportClient,[/Script/Engine.UserInterfaceSettings]:bAllowHighDPIInGameMode=True,[/Script/Engine.UserInterfaceSettings]:bAllowHighDpiWhenUnattended=True -ini:Game:[/Script/EngineSettings.GeneralProjectSettings]:bUseBorderlessWindow=True -ini:Input:[/Script/Engine.InputSettings]:DefaultPlayerInputClass=/Script/DisplayCluster.DisplayClusterPlayerInput -unattended -NoScreenMessages -handleensurepercent=0 -UDPMESSAGING_TRANSPORT_MULTICAST=“230.0.0.1:6666” -UDPMESSAGING_TRANSPORT_UNICAST=“127.0.0.1:0” -UDPMESSAGING_TRANSPORT_STATIC=“127.0.0.1:9030” -ExecCmds=“DisableAllScreenMessages” -fullscreen -CONCERTRETRYAUTOCONNECTONERROR -CONCERTAUTOCONNECT -CONCERTSERVER=“BasicConf_MU_Server_Z6rbx5k3poEP” -CONCERTSESSION=“MU_BasicConf_1” -CONCERTDISPLAYNAME=“Node_0” -CONCERTISHEADLESS -DPCVars=“Slate.bAllowNotifications=0,p.Chaos.Solver.Deterministic=1,LevelInstance.ForceEditorWorldMode=1,gc.AllowIncrementalReachability=1,r.pso.evictiontime=3600”

Then launch and after approximately one minute, it crashes

Hey Malek are you all able to take a code update or are you working off launcher?

Hey, we’re using unreal through the epic games launcher but if there’s no really no other way we can migrate to a source build temporarily.

I also had another issue with ndisplay in 5.8 that was resolved here and required a fix in the ndisplay plugin, and I was able to copy it in my project and fix it without recompiling the whole engine, is this not possible with this one ? [Content removed]

Thanks !

We don’t know what it has to touch yet. I was just seeing what our options are. :blush:

Hey Malek,

Can you give this a try and see if it resolves it for you?

https://github.com/EpicGames/UnrealEngine/commit/0103a33d857a1e19c25bc98107157b6a215ce253

Hi,

Yes it works, thank you so much !

We were even able to apply the fix in the ndisplay plugin copy of the project, as it was explained in the first bug, so we don’t even have to recompile the whole engine !

We were finally able to make our product work through ndisplay in ue5.8 again, everything else is working !

Thanks again,

Malek