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. brightonrich

    Mar 27, 2018 08:22

    @AGAMEMNON-PRIME What version of Unity was that with?

  2. agamemnon-prime

    Mar 27, 2018 07:56

    Sorry, I was wrong. We were lucky with the previous submits. Just had another build that was rejected after removing the observers.
    Exception Type: EXC_CRASH (SIGKILL)
    Exception Codes: 0x0000000000000000, 0x0000000000000000
    Exception Note: EXC_CORPSE_NOTIFY
    Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
    Termination Description: SPRINGBOARD, scene-create watchdog transgression: com.worldofwaw.xxxxx exhausted real (wall clock) time allowance of 10.00 seconds | | ProcessVisibility: Foreground | ProcessState: Running | WatchdogEvent: scene-create | WatchdogVisibility: Foreground | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 19.700 (user 19.700, system 0.000), 65% CPU", | "Elapsed application CPU time (seconds): 14.449, 48% CPU" | )
    Triggered by Thread: 0

  3. beaADS

    Mar 22, 2018 11:36

    @PL_AYGROUND - Can you post the link for that thread in Unity Forum? Thanks

  4. pl_ayground

    Mar 22, 2018 11:31

    @brightonrich - this is from 2017.3.1p3, my app was approved after yet another try (details on the unity forum, I believe you have been active there as well).

  5. brightonrich

    Mar 22, 2018 11:24

    @NIKUNJ48 Could you try your repro with your project built on 5.6.5p3 please after adding the observers back in?

    https://unity3d.com/unity/qa/patch-releases/5.6.5p3

  6. Nikunj48

    Mar 22, 2018 10:49

    @SORCHA08 and @BEAADS, Open generated XCode project and open "DisplayManager.mm" file and replace -(id)init method.
    - (id)init
    {
    if ((self = [super init]))
    {
    /*[[NSNotificationCenter defaultCenter] addObserver: self
    selector: @selector(screenDidConnect:)
    name: UIScreenDidConnectNotification
    object: nil
    ];

    [[NSNotificationCenter defaultCenter] addObserver: self
    selector: @selector(screenDidDisconnect:)
    name: UIScreenDidDisconnectNotification
    object: nil
    ];*/

    _displayConnection = [NSMapTable
    mapTableWithKeyOptions: NSPointerFunctionsStrongMemory | NSPointerFunctionsObjectPointerPersonality
    valueOptions: NSPointerFunctionsStrongMemory | NSPointerFunctionsObjectPointerPersonality
    ];

    for (UIScreen* screen in[UIScreen screens])
    [self registerScreen: screen];

    _mainDisplay = self[[UIScreen mainScreen]];
    }
    return self;
    }

  7. beaADS

    Mar 22, 2018 10:37

    @BRIGHTONRICH I tried submitting to apple with different versions and all of them were rejected. The last one I tried was 2017.3.1p4 (rejected as well). I would like to try removing the observer from -init. Can you explain to me how I do that? I am using XCode 9.2. Thanks

  8. brightonrich

    Mar 22, 2018 10:01

    @NIKUNJ48 Thanks for that information. I will attempt to reproduce with Reflector3 here.

  9. brightonrich

    Mar 22, 2018 09:58

    So removing the observers from -init is getting submissions passed? Is there anybody that has made that change and is still getting rejected?

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.