Search Issue Tracker

Fixed in 2018.1.X

Fixed in 5.6.X, 2017.1.X, 2017.2.X, 2017.3.X

Votes

1

Found in

2017.2.0f3

Issue ID

960439

Regression

No

[iOS 11] Build crashes on remotear`::UnityUpdateDisplayList() when launching app from URL with AirPlay connected

iOS

-

To reproduce:
1. Open project attached by the user
2. Build it for iOS platform
3. Open build .xcodeproj file in XCode
4. Go to Product -> Scheme -> Edit Scheme
5. Select "Info" tab and tick "Wait for executable to be launched"
6. Build to device
7. Connect the device to Apple TV (to use screen mirroring)
8. After the device is connected to Apple TV go to Safari (on device) and type: airplaycrash://
9. It will ask to open an app, hit open

Expected result: Application should be launched from URL
Actual result: Application crashes on start

Reproduced with: 5.6.3p4, 2017.2.0f3, 2017.3.0b5, 2018.1.0a1
Device: iPhone 6s iOS 11.0

Not reproducible with iPad mini 3 iOS 10.3

Fixed in: 2018.1.0b1
Backported to: 2017.3.0p2, 2017.2.1p2, 2017.1.3p1, 5.6.5p3

Comments (52)

  1. pl_ayground

    Mar 19, 2018 12:20

    not able to replicate on my iPad but I do not have a setup where I could troubleshoot AirPlay.

    My stacktrace is here: https://www.dropbox.com/sh/75y4k27n6epu856/AAA684cpdvhDQxse9ZxvMyGDa?dl=0

  2. brightonrich

    Mar 19, 2018 11:55

    Is anyone able to reproduce this locally?

  3. andreasp

    Mar 17, 2018 02:53

    More call stacks from seemingly related rejections:

    https://forum.unity.com/threads/ios-crash-on-startup-unity-2017-1-3p2.521666

  4. pandigital

    Mar 16, 2018 11:48

    @BRIGHTONRICH

    Any news on this yet - everyday we lose on this is delaying release...

  5. pandigital

    Mar 15, 2018 16:05

    Here's a sample from my most recent crash reports from Apple
    https://pastebin.com/VVa37Ua6

  6. brian_pseudo

    Mar 15, 2018 16:04

    Hi @BRIGHTONRICH:

    This seems to be related to the airplay issue, it has resulted with at least 5 rejections from apple with the comment attached "Your app crashed on iPad or iPhone running iOS 11.2.5 connected to an IPv6 network during our review." It does appear that the tester is connecting with airpla:

    2018-03-06 17:12:20.2996 -0800 0x1d16 1024 0x0 342 FrontBoardServices: [FBSScene] [com.ourcompany.ourapp - AirPlay] Created client agent: <UIApplicationSceneClientAgent: 0x13f0f42a0>.

    Every rejection is due to "SPRINGBOARD, scene-create watchdog transgression" (our app was stuck in the initial load for too long).

    The following is the stack trace for thread 0:

    0 libsystem_pthread.dylib 0x0000000181c9bbcc pthread_mutex_unlock$VARIANT$mp + 112 (pthread_mutex.c:187)
    1 Foundation 0x0000000182961af8 -[NSLock unlock] + 24 (NSLock.m:270)
    2 myappl 0x0000000101af79fc Vuforia::init+ 18954748 () + 292
    3 myappl 0x0000000101acb974 initQCARiOS + 18774388 (VuforiaUnityPlayer.mm:83)
    4 myappl 0x0000000100df5d3c IOSUnityPlayer_InitializeVuforia_m2342214426 + 5315900 (Bulk_Vuforia.UnityExtensions_1.cpp:29560)
    5 myappl 0x0000000100e2bf64 VuforiaRuntime_InitVuforia_m64948871 + 5537636 (Bulk_Vuforia.UnityExtensions_2.cpp:37421)
    6 myappl 0x00000001010a4758 RuntimeInvoker_Void_t1185182177(void (*)(), MethodInfo const*, void*, void**) + 8128344 (Il2CppInvokerTable.cpp:37502)
    7 myappl 0x0000000101abac28 il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**) + 18705448 (Runtime.cpp:469)
    8 myappl 0x0000000101440cec scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool) + 11914476 (ScriptingApi_Il2Cpp.cpp:216)
    9 myappl 0x0000000101448134 ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool) + 11944244 (ScriptingInvocation.cpp:329)
    10 myappl 0x000000010138ae80 RuntimeInitializeOnLoadManager::ExecuteInitializeOnLoad(std::__1::vector<int, stl_allocator<int, (MemLabelIdentifier)13, 16> >) + 11169408 (RuntimeInitializeOnLoadManager.cpp:363)
    11 myappl 0x000000010138ad44 RuntimeInitializeOnLoadManager::ExecuteInitializeOnLoad(RuntimeInitializeLoadType) + 11169092 (RuntimeInitializeOnLoadManager.cpp:356)
    12 myappl 0x00000001013a6748 LoadSceneOperation::IntegrateMainThread() + 11282248 (LoadSceneOperation.cpp:395)
    13 myappl 0x00000001013a75d0 PreloadManager::UpdatePreloadingSingleStep(PreloadManager::UpdatePreloadingFlags, int) + 11285968 (PreloadManager.cpp:459)
    14 myappl 0x00000001013a7b1c PreloadManager::WaitForAllAsyncOperationsToComplete() + 11287324 (PreloadManager.cpp:542)
    15 myappl 0x00000001013ab09c RuntimeSceneManager::LoadScene(core::basic_string<char, core::StringStorageDefault<char> > const&, core::basic_string<char, core::StringStorageDefault<char> > const&, core::basic_string<char, core::StringStorageDefault<char> > const&, UnityGUID const&, int, RuntimeSceneManager::LoadingMode) + 11301020 (SharedObject.h:110)
    16 myappl 0x000000010137ce20 PlayerStartFirstScene(bool) + 11111968 (Player.cpp:492)
    17 myappl 0x00000001011c08c0 UnityLoadApplication + 9291968 (LibEntryPoint.mm:209)
    18 myappl 0x00000001009009ac -[UnityAppController startUnity:] + 117164 (UnityAppController.mm:133)
    19 Foundation 0x0000000182a53d58 __NSFireDelayedPerform + 412 (NSRunLoop.m:620)
    20 CoreFoundation 0x0000000182017dc0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28 (CFRunLoop.c:1832)
    21 CoreFoundation 0x0000000182017ae4 __CFRunLoopDoTimer + 864 (CFRunLoop.c:2415)
    22 CoreFoundation 0x00000001820172e4 __CFRunLoopDoTimers + 248 (CFRunLoop.c:2562)
    23 CoreFoundation 0x0000000182014ecc __CFRunLoopRun + 1928 (CFRunLoop.c:3083)
    24 CoreFoundation 0x0000000181f34c58 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3245)
    25 GraphicsServices 0x0000000183de0f84 GSEventRunModal + 100 (GSEvent.c:2245)
    26 UIKit 0x000000018b68d5c4 UIApplicationMain + 236 (UIApplication.m:3956)
    27 myappl 0x00000001008ec060 main + 32864 (main.mm:33)
    28 libdyld.dylib 0x0000000181a5456c start + 4

    Any help is greatly appreciated.

  7. brightonrich

    Mar 15, 2018 15:39

    We're looking into this now. Can you post any call stacks please? I'd like to verify that we're all seeing the same issue.

  8. pandigital

    Mar 15, 2018 14:36

    So far have tried submissions (ALL REJECTED) using

    Unity IOS version 2.0.3 (3) Build with Unity 2017.2.1f1

    Unity IOS version 2.0.5 (1) Build with Unity 2017.3.0p2

    Unity IOS version 2.0.6 (1) Build with Unity 2017.2.0f3

    Unity IOS version 2.0.7 (1) Build with Unity 2017.3.1p4

    v. annoying

  9. ALSY

    Mar 15, 2018 14:09

    @BRIGHTONRICH my game based on version 4.7 has got 4 times rejections from Apple Review because of airplay broken, so i wish you could make a DisplayManager fix that doesn't break airplay.

  10. ioanna316

    Mar 14, 2018 18:14

    Once we upgraded to 2017.1.3p2 to work around this issue which was causing Apple's rejection, we now got another rejection from Apple - this time with this crash reason:

    Termination Description: SPRINGBOARD, scene-create watchdog transgression: com.ourComany.ourApp exhausted real (wall clock) time allowance of 10.00 seconds

    and the crashed thread stack says we were in DisplayLinkItem:update_link, which is called every frame refresh, and then it realized some resource that it needs (SourceList or CFPrefs?) is locked and started waiting for it, and 10sec elapsed while it was waiting.

    This seems to be biting many people with different versions of Unity, once they try to work around the AirPlay issue.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.