UE4 packaged game crashes on launch.

Hello, so I have packaged a game using Unreal Engine 4.25.4 but whenever I launch the application it crashes immediately and I get this message:

I've been trying to look for a solution for days I'm so tired >.<

Thanks in advance.

Consider this:

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000000

Your app crashed because it dereferenced nullptr. Look at the crashing thread’s backtrace:

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   PuzzleGame … FMallocBinned2::Private::GetOrCreatePoolInfo(FMallocBinned2&, void*, FMallocBinned2::FPoolInfo…
1   PuzzleGame … FMallocBinned2::MallocExternalLarge(unsigned long, unsigned int) + 254
2   PuzzleGame … FMallocPoisonProxy::Malloc(unsigned long, unsigned int) + 20
3   PuzzleGame … FMemory::Malloc(unsigned long, unsigned int) + 176
4   PuzzleGame … FNameEntryAllocator::FNameEntryAllocator() + 102
5   PuzzleGame … FNamePool::FNamePool() + 42
6   PuzzleGame … FNameHelper::Make(FNameStringView, EFindName, int) + 121
7   PuzzleGame … FName FNameHelper::MakeDetectNumber(FNameAnsiStringView, EFindName) + 364
8   PuzzleGame … FName::FName(char const*, EFindName) + 50
9   PuzzleGame … FThreadSafeStaticStatBase::DoSetup(char const*, char16_t const*, char const*, char const*, cha…
10  PuzzleGame … FMsg::Logf_InternalImpl(char const*, int, FName const&, ELogVerbosity::Type, char16_t const*, …
11  PuzzleGame … auto FGenericPlatformMemory::OnOutOfMemory(unsigned long long, unsigned int)::$_19::operator()…
12  PuzzleGame … FGenericPlatformMemory::OnOutOfMemory(unsigned long long, unsigned int) + 306
13  PuzzleGame … FApplePlatformMemory::BinnedAllocFromOS(unsigned long) + 242
14  PuzzleGame … FCachedOSPageAllocator::AllocateImpl(unsigned long, unsigned int, FCachedOSPageAllocator::FFre…
15  PuzzleGame … FMallocBinned2::MallocExternalLarge(unsigned long, unsigned int) + 214
16  PuzzleGame … FMallocPoisonProxy::Malloc(unsigned long, unsigned int) + 20
17  PuzzleGame … FMemory::Malloc(unsigned long, unsigned int) + 176
18  PuzzleGame … FNameEntryAllocator::FNameEntryAllocator() + 102
19  PuzzleGame … FNamePool::FNamePool() + 42
20  PuzzleGame … FNameHelper::Make(FNameStringView, EFindName, int) + 121
21  PuzzleGame … FName FNameHelper::MakeDetectNumber(FNameAnsiStringView, EFindName) + 364
22  PuzzleGame … FName::FName(char const*, EFindName) + 50
23  PuzzleGame … FThreadSafeStaticStatBase::DoSetup(char const*, char16_t const*, char const*, char const*, cha…
24  PuzzleGame … FConsoleManager::CallAllConsoleVariableSinks() + 130
25  PuzzleGame … FConsoleManager::Test() + 182
26  PuzzleGame … IConsoleManager::SetupSingleton() + 66
27  PuzzleGame … _GLOBAL__sub_I_Module.Launch.cpp + 1416
28  dyld       … invocation function for block in dyld4::Loader::findAndRunAllInitializers(dyld4::RuntimeState&…

Frame 28 shows that this code is running because of a dynamic linker initialiser. I think that frame 27 is a C++ static constructor. After that there’s a whole bunch of code that, from the perspective of this Apple crash report, looks like your code. I presume that you didn’t actually write this code, but rather it’s coming from your third-party library. If that’s the case, I recommend that you consult the support resources for that library.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

UE4 packaged game crashes on launch.
 
 
Q