Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug iOS Pause causes app to crash/unstable

Discussion in '2021.2 Beta' started by Voronoi, Sep 8, 2021.

  1. Voronoi

    Voronoi

    Joined:
    Jul 2, 2012
    Posts:
    584
    I am using 2021.2.0b10 and buliding for iOS. I can't tell if this is a beta version bug or something to do with the new InputSystem and UI. It's a very heavy UI application. This also was happening at least in 2.0b9 as well.

    The crash occurs whenever pausing the game or accessing any iOS menu overlay (like the top pull down iOS menu). In XCode, this is what I get:

    -> applicationWillResignActive()
    -> applicationDidBecomeActive()

    So, when I accidentally access an iOS menu, -> applicationWillResignActive() and then cancel it by letting go -> applicationDidBecomeActive() the UI completely stop functioning. The game is still running, and touches register but everything is off and the buttons don't do what they are supposed to do anymore.

    I'm also running Localization, which has given me plenty of problems when trying to build. Sometimes the whole UI stops working after a localization build. So, possibly related to that?

    Thank you for any help or suggestion!
     
  2. Voronoi

    Voronoi

    Joined:
    Jul 2, 2012
    Posts:
    584
    I found the problem. This occurs when using 'All Pointers As Is' in the EventSystem. I'm using the new Input System. Changing to the default 'Single Mouse or Pen But Multi Touch and Track' fixes the problem.
     
  3. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,132
    Hi @Voronoi,

    This doesn't appear to be a known issue. It would be much appreciated if you could submit a bug report for this with a reproducible attached.