Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

*SOME BUILDS* Crashing on iPad with EXC_BAD_ACCESS - intermittent!?

Discussion in 'iOS and tvOS' started by Foxxis, Feb 12, 2012.

  1. Foxxis

    Foxxis

    Joined:
    Jun 27, 2006
    Posts:
    1,108
    Hi,

    Sorry for the caps topic, but this is really freaking me out.
    I am preparing an update to our App to be submitted soon, and out of the blue I get crashes while running on device (fast no exceptions). It's the "usual" EXC_BAD_ACCESS but it is intermittent. Some builds are fine, while others crash.

    The crashes occur when assyncronously loading a new scene, there are no exceptions thrown when running in Unity or as a development build. The closest I got was an OpenGL command in the XCode debugger while running "slow and safe".

    Again, this started out of the blue and there are no null reference exceptions in the code, nor can this be reliably reproduced. It seems as if Unity builds a corrupted build now and then.

    I really don't know what to do here, so if you have any information that may be helpful I would be very thankful.
    Cheers!
    Dan
     
  2. Foxxis

    Foxxis

    Joined:
    Jun 27, 2006
    Posts:
    1,108
    I tried to reproduce the crash to get some more information about it. Well, guess what - I currently can't.

    The crash happened 20+ times before during a period of 1.5 hours. I have rebuilt the project (from Unity) a multitude of times (without any changes) and suddenly the crashes disappeard - and I can't get them to reappear.

    Naturally, it is nice to have them gone, but at the same time I am very worried that this can occur after deployment.

    Is there any rational explanation for what happened? Is it possible that my development device got its memory corrupted temporarily?

    We'll see what happens tomorrow...I am not sure whether I want the problem to reoccur or not.
    Thanks in advance for any help/info.

    Cheers,
    Dan
     
  3. Mantas-Puida

    Mantas-Puida

    Unity Technologies

    Joined:
    Nov 13, 2008
    Posts:
    1,864
  4. Foxxis

    Foxxis

    Joined:
    Jun 27, 2006
    Posts:
    1,108
    Thanks for the reply, but this is not likely.
    The crashes happened at the very start of asynchronous loading, well before any code in the new scene being run (I checked that). Also, I code to catch null references, so this shouldn't be likely.

    It appeared more to me as if the scene in question had gone corrupt after compile.
     
  5. Mantas-Puida

    Mantas-Puida

    Unity Technologies

    Joined:
    Nov 13, 2008
    Posts:
    1,864
    Please extract native stacktrace from Xcode and post it here.
     
  6. peacefulshade

    peacefulshade

    Joined:
    Jul 25, 2012
    Posts:
    9
    Hey

    I was having the exact same error, the game was running fine on the iphone but crashed on the IPAD with EXC_BAD_ACCESS. The problem was that the IPAD wasn't properly connected to the internet; it was connected to the router via wifi but when I tried accessing a page in safari, it just kept loading and the page would never display. I restarted the ipad, checked the "ask to join other networks" and it worked.

    Hope this helps anyone having a similar trouble using WWW on IOS.