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

Unity 4.5.5p1 iOS project crash on [UnityWWWConnectionDelegate cleanup]

Discussion in 'Editor & General Support' started by HoMeBoYErik, Oct 22, 2014.

  1. HoMeBoYErik

    HoMeBoYErik

    Joined:
    Mar 12, 2014
    Posts:
    23
    With Unity 4.5.5p1 I have a very simple scene where I download an asset bundle with WWW.LoadFromCacheOrDownload().
    Running on iOS 8.1 device the app freeze apparently when the download complete due to a EXC_BAD_ACCES on
    [_responseHeader release];

    I have no idea because the same project compiled with 4.5.3 it works (but has other bugs related to screen orientation.

    Anyone encounter the same issue? I also read about an old 4.3 problem with trampolines so I increased de number but with no success...
     
  2. G33RT

    G33RT

    Joined:
    Dec 27, 2013
    Posts:
    52
    I'm having similar issues. I'm sticking to 4.5.5f1 and Xcode 5 for now. It's the only stable combination for iOS requiring location services. Hopefully Unity will fix this soon, so I can move on ...
     
  3. MajidKhosravi

    MajidKhosravi

    Joined:
    Jun 21, 2013
    Posts:
    39
    I am getting same error too.
     
  4. Xtro

    Xtro

    Joined:
    Apr 17, 2013
    Posts:
    558
    Yep. Same one!
     
  5. deviantDork

    deviantDork

    Joined:
    Feb 12, 2014
    Posts:
    5
    +1
    4.5.5p1
    In my case it kills the official Facebook SDK since using it to post to Facebook results in this bad access.
     
  6. elias-ku

    elias-ku

    Joined:
    Jan 15, 2014
    Posts:
    2
    I've removed [_responseHeader release] from "cleanup" method implementation in "Classes/Unity/WWWConnection.mm" file. That's fixed the problem.
     
  7. deviantDork

    deviantDork

    Joined:
    Feb 12, 2014
    Posts:
    5
    Yeah, and might hide a memory leak.
     
  8. HoMeBoYErik

    HoMeBoYErik

    Joined:
    Mar 12, 2014
    Posts:
    23
    I don't think that removing a "release" just to avoid an error is a good idea. Your memory will eventually exceed the quota and the app will crash due to memory pressure.
    The same bug is also reproducible in the editor and the symptom is generally a www class telling you that is trying to connect to an unresponsive host.
    This is happening only in the 4.5.5p1 version, while 4.5.4p1 is not generating the same error. The problem is that each version is carrying a different bug that will almost lead to an app reject on the app store.
     
  9. Xtro

    Xtro

    Joined:
    Apr 17, 2013
    Posts:
    558
    4.5.5p2 is out and problem is solved.
     
  10. deviantDork

    deviantDork

    Joined:
    Feb 12, 2014
    Posts:
    5
    Thanks for the info! :)
     
  11. elias-ku

    elias-ku

    Joined:
    Jan 15, 2014
    Posts:
    2
    Yeah, sorry. Kind of temporary solution. New patch fixes the issue
     
  12. HoMeBoYErik

    HoMeBoYErik

    Joined:
    Mar 12, 2014
    Posts:
    23
    Yes, the p2 seems to be ok with that now.