Search Unity

unity ios crash report analysis?

Discussion in 'iOS and tvOS' started by mog-mog-mog, May 15, 2016.

  1. mog-mog-mog

    mog-mog-mog

    Joined:
    Feb 12, 2014
    Posts:
    266
    I am seeing several crash reports in organizer with following details:

    ProjectName UnityReportWWWSentData
    -------- blah blah ----
    ProjectName __UnitySendWWWConnect_block_invoke


    What exactly does these lines/methods indicate?


    I am using Unity 5.3.4 pro with Disable HW statistics on both editor and ios setting. Crashes are coming from several ipad/iphone models across multiple countries. Any help will be appreciated.
     
  2. povilas

    povilas

    Unity Technologies

    Joined:
    Jan 28, 2014
    Posts:
    427
    This means that something within Unity iOS-specific network stack is crashing. Do you reproduce this issue on your own devices with attached Xcode?
     
  3. mog-mog-mog

    mog-mog-mog

    Joined:
    Feb 12, 2014
    Posts:
    266
    I am not able to reproduce it on my own device with xcode attached. I do see them in crash reports. with debug symbols. At the time of crash, there are multiple threads doing network calls :
    __UnitySendWWWConnect_block_invoke

    Here are the crash logs of crashing thread-4

    Screen Shot 2016-05-18 at 11.18.03 PM.png


    Other threads (Note thread 8 is also doing network call):
    Screen Shot 2016-05-18 at 11.21.33 PM.png



    Any help will be appreciated. Thanks
     
  4. mog-mog-mog

    mog-mog-mog

    Joined:
    Feb 12, 2014
    Posts:
    266
    Upgraded to Unity 5.3.5 and still seeing same daily crashes. Any help !!!!

    My app setting in unity allows download over http and have disabled hw statistics
     
  5. christophergoy

    christophergoy

    Unity Technologies

    Joined:
    Sep 16, 2015
    Posts:
    735
    Hi @lilboylost,
    There are fixes related to this coming out in 5.3.5p2. Do you know how many requests are being created?
    Cheers,
    Chris
     
  6. mog-mog-mog

    mog-mog-mog

    Joined:
    Feb 12, 2014
    Posts:
    266
    @christophergoy , Good to know that this problem is (or will be) fixed in upcoming version.
    I do not expect more than 6 calls when app starts. Otherwise it rarely make one call every 30-60 seconds.
    I am only seeing this error with Unity 5.3.4 and 5.3.5
    I do not see this crash when released with Unity 5.2.4
    So I suspect this is related with Unity 5.3.x series.
    Can you please confirm this have been fixed in 5.3.5p2? If so, we may consider releasing next update with patch build.
     
  7. tanveerm

    tanveerm

    Joined:
    Feb 24, 2016
    Posts:
    22
    Hi @christophergoy , we are are also getting this issue in our live app, we are using 5.3.5p7 pro version, and its crashing the app. did you guys managed to fix this issue?
     
  8. christophergoy

    christophergoy

    Unity Technologies

    Joined:
    Sep 16, 2015
    Posts:
    735
    Hi @tanveerm,
    Do you have a full crash log that you could send to me? If this is still happening in 5.3.5p7 then I'm afraid it has not been fixed yet. I apologize for that.
    Cheers,
    Chris
     
  9. tanveerm

    tanveerm

    Joined:
    Feb 24, 2016
    Posts:
    22
    Hi @christophergoy

    We are seeing our logs in Fabric, and I'm attaching the log we got from Fabric. Its affecting out lot of user on production.

    Thanks,
    Tanveerm
     

    Attached Files:

  10. mog-mog-mog

    mog-mog-mog

    Joined:
    Feb 12, 2014
    Posts:
    266
    Upgraded to Unity 5.3.6 and still consistently seeing this error.
    I am getting crash reports from Xcode organizer and stack trace is mostly same as logs attached above.
    @tanveerm , Did you find a fix yet?

    @christophergoy , Have this been fixed yet? Somehow I do see that this error rate have increased after updating to u 5.3.6
     
  11. tanveerm

    tanveerm

    Joined:
    Feb 24, 2016
    Posts:
    22
  12. mog-mog-mog

    mog-mog-mog

    Joined:
    Feb 12, 2014
    Posts:
    266
    I am able to reproduce it randomly on a device. This is what I see in device logs:
    Exception Type: EXC_BAD_ACCESS (SIGBUS)
    @christophergoy , Can you please help here?

    Code (csharp):
    1.  
     
  13. christophergoy

    christophergoy

    Unity Technologies

    Joined:
    Sep 16, 2015
    Posts:
    735
    Hey all,
    We are aware of this issue @tanveerm posted, unfortunately it's still in the queue. I am looking to get to it next week. @lilboylost, if you have a small reproduction case can you please create a bug report, attach your reproduction project and post the case number here? This is the fastest way we are able to get issues resolved. Thanks for your help!
    Cheers,
    Chris
     
  14. dharmendra597

    dharmendra597

    Joined:
    May 10, 2016
    Posts:
    4
    Hi @christophergoy i am facing this "UnityReportWWWSentData" crash in my game too. i'm using unity 5.3.4. is there any solution for this crash? please tell me any solution.
     
  15. christophergoy

    christophergoy

    Unity Technologies

    Joined:
    Sep 16, 2015
    Posts:
    735
    Hey all,
    We have not been able to reproduce this. If any of you can mock up an example project that causes this to happen it would be extremely helpful in solving this. I am working through bugs the best I can and I haven't been able to get to this one yet. I apologize. If there is a certain pattern you are using for your web requests, if they are destroyed or aborted a lot... any additional type of information is helpful.
    Cheers,
    Chris
     
  16. KiranCosi3

    KiranCosi3

    Joined:
    Nov 18, 2016
    Posts:
    3
    please have a look at Case 852363, i've attached a sample project to it. After making build just tap anywhere on screen to reproduce the crash.
     
  17. christophergoy

    christophergoy

    Unity Technologies

    Joined:
    Sep 16, 2015
    Posts:
    735
    Thank you for the reply. I will look at this today.
    Cheers,
    Chris
     
  18. christophergoy

    christophergoy

    Unity Technologies

    Joined:
    Sep 16, 2015
    Posts:
    735
    Hi @KiranCosi3,
    Please find a zipped version of WWWConnection.mm attached here. I was unable to reproduce your issue with these changes. Please let me know if you are able to with this file.
    Cheers,
    Chris
     

    Attached Files:

  19. christophergoy

    christophergoy

    Unity Technologies

    Joined:
    Sep 16, 2015
    Posts:
    735
    Hi @lilboylost,
    This replacing your current WWWConnection.mm with the one in this zip file should fix your issues as well. Please let me know if still run into issues.
    Cheers,
    Chris
     
    Last edited: Nov 19, 2016
  20. KiranCosi3

    KiranCosi3

    Joined:
    Nov 18, 2016
    Posts:
    3
    Thanks @chirstophergoy, by replacing the attachment from xcode we were not able to reproduce the issue anymore.

    I've two more things to ask.
    In which Unity version will this fix would be?
    We're facing this issue in Android platform as well, how to fix it in android platform?

    Thanks~
     
  21. christophergoy

    christophergoy

    Unity Technologies

    Joined:
    Sep 16, 2015
    Posts:
    735
    Hi @KiranCosi3,
    It looks like it will go into 5.3.7 p3 and 5.4.3 p2.
    5.3.7 p3 will be released on Dec 7th
    5.4.3 p2 will be released on Nov 30th

    I do not know of the issue on android. Do you have a bug filed for it? If not, please file a bug with a reproduction case and/or crash log and post the case number here.

    Cheers,
    Chris
     
  22. KiranCosi3

    KiranCosi3

    Joined:
    Nov 18, 2016
    Posts:
    3
    Hi,thanks for your reply @christophergoy . Its reproduceable from the test project i sent in Case 852363. Please have a look.
     
    mog-mog-mog likes this.
  23. christophergoy

    christophergoy

    Unity Technologies

    Joined:
    Sep 16, 2015
    Posts:
    735
    Hi @KiranCosi3,
    Thanks for the info. I will see if I can get to this soon.
    Cheers,
    Chris
     
  24. hantengx

    hantengx

    Joined:
    Mar 13, 2017
    Posts:
    10
    I found this bug on ios, Unity version 5.6.0f3. It looks like it's in a bad wireless network, have many www error: The request timed out.