Description

Enabling the Tango plugin on Linux causes the editor to crash on restart.

Regression:
No - Tango plugin not available in 4.16.3 (CL 3561208)

Steps to Reproduce
  1. Open UE4 Editor (any project)
  2. Open Edit->Plugins
  3. Search for and enable Tango plugin
  4. Restart the editor

Result:
Editor fails to open and crashes with provided callstack

Expected:
Editor restarts with plugin enabled

Callstack
[2017.08.22-17.19.31:057][  0]LogLinux: Error: appError called: Assertion failed: Assertion failed: !bInitializedSerializationHistory [File:/home/doug/4.17.0/Engine/Source/Runtime/ShaderCore/Private/Shader.cpp] [Line: 151] 
Shader type was loaded after engine init, use ELoadingPhase::PostConfigInit on your module to cause it to load earlier.

Signal 11 caught.
Malloc Size=131076 LargeMemoryPoolOffset=131092 
CommonLinuxCrashHandler: Signal=11
Malloc Size=65535 LargeMemoryPoolOffset=196655 
[2017.08.22-17.19.31:128][  0]LogLinux: === Critical error: ===
Unhandled Exception: SIGSEGV: invalid attempt to write memory at address 0x0000000000000003

[2017.08.22-17.19.31:128][  0]LogLinux: Assertion failed: Assertion failed: !bInitializedSerializationHistory [File:/home/doug/4.17.0/Engine/Source/Runtime/ShaderCore/Private/Shader.cpp] [Line: 151] 
Shader type was loaded after engine init, use ELoadingPhase::PostConfigInit on your module to cause it to load earlier.


[Callstack]  00  0x00007f58f65dacdf  FLinuxPlatformStackWalk::CaptureStackBackTrace(unsigned long long*, unsigned int, void*)
[Callstack]  01  0x00007f58f6468025  FGenericPlatformStackWalk::StackWalkAndDump(char*, unsigned long, int, void*)
[Callstack]  02  0x00007f58f657f351  FLinuxCrashContext::CaptureStackTrace()
[Callstack]  03  0x00007f58eadbe5f0  CommonLinuxCrashHandler(FGenericCrashContext const&)
[Callstack]  04  0x00007f58f658131d  PlatformCrashHandler(int, siginfo_t*, void*)
[Callstack]  05  0x00007f58fd007390  /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390) [0x7f58fd007390]
[Callstack]  06  0x00007f58f645a574  FGenericPlatformMisc::RaiseException(unsigned int)
[Callstack]  07  0x00007f58f65cae1d  FOutputDeviceLinuxError::Serialize(wchar_t const*, ELogVerbosity::Type, FName const&)
[Callstack]  08  0x00007f58f66954e8  FOutputDevice::Logf(wchar_t const*, ...)
[Callstack]  09  0x00007f58f661fc0a  FDebug::AssertFailed(char const*, char const*, int, wchar_t const*, ...)
[Callstack]  10  0x00007f58ef7432b0  FShaderType::FShaderType(FShaderType::EShaderTypeForDynamicCast, wchar_t const*, wchar_t const*, wchar_t const*, unsigned int, FShader* (*)(), void (*)(TArray<FStreamOutElement, TFixedAllocator<16u> >&, TArray<unsigned int, FDefaultAllocator>&, int&))
[Callstack]  11  0x00007f58d7f06a16  FMaterialShaderType::FMaterialShaderType(wchar_t const*, wchar_t const*, wchar_t const*, unsigned int, FShader* (*)(), FShader* (*)(FMaterialShaderType::CompiledShaderInitializerType const&), void (*)(EShaderPlatform, FMaterial const*, FShaderCompilerEnvironment&), bool (*)(EShaderPlatform, FMaterial const*), void (*)(TArray<FStreamOutElement, TFixedAllocator<16u> >&, TArray<unsigned int, FDefaultAllocator>&, int&))
[Callstack]  12  0x00007f5831758229  /home/doug/4.17.0/Engine/Plugins/Runtime/GoogleTango/Binaries/Linux/libUE4Editor-TangoRenderer.so(+0x6229) [0x7f5831758229]
[Callstack]  13  0x00007f58fd2234ea  /lib64/ld-linux-x86-64.so.2(+0x104ea) [0x7f58fd2234ea]
[Callstack]  14  0x00007f58fd2235fb  /lib64/ld-linux-x86-64.so.2(+0x105fb) [0x7f58fd2235fb]
[Callstack]  15  0x00007f58fd228712  /lib64/ld-linux-x86-64.so.2(+0x15712) [0x7f58fd228712]
[Callstack]  16  0x00007f58fd223394  /lib64/ld-linux-x86-64.so.2(+0x10394) [0x7f58fd223394]
[Callstack]  17  0x00007f58fd227bd9  /lib64/ld-linux-x86-64.so.2(+0x14bd9) [0x7f58fd227bd9]
[Callstack]  18  0x00007f58e9799f09  /lib/x86_64-linux-gnu/libdl.so.2(+0xf09) [0x7f58e9799f09]
[Callstack]  19  0x00007f58fd223394  /lib64/ld-linux-x86-64.so.2(+0x10394) [0x7f58fd223394]
[Callstack]  20  0x00007f58e979a571  /lib/x86_64-linux-gnu/libdl.so.2(+0x1571) [0x7f58e979a571]
[Callstack]  21  0x00007f58e9799fa1  /lib/x86_64-linux-gnu/libdl.so.2(dlopen+0x31) [0x7f58e9799fa1]
[Callstack]  22  0x00007f58f65cb514  FLinuxPlatformProcess::GetDllHandle(wchar_t const*)
[Callstack]  23  0x00007f58f66f7005  FModuleManager::LoadModuleWithFailureReason(FName, EModuleLoadResult&, bool)
[Callstack]  24  0x00007f58eff45237  FModuleDescriptor::LoadModulesForPhase(ELoadingPhase::Type, TArray<FModuleDescriptor, FDefaultAllocator> const&, TMap<FName, EModuleLoadResult, FDefaultSetAllocator, TDefaultMapHashableKeyFuncs<FName, EModuleLoadResult, false> >&)
[Callstack]  25  0x00007f58eff53ff8  /home/doug/4.17.0/Engine/Binaries/Linux/libUE4Editor-Projects.so(+0x30ff8) [0x7f58eff53ff8]
[Callstack]  26  0x00007f58eff539b7  FPluginManager::LoadModulesForEnabledPlugins(ELoadingPhase::Type)
[Callstack]  27  0x0000000000434cb9  FEngineLoop::LoadStartupModules() [/home/doug/4.17.0/Engine/Source/Runtime/Launch/Private/LaunchEngineLoop.cpp, line 2543]
[Callstack]  28  0x000000000041b866  FEngineLoop::PreInit(wchar_t const*) [/home/doug/4.17.0/Engine/Source/Runtime/Launch/Private/LaunchEngineLoop.cpp, line 1957]
[Callstack]  29  0x000000000042c5a8  GuardedMain(wchar_t const*) [/home/doug/4.17.0/Engine/Source/Runtime/Launch/Private/Launch.cpp, line 42]
[Callstack]  30  0x00007f58eadbf497  CommonLinuxMain(int, char**, int (*)(wchar_t const*))
[Callstack]  31  0x00007f58e9bd3830  /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f58e9bd3830]
[Callstack]  32  0x0000000000416ac9  /home/doug/4.17.0/Engine/Binaries/Linux/UE4Editor(_start+0x29) [0x416ac9]

[2017.08.22-17.19.31:138][  0]LogExit: Executing StaticShutdownAfterError
Malloc Size=45544 LargeMemoryPoolOffset=242216 
Engine crash handling finished; re-raising signal 11 for the default handler. Good bye.

Have Comments or More Details?

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

1
Login to Vote

Cannot Reproduce
ComponentUE - Platform - Linux
Affects Versions4.17.1
CreatedAug 22, 2017
ResolvedJul 26, 2019
UpdatedJan 12, 2021