Hi, I am trying to package my project using the RunUAT.sh script on Linux. but I am met with crash:
Cook: LogSavePackage:Display: Finished SavePackage /mnt/ssd2/fastrepos/builds/8eb492aa/1/project/TownDefence/Saved/Cooked/LinuxNoEditor/TownDefence/Content/Assets/Import/Nightshade_J_Friedrich_with_root_PhysicsAsset.uasset
Cook: *** Error in `/mnt/ssd2/fastrepos/UnrealEngine/Engine/Binaries/Linux/UE4Editor': free(): invalid pointer: 0x00007fe3dc440000 ***
Cook: ======= Backtrace: =========
Cook: /usr/lib/libc.so.6(+0x72bdd)[0x7fe5014b4bdd]
Upon further investigation I found this log:
LogStaticMesh: Building static mesh SM_RockGravel_Foliage...
LogLinux: === Critical error: ===
Unhandled Exception: SIGABRT: abort() called
LogLinux: Fatal error!
[Callstack] 00 0x00007fe50d611aff FLinuxPlatformStackWalk::CaptureStackBackTrace(unsigned long long*, unsigned int, void*)
[Callstack] 01 0x00007fe50d4a12c6 FGenericPlatformStackWalk::StackWalkAndDump(char*, unsigned long, int, void*)
[Callstack] 02 0x00007fe50d5b7642 FLinuxCrashContext::CaptureStackTrace()
[Callstack] 03 0x00007fe5023753b0 CommonLinuxCrashHandler(FGenericCrashContext const&)
[Callstack] 04 0x00007fe50d5b966d PlatformCrashHandler(int, siginfo_t*, void*)
[Callstack] 05 0x00007fe5134277e0 /usr/lib/libpthread.so.0(+0x117e0) [0x7fe5134277e0]
[Callstack] 06 0x00007fe5014758c0 /usr/lib/libc.so.6(gsignal+0x110) [0x7fe5014758c0]
[Callstack] 07 0x00007fe501476f72 /usr/lib/libc.so.6(abort+0x1b2) [0x7fe501476f72]
[Callstack] 08 0x00007fe5014b4be2 /usr/lib/libc.so.6(+0x72be2) [0x7fe5014b4be2]
[Callstack] 09 0x00007fe5014bb2ec /usr/lib/libc.so.6(+0x792ec) [0x7fe5014bb2ec]
[Callstack] 10 0x00007fe5014bc6d1 /usr/lib/libc.so.6(+0x7a6d1) [0x7fe5014bc6d1]
[Callstack] 11 0x00007fe30d25e51a TMeshSimplifier<TVertSimp<8u>, 29u>::~TMeshSimplifier()
[Callstack] 12 0x00007fe30d25a725 FQuadricSimplifierMeshReduction::Reduce(FRawMesh&, float&, FRawMesh const&, TMultiMap<int, int, FDefaultSetAllocator, TDefaultMapHashableKeyFuncs<int, int, true> > const&, FMeshReductionSettings const&)
[Callstack] 13 0x00007fe30d50d8ff FStaticMeshUtilityBuilder::ReduceLODs(TArray<FStaticMeshSourceModel, FDefaultAllocator>&, FStaticMeshLODGroup const&, IMeshReduction*, bool&)
[Callstack] 14 0x00007fe30d4c9df4 FMeshUtilities::BuildStaticMesh(FStaticMeshRenderData&, TArray<FStaticMeshSourceModel, FDefaultAllocator>&, FStaticMeshLODGroup const&, int, int)
[Callstack] 15 0x00007fe509e0990c FStaticMeshRenderData::Cache(UStaticMesh*, FStaticMeshLODSettings const&)
[Callstack] 16 0x00007fe509e13600 UStaticMesh::CacheDerivedData()
[Callstack] 17 0x00007fe509e162c2 UStaticMesh::PostLoad()
[Callstack] 19 0x00007fe509a8d9d4 UBodySetup::PostLoad()
[Callstack] 20 0x00007fe50ccc3594 UObject::ConditionalPostLoad()
[Callstack] 21 0x00007fe50ce03748 EndLoad()
[Callstack] 22 0x00007fe50ce01f88 LoadPackageInternal(UPackage*, wchar_t const*, unsigned int, FLinkerLoad*)
[Callstack] 23 0x00007fe50cdff5cc LoadPackage(UPackage*, wchar_t const*, unsigned int)
[Callstack] 24 0x00007fe50365a3f7 UCookOnTheFlyServer::TickCookOnTheSide(float, unsigned int&, ECookTickFlags)
[Callstack] 25 0x00007fe503509bdb UCookCommandlet::CookByTheBook(TArray<ITargetPlatform*, FDefaultAllocator> const&, TArray<FString, FDefaultAllocator>&)
[Callstack] 26 0x00007fe5035045ea UCookCommandlet::Main(FString const&)
[Callstack] 27 0x000000000041c59c FEngineLoop::PreInit(wchar_t const*) [/mnt/ssd2/fastrepos/UnrealEngine/Engine/Source/Runtime/Launch/Private/LaunchEngineLoop.cpp, line 2070]
[Callstack] 28 0x000000000042b468 GuardedMain(wchar_t const*) [/mnt/ssd2/fastrepos/UnrealEngine/Engine/Source/Runtime/Launch/Private/Launch.cpp, line 42]
[Callstack] 29 0x00007fe50237629d CommonLinuxMain(int, char**, int (*)(wchar_t const*))
[Callstack] 30 0x00007fe5014624ca /usr/lib/libc.so.6(__libc_start_main+0xea) [0x7fe5014624ca]
[Callstack] 31 0x000000000041653a /mnt/ssd2/fastrepos/UnrealEngine/Engine/Binaries/Linux/UE4Editor(_start+0x2a) [0x41653a]
LogExit: Executing StaticShutdownAfterError
The SM_RockGravel_Foliage is from the OpenWorld Demo from Epic, and there are no custom changes done to it. I have not tried removing the asset yet(I will once I get home) but in my eyes this should not be crashing at all. Am I doing something wrong?.
The command I am executing is:
/mnt/ssd2/fastrepos/UnrealEngine/Engine/Build/BatchFiles/RunUAT.sh BuildCookRun -project="$(pwd)/TownDefence.uproject" -noP4 -platform=Linux -clientconfig=Development -serverconfig=Development -cook -allmaps -build -stage -pak -archive -compressed -server -archivedirectory="/mnt/ssd2/fastrepos/builds/TownDefence/"
(This is done through CI system that worked before, so the command should be about right.