Unreal engine plugin UE4.27 error

Hello,

I’ve been testing the unreal engine plugin with UE4.27 and I haven’t managed to render for now.
The render command exit with “Process exit code: 3”.
If I take a look at the log, it seems to fail when trying to create the game window.

[2022.01.25-22.34.08:863][ 0]LogEngine: GameWindow did not exist. Was created
[2022.01.25-22.34.08:867][ 0]LogD3D11RHI: CreateSwapChainForHwnd failed with result ‘887A0022’ (0x887A0022), falling back to legacy CreateSwapChain.
[2022.01.25-22.34.08:867][ 0]LogD3D11RHI: Error: CreateSwapChainResult failed
at /Engine/Source/Runtime/Windows/D3D11RHI/Private/Windows/WindowsD3D11Viewport.cpp:248
with error 887A0022

I’m able to render by executing the same command line in a windows terminal (on the same machine).

2022-01-25 17:56:52: 0: INFO: Full Command: “C:\fp_unreal\4.27\UnrealEngine\Engine\Binaries\Win64\UE4Editor.exe” “C:/fp_unreal/UnrealProjects/XXXX/XXXX.uproject” “/Game/Maps/L_Shot3” -game -MovieSceneCaptureType="/Script/MovieSceneCapture.AutomatedLevelSequenceCapture" -LevelSequence="/Game/Maps/Shot3_Sequencer" -NoLoadingScreen -MovieStartFrame=0 -MovieEndFrame=1 -ForceRes -ResX=1920 -ResY=1080 -Windowed -VSync -MovieFrameRate=60 -NoTextureStreaming -MovieFolder=“S:\people\louise\test\unreal” -MovieName=“unreal_test_{frame}” -MovieFormat=PNG -MovieQuality=75 -MovieCinematicMode=Yes -MovieWarmUpFrames=0 -NoScreenMessages

I’m wondering if someone had the same issue previously ? or ideas on how to fix it ?

Thanks,

Louise

1 Like

After some investigation, It seemed an issue with Directx11 (D11RHI) and I tested to force Directx 12 in ProjectSettings > Windows > Targeted RHIs (DefaultGraphicsRHI=DefaultGraphicsRHI_DX12).

Now, It’s running and do not exit with an error but it doesn’t render and the last line of the log is
[2022.01.26-14.42.01:599][ 0]LogD3D12RHI: Error: hr failed
at /Engine/Source/Runtime/D3D12RHI/Private/Windows/WindowsD3D12Viewport.cpp:224
with error DXGI_ERROR_NOT_CURRENTLY_AVAILABLE

And it seems that the driver cannot be found on farm.

[2022.01.26-15.02.27:166][ 0]LogWindows: DebugString: FoundDriverCount:0
[2022.01.26-15.02.27:166][ 0]LogD3D12RHI: Adapter Name: NVIDIA GeForce RTX 2070
[2022.01.26-15.02.27:166][ 0]LogD3D12RHI: Driver Version: Unknown (internal:Unknown, unified:Unknown)
[2022.01.26-15.02.27:166][ 0]LogD3D12RHI: Driver Date: Unknown
[2022.01.26-15.02.27:166][ 0]LogRHI: Texture pool is 4575 MB (70% of 6536 MB)

but are found using the command line locally.

[2022.01.26-14.58.40:881][ 0]LogWindows: DebugString: FoundDriverCount:4
[2022.01.26-14.58.40:881][ 0]LogD3D12RHI: Adapter Name: NVIDIA GeForce RTX 2070
[2022.01.26-14.58.40:881][ 0]LogD3D12RHI: Driver Version: 496.13 (internal:30.0.14.9613, unified:496.13)
[2022.01.26-14.58.40:881][ 0]LogD3D12RHI: Driver Date: 10-6-2021

Ok, so I finally found the solution, it was because deadline was running as a service on the worker. It needs an active session to be able to access to gpu.

1 Like