Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

iOS 13.3 crash at IOSScripting::GetDeferSystemGesturesMode()

Discussion in 'iOS and tvOS' started by Shikshen, May 11, 2020.

  1. Shikshen

    Shikshen

    Joined:
    Feb 21, 2015
    Posts:
    25
    Since our last app update (from Unity 2019.1 to 2019.3.11) I start seeing this crash on nearly all devices running iOS 13.3 and 13.3.1. Not a single crash on other iOS versions. Any ideas why? Only thing I can say is that it looks like a Unity bug.

    I see in the stack trace UnityViewControllerBase+iOS.mm line 62 which is related to screen edges. And one change I have made since the last update is to disable auto-rotation in the app settings and set the default orientation to "Portrait", so it may be related.

    Would making
    - (UIRectEdge)preferredScreenEdgesDeferringSystemGestures
    return
    UIEdgeRectAll
    be a valid workaround until this gets fixed?

    Code (csharp):
    1.  
     
  2. Shikshen

    Shikshen

    Joined:
    Feb 21, 2015
    Posts:
    25
    I don't know why the stack trace doesn't appear in the post above, here it is:

     
  3. Shikshen

    Shikshen

    Joined:
    Feb 21, 2015
    Posts:
    25
    We also have another huge amount of crashes that may be related (again dealing with screen measurements) with this stack trace:

     
  4. magnusfox

    magnusfox

    Joined:
    Nov 7, 2014
    Posts:
    26
    We're experiencing countless of crashes with this as well, did you manage to find a solution?
     
  5. Alexey

    Alexey

    Unity Technologies

    Joined:
    May 10, 2010
    Posts:
    1,623
    ohffs apple! both stacktraces are coming from ios poking unity view/viewcontroller upon exit (sure enough it is close to impossible to catch by chance as they are usually dependent on ios version, device, showing presentation controller (ads), etc.
    the one about ViewInfo_OnDisplayCutoutsChanged - was fixed very recently (not yet released)
    UnityGetDeferSystemGesturesTopEdge - i see for the first time - can you please file a bug report (stacktrace would be enough)
     
  6. SONDERFORMAT

    SONDERFORMAT

    Joined:
    Sep 19, 2014
    Posts:
    3
    We are seeing these crashes as well. iOS 13.4.1 - 13.5.1

    Code (csharp):
    1. Native StackTrace:
    2.  
    3. Thread 0 (crashed)
    4. 0   UnityFramework                     0x00000001066d2d5c IOSScripting::GetDeferSystemGesturesMode() (PlayerSettings.h:0)
    5. 1   UnityFramework                     0x0000000106894354 UnityGetDeferSystemGesturesTopEdge (TrampolineGlue.mm:52)
    6. 2   UnityFramework                     0x000000010601f854 -[UnityViewControllerBase(iOS) preferredScreenEdgesDeferringSystemGestures] (UnityViewControllerBase+iOS.mm:62)
    7. 3   UIKitCore                          0x00000001c45098dc <system symbols missing>
    8. 4   UIKitCore                          0x00000001c4736c84 <system symbols missing>
    9. 5   UIKitCore                          0x00000001c4717764 <system symbols missing>
    10. 6   UIKitCore                          0x00000001c47368cc <system symbols missing>
    11. 7   UIKitCore                          0x00000001c472d0b0 <system symbols missing>
    12. 8   UIKitCore                          0x00000001c52031cc <system symbols missing>
    13. 9   UIKitCore                          0x00000001c472cd24 <system symbols missing>
    14. 10  UIKitCore                          0x00000001c472c3fc <system symbols missing>
    15. 11  UIKitCore                          0x00000001c472be64 <system symbols missing>
    16. 12  UIKitCore                          0x00000001c472e56c <system symbols missing>
    17. 13  UIKitCore                          0x00000001c4d94bb0 <system symbols missing>
    18. 14  UIKitCore                          0x00000001c4726320 <system symbols missing>
    19. 15  UIKitCore                          0x00000001c4d94850 <system symbols missing>
    20. 16  UIKitCore                          0x00000001c4d94d5c <system symbols missing>
    21. 17  UnityFramework                     0x0000000106014880 UnityCleanupTrampoline (UnityAppController.mm:174)
    22. 18  UnityFramework                     0x00000001060156c8 -[UnityAppController applicationWillTerminate:] (UnityAppController.mm:486)
    23. 19  UIKitCore                          0x00000001c4d61a04 <system symbols missing>
    24. 20  UIKitCore                          0x00000001c44ff218 <system symbols missing>
    25. 21  UIKitCore                          0x00000001c44feea0 <system symbols missing>
    26. 22  UIKitCore                          0x00000001c4d57ba4 <system symbols missing>
    27. 23  FrontBoardServices                 0x00000001c5e258a0 <system symbols missing>
    28. 24  FrontBoardServices                 0x00000001c5e509bc <system symbols missing>
    29. 25  FrontBoardServices                 0x00000001c5e36bfc <system symbols missing>
    30. 26  FrontBoardServices                 0x00000001c5e5094c <system symbols missing>
    31. 27  libdispatch.dylib                  0x00000001c097b524 <system symbols missing>
    32. 28  libdispatch.dylib                  0x00000001c0955808 <system symbols missing>
    33. 29  FrontBoardServices                 0x00000001c5e75850 <system symbols missing>
    34. 30  FrontBoardServices                 0x00000001c5e7551c <system symbols missing>
    35. 31  FrontBoardServices                 0x00000001c5e75a44 <system symbols missing>
    36. 32  CoreFoundation                     0x00000001c0c33c18 <system symbols missing>
    37. 33  CoreFoundation                     0x00000001c0c33b70 <system symbols missing>
    38. 34  CoreFoundation                     0x00000001c0c332f8 <system symbols missing>
    39. 35  CoreFoundation                     0x00000001c0c2e328 <system symbols missing>
    40. 36  CoreFoundation                     0x00000001c0c2dce8 <system symbols missing>
    41. 37  GraphicsServices                   0x00000001cad7838c <system symbols missing>
    42. 38  UIKitCore                          0x00000001c4d5c444 <system symbols missing>
    43. 39  UnityFramework                     0x0000000106019b94 -[UnityFramework runUIApplicationMainWithArgc:argv:] (main.mm:96)
    44. 40  interstellarplutocracy             0x0000000102c5fe1c main (main.mm:28)
    45. 41  libdyld.dylib                      0x00000001c0ab58f0 <system symbols missing>
     
  7. ocnenued

    ocnenued

    Joined:
    Apr 4, 2018
    Posts:
    26
    Same here, we're observing countless crash reports!
     
  8. SONDERFORMAT

    SONDERFORMAT

    Joined:
    Sep 19, 2014
    Posts:
    3
    As a workaround we update the
    preferredScreenEdgesDeferringSystemGestures
    in
    UnityViewControllerBase+iOS.mm with a PostProcessBuild method. After that we experience crashes with
    prefersHomeIndicatorAutoHidden
    which we also updated.

    Code (csharp):
    1. Thread 0 (crashed)
    2. 0   UnityFramework                     0x00000001066e7934 IOSScripting::GetHideHomeButton() (PlayerSettings.h:0)
    3. 1   UnityFramework                     0x00000001068a9144 UnityGetHideHomeButton (TrampolineGlue.mm:72)
    4. 2   UnityFramework                     0x0000000106034324 -[UnityViewControllerBase(iOS) prefersHomeIndicatorAutoHidden] (UnityViewControllerBase+iOS.mm:66)
    5. 3   UIKitCore                          0x000000019273171c <system symbols missing>
    6. 4   UIKitCore                          0x000000019295ee10 <system symbols missing>
    7. 5   UIKitCore                          0x000000019293f764 <system symbols missing>
    8. 6   UIKitCore                          0x000000019295e8dc <system symbols missing>
    9. 7   UIKitCore                          0x00000001929550b0 <system symbols missing>
    10. 8   UIKitCore                          0x000000019342b1cc <system symbols missing>
    11. 9   UIKitCore                          0x0000000192954d24 <system symbols missing>
    12. 10  UIKitCore                          0x00000001929543fc <system symbols missing>
    13. 11  UIKitCore                          0x0000000192953e64 <system symbols missing>
    14. 12  UIKitCore                          0x000000019295656c <system symbols missing>
    15. 13  UIKitCore                          0x0000000192fbcbb0 <system symbols missing>
    16. 14  UIKitCore                          0x000000019294e320 <system symbols missing>
    17. 15  UIKitCore                          0x0000000192fbc850 <system symbols missing>
    18. 16  UIKitCore                          0x0000000192fbcd5c <system symbols missing>
    19. 17  UnityFramework                     0x0000000106029330 UnityCleanupTrampoline (UnityAppController.mm:174)
    20. 18  UnityFramework                     0x000000010602a1d0 -[UnityAppController applicationWillTerminate:] (UnityAppController.mm:493)
    21. 19  UIKitCore                          0x0000000192f89a04 <system symbols missing>
    22. 20  UIKitCore                          0x0000000192727218 <system symbols missing>
    23. 21  UIKitCore                          0x0000000192726ea0 <system symbols missing>
    24. 22  UIKitCore                          0x0000000192f7fba4 <system symbols missing>
    25. 23  FrontBoardServices                 0x000000019404d8a0 <system symbols missing>
    26. 24  FrontBoardServices                 0x00000001940789bc <system symbols missing>
    27. 25  FrontBoardServices                 0x000000019405ebfc <system symbols missing>
    28. 26  FrontBoardServices                 0x000000019407894c <system symbols missing>
    29. 27  libdispatch.dylib                  0x000000018eba3524 <system symbols missing>
    30. 28  libdispatch.dylib                  0x000000018eb7d808 <system symbols missing>
    31. 29  FrontBoardServices                 0x000000019409d850 <system symbols missing>
    32. 30  FrontBoardServices                 0x000000019409d51c <system symbols missing>
    33. 31  FrontBoardServices                 0x000000019409da44 <system symbols missing>
    34. 32  CoreFoundation                     0x000000018ee5bc18 <system symbols missing>
    35. 33  CoreFoundation                     0x000000018ee5bb70 <system symbols missing>
    36. 34  CoreFoundation                     0x000000018ee5b2f8 <system symbols missing>
    37. 35  CoreFoundation                     0x000000018ee56328 <system symbols missing>
    38. 36  CoreFoundation                     0x000000018ee55ce8 <system symbols missing>
    39. 37  GraphicsServices                   0x0000000198fa038c <system symbols missing>
    40. 38  UIKitCore                          0x0000000192f84444 <system symbols missing>
    41. 39  UnityFramework                     0x000000010602e660 -[UnityFramework runUIApplicationMainWithArgc:argv:] (main.mm:96)
    42. 40  interstellarplutocracy             0x00000001042e3e1c main (main.mm:28)
    43. 41  libdyld.dylib                      0x000000018ecdd8f0 <system symbols missing>
    We also upgraded to Unity 2019.4.1
     
  9. Alexey

    Alexey

    Unity Technologies

    Joined:
    May 10, 2010
    Posts:
    1,623
    i did a fix for both IOSScripting::GetHideHomeButton() and IOSScripting::GetDeferSystemGesturesMode() crashes (can i whine that i didnt see the bugs reported?) and it should trickle down to LTS versions soonish
     
    Q-Ted likes this.
  10. larry_kirschner_ict

    larry_kirschner_ict

    Joined:
    Jan 4, 2018
    Posts:
    4
    @Alexey I'm getting the bug mentioned earlier where you get crash on exit in `ViewInfo OnDisplayCutoutsChanged `

    ...this is with the latest LTS, Unity2019.3.4, so I'm guessing the fix still hasn't been released?

    Can we get a bug number/link, so we can know which release has the fix if it's still pending?

    Also, AFAICT, there is no patch release of 2019 LTS with this fix?
     
  11. Alexey

    Alexey

    Unity Technologies

    Joined:
    May 10, 2010
    Posts:
    1,623
    >>this is with the latest LTS, Unity2019.3.4, so I'm guessing the fix still hasn't been released?
    it landed week ago, so yes, most likely not yet released
    it should be out with 2019.4.5f1
     
    larry_kirschner_ict likes this.
  12. realmoto

    realmoto

    Joined:
    Jan 24, 2020
    Posts:
    1
    Hi all!

    So is this issue related to iOS API breaking change?