When I try to use the UEEditor or UEEditor-CMD to start the editor in headless mode to execute some console commands for my CI it get the following crash.
The command I try to execute for now is:
UE4Editor-CMD “path\to\my\project.uproject” -nullrhi -nopause -nosplash -unattended -verbose -ExecCmds=“help,quit_editor”
(doesn’t matter if I run UE4Editor-CMD or UE4Editor, the crash is the same)
2020.06.14-20.41.47:146][ 0]LogWindows: Error: === Critical error: ===
[2020.06.14-20.41.47:146][ 0]LogWindows: Error:
[2020.06.14-20.41.47:146][ 0]LogWindows: Error: Fatal error: [File:C:\jnk\workspace\UnrealEngine\Engine\Source\Runtime\ApplicationCore\Private\GenericPlatform\GenericWindow.cpp] [Line: 106]
[2020.06.14-20.41.47:146][ 0]LogWindows: Error: GetRestoredDimensions is not expected to be called on this platform
[2020.06.14-20.41.47:146][ 0]LogWindows: Error:
[2020.06.14-20.41.47:146][ 0]LogWindows: Error:
[2020.06.14-20.41.47:146][ 0]LogWindows: Error: [Callstack] 0x00007ffff9c19129 KERNELBASE.dll!UnknownFunction []
[2020.06.14-20.41.47:146][ 0]LogWindows: Error: [Callstack] 0x00007fffea867b17 UE4Editor-Core.dll!UnknownFunction []
[2020.06.14-20.41.47:146][ 0]LogWindows: Error: [Callstack] 0x00007fffea86a467 UE4Editor-Core.dll!UnknownFunction []
[2020.06.14-20.41.47:147][ 0]LogWindows: Error: [Callstack] 0x00007fffea63731a UE4Editor-Core.dll!UnknownFunction []
[2020.06.14-20.41.47:147][ 0]LogWindows: Error: [Callstack] 0x00007fffea5bb223 UE4Editor-Core.dll!UnknownFunction []
[2020.06.14-20.41.47:147][ 0]LogWindows: Error: [Callstack] 0x00007fffea5bb108 UE4Editor-Core.dll!UnknownFunction []
[2020.06.14-20.41.47:147][ 0]LogWindows: Error: [Callstack] 0x00007fffeae724c1 UE4Editor-ApplicationCore.dll!UnknownFunction []
[2020.06.14-20.41.47:147][ 0]LogWindows: Error: [Callstack] 0x00007fffe4e3fac0 UE4Editor-SlateCore.dll!UnknownFunction []
[2020.06.14-20.41.47:147][ 0]LogWindows: Error: [Callstack] 0x00007fffca3c2af4 UE4Editor-Slate.dll!UnknownFunction []
[2020.06.14-20.41.47:147][ 0]LogWindows: Error: [Callstack] 0x00007fffca3de7a0 UE4Editor-Slate.dll!UnknownFunction []
[2020.06.14-20.41.47:147][ 0]LogWindows: Error: [Callstack] 0x00007fffca3a41c4 UE4Editor-Slate.dll!UnknownFunction []
[2020.06.14-20.41.47:147][ 0]LogWindows: Error: [Callstack] 0x00007fffca3f8677 UE4Editor-Slate.dll!UnknownFunction []
[2020.06.14-20.41.47:147][ 0]LogWindows: Error: [Callstack] 0x00007fffca492ef6 UE4Editor-Slate.dll!UnknownFunction []
[2020.06.14-20.41.47:148][ 0]LogWindows: Error: [Callstack] 0x00007fffca492fcd UE4Editor-Slate.dll!UnknownFunction []
[2020.06.14-20.41.47:148][ 0]LogWindows: Error: [Callstack] 0x00007fffabcc614c UE4Editor-IntroTutorials.dll!UnknownFunction []
[2020.06.14-20.41.47:148][ 0]LogWindows: Error: [Callstack] 0x00007fffabccd8db UE4Editor-IntroTutorials.dll!UnknownFunction []
[2020.06.14-20.41.47:148][ 0]LogWindows: Error: [Callstack] 0x00007fffabcccc64 UE4Editor-IntroTutorials.dll!UnknownFunction []
[2020.06.14-20.41.47:148][ 0]LogWindows: Error: [Callstack] 0x00007fffabccf674 UE4Editor-IntroTutorials.dll!UnknownFunction []
[2020.06.14-20.41.47:148][ 0]LogWindows: Error: [Callstack] 0x00007fffabccdfb7 UE4Editor-IntroTutorials.dll!UnknownFunction []
[2020.06.14-20.41.47:148][ 0]LogWindows: Error: [Callstack] 0x00007fffabca7fb9 UE4Editor-IntroTutorials.dll!UnknownFunction []
[2020.06.14-20.41.47:148][ 0]LogWindows: Error: [Callstack] 0x00007fffb3a04c70 UE4Editor-MainFrame.dll!UnknownFunction []
[2020.06.14-20.41.47:148][ 0]LogWindows: Error: [Callstack] 0x00007fffc5319e66 UE4Editor-UnrealEd.dll!UnknownFunction []
[2020.06.14-20.41.47:148][ 0]LogWindows: Error: [Callstack] 0x00007ff6cd3e72e1 UE4Editor-Cmd.exe!UnknownFunction []
[2020.06.14-20.41.47:148][ 0]LogWindows: Error: [Callstack] 0x00007ff6cd3e74aa UE4Editor-Cmd.exe!UnknownFunction []
[2020.06.14-20.41.47:149][ 0]LogWindows: Error: [Callstack] 0x00007ff6cd3f551c UE4Editor-Cmd.exe!UnknownFunction []
[2020.06.14-20.41.47:149][ 0]LogWindows: Error: [Callstack] 0x00007ff6cd3f6fbe UE4Editor-Cmd.exe!UnknownFunction []
[2020.06.14-20.41.47:149][ 0]LogWindows: Error: [Callstack] 0x00007ffffce47974 KERNEL32.DLL!UnknownFunction []
[2020.06.14-20.41.47:149][ 0]LogWindows: Error: [Callstack] 0x00007ffffcf8a271 ntdll.dll!UnknownFunction []
[2020.06.14-20.41.47:149][ 0]LogWindows: Error:
The reason behind this look like it executes the “FGenericWindow::GetRestoredDimension” function.
So I’m confused why it even tries to use a window and secondly why it is not able to recognize the windows system.
This is just a guess though.
I should note on at this point I run this in a VM without a proper GPU.
The guest system is a Windows Server 2019 running by QEmu/libvirt/virtio on a Debian Buster host system.
I tested this on my local machine with a proper GPU and a Windows 10 installation, and it works fine.
The question now is, how can I prevent this crash?