Packaged Mac Shipping build crashes on startup

Hey folks,

I’m trying to make a Packaged Shipping build for the first time, on Mac OS X. The packaging seems to work, but when I double-click the generated .app it crashes.

I’m using:

  • the GitHub version of UE4, (origin/4.2)
  • OS X 10.9.2
  • Xcode Version 5.1.1 (5B1008)

Here’s the log:

SIGSEGV: invalid attempt to access memory at address 0x28

EngineCrashHandler(FGenericCrashContext const&) [LaunchMac.cpp, line 25] [in MyProjectName-Mac-Shipping]
PlatformCrashHandler(int, __siginfo*, void*) [MacPlatformMisc.cpp, line 1065] [in MyProjectName-Mac-Shipping]
_sigtramp() Address = 0x8d48e5aa (filename not found) [in libsystem_platform.dylib]

ULinkerLoad::CreateLoader() [LinkerLoad.cpp, line 663] [in MyProjectName-Mac-Shipping]
ULinkerLoad::Tick(float, bool, bool) [LinkerLoad.cpp, line 480] [in MyProjectName-Mac-Shipping]
GetPackageLinker(UPackage*, wchar_t const*, unsigned int, UPackageMap*, FGuid*) [LinkerLoad.cpp, line 237] [in MyProjectName-Mac-Shipping]
LoadPackage(UPackage*, wchar_t const*, unsigned int) [UObjectGlobals.cpp, line 784] [in MyProjectName-Mac-Shipping]
ResolveName(UObject*&, FString&, bool, bool) [UObjectGlobals.cpp, line 553] [in MyProjectName-Mac-Shipping]
StaticLoadObject(UClass*, UObject*, wchar_t const*, wchar_t const*, unsigned int, UPackageMap*, bool) [UObjectGlobals.cpp, line 654] [in MyProjectName-Mac-Shipping]
UStaticMesh* ConstructorHelpersInternal::FindOrLoadObject<UStaticMesh>(FString&) [ConstructorHelpers.h, line 31] [in MyProjectName-Mac-Shipping]
ConstructorHelpers::FObjectFinderOptional<UStaticMesh>::Get() [ConstructorHelpers.h, line 120] [in MyProjectName-Mac-Shipping]
AMyProjectNamePawn::AMyProjectNamePawn(FPostConstructInitializeProperties const&) [MyProjectNamePawn.cpp, line 22] [in MyProjectName-Mac-Shipping]
UClass::CreateDefaultObject() [Class.cpp, line 2377] [in MyProjectName-Mac-Shipping]
ProcessNewlyLoadedUObjects() [UObjectBase.cpp, line 503] [in MyProjectName-Mac-Shipping]
FEngineLoop::PreInit(wchar_t const*) [LaunchEngineLoop.cpp, line 1225] [in MyProjectName-Mac-Shipping]
-[UE4AppDelegate applicationDidFinishLaunching:] [Launch.cpp, line 114] [in MyProjectName-Mac-Shipping]
__CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__() Address = 0x8ab3ee0c (filename not found) [in CoreFoundation]
_CFXNotificationPost() Address = 0x8aa32a6d (filename not found) [in CoreFoundation]
-[NSNotificationCenter postNotificationName:object:userInfo:] Address = 0x924e07ba (filename not found) [in Foundation]
-[NSApplication _postDidFinishNotification] Address = 0x8bef3cf9 (filename not found) [in AppKit]
-[NSApplication _sendFinishLaunchingNotification] Address = 0x8bef3a2c (filename not found) [in AppKit]
-[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] Address = 0x8bef0916 (filename not found) [in AppKit]
-[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] Address = 0x8bef036b (filename not found) [in AppKit]
-[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] Address = 0x924fef0a (filename not found) [in Foundation]
_NSAppleEventManagerGenericHandler() Address = 0x924fed7d (filename not found) [in Foundation]
aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) Address = 0x8e0e6e1f (filename not found) [in AE]
dispatchEventAndSendReply(AEDesc const*, AEDesc*) Address = 0x8e0e6c32 (filename not found) [in AE]
aeProcessAppleEvent() Address = 0x8e0e6b36 (filename not found) [in AE]
AEProcessAppleEvent() Address = 0x921e9161 (filename not found) [in HIToolbox]
_DPSNextEvent() Address = 0x8beec246 (filename not found) [in AppKit]
-[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] Address = 0x8beeba2b (filename not found) [in AppKit]
-[NSApplication run] Address = 0x8bedfb2c (filename not found) [in AppKit]
NSApplicationMain() Address = 0x8beca913 (filename not found) [in AppKit]
tchar_main(int, wchar_t**) [LaunchMac.cpp, line 227] [in MyProjectName-Mac-Shipping]
main() [LaunchMac.cpp, line 204] [in MyProjectName-Mac-Shipping]
start() Address = 0x91d585fd (filename not found) [in libdyld.dylib]

I’m retrying this using an unmodified Flying C++ sample. That should give a good baseline.

The unmodified flying sample works fine, so I guess this is something that I’m doing wrong. Interestingly, it took over 3 hours to package on a MacBook Pro non-retina 13". This seems excessive.

Hello,

Thank you for your report. We were not able to investigate this on the engine version you reported, but there have been many version changes to UE4 since this question was first posted. With a new version of the Engine comes new fixes and it is possible that this issue has changed or may no longer occur. Due to timetable of when this issue was first posted, we are marking this post as resolved for tracking purposes. If you are still experiencing the issue you reported in the current engine version, then please respond to this message with additional information and we will investigate as soon as possible. If you are experiencing a similar, but different issue at this time, could you please submit a new report for it.

Thanks!