Download

4.24 Crash Code not found for generated code (package /Script/Persona).

Hi,

I just pulled the latest changes from the 4.24 branch and built it on Ubuntu-18.04 LTS and I get the following crash:



Assertion failed: FoundPackage [File:/mnt/storage/mount/project/software/library/unrealengine-4.24-ppc64le/Engine/Source/Runtime/CoreUObject/Private/UObject/UObjectGlobals.cpp] [Line: 4506]
Code not found for generated code (package /Script/Persona).
[2019.12.09-21.40.33:479]  0]LogCore: Error: appError called: Assertion failed: FoundPackage [File:/mnt/storage/mount/project/software/library/unrealengine-4.24-ppc64le/Engine/Source/Runtime/CoreUObject/Private/UObject/UObjectGlobals.cpp] [Line: 4506]
Code not found for generated code (package /Script/Persona).

Signal 11 caught.
Malloc Size=65538 LargeMemoryPoolOffset=65554
CommonUnixCrashHandler: Signal=11
Malloc Size=65535 LargeMemoryPoolOffset=131119
Malloc Size=448720 LargeMemoryPoolOffset=579856
[2019.12.09-21.40.33:509]  0]LogCore: === Critical error: ===
Unhandled Exception: SIGSEGV: invalid attempt to write memory at address 0x0000000000000003

[2019.12.09-21.40.33:509]  0]LogCore: Assertion failed: FoundPackage [File:/mnt/storage/mount/project/software/library/unrealengine-4.24-ppc64le/Engine/Source/Runtime/CoreUObject/Private/UObject/UObjectGlobals.cpp] [Line: 4506]
Code not found for generated code (package /Script/Persona).


0x00007f3196db2bb6 libUE4Editor-Core.so!FGenericPlatformMisc::RaiseException(unsigned int) [/mnt/storage/mount/project/software/library/unrealengine-4.24-ppc64le/Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformMisc.cpp:477]
0x00007f3196fc6ee7 libUE4Editor-Core.so!FOutputDevice::LogfImpl(char16_t const*, ...) [/mnt/storage/mount/project/software/library/unrealengine-4.24-ppc64le/Engine/Source/Runtime/Core/Private/Misc/OutputDevice.cpp:71]
0x00007f3196f4f2f6 libUE4Editor-Core.so!AssertFailedImplV(char const*, char const*, int, char16_t const*, __va_list_tag*) [/mnt/storage/mount/project/software/library/unrealengine-4.24-ppc64le/Engine/Source/Runtime/Core/Private/Misc/AssertionMacros.cpp:105]
0x00007f3196f4f18b libUE4Editor-Core.so!FDebug::CheckVerifyFailedImpl(char const*, char const*, int, char16_t const*, ...) [/mnt/storage/mount/project/software/library/unrealengine-4.24-ppc64le/Engine/Source/Runtime/Core/Private/Misc/AssertionMacros.cpp:452]
0x00007f319699fccf libUE4Editor-CoreUObject.so!UE4CodeGen_Private::ConstructUPackage(UPackage*&, UE4CodeGen_Private::FPackageParams const&)::$_95::operator()() const [/mnt/storage/mount/project/software/library/unrealengine-4.24-ppc64le/Engine/Source/Runtime/CoreUObject/Private/UObject/UObjectGlobals.cpp:4506]
0x00007f319693c96b libUE4Editor-CoreUObject.so!UE4CodeGen_Private::ConstructUPackage(UPackage*&, UE4CodeGen_Private::FPackageParams const&) [/mnt/storage/mount/project/software/library/unrealengine-4.24-ppc64le/Engine/Source/Runtime/CoreUObject/Private/UObject/UObjectGlobals.cpp:4506]
0x00007f311a641e52 libUE4Editor-Persona.so!Z_Construct_UPackage__Script_Persona() [/mnt/storage/mount/project/software/library/unrealengine-4.24-ppc64le/Engine/Intermediate/Build/Linux/B4D820EA/UE4Editor/Inc/Persona/Persona.init.gen.cpp:28]
0x00007f319693ca04 libUE4Editor-CoreUObject.so!UE4CodeGen_Private::ConstructUClass(UClass*&, UE4CodeGen_Private::FClassParams const&) [/mnt/storage/mount/project/software/library/unrealengine-4.24-ppc64le/Engine/Source/Runtime/CoreUObject/Private/UObject/UObjectGlobals.cpp:4533]
0x00007f311a641e82 libUE4Editor-Persona.so!Z_Construct_UClass_AAnimationEditorPreviewActor() [/mnt/storage/mount/project/software/library/unrealengine-4.24-ppc64le/Engine/Intermediate/Build/Linux/B4D820EA/UE4Editor/Inc/Persona/AnimationEditorPreviewActor.gen.cpp:70]
0x00007f3196912ab4 libUE4Editor-CoreUObject.so!UObjectLoadAllCompiledInDefaultProperties() [/mnt/storage/mount/project/software/library/unrealengine-4.24-ppc64le/Engine/Source/Runtime/CoreUObject/Private/UObject/UObjectBase.cpp:894]
0x00007f319690c3ac libUE4Editor-CoreUObject.so!ProcessNewlyLoadedUObjects(FName, bool) [/mnt/storage/mount/project/software/library/unrealengine-4.24-ppc64le/Engine/Source/Runtime/CoreUObject/Private/UObject/UObjectBase.cpp:1021]
0x000000000024bf8e UE4Editor!FEngineLoop::PreInitPostStartupScreen(char16_t const*) [/mnt/storage/mount/project/software/library/unrealengine-4.24-ppc64le/Engine/Source/Runtime/Launch/Private/LaunchEngineLoop.cpp:2708]
0x000000000023d30b UE4Editor!GuardedMain(char16_t const*) [/mnt/storage/mount/project/software/library/unrealengine-4.24-ppc64le/Engine/Source/Runtime/Launch/Private/Launch.cpp:131]
0x00007f3197b48162 libUE4Editor-UnixCommonStartup.so!CommonUnixMain(int, char**, int (*)(char16_t const*), void (*)()) [/mnt/storage/mount/project/software/library/unrealengine-4.24-ppc64le/Engine/Source/Runtime/Unix/UnixCommonStartup/Private/UnixCommonStartup.cpp:242]
0x00007f318e342b97 libc.so.6!__libc_start_main(+0xe6)
0x000000000022a029 UE4Editor!_start()

[2019.12.09-21.40.33:549]  0]LogExit: Executing StaticShutdownAfterError



The editor was working fine, a few commits from Dec 4, perhaps commit id: c3e0af356e834c4ebb7ba82b2e9bbd0f7a8da925

Will do a rebuild just to confirm the exact commit which causes the crash.

Elvis Dowson

Yeah, its this commit that’s causing the crash:



commit 993aadd116f6fe1e5d526ef6aed326b40c03a09f (HEAD)
Author: Martin Wilson <Martin.Wilson@epicgames.com>
Date:   Wed Dec 4 05:37:08 2019 -0500

    Fix crash when trying to load files from PAKs in single threaded applications

    #jira UE-85376
    #rb Robert.Manuszewski

    [CL 10505568 by Martin Wilson in 4.24 branch]


The 4.24.0-release tag builds and runs fine. So there is currently a difference between the current 4.24 branch and the 4.24.0-release tag. The final merge commit for 4.24.0-release must have fixed the issues with crashing upon launch caused by commit id 993aadd116f6fe1e5d526ef6aed326b40c03a09f