Description

Using the command in the repro steps on Linux will cause the Editor to crash and CrashReporter to pop up with a callstack.

This behaves differently when tried on Windows with -vulkan. The project started to build but the process ended. Not entirely sure if it crashed or not since CrashReporter did not appear.

This was reported and tested on 4.22 (CL-5660361). This was reproduced on 4.21.2 (CL-4753647) and Main 4.23 (CL-5915573)

Steps to Reproduce
  1. Navigate to your Engine installation folder to get to UE4Editor in the command line
  2. Use the following parameters and hit Enter: ./UE4Editor Project Path -run=resavepackages -buildlighting -MapsOnly -ProjectOnly -AllowCommandletRendering -Quality=High

Results: CrashReporter will come up with the referenced callstack

Expected: The project launches

Callstack
Unhandled Exception: SIGSEGV: invalid attempt to read memory at address 0x0000000000000140

[2019.04.17-16.31.12:265][  0]LogCore: Fatal error!

0x00007fac14a640aa libUE4Editor-ApplicationCore.so!SDL_Vulkan_GetRequiredInstanceExtensions_REAL [/home/bschaefer/UnrealEngine/Engine/Source/ThirdParty/SDL2/SDL-gui-backend/src/video/SDL_video.c:4224]
0x00007fabe3f8344e libUE4Editor-VulkanRHI.so!FVulkanLinuxPlatform::GetInstanceExtensions(TArray<char const*, FDefaultAllocator>&) [/home/qa/UnrealEngine-4.21/Engine/Source/Runtime/VulkanRHI/Private/Linux/VulkanLinuxPlatform.cpp:132]
0x00007fabe3f9cd38 libUE4Editor-VulkanRHI.so!FVulkanDynamicRHI::GetInstanceLayersAndExtensions(TArray<char const*, FDefaultAllocator>&, TArray<char const*, FDefaultAllocator>&, bool&) [/home/qa/UnrealEngine-4.21/Engine/Source/Runtime/VulkanRHI/Private/VulkanLayers.cpp:389]
0x00007fabe3fde005 libUE4Editor-VulkanRHI.so!FVulkanDynamicRHI::CreateInstance() [/home/qa/UnrealEngine-4.21/Engine/Source/Runtime/VulkanRHI/Private/VulkanRHI.cpp:343]
0x00007fabe3fdc93a libUE4Editor-VulkanRHI.so!FVulkanDynamicRHI::InitInstance() [/home/qa/UnrealEngine-4.21/Engine/Source/Runtime/VulkanRHI/Private/VulkanRHI.cpp:626]
0x00007fabe3fdc56a libUE4Editor-VulkanRHI.so!FVulkanDynamicRHI::Init() [/home/qa/UnrealEngine-4.21/Engine/Source/Runtime/VulkanRHI/Private/VulkanRHI.cpp:192]
0x00007fac15191c28 libUE4Editor-RHI.so!RHIInit(bool) [/home/qa/UnrealEngine-4.21/Engine/Source/Runtime/RHI/Private/DynamicRHI.cpp:201]
0x000000000022f5e4 UE4Editor!FEngineLoop::PreInit(char16_t const*) [/home/qa/UnrealEngine-4.21/Engine/Source/Runtime/Launch/Private/LaunchEngineLoop.cpp:1903]
0x0000000000240828 UE4Editor!GuardedMain(char16_t const*) [/home/qa/UnrealEngine-4.21/Engine/Source/Runtime/Launch/Private/Launch.cpp:135]
0x00007fac0fde8e4a libUE4Editor-UnixCommonStartup.so!CommonUnixMain(int, char**, int (*)(char16_t const*)) [/home/qa/UnrealEngine-4.21/Engine/Source/Runtime/Unix/UnixCommonStartup/Private/UnixCommonStartup.cpp:245]
0x00007fac0f80eb97 libc.so.6!__libc_start_main(+0xe6)
0x000000000022c02a UE4Editor!_start(+0x29)

Malloc Size=65538 LargeMemoryPoolOffset=539730 
Fatal error: [File:/home/qa/UnrealEngine-4.21/Engine/Source/Runtime/ApplicationCore/Private/Linux/LinuxPlatformApplicationMisc.cpp] [Line: 499]

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-72949 in the post.

1
Login to Vote

Fixed
ComponentUE - Platform - Linux
Affects Versions4.224.234.21.2
Target Fix4.22.1
Fix Commit5958520
Main Commit5958521
CreatedApr 17, 2019
ResolvedApr 17, 2019
UpdatedApr 22, 2019
View Jira Issue