iOS Crash on First Launch

So I’ve been having an issue where Unreal crashes on first launch but then does not crash thereafter on launch. My stacktrace is as follows:

Dec 22 10:39:00 Kevins-iPad StableTytoDome[2890] <Warning>: [2015.12.22-15.39.00:392][  0]LogEngine:Error: FGenericPlatformStackWalk::StackWalkAndDump(char*, unsigned long, int, void*) Address = 0x7c0ad0   (filename not found) [in StableTytoDome]

	SignalHandler(int, __siginfo*, void*) Address = 0x7fbe34   (filename not found) [in StableTytoDome]

	_sigtramp() Address = 0x999a994c (filename not found) [in libsystem_platform.dylib]

	bool UObjectBaseUtility::IsA<UClass>() const Address = 0x6d21d0   (filename not found) [in StableTytoDome]

	FArchiveRealtimeGC::PerformReachabilityAnalysis(EObjectFlags, bool) Address = 0xa02a10   (filename not found) [in StableTytoDome]

	CollectGarbageInternal(EObjectFlags, bool) Address = 0x9d9020   (filename not found) [in StableTytoDome]

	CollectGarbage(EObjectFlags, bool) Address = 0x9d9c6c   (filename not found) [in StableTytoDome]

	UEngine::LoadMap(FWorldContext&, FURL, UPendingNetGame*, FString&) Address = 0x1b4e650  (filename not found) [in StableTytoDome]

	UEngine::Browse(FWorldContext&, FURL, FString&) Address = 0x1b4c0f0  (filename not found) [in StableTytoDome]

	UGameInstance::StartGameInstance() Address = 0x1838738  (filename not found) [in StableTytoDome]

	UGameManager::StartGameInstance() Address = 0x5d62a4   (filename not found) [in StableTytoDome]

	UGameEngine::Init(IEngineLoop*) Address = 0x183430c  (filename not found) [in StableTytoDome]

	FEngineLoop::Init() Address = 0x4fd508   (filename not found) [in StableTytoDome]

	FAppEntry::Init() Address = 0x505560   (filename not found) [in StableTytoDome]

	-[IOSAppDelegate MainAppThread:] Address = 0x7fc060   (filename not found) [in StableTytoDome]

	<redacted>() Address = 0x8536fc80 (filename not found) [in Foundation]

	<redacted>() Address = 0x999afb28 (filename not found) [in libsystem_pthread.dylib]

	<redacted>() Address = 0x999afa8c (filename not found) [in libsystem_pthread.dylib]

	thread_start() Address = 0x999ad028 (filename not found) [in libsystem_pthread.dylib]

Dec 22 10:39:00 Kevins-iPad StableTytoDome[2890] <Warning>: [2015.12.22-15.39.00:392][  0]LogGenericPlatformMisc: FPlatformMisc::RequestExit(1)
Dec 22 10:39:00 Kevins-iPad SpringBoard[53] <Warning>: HW kbd: Failed to set (null) as keyboard focus

I’m not sure where to go from here, I thought it was my JSON parsing at first but that’s not proving to be a good lead atm. I’m also not sure if we’ll be rejected from the app store for this.

Thanks,
Samuel

Hey ,

Could you please provide me with the full output from the editor as a .txt file attached to your next reply? Could you also test a project in 4.10 that’s similar to this project and let me know whether or not it’s working for you there.

Thank you!

Here are the output . [StableTytoDomeLog][1]

As per the testing in 4.10, updating as you know is not the most seamless of processes and we are pretty close to releasing so I’ll have to get back to you on that.

71757-stabletytodome.txt (12.5 KB)

If it helps, here’s a slightly different log from the same symptoms. I also turned on a more verbose logging for our internal logger so it might provide additional insight.

Edit: that log appears to be cut off, here’s a better one: [betterlog][1]

71856-stabletytodome.txt (48.1 KB)

Another log because it has a longer stacktrace!
[longerStack][1]

71860-stabletytodome3.txt (17.7 KB)

Upgraded one of my macs to 4.10 to see if it would fix it, unfortunately it did not. Instead it now hangs at the parsing of a json file. Here is the log. [Log 4][1]

71969-stabletytodome6.txt (12.1 KB)

Hey Sam,

I do not believe the full log was included in the last one. However, the second to last one, I see the following errors which I would suggest looking further into:

[2015.12.24-19.18.58:762][  0]TytoStatsLog:Error: [:73] Property "GetDebugPlantsEaten" was included in properties to monitor, but does not exist in class Territory!
[2015.12.24-19.18.58:763][  0]TytoStatsLog:Error: [:73] Property "GetDebugAnimalsEaten" was included in properties to monitor, but does not exist in class Territory!

[2015.12.24-19.18.59:250][  0]LogEngine:Error: FGenericPlatformStackWalk::StackWalkAndDump(char*, unsigned long, int, void*) Address = 0x80ca38   (filename not found) [in StableTytoDome]

SignalHandler(int, __siginfo*, void*) Address = 0x847d9c   (filename not found) [in StableTytoDome]

_sigtramp() Address = 0x8317994c (filename not found) [in libsystem_platform.dylib]

FNameEntry::AppendNameToString(FString&) const Address = 0x9af684   (filename not found) [in StableTytoDome]

FNameEntry::AppendNameToString(FString&) const Address = 0x9af684   (filename not found) [in StableTytoDome]

FName::AppendString(FString&) const Address = 0x9b059c   (filename not found) [in StableTytoDome]

FName::ToString() const Address = 0x9b0518   (filename not found) [in StableTytoDome]

FStatNameAndInfo::GetGroupNameFrom(FName) Address = 0x92bd20   (filename not found) [in StableTytoDome]

FStatGroupGameThreadNotifier::NewData(FStatNameAndInfo) Address = 0x955cf4   (filename not found) [in StableTytoDome]

_ZN21TMemberFunctionCallerI28FStatGroupGameThreadNotifierMS0_Fv16FStatNameAndInfoEEclIJRKS1_EEEDTclpmdtdefpT3ObjdtdefpT9MemFunPtrspcl7ForwardIT_Efp_EEEDpOS8_() Address = 0x97b3b0   (filename not found) [in StableTytoDome]

TBaseRawMethodDelegateInstance<false, FStatGroupGameThreadNotifier, TTypeWrapper<void> (), FStatNameAndInfo>::Execute() const Address = 0x97b350   (filename not found) [in StableTytoDome]

TBaseRawMethodDelegateInstance<false, FStatGroupGameThreadNotifier, void (), FStatNameAndInfo>::ExecuteIfSafe() const Address = 0x97b368   (filename not found) [in StableTytoDome]

TBaseDelegate<void>::ExecuteIfBound() const Address = 0x82ab90   (filename not found) [in StableTytoDome]

TGraphTask<FSimpleDelegateGraphTask>::ExecuteTask(TArray<FBaseGraphTask*, FDefaultAllocator>&, ENamedThreads::Type) Address = 0x95ab38   (filename not found) [in StableTytoDome]

FTaskThread::ProcessTasks(int, bool) Address = 0x832578   (filename not found) [in StableTytoDome]

FTaskThread::ProcessTasksUntilQuit(int) Address = 0x831b90   (filename not found) [in StableTytoDome]

FTaskGraphImplementation::WaitUntilTasksComplete(TArray<TRefCountPtr<FGraphEvent>, TInlineAllocator<4u, FDefaultAllocator> > const&, ENamedThreads::Type) Address = 0x831710   (filename not found) [in StableTytoDome]

FPhysScene::WaitPhysScenes() Address = 0x1f1326c  (filename not found) [in StableTytoDome]

UWorld::EnsureCollisionTreeIsBuilt() Address = 0x1bcb49c  (filename not found) [in StableTytoDome]

UWorld::FlushLevelStreaming(EFlushLevelStreamingType) Address = 0x1bc9f9c  (filename not found) [in StableTytoDome]

UEngine::LoadMap(FWorldContext&, FURL, UPendingNetGame*, FString&) Address = 0x1b9a230  (filename not found) [in StableTytoDome]

UEngine::Browse(FWorldContext&, FURL, FString&) Address = 0x1b98058  (filename not found) [in StableTytoDome]

UGameInstance::StartGameInstance() Address = 0x18846a4  (filename not found) [in StableTytoDome]

UGameManager::StartGameInstance() Address = 0x6804f4   (filename not found) [in StableTytoDome]

UGameEngine::Init(IEngineLoop*) Address = 0x1880278  (filename not found) [in StableTytoDome]

FEngineLoop::Init() Address = 0x5a73b0   (filename not found) [in StableTytoDome]

FAppEntry::Init() Address = 0x5af408   (filename not found) [in StableTytoDome]

-[IOSAppDelegate MainAppThread:] Address = 0x847fc8   (filename not found) [in StableTytoDome]

<redacted>() Address = 0x83ed7c40 (filename not found) [in Foundation]

<redacted>() Address = 0x8317fb28 (filename not found) [in libsystem_pthread.dylib]

<redacted>() Address = 0x8317fa8c (filename not found) [in libsystem_pthread.dylib]

thread_start() Address = 0x8317d028 (filename not found) [in libsystem_pthread.dylib]

Unfortunately resolving those errors didn’t actually fix the crash on launch. I’ve attached the log with the JSON parsing commented out (which is still crashing on first launch but successive launches are fine) as well as with the area of stats that were causing said errors also removed.

I’ve added a secondary log that successfully starts for comparison.

[Crash on first launch json commented out][1]

[Launch log from 2nd launch that did not crash for comparison][2]

72191-stabletytodome7.txt (18.2 KB)
[2]: 72192-stabletytodome8.txt (36.3 KB)

I just commented out the JSON parsing again, set the map to a blank map, and I got a very similar crash on first launch again (successive launches were fine once again) Here is the log.

[No json Crash on 1st launch empty map][1]

72221-stabletytodome9.txt (18.1 KB)

Can you please try in 4.10.1 and tell me the results? The that you posted state that the project is from 4.9.2.

I was unable to replicate this. I’m using both Visual Studio 2013 for 4.9.2 and Visual Studio 2015 for 4.10.1 and 4.11 Preview 1. I have not gotten a crash yet by launching.

Could you also try to verify your version of the engine?

Thanks!

Hey we actually just fixed this bug through ini settings, which I thought we had previously applied.

We added the settings from the top part of this for ios devices and now we no longer crash on first launch. While quite strange this fixed the issue for us!

Thank you for providing us with that information. I’m glad you’ve been able to resolve the crashing issue on your iOS device.

Have a great new year! :slight_smile: