Search Unity

iOS-game crashes at the WWW-queries when off wi-fi

Discussion in 'iOS and tvOS' started by Nolex, Oct 28, 2016.

  1. Nolex

    Nolex

    Joined:
    Dec 10, 2010
    Posts:
    116
    Hello!

    The game periodically crashes on iOS when you turn off the Internet!
    To reproduce this error is difficult, sometimes it's 5 minutes, sometimes 5 hours.

    At the moment, the error is reproduced on such devices:
    1) iPod touch 5 (iOS 8.2); (the app crashes more often).
    2) iPhone 5 (iOS 9.2.1);
    3) iPhone 4 (iOS 7.1.2);
    4) iPad 2 (iOS 7.1.2).
    All symbolicated crashlogs are in the attachments!

    Error from logs:
    "task_set_exception_ports" and "Service exited due to signal: Segmentation fault: 11":
    Code (CSharp):
    1.  
    2. Oct 26 17:57:53    iPod-Touch ReportCrash[1379] <Error>: task_set_exception_ports(B07, 400, D03, 0, 0) failed with error (4: (os/kern) invalid argument)
    3. Oct 26 17:57:53    iPod-Touch ReportCrash[1379] <Notice>: ReportCrash acting against PID 1140
    4. Oct 26 17:57:54    iPod-Touch ReportCrash[1379] <Notice>: Formulating crash report for process mygame222222[1140]
    5. Oct 26 17:57:54    iPod-Touch mediaserverd[35] <Notice>: '' com.publisher.game.mygame222222(pid = 1140) setting DiscoveryMode = DiscoveryMode_None, currentDiscoveryMode = DiscoveryMode_None
    6. Oct 26 17:57:54    iPod-Touch com.apple.xpc.launchd[1] (UIKitApplication:com.publisher.game.mygame222222[0xbc9b][1140]) <Notice>: Service exited due to signal: Segmentation fault: 11
    7. Oct 26 17:57:55    iPod-Touch SpringBoard[42] <Warning>: Application 'UIKitApplication:com.publisher.game.mygame222222[0xbc9b]' crashed.
    8. Oct 26 17:57:55    iPod-Touch UserEventAgent[17] <Warning>: id=com.publisher.game.mygame222222 pid=1140, state=0
    9. Oct 26 17:57:55    iPod-Touch ReportCrash[1379] <Notice>: Saved report to /var/mobile/Library/Logs/CrashReporter/mygame222222_2016-10-26-175753_iPod-Touch.ips
    10. Oct 26 17:57:56    iPod-Touch coreduetd[1383] <Warning>: [Warning] Services all disappeared, removing all dependent devices
    11.  
    Error from symbolicated crashlog:
    "EXC_BAD_ACCESS (SIGSEGV)" and "KERN_INVALID_ADDRESS":

    symbolicated_iphone5_crash.jpg

    Code (CSharp):
    1. Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    2. Exception Subtype: KERN_INVALID_ADDRESS at 0x70000018
    3. Triggered by Thread:  35
    4.  
    5. Filtered syslog:
    6. None found
    7.  
    8. Breadcrumb Trail: (reverse chronological seconds)
    9. 3812   GC Framework: startAuthenticationForExistingPrimaryPlayer
    10. ......
    11. ......
    12. .....
    13. Thread 35 name:  Dispatch queue: com.unity3d.WebOperationQueue :: NSOperation 0x19f351a0 (QOS: LEGACY)
    14. Thread 35 Crashed:
    15. 0   mygame222222                      0x005c37b2 WWW::FeedUnityWebStream(bool) (WWW.h:96)
    16. 1   mygame222222                      0x0088b4ae iPhoneWWWDownloadBuffer::OnCompleteContent() (iPhoneWWW.mm:64)
    17. 2   mygame222222                      0x00853422 UnityReportWWWFinishedLoadingData (TransportiPhone.cpp:260)
    18. 3   mygame222222                      0x0002d050 -[UnityWWWConnectionDelegate connection:didFailWithError:] (WWWConnection.mm:239)
    19. 4   CFNetwork                         0x25c20de0 __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke + 56
    20. 5   CFNetwork                         0x25c20d98 -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] + 184
    21. 6   CFNetwork                         0x25c20ebc -[NSURLConnectionInternal _withConnectionAndDelegate:] + 36
    22. 7   CFNetwork                         0x25bfcf5c _NSURLConnectionDidFail(_CFURLConnection*, __CFError*, void const*) + 84
    23. 8   CFNetwork                         0x25b9c7ce ___ZN27URLConnectionClient_Classic17_delegate_didFailEP9__CFErrorU13block_pointerFvvE_block_invoke + 86
    24. 9   CFNetwork                         0x25b9b04e ___ZN27URLConnectionClient_Classic18_withDelegateAsyncEPKcU13block_pointerFvP16_CFURLConnectionPK33CFURLConnectionClientCurrent_VMaxE_block_invoke_2 + 70
    25. 10  libdispatch.dylib                 0x25187dc2 _dispatch_client_callout + 22
    26. 11  libdispatch.dylib                 0x2518f65a _dispatch_block_invoke + 450
    27. 12  CFNetwork                         0x25ad31e2 RunloopBlockContext::_invoke_block(void const*, void*) + 18
    28. 13  CoreFoundation                    0x254fd5f8 CFArrayApplyFunction + 36
    29. 14  CFNetwork                         0x25ad30ca RunloopBlockContext::perform() + 182
    30. 15  CFNetwork                         0x25ad2f94 MultiplexerSource::perform() + 216
    31. 16  CFNetwork                         0x25ad2e28 MultiplexerSource::_perform(void*) + 48
    32. 17  CoreFoundation                    0x255ad256 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 14
    33. 18  CoreFoundation                    0x255ace46 __CFRunLoopDoSources0 + 454
    34. 19  CoreFoundation                    0x255ab1ae __CFRunLoopRun + 806
    35. 20  CoreFoundation                    0x254fdbb8 CFRunLoopRunSpecific + 516
    36. 21  CoreFoundation                    0x254fd9ac CFRunLoopRunInMode + 108
    37. 22  Foundation                        0x25d357ac -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 268
    38. 23  Foundation                        0x25d8437c -[NSRunLoop(NSRunLoop) run] + 80
    39. 24  mygame222222                      0x0002e226 __UnitySendWWWConnection_block_invoke_2 (WWWConnection.mm:361)
    40. 25  Foundation                        0x25dee52c __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 8
    41. 26  Foundation                        0x25d4fefe -[NSBlockOperation main] + 146
    42. 27  Foundation                        0x25d422ee -[__NSOperationInternal _start:] + 774
    43. 28  Foundation                        0x25df07ec __NSOQSchedule_f + 192
    44. 29  libdispatch.dylib                 0x25191f96 _dispatch_queue_drain + 1762
    45. 30  libdispatch.dylib                 0x2518af2e _dispatch_queue_invoke + 282
    46. 31  libdispatch.dylib                 0x25193324 _dispatch_root_queue_drain + 400
    47. 32  libdispatch.dylib                 0x25193192 _dispatch_worker_thread3 + 94
    48. 33  libsystem_pthread.dylib           0x25320e0c _pthread_wqthread + 1024
    49. 34  libsystem_pthread.dylib           0x253209fc start_wqthread + 8
    I run the game and leave it for a long time. WWW-Requests - only Unity Analytics., which is called every 5 minutes.

    I think these requests (Unity Analytics) break the game:

    Code (CSharp):
    1.  
    2. 2016-10-28 14:28:19.414 mygame222222[474:110334] MyDebug.url: https://api.uca.cloud.unity3d.com/v1/events
    3. 2016-10-28 14:28:21.015 mygame222222[474:110334] MyDebug.url: https://api.uca.cloud.unity3d.com/v1/events
    4. 2016-10-28 14:28:51.014 mygame222222[474:110334] MyDebug.url: https://api.uca.cloud.unity3d.com/v1/events
    5. 2016-10-28 14:29:51.015 mygame222222[474:110334] MyDebug.url: https://api.uca.cloud.unity3d.com/v1/events
    6. 2016-10-28 14:31:51.013 mygame222222[474:110334] MyDebug.url: https://api.uca.cloud.unity3d.com/v1/events
    7. 2016-10-28 14:36:51.015 mygame222222[474:110334] MyDebug.url: https://api.uca.cloud.unity3d.com/v1/events
    8. 2016-10-28 14:41:51.015 mygame222222[474:110334] MyDebug.url: https://api.uca.cloud.unity3d.com/v1/events
    9. 2016-10-28 14:46:51.016 mygame222222[474:110334] MyDebug.url: https://api.uca.cloud.unity3d.com/v1/events
    10. .......
    11.  
    I don't want to disable Unity Analytics because I use Unity IAP.
    1) How to solve the problem???
    2) Maybe we should rewrite the class \Classes\Unity\WWWConnection.mm and make a hotfix???
    An example on c#:
    Code (CSharp):
    1. if (wi_fi_status == false && url.Contains("api.uca.cloud.unity3d.com"))  return;
    Please help! This is important issue!

    Similar problems:
    http://answers.unity3d.com/questions/1226581/wwwh-crash-in-store-build.html
    http://web320hh.blogspot.com/2015/07/unity-www-class-crashes-on-ios-64-bit.html
    http://stackoverflow.com/questions/33997217/unityreportwwwfinishedloadingdata-xcode-crash
    https://forum.unity3d.com/threads/ios-unityreportwwwreceiveddata-crash.339058/

    Unity 5.4.2.
    Xcode 8.0.
    Windows 10.

    Best,
    Nolex.
     

    Attached Files:

    Last edited: Oct 30, 2016
  2. Nolex

    Nolex

    Joined:
    Dec 10, 2010
    Posts:
    116
    Again reproduced the bug. This time in xcode. iPod touch 5.

    There are logs with an request to Unity Analytics.
    I have added debug logs in the \Classes\Unity\WWWConnection.mm

    ipod_unity_crash.jpg
     
  3. andymads

    andymads

    Joined:
    Jun 16, 2011
    Posts:
    1,614
    Have you submitted a bug report?
     
  4. Nolex

    Nolex

    Joined:
    Dec 10, 2010
    Posts:
    116
    No, not submitted.
    The error is very difficult to reproduce. I think the team Unity is easier to check the function of "WWW::FeedUnityWebStream(bool) (WWW.h:96)" for errors.
     
    Last edited: Nov 1, 2016
  5. christophergoy

    christophergoy

    Joined:
    Sep 16, 2015
    Posts:
    735
    Hi @Nolex,
    I believe we have narrowed down the issue and have come up with a resolution. Please apply the attached patch to the WWWConnection.mm file in your Xcode project. If you still run into this afterwards feel free to message me directly or post here and mention me.
    Cheers,
    Chris
     

    Attached Files:

    Nolex likes this.
  6. christophergoy

    christophergoy

    Joined:
    Sep 16, 2015
    Posts:
    735
    If you prefer, you can just unzip this and drop the file attached here.
     

    Attached Files:

    Nolex likes this.
  7. hsallander

    hsallander

    Joined:
    Dec 19, 2013
    Posts:
    46
    Hi @christophergoy, that's great to hear you've found a solution. In what version (release or patch) of Unity will this fix be included?
     
  8. vzgueb

    vzgueb

    Joined:
    Oct 24, 2016
    Posts:
    2
    Thanks Chris, we encounter the same issue here. I have applied your patch.
     
  9. Nolex

    Nolex

    Joined:
    Dec 10, 2010
    Posts:
    116
    Hi @christophergoy,
    Thank you very much for the answer! I'll try the patch and will write later about the results!
     
  10. christophergoy

    christophergoy

    Joined:
    Sep 16, 2015
    Posts:
    735
    Hi @hsallander,
    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
    Cheers,
    Chris
     
  11. Nolex

    Nolex

    Joined:
    Dec 10, 2010
    Posts:
    116
    Hi @christophergoy,
    I tested the new patch. The problem is not resolved. :(

    The game has been running for ~12 hours on 4 my devices.
    During this time the game twice crashed on the iPhone 4 (iOS 7.1.2).

    Crash #1:

    Code (CSharp):
    1. Incident Identifier: 2E7E2956-B230-4A82-80B1-5472CCDEA59E
    2. CrashReporter Key:   c22ba828f7932bdf2815acc5381180abf640076a
    3. Hardware Model:      iPhone3,3
    4. Process:             mygame222222 [156]
    5. Path:                /var/mobile/Applications/0D3A5C02-55B8-473E-A446-397E0CE87964/mygame222222.app/mygame222222
    6. Identifier:          com.publisher.game.mygame222222
    7. Version:             1.0 (1.0)
    8. Code Type:           ARM (Native)
    9. Parent Process:      launchd [1]
    10.  
    11. Date/Time:           2016-11-21 16:54:56.172 +0200
    12. OS Version:          iOS 7.1.2 (11D257)
    13. Report Version:      104
    14.  
    15. Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    16. Exception Subtype: KERN_INVALID_ADDRESS at 0xff000000
    17. Triggered by Thread:  33
    18. .......
    19. .......
    20. .......
    21. .......
    22. Thread 33 Crashed:
    23. 0   ???                               0xff000000 0 + -16777216
    24. 1   mygame222222                      0x0084518e iPhoneWWWDownloadBuffer::OnCompleteContent() (iPhoneWWW.mm:64)
    25. 2   mygame222222                      0x0080f716 UnityReportWWWFinishedLoadingData (TransportiPhone.cpp:260)
    26. 3   mygame222222                      0x0004543c -[UnityWWWConnectionDelegate connection:didFailWithError:] (WWWConnection.mm:251)
    27. 4   Foundation                        0x2ddf1fc2 __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke + 54
    28. 5   Foundation                        0x2ddf1f06 -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] + 206
    29. 6   Foundation                        0x2ddf2c50 -[NSURLConnectionInternal _withConnectionAndDelegate:] + 60
    30. 7   Foundation                        0x2de7e0b8 _NSURLConnectionDidFail + 84
    31. 8   CFNetwork                         0x2d118302 ___ZN27URLConnectionClient_Classic17_delegate_didFailEP9__CFErrorU13block_pointerFvvE_block_invoke + 86
    32. 9   CFNetwork                         0x2d116cf6 ___ZN27URLConnectionClient_Classic18_withDelegateAsyncEPKcU13block_pointerFvP16_CFURLConnectionPK33CFURLConnectionClientCurrent_VMaxE_block_invoke_2 + 54
    33. 10  CoreFoundation                    0x2d3e58f0 CFArrayApplyFunction + 36
    34. 11  CFNetwork                         0x2d0ae6ba RunloopBlockContext::perform() + 182
    35. 12  CFNetwork                         0x2d0ae578 MultiplexerSource::perform() + 220
    36. 13  CFNetwork                         0x2d0ae40c MultiplexerSource::_perform(void*) + 48
    37. 14  CoreFoundation                    0x2d47d20a __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 14
    38. 15  CoreFoundation                    0x2d47c6da __CFRunLoopDoSources0 + 206
    39. 16  CoreFoundation                    0x2d47aece __CFRunLoopRun + 622
    40. 17  CoreFoundation                    0x2d3e5ebe CFRunLoopRunSpecific + 522
    41. 18  CoreFoundation                    0x2d3e5ca2 CFRunLoopRunInMode + 106
    42. 19  Foundation                        0x2ddd91ea -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 254
    43. 20  Foundation                        0x2de2a0a0 -[NSRunLoop(NSRunLoop) run] + 80
    44. 21  mygame222222                      0x00046672 __UnitySendWWWConnection_block_invoke_2 (WWWConnection.mm:383)
    45. 22  Foundation                        0x2ddf63c6 -[NSBlockOperation main] + 130
    46. 23  Foundation                        0x2dde65aa -[__NSOperationInternal _start:] + 770
    47. 24  Foundation                        0x2de8a76c __NSOQSchedule_f + 60
    48. 25  libdispatch.dylib                 0x3814c9aa _dispatch_async_redirect_invoke$VARIANT$up + 110
    49. 26  libdispatch.dylib                 0x3815d920 _dispatch_root_queue_drain + 224
    50. 27  libdispatch.dylib                 0x3815db20 _dispatch_worker_thread2 + 56
    51. 28  libsystem_pthread.dylib           0x3828cbd2 _pthread_wqthread + 298
    52. 29  libsystem_pthread.dylib           0x3828ca98 start_wqthread + 8

    Crash #2:

    Code (CSharp):
    1. Incident Identifier: 864DCEE7-7818-42CB-B3DE-FA69334FBD8A
    2. CrashReporter Key:   c22ba828f7932bdf2815acc5381180abf640076a
    3. Hardware Model:      iPhone3,3
    4. Process:             mygame222222 [215]
    5. Path:                /var/mobile/Applications/9DC7201E-2EF7-4589-895A-BECBFAAB68D0/mygame222222.app/mygame222222
    6. Identifier:          com.publisher.game.mygame222222
    7. Version:             1.0 (1.0)
    8. Code Type:           ARM (Native)
    9. Parent Process:      launchd [1]
    10.  
    11. Date/Time:           2016-11-22 04:49:15.179 +0200
    12. OS Version:          iOS 7.1.2 (11D257)
    13. Report Version:      104
    14.  
    15. Exception Type:  EXC_BAD_ACCESS (SIGBUS)
    16. Exception Subtype: KERN_PROTECTION_FAILURE at 0x39f3b064
    17. Triggered by Thread:  34
    18. ..........
    19. ..........
    20. ..........
    21. Thread 34 Crashed:
    22. 0   ???                               0x39f3b064 0 + 972271716
    23. 1   mygame222222                      0x0086d18c iPhoneWWWDownloadBuffer::OnCompleteContent() (iPhoneWWW.mm:63)
    24. 2   mygame222222                      0x00837714 UnityReportWWWFinishedLoadingData (TransportiPhone.cpp:260)
    25. 3   mygame222222                      0x0006d438 -[UnityWWWConnectionDelegate connection:didFailWithError:] (WWWConnection.mm:250)
    26. 4   Foundation                        0x2ddf1fc0 __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke + 52
    27. 5   Foundation                        0x2ddf1f02 -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] + 202
    28. 6   Foundation                        0x2ddf2c4c -[NSURLConnectionInternal _withConnectionAndDelegate:] + 56
    29. 7   Foundation                        0x2de7e0b4 _NSURLConnectionDidFail + 80
    30. 8   CFNetwork                         0x2d118300 ___ZN27URLConnectionClient_Classic17_delegate_didFailEP9__CFErrorU13block_pointerFvvE_block_invoke + 84
    31. 9   CFNetwork                         0x2d116cf4 ___ZN27URLConnectionClient_Classic18_withDelegateAsyncEPKcU13block_pointerFvP16_CFURLConnectionPK33CFURLConnectionClientCurrent_VMaxE_block_invoke_2 + 52
    32. 10  CoreFoundation                    0x2d3e58ee CFArrayApplyFunction + 34
    33. 11  CFNetwork                         0x2d0ae6b6 RunloopBlockContext::perform() + 178
    34. 12  CFNetwork                         0x2d0ae576 MultiplexerSource::perform() + 218
    35. 13  CFNetwork                         0x2d0ae408 MultiplexerSource::_perform(void*) + 44
    36. 14  CoreFoundation                    0x2d47d208 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
    37. 15  CoreFoundation                    0x2d47c6d6 __CFRunLoopDoSources0 + 202
    38. 16  CoreFoundation                    0x2d47aeca __CFRunLoopRun + 618
    39. 17  CoreFoundation                    0x2d3e5eba CFRunLoopRunSpecific + 518
    40. 18  CoreFoundation                    0x2d3e5c9e CFRunLoopRunInMode + 102
    41. 19  Foundation                        0x2ddd91e6 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250
    42. 20  Foundation                        0x2de2a09c -[NSRunLoop(NSRunLoop) run] + 76
    43. 21  mygame222222                      0x0006e66e __UnitySendWWWConnection_block_invoke_2 (WWWConnection.mm:383)
    44. 22  Foundation                        0x2ddf63c4 -[NSBlockOperation main] + 128
    45. 23  Foundation                        0x2dde65a6 -[__NSOperationInternal _start:] + 766
    46. 24  Foundation                        0x2de8a768 __NSOQSchedule_f + 56
    47. 25  libdispatch.dylib                 0x3814c9a6 _dispatch_async_redirect_invoke$VARIANT$up + 106
    48. 26  libdispatch.dylib                 0x3815d91c _dispatch_root_queue_drain + 220
    49. 27  libdispatch.dylib                 0x3815db1c _dispatch_worker_thread2 + 52
    50. 28  libsystem_pthread.dylib           0x3828cbd0 _pthread_wqthread + 296
    51. 29  libsystem_pthread.dylib           0x3828ca94 start_wqthread + 4

    All symbolicated crashlogs are in the attachments!

    Best,
    Nolex.
     

    Attached Files:

  12. Nolex

    Nolex

    Joined:
    Dec 10, 2010
    Posts:
    116
    A new crash on iPod touch 5 (iOS 9.3.5):

    Code (CSharp):
    1. Incident Identifier: 560BEEFE-2E2C-4694-B2E1-2CB84FDE0B15
    2. CrashReporter Key:   2f1e427691dc3aecfc2d4233443a4e4428777d44
    3. Hardware Model:      iPod5,1
    4. Process:             mygame222222 [881]
    5. Path:                /private/var/containers/Bundle/Application/7B3B680A-5B94-47C6-AA8F-374B03707AFE/mygame222222.app/mygame222222
    6. Identifier:          com.publisher.game.mygame222222
    7. Version:             1.0 (1.0)
    8. Code Type:           ARM (Native)
    9. Parent Process:      launchd [1]
    10.  
    11. Date/Time:           2016-11-22 10:04:06.06 +0200
    12. Launch Time:         2016-11-22 10:03:26.26 +0200
    13. OS Version:          iOS 9.3.5 (13G36)
    14. Report Version:      104
    15.  
    16. Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    17. Exception Subtype: KERN_INVALID_ADDRESS at 0x20000018
    18. Triggered by Thread:  2
    19. ..........
    20. ..........
    21. ..........
    22. Thread 2 name:  Dispatch queue: com.unity3d.WebOperationQueue :: NSOperation 0x1b9541d0 (QOS: LEGACY)
    23. Thread 2 Crashed:
    24. 0   mygame222222                      0x005c7362 WWW::FeedUnityWebStream(bool) (WWW.h:96)
    25. 1   mygame222222                      0x0088818e iPhoneWWWDownloadBuffer::OnCompleteContent() (iPhoneWWW.mm:64)
    26. 2   mygame222222                      0x00852716 UnityReportWWWFinishedLoadingData (TransportiPhone.cpp:260)
    27. 3   mygame222222                      0x0008843c -[UnityWWWConnectionDelegate connection:didFailWithError:] (WWWConnection.mm:251)
    28. 4   CFNetwork                         0x244a3324 __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke + 56
    29. 5   CFNetwork                         0x244a32dc -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] + 184
    30. 6   CFNetwork                         0x244a3400 -[NSURLConnectionInternal _withConnectionAndDelegate:] + 36
    31. 7   CFNetwork                         0x2447f030 _NSURLConnectionDidFail(_CFURLConnection*, __CFError*, void const*) + 84
    32. 8   CFNetwork                         0x2441e02a ___ZN27URLConnectionClient_Classic17_delegate_didFailEP9__CFErrorU13block_pointerFvvE_block_invoke + 86
    33. 9   CFNetwork                         0x2441c8b6 ___ZN27URLConnectionClient_Classic18_withDelegateAsyncEPKcU13block_pointerFvP16_CFURLConnectionPK33CFURLConnectionClientCurrent_VMaxE_block_invoke_2 + 70
    34. 10  libdispatch.dylib                 0x239cd80e _dispatch_client_callout + 22
    35. 11  libdispatch.dylib                 0x239d6dbe _dispatch_block_invoke$VARIANT$mp + 446
    36. 12  CFNetwork                         0x2434eb06 RunloopBlockContext::_invoke_block(void const*, void*) + 18
    37. 13  CoreFoundation                    0x23d6ec60 CFArrayApplyFunction + 36
    38. 14  CFNetwork                         0x2434e9ee RunloopBlockContext::perform() + 182
    39. 15  CFNetwork                         0x2434e8b8 MultiplexerSource::perform() + 216
    40. 16  CFNetwork                         0x2434e750 MultiplexerSource::_perform(void*) + 48
    41. 17  CoreFoundation                    0x23e21dfe __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 14
    42. 18  CoreFoundation                    0x23e219ec __CFRunLoopDoSources0 + 452
    43. 19  CoreFoundation                    0x23e1fd5a __CFRunLoopRun + 794
    44. 20  CoreFoundation                    0x23d6f228 CFRunLoopRunSpecific + 520
    45. 21  CoreFoundation                    0x23d6f014 CFRunLoopRunInMode + 108
    46. 22  Foundation                        0x245b8044 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 268
    47. 23  Foundation                        0x24606a4c -[NSRunLoop(NSRunLoop) run] + 80
    48. 24  mygame222222                      0x00089672 __UnitySendWWWConnection_block_invoke_2 (WWWConnection.mm:383)
    49. 25  Foundation                        0x24671678 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 8
    50. 26  Foundation                        0x245d25f2 -[NSBlockOperation main] + 146
    51. 27  Foundation                        0x245c4bc8 -[__NSOperationInternal _start:] + 768
    52. 28  Foundation                        0x24673930 __NSOQSchedule_f + 192
    53. 29  libdispatch.dylib                 0x239da422 _dispatch_queue_drain$VARIANT$mp + 1758
    54. 30  libdispatch.dylib                 0x239d9a60 _dispatch_queue_invoke$VARIANT$mp + 284
    55. 31  libdispatch.dylib                 0x239dc15c _dispatch_root_queue_drain + 396
    56. 32  libdispatch.dylib                 0x239dbfcc _dispatch_worker_thread3 + 96
    57. 33  libsystem_pthread.dylib           0x23b91b28 _pthread_wqthread + 1024
    58. 34  libsystem_pthread.dylib           0x23b91718 start_wqthread + 8
     

    Attached Files:

  13. christophergoy

    christophergoy

    Joined:
    Sep 16, 2015
    Posts:
    735
    Hi @Nolex,
    I will keep investigating. Thank you for your crash reports.
    Cheers,
    Chris
     
    InspiredSquare and Nolex like this.
  14. InspiredSquare

    InspiredSquare

    Joined:
    Nov 16, 2015
    Posts:
    20
    We are exactly facing the same issue, more than 5K+ crash reports so for after upgrading Unity from 5.3 to 5.4.
    Code (CSharp):
    1. Crashed: com.unity3d.WebOperationQueue :: NSOperation 0x17424e4c0 (QOS: DEFAULT)
    2. 0  gamename                       0x101be8110 plcrash::async::dwarf_cfa_state_iterator<unsigned long long, long long>::next(unsigned int*, plcrash::async::plcrash_dwarf_cfa_reg_rule_t*, unsigned long long*) + 9260488
    3. 1  gamename                       0x100ccddf4 WWW::FeedUnityWebStream(bool) (WWW.h:96)
    4. 2  gamename                       0x100f9fbd4 iPhoneWWWDownloadBuffer::OnCompleteContent() (iPhoneWWW.mm:64)
    5. 3  gamename                       0x100f6c940 UnityReportWWWFinishedLoadingData (TransportiPhone.cpp:260)
    6. 4  gamename                       0x10003aee8 -[UnityWWWConnectionDelegate connection:didFailWithError:] (WWWConnection.mm:239)
    7. 5  CFNetwork                      0x18a986788 __65-[NSURLConnectionInternal _withConnectionAndDelegate:eek:nlyActive:]_block_invoke + 80
    8. 6  CFNetwork                      0x18a986718 -[NSURLConnectionInternal _withConnectionAndDelegate:eek:nlyActive:] + 200
    9. 7  CFNetwork                      0x18a9868d8 -[NSURLConnectionInternal _withConnectionAndDelegate:] + 56
    10. 8  CFNetwork                      0x18a9455d0 _NSURLConnectionDidFail(_CFURLConnection*, __CFError*, void const*) + 76
    11. 9  CFNetwork                      0x18a8aed84 ___ZN27URLConnectionClient_Classic17_delegate_didFailEP9__CFErrorU13block_pointerFvvE_block_invoke + 112
    12. 10 CFNetwork                      0x18a8ac960 ___ZN27URLConnectionClient_Classic18_withDelegateAsyncEPKcU13block_pointerFvP16_CFURLConnectionPK33CFURLConnectionClientCurrent_VMaxE_block_invoke_2 + 108
    13. 11 libdispatch.dylib              0x188fd11c0 _dispatch_client_callout + 16
    14. 12 libdispatch.dylib              0x188fdcb24 _dispatch_block_invoke_direct + 376
    15. 13 CFNetwork                      0x18a963eb4 RunloopBlockContext::_invoke_block(void const*, void*) + 36
    16. 14 CoreFoundation                 0x18a01f9a8 CFArrayApplyFunction + 68
    17. 15 CFNetwork                      0x18a963d98 RunloopBlockContext::perform() + 136
    18. 16 CFNetwork                      0x18a9650c0 MultiplexerSource::perform() + 312
    19. 17 CFNetwork                      0x18a964e2c MultiplexerSource::_perform(void*) + 64
    20. 18 CoreFoundation                 0x18a0f4278 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
    21. 19 CoreFoundation                 0x18a0f3bc0 __CFRunLoopDoSources0 + 524
    22. 20 CoreFoundation                 0x18a0f17c0 __CFRunLoopRun + 804
    23. 21 CoreFoundation                 0x18a020048 CFRunLoopRunSpecific + 444
    24. 22 Foundation                     0x18ab31a8c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
    25. 23 Foundation                     0x18ab86210 -[NSRunLoop(NSRunLoop) run] + 88
    26. 24 gamename                       0x10003be54 __UnitySendWWWConnection_block_invoke_2 (WWWConnection.mm:362)
    27. 25 Foundation                     0x18ac0a754 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 16
    28. 26 Foundation                     0x18ab4f2c8 -[NSBlockOperation main] + 96
    29. 27 Foundation                     0x18ab3f8c4 -[__NSOperationInternal _start:] + 620
    30. 28 Foundation                     0x18ac0cb00 __NSOQSchedule_f + 228
    31. 29 libdispatch.dylib              0x188fd11c0 _dispatch_client_callout + 16
    32. 30 libdispatch.dylib              0x188fdf444 _dispatch_queue_serial_drain + 928
    33. 31 libdispatch.dylib              0x188fd49a8 _dispatch_queue_invoke + 652
    34. 32 libdispatch.dylib              0x188fe138c _dispatch_root_queue_drain + 572
    35. 33 libdispatch.dylib              0x188fe10ec _dispatch_worker_thread3 + 124
    36. 34 libsystem_pthread.dylib        0x1891da2b8 _pthread_wqthread + 1288
    37. 35 libsystem_pthread.dylib        0x1891d9da4 start_wqthread + 4
     
    Last edited: Nov 23, 2016
    Nolex likes this.
  15. christophergoy

    christophergoy

    Joined:
    Sep 16, 2015
    Posts:
    735
    Hi @Ibexgames and @Nolex,
    There was a potential race condition between a native class in Unity having it's destructor called on it and the callback for the NSURLConnection delegate getting invoked. This has been resolved on the native side and will be coming out in a patch release. Unfortunately that means there is no workaround I can post for you here. My apologies. Once I know which patch release this fix will go into I will post it here for you.
    Cheers,
    Chris
     
    InspiredSquare and Nolex like this.
  16. hsallander

    hsallander

    Joined:
    Dec 19, 2013
    Posts:
    46
    Hi again @christophergoy, I just noticed there's a new patch release (5.4.3p2) out now, and according to the release notes it fixes "several crashes with regards to WWW and WebRequest.", and points to this issue in the issue tracker. Is that the fix for the issues discussed in this forum thread as well?
     
  17. christophergoy

    christophergoy

    Joined:
    Sep 16, 2015
    Posts:
    735
    Hi @hsallander,
    Yes, unfortunately it seems that the issue is still happening. I haver been testing another fix and believe it will resolve this issue (finally). I apologize for the inconvenience. I will update this thread once I know which patch release the fix is going into.
    Cheers,
    Chris
     
    Nolex likes this.
  18. Skjalg

    Skjalg

    Joined:
    May 25, 2009
    Posts:
    211
    Would it be an alternative to just not send events to unity analytics? I'd rather not have people crash than unity analytics.
     
  19. christophergoy

    christophergoy

    Joined:
    Sep 16, 2015
    Posts:
    735
    Hi @Skjalg,
    The issue is not specific to Unity Analytics, so disabling it will not solve the issue. I don't know if it will make it less frequent or not. I have my PRs ready to go and it should get into the patch next patch release.
    Cheers,
    Chris
     
    Nolex likes this.
  20. Skjalg

    Skjalg

    Joined:
    May 25, 2009
    Posts:
    211
    We're working on an update for our app right now, hoping to upload that later today or tomorrow morning. When will 5.4.3p3 be out, because if it is out tomorrow or wednesday we might delay it for that reason alone.
     
  21. christophergoy

    christophergoy

    Joined:
    Sep 16, 2015
    Posts:
    735
    Hey @Skjalg,
    It will most likely come out in 5.4.3p4 which will be released the 14th of December.
     
    InspiredSquare, hsallander and Nolex like this.
  22. christophergoy

    christophergoy

    Joined:
    Sep 16, 2015
    Posts:
    735
    Hi all,
    The fix landed in the release branch today and will indeed make it into the 5.4.3p4 patch release.
    Cheers,
    Chris
     
    InspiredSquare, Nolex and hsallander like this.
  23. Skjalg

    Skjalg

    Joined:
    May 25, 2009
    Posts:
    211
    Great to hear, except it was supposed to be released yesterday on the 14th, right? Any new ETA?
     
    hsallander likes this.
  24. christophergoy

    christophergoy

    Joined:
    Sep 16, 2015
    Posts:
    735
    Hey all,
    I believe the build was kicked off last night. Stay tuned. Apologies for the delay.
    Cheers,
    Chris
     
    Nolex likes this.
  25. caihl

    caihl

    Joined:
    Apr 21, 2016
    Posts:
    2
    Hi @christophergoy, is this the same issue on Android? Also caused by FeedUnityWebStream.
    Here is the dump information:

    Code (CSharp):
    1.  
    2.  
    3. Operating system: Android
    4.                   0.0.0 Linux 3.0.31-3707295 #1 SMP PREEMPT Sat Dec 27 22:09:52 KST 2014 armv7l
    5. CPU: arm
    6.      ARMv7 ARM Cortex-A9 features: swp,half,thumb,fastmult,vfpv2,edsp,neon,vfpv3,tls
    7.      4 CPUs
    8.  
    9. GPU: UNKNOWN
    10.  
    11. Crash reason:  SIGILL
    12. Crash address: 0x61ffb2fc
    13. Process uptime: not available
    14.  
    15. Thread 71 (crashed)
    16. 0  libunity.so!__wrap_abort + 0x0
    17.      r0 = 0x7544b798    r1 = 0x7062aba0    r2 = 0x00000001    r3 = 0x000059a0
    18.      r4 = 0x401a5184    r5 = 0x00000001    r6 = 0x681b36bc    r7 = 0x681b36f0
    19.      r8 = 0x00000000    r9 = 0x00000000   r10 = 0xffffeed4   r12 = 0x62a40850
    20.      fp = 0x75c2019c    sp = 0x75c20180    lr = 0x628858c8    pc = 0x61ffb2fc
    21.     Found by: given as instruction pointer in context
    22. 1  libunity.so!std::runtime_error::what() const + 0x6
    23.      sp = 0x75c20194    pc = 0x62886efc
    24.     Found by: stack scanning
    25. 2  libunity.so!__cxxabiv1::__terminate(void (*)()) + 0xa
    26.      sp = 0x75c201a0    pc = 0x6285ba44
    27.     Found by: stack scanning
    28. 3  libunity.so!std::terminate() + 0xe
    29.      sp = 0x75c201a8    pc = 0x6285baa8
    30.     Found by: stack scanning
    31. 4  libunity.so!__cxa_throw + 0x9e
    32.      sp = 0x75c201b0    pc = 0x6285bbf8
    33.     Found by: stack scanning
    34. 5  libunity.so!__udivdi3 + 0x14b1c2
    35.      sp = 0x75c201c0    pc = 0x629d38c4
    36.     Found by: stack scanning
    37. 6  libunity.so!std::__throw_logic_error(char const*) + 0x72
    38.      sp = 0x75c201c8    pc = 0x628828ac
    39.     Found by: stack scanning
    40. 7  libunity.so!char* std::string::_S_construct<char const*>(char const*, char const*, std::allocator<char> const&, std::forward_iterator_tag) + 0x36
    41.      sp = 0x75c201f0    pc = 0x628841cc
    42.     Found by: stack scanning
    43. 8  libunity.so!std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) + 0x32
    44.      sp = 0x75c20200    pc = 0x628844a8
    45.     Found by: stack scanning
    46. 9  libunity.so!UnityWebStream::UnityWebStream(char const*, Hash128, unsigned int, bool) + 0x5a
    47.      sp = 0x75c20210    pc = 0x61fea480
    48.     Found by: stack scanning
    49. 10  libunity.so!__udivdi3 + 0x48e88
    50.      sp = 0x75c20220    pc = 0x628d158a
    51.     Found by: stack scanning
    52. 11  libunity.so!operator new(unsigned int, MemLabelIdentifier, int, char const*, int) + 0xa2
    53.      sp = 0x75c20230    pc = 0x61cfceb4
    54.     Found by: stack scanning
    55. 12  libunity.so!__udivdi3 + 0x48e88
    56.      sp = 0x75c20238    pc = 0x628d158a
    57.     Found by: stack scanning
    58. 13  libunity.so!WWW::FeedUnityWebStream(bool) + 0x272
    59.      sp = 0x75c20260    pc = 0x61da9250
    60.     Found by: stack scanning
    61. 14  dalvik-mark-stack (deleted) + 0x27f7c3c
    62.      sp = 0x75c20278    pc = 0x550abc3e
    63.     Found by: stack scanning
     
  26. christophergoy

    christophergoy

    Joined:
    Sep 16, 2015
    Posts:
    735
    Hi @caihl,
    I'm not sure, could you file a bug against the android player and someone will take a look.
    Cheers,
    Chris
     
  27. christophergoy

    christophergoy

    Joined:
    Sep 16, 2015
    Posts:
    735
    Hi All,
    I wanted to ask if any of you are still seeing this issue after the patch releases.
    Cheers,
    Chris
     
    Cromfeli likes this.
  28. InspiredSquare

    InspiredSquare

    Joined:
    Nov 16, 2015
    Posts:
    20
    Hi @christophergoy,
    Thanks, this issue has been resolved in Unity 5.5.0p2. However i am getting new crash but i don't know if it is related to this.

    Code (CSharp):
    1. Crashed: WebThread
    2. 0  libGPUSupportMercury.dylib     0x1a15a6f90 gpus_ReturnNotPermittedKillClient
    3. 1  AGXGLDriver                    0x1a5fbe1bc (null)
    4. 2  libGPUSupportMercury.dylib     0x1a15a7f40 gpusSubmitDataBuffers
    5. 3  AGXGLDriver                    0x1a5fbf77c (null)
    6. 4  WebCore                        0x196d1fcb8 WebCore::GraphicsContext3D::reshape(int, int) + 528
    7. 5  WebCore                        0x1976f798c WebCore::WebGLRenderingContextBase::initializeNewContext() + 716
    8. 6  WebCore                        0x1976f73e8 WebCore::WebGLRenderingContextBase::WebGLRenderingContextBase(WebCore::HTMLCanvasElement*, WTF::RefPtr<WebCore::GraphicsContext3D>&&, WebCore::GraphicsContext3D::Attributes) + 516
    9. 7  WebCore                        0x1976ef68c WebCore::WebGLRenderingContext::WebGLRenderingContext(WebCore::HTMLCanvasElement*, WTF::PassRefPtr<WebCore::GraphicsContext3D>, WebCore::GraphicsContext3D::Attributes) + 40
    10. 8  WebCore                        0x1976f6c68 WebCore::WebGLRenderingContextBase::create(WebCore::HTMLCanvasElement*, WebCore::WebGLContextAttributes*, WTF::String const&) + 1276
    11. 9  WebCore                        0x19695d0ac WebCore::HTMLCanvasElement::getContext(WTF::String const&, WebCore::CanvasContextAttributes*) + 524
    12. 10 WebCore                        0x196ffcba0 WebCore::JSHTMLCanvasElement::getContext(JSC::ExecState&) + 216
    13. 11 JavaScriptCore                 0x196385460 llint_entry + 27344
    14. 12 JavaScriptCore                 0x196384a48 llint_entry + 24760
    15. 13 JavaScriptCore                 0x196384a48 llint_entry + 24760
    16. 14 JavaScriptCore                 0x196384a48 llint_entry + 24760
    17. 15 JavaScriptCore                 0x196384a48 llint_entry + 24760
    18. 16 JavaScriptCore                 0x19637e7c8 vmEntryToJavaScript + 264
    19. 17 JavaScriptCore                 0x196251ca8 JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*) + 168
    20. 18 JavaScriptCore                 0x195ca1c0c JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 352
    21. 19 JavaScriptCore                 0x196282404 JSC::boundThisNoArgsFunctionCall(JSC::ExecState*) + 448
    22. 20 JavaScriptCore                 0x19637e910 vmEntryToNative + 272
    23. 21 JavaScriptCore                 0x195ca1c50 JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 420
    24. 22 JavaScriptCore                 0x195f14e00 JSC::profiledCall(JSC::ExecState*, JSC::ProfilingReason, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&, WTF::NakedPtr<JSC::Exception>&) + 164
    25. 23 WebCore                        0x196917e48 WebCore::JSEventListener::handleEvent(WebCore::ScriptExecutionContext*, WebCore::Event*) + 984
    26. 24 WebCore                        0x196c4c51c WebCore::EventTarget::fireEventListeners(WebCore::Event&, WebCore::EventTargetData*, WTF::Vector<WebCore::RegisteredEventListener, 1ul, WTF::CrashOnOverflow, 16ul>&) + 620
    27. 25 WebCore                        0x196c4c1cc WebCore::EventTarget::fireEventListeners(WebCore::Event&) + 328
    28. 26 WebCore                        0x196c40730 WebCore::EventContext::handleLocalEvents(WebCore::Event&) const + 112
    29. 27 WebCore                        0x196c417dc WebCore::EventDispatcher::dispatchEvent(WebCore::Node*, WebCore::Event&) + 880
    30. 28 WebCore                        0x196842c50 WebCore::Document::finishedParsing() + 152
    31. 29 WebCore                        0x1968406e4 WebCore::HTMLDocumentParser::prepareToStopParsing() + 172
    32. 30 WebCore                        0x196878054 WebCore::HTMLDocumentParser::resumeParsingAfterScriptExecution() + 232
    33. 31 WebCore                        0x196d63704 non-virtual thunk to WebCore::HTMLDocumentParser::notifyFinished(WebCore::CachedResource*) + 100
    34. 32 WebCore                        0x196874edc WebCore::CachedResource::checkNotify() + 448
    35. 33 WebCore                        0x196874bc0 WebCore::SubresourceLoader::didFinishLoading(double) + 1020
    36. 34 CFNetwork                      0x1925f176c __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke + 80
    37. 35 CFNetwork                      0x1925f16fc -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] + 200
    38. 36 CFNetwork                      0x1925f1870 -[NSURLConnectionInternal _withActiveConnectionAndDelegate:] + 56
    39. 37 CFNetwork                      0x192518788 ___ZN27URLConnectionClient_Classic26_delegate_didFinishLoadingEU13block_pointerFvvE_block_invoke + 96
    40. 38 CFNetwork                      0x192516678 ___ZN27URLConnectionClient_Classic18_withDelegateAsyncEPKcU13block_pointerFvP16_CFURLConnectionPK33CFURLConnectionClientCurrent_VMaxE_block_invoke_2 + 108
    41. 39 libdispatch.dylib              0x190c3d1c0 _dispatch_client_callout + 16
    42. 40 libdispatch.dylib              0x190c48b24 _dispatch_block_invoke_direct + 376
    43. 41 CFNetwork                      0x1925cee98 RunloopBlockContext::_invoke_block(void const*, void*) + 36
    44. 42 CoreFoundation                 0x191c8d9a8 CFArrayApplyFunction + 68
    45. 43 CFNetwork                      0x1925ced7c RunloopBlockContext::perform() + 136
    46. 44 CFNetwork                      0x1925d00a4 MultiplexerSource::perform() + 312
    47. 45 CFNetwork                      0x1925cfe10 MultiplexerSource::_perform(void*) + 64
    48. 46 CoreFoundation                 0x191d62278 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
    49. 47 CoreFoundation                 0x191d61bc0 __CFRunLoopDoSources0 + 524
    50. 48 CoreFoundation                 0x191d5f7c0 __CFRunLoopRun + 804
    51. 49 CoreFoundation                 0x191c8e048 CFRunLoopRunSpecific + 444
    52. 50 WebCore                        0x19682fa2c RunWebThread(void*) + 456
    53. 51 libsystem_pthread.dylib        0x190e47860 _pthread_body + 240
    54. 52 libsystem_pthread.dylib        0x190e47770 _pthread_body + 282
    55. 53 libsystem_pthread.dylib        0x190e44dbc thread_start + 4
     
  29. hsallander

    hsallander

    Joined:
    Dec 19, 2013
    Posts:
    46
    Hi @christophergoy, the www issue seems fixed in our app (built with Unity 5.4.3p4). Thanks!
     
    Cromfeli, christophergoy and Nolex like this.
  30. christophergoy

    christophergoy

    Joined:
    Sep 16, 2015
    Posts:
    735
    Hi @Ibexgames,
    I don't believe this is related to the crashes that were being discussed here. This is a stack trace I have not seen before. Googling gpus_ReturnNotPermittedKillClient crash turns up some things on stackoverflow about doing render calls in the background. Do you have a webview in your game? Maybe ads or something? This might be the cause of your crash. Let me know.
    Cheers,
    Chris
     
  31. GuyTidhar

    GuyTidhar

    Joined:
    Jun 24, 2009
    Posts:
    320
    @christophergoy - should the attached WWWConnection.mm script work for version 5.5.0f3? I tried this - the crashes did not stop. They might have actually gotten worth.
     
  32. christophergoy

    christophergoy

    Joined:
    Sep 16, 2015
    Posts:
    735
    Hi @GuyTidhar,
    The source file posted here did not fix the issue. The fix was released in a patch release 5.5.0p2. Sorry for your troubles.
    Cheers,
    Chris
     
  33. GuyTidhar

    GuyTidhar

    Joined:
    Jun 24, 2009
    Posts:
    320
    @christophergoy - is it included in 5.5.1?
     
  34. christophergoy

    christophergoy

    Joined:
    Sep 16, 2015
    Posts:
    735
    Hi @GuyTidhar,
    Yes, it should be included in 5.5.1 since it made it into a patch release previously.
    Cheers,
    Chris
     
  35. Muxeu

    Muxeu

    Joined:
    Jan 29, 2013
    Posts:
    1
    Unfortunately, i have same issue in a 5.5.0p4. I have own timeout for www connections and dispose ones when request time is out (default timeout is too long). Game works perfectly on good connection, but when connection is weak (like gprs/edge networks with bad signal) game randomly chashes. I am trying to create empty project with reproduce, but this bug is very hard to reproduce.

    Code (CSharp):
    1. Incident Identifier: B00C6F23-FE9B-4249-8146-5E5A60818270
    2. CrashReporter Key:   a7d35d556a37e86e4bea3625411bfe74150b6d55
    3. Hardware Model:      iPhone8,1
    4. Process:             queenofdrama [1399]
    5. Path:                /private/var/containers/Bundle/Application/6F0B1AD1-ECAD-4F2A-9EE3-A1A15AEB883B/queenofdrama.app/queenofdrama
    6. Identifier:          com.integragames.queenofdrama
    7. Version:             21 (1.0)
    8. Code Type:           ARM-64 (Native)
    9. Role:                Foreground
    10. Parent Process:      launchd [1]
    11. Coalition:           com.integragames.queenofdrama [533]
    12.  
    13.  
    14. Date/Time:           2017-02-13 22:06:35.3584 +0200
    15. Launch Time:         2017-02-13 22:01:39.7494 +0200
    16. OS Version:          iPhone OS 10.2.1 (14D27)
    17. Report Version:      104
    18.  
    19. Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    20. Exception Subtype: KERN_INVALID_ADDRESS at 0xbadde7df06b7beb5
    21. Termination Signal: Segmentation fault: 11
    22. Termination Reason: Namespace SIGNAL, Code 0xb
    23. Terminating Process: exc handler [0]
    24. Triggered by Thread:  40
    25.  
    26. Filtered syslog:
    27. None found
    28.  
    29. ...
    30.  
    31. Thread 40 name:  Dispatch queue: com.unity3d.WebOperationQueue :: NSOperation 0x174c418f0 (QOS: USER_INTERACTIVE)
    32. Thread 40 Crashed:
    33. 0   CFNetwork                  
    34. 0x0000000181f6d6d4 0x181ea0000 + 841428
    35. 1   CFNetwork                  
    36. 0x0000000181f6d6c8 0x181ea0000 + 841416
    37. 2   queenofdrama                
    38. 0x00000001010345d8 0x1000c4000 + 16188888
    39. 3   queenofdrama                
    40. 0x00000001000cabfc 0x1000c4000 + 27644
    41. 4   CFNetwork                  
    42. 0x00000001820fd5bc 0x181ea0000 + 2479548
    43. 5   CFNetwork                  
    44. 0x00000001820fd54c 0x181ea0000 + 2479436
    45. 6   CFNetwork                  
    46. 0x00000001820fd6c0 0x181ea0000 + 2479808
    47. 7   CFNetwork                  
    48. 0x0000000182022228 0x181ea0000 + 1581608
    49. 8   CFNetwork                  
    50. 0x000000018201d7ac 0x181ea0000 + 1562540
    51. 9   libdispatch.dylib          
    52. 0x000000018072a1bc 0x180729000 + 4540
    53. 10  libdispatch.dylib          
    54. 0x0000000180735ab0 0x180729000 + 51888
    55. 11  CFNetwork                  
    56. 0x00000001820da598 0x181ea0000 + 2336152
    57. 12  CoreFoundation              
    58. 0x0000000181779c18 0x181771000 + 35864
    59. 13  CFNetwork                  
    60. 0x00000001820da47c 0x181ea0000 + 2335868
    61. 14  CFNetwork                  
    62. 0x00000001820db7a4 0x181ea0000 + 2340772
    63. 15  CFNetwork                  
    64. 0x00000001820db510 0x181ea0000 + 2340112
    65. 16  CoreFoundation              
    66. 0x000000018184eb5c 0x181771000 + 908124
    67. 17  CoreFoundation              
    68. 0x000000018184e4a4 0x181771000 + 906404
    69. 18  CoreFoundation              
    70. 0x000000018184c0a4 0x181771000 + 897188
    71. 19  CoreFoundation              
    72. 0x000000018177a2b8 0x181771000 + 37560
    73. 20  Foundation                  
    74. 0x00000001822b726c 0x1822ab000 + 49772
    75. 21  Foundation                  
    76. 0x000000018230baa0 0x1822ab000 + 395936
    77. 22  queenofdrama                
    78. 0x00000001000cbaf0 0x1000c4000 + 31472
    79. 23  Foundation                  
    80. 0x000000018238ffb0 0x1822ab000 + 937904
    81. 24  Foundation                  
    82. 0x00000001822d4aa8 0x1822ab000 + 170664
    83. 25  Foundation                  
    84. 0x00000001822c50a4 0x1822ab000 + 106660
    85. 26  Foundation                  
    86. 0x000000018239235c 0x1822ab000 + 947036
    87. 27  libdispatch.dylib          
    88. 0x000000018072a1bc 0x180729000 + 4540
    89. 28  libdispatch.dylib          
    90. 0x00000001807383dc 0x180729000 + 62428
    91. 29  libdispatch.dylib          
    92. 0x000000018072d9a4 0x180729000 + 18852
    93. 30  libdispatch.dylib          
    94. 0x000000018073a34c 0x180729000 + 70476
    95. 31  libdispatch.dylib          
    96. 0x000000018073a0ac 0x180729000 + 69804
    97. 32  libsystem_pthread.dylib    
    98. 0x00000001809332a0 0x180932000 + 4768
    99. 33  libsystem_pthread.dylib    
    100. 0x0000000180932d8c 0x180932000 + 3468
    101.  
    And one more crash:

    Code (CSharp):
    1.  
     
  36. christophergoy

    christophergoy

    Joined:
    Sep 16, 2015
    Posts:
    735
    Hi @Muxeu,
    Without the symbols for the stack trace, it's hard to tell what's happening. I don't know where in the code you are getting a crash. I see that it is happening on a thread spawned by the WebOperationQueue though. If you could symbolicate your crash log, it would be much more helpful.
    Cheers,
    Chris
     
  37. NVS_UA

    NVS_UA

    Joined:
    Mar 11, 2015
    Posts:
    1
    Hi
    I have same crash 5.5.1f1

    Code (CSharp):
    1. Date/Time:           2017-03-20 15:24:44.0928 +0200
    2. Launch Time:         2017-03-20 15:22:58.3586 +0200
    3. OS Version:          iPhone OS 10.0.1 (14A403)
    4. Report Version:      104
    5.  
    6. Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    7. Exception Subtype: KERN_INVALID_ADDRESS at 0x000000110000006b
    8. Termination Signal: Segmentation fault: 11
    9. Termination Reason: Namespace SIGNAL, Code 0xb
    10. Terminating Process: exc handler [0]
    11. Triggered by Thread:  10
    Code (CSharp):
    1. Thread 10 name:  Dispatch queue: com.unity3d.WebOperationQueue :: NSOperation 0x17445d1f0 (QOS: USER_INTERACTIVE)
    2. Thread 10 Crashed:
    3. 0   [PROJECT]                               0x00000001016b5148 0x100074000 + 23335240
    4. 1   CFNetwork                         0x000000018d32176c __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke + 80
    5. 2   CFNetwork                         0x000000018d3216fc -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] + 200
    6. 3   CFNetwork                         0x000000018d321870 -[NSURLConnectionInternal _withActiveConnectionAndDelegate:] + 56
    7. 4   CFNetwork                         0x000000018d2e06e4 _NSURLConnectionDidSendBodyData(_CFURLConnection*, long, long, long, void const*) + 80
    8. 5   CFNetwork                         0x000000018d2495cc ___ZN27URLConnectionClient_Classic25_delegate_didSendBodyDataE18UploadProgressInfo_block_invoke + 96
    9. 6   CFNetwork                         0x000000018d246678 ___ZN27URLConnectionClient_Classic18_withDelegateAsyncEPKcU13block_pointerFvP16_CFURLConnectionPK33CFURLConnectionClientCurrent_VMaxE_block_invoke_2 + 108
    10. 7   libdispatch.dylib                 0x000000018b96d1c0 _dispatch_client_callout + 16
    11. 8   libdispatch.dylib                 0x000000018b978b24 _dispatch_block_invoke_direct + 376
    12. 9   CFNetwork                         0x000000018d2fee98 RunloopBlockContext::_invoke_block(void const*, void*) + 36
    13. 10  CoreFoundation                    0x000000018c9bd9a8 CFArrayApplyFunction + 68
    14. 11  CFNetwork                         0x000000018d2fed7c RunloopBlockContext::perform() + 136
    15. 12  CFNetwork                         0x000000018d3000a4 MultiplexerSource::perform() + 312
    16. 13  CFNetwork                         0x000000018d2ffe10 MultiplexerSource::_perform(void*) + 64
    17. 14  CoreFoundation                    0x000000018ca92278 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
    18. 15  CoreFoundation                    0x000000018ca91bc0 __CFRunLoopDoSources0 + 524
    19. 16  CoreFoundation                    0x000000018ca8f7c0 __CFRunLoopRun + 804
    20. 17  CoreFoundation                    0x000000018c9be048 CFRunLoopRunSpecific + 444
    21. 18  Foundation                        0x000000018d4ccb1c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
    22. 19  Foundation                        0x000000018d5212a0 -[NSRunLoop(NSRunLoop) run] + 88
    23. 20  [PROJECT]                               0x000000010007a470 0x100074000 + 25712
    24. 21  Foundation                        0x000000018d5a57e4 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 16
    25. 22  Foundation                        0x000000018d4ea358 -[NSBlockOperation main] + 96
    26. 23  Foundation                        0x000000018d4da954 -[__NSOperationInternal _start:] + 620
    27. 24  Foundation                        0x000000018d5a7b90 __NSOQSchedule_f + 228
    28. 25  libdispatch.dylib                 0x000000018b96d1c0 _dispatch_client_callout + 16
    29. 26  libdispatch.dylib                 0x000000018b97b444 _dispatch_queue_serial_drain + 928
    30. 27  libdispatch.dylib                 0x000000018b9709a8 _dispatch_queue_invoke + 652
    31. 28  libdispatch.dylib                 0x000000018b97d38c _dispatch_root_queue_drain + 572
    32. 29  libdispatch.dylib                 0x000000018b97d0ec _dispatch_worker_thread3 + 124
    33. 30  libsystem_pthread.dylib           0x000000018bb752c8 _pthread_wqthread + 1288
    34. 31  libsystem_pthread.dylib           0x000000018bb74db4 start_wqthread + 4
     
  38. BeforeTheLight

    BeforeTheLight

    Joined:
    Jan 7, 2011
    Posts:
    168
    Appears I have a similar issue in 5.5.2f1.

    I cannot figure out how to get the format for the error like everyone else but I have the same issues.
    Here are the ends of each of my errors all starting in the UnitySendWWWConnection block. I do not use any web requests in this app so I do believe it to be from analytics. This app has been on the market for more than 3 years without a crash now I have about 400 in a week.

    SCW: WWW::FeedUnityWebStream(bool) + 332

    SCW: detail::ci_less::eek:perator()(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const + 12

    SCW: iPhoneWWWDownloadBuffer::OnReceiveData(void const*, unsigned long) + 56
     
  39. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,735
    I remember this bug being fixed, but can't recall the exact version. Can you try the latest 5.5 patch release?
     
  40. JoelHorne

    JoelHorne

    Joined:
    Apr 10, 2017
    Posts:
    2
    Hi AC,

    We also have this or a similar problem. Perhaps you are thinking of this thread for the fix version?
    https://forum.unity3d.com/threads/ios-unityreportwwwreceiveddata-crash.339058/

    Unfortunately in there the version is 5.5.0p2. We have the issue on 5.5.0p4. It is very rare (we can't reproduce it) but happens consistently on startup for some users. Stack with symbols from crashlytics below.

    Code (CSharp):
    1. #2. Crashed: com.unity3d.WebOperationQueue :: NSOperation 0x1754427f0 (QOS: USER_INTERACTIVE)
    2. 0  <Project>                            0x100cd96d8 WWW::FeedUnityWebStream(bool) (WWW.h:95)
    3. 1  <Project>                            0x100d361e4 iPhoneWWWDownloadBuffer::OnCompleteContent() (iPhoneWWW.mm:64)
    4. 2  <Project>                            0x100d2eefc UnityReportWWWFinishedLoadingData (TransportiPhone.cpp:221)
    5. 3  <Project>                            0x100021fb8 -[UnityWWWConnectionDelegate connection:didFailWithError:] (WWWConnection.mm:235)
    6. 4  CFNetwork                      0x1917955bc __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke + 80
    7. 5  CFNetwork                      0x19179554c -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] + 200
    8. 6  CFNetwork                      0x19179570c -[NSURLConnectionInternal _withConnectionAndDelegate:] + 56
    9. 7  CFNetwork                      0x191753c7c _NSURLConnectionDidFail(_CFURLConnection*, __CFError*, void const*) + 76
    10. 8  CFNetwork                      0x1916b7bd0 ___ZN27URLConnectionClient_Classic17_delegate_didFailEP9__CFErrorU13block_pointerFvvE_block_invoke + 112
    11. 9  CFNetwork                      0x1916b57ac ___ZN27URLConnectionClient_Classic18_withDelegateAsyncEPKcU13block_pointerFvP16_CFURLConnectionPK33CFURLConnectionClientCurrent_VMaxE_block_invoke_2 + 108
    12. 10 libdispatch.dylib              0x18fdc21bc _dispatch_client_callout + 16
    13. 11 libdispatch.dylib              0x18fdcdab0 _dispatch_block_invoke_direct + 376
    14. 12 CFNetwork                      0x191772598 RunloopBlockContext::_invoke_block(void const*, void*) + 36
    15. 13 CoreFoundation                 0x190e11c18 CFArrayApplyFunction + 68
    16. 14 CFNetwork                      0x19177247c RunloopBlockContext::perform() + 136
    17. 15 CFNetwork                      0x1917737a4 MultiplexerSource::perform() + 312
    18. 16 CFNetwork                      0x191773510 MultiplexerSource::_perform(void*) + 64
    19. 17 CoreFoundation                 0x190ee6b5c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
    20. 18 CoreFoundation                 0x190ee64a4 __CFRunLoopDoSources0 + 524
    21. 19 CoreFoundation                 0x190ee40a4 __CFRunLoopRun + 804
    22. 20 CoreFoundation                 0x190e122b8 CFRunLoopRunSpecific + 444
    23. 21 Foundation                     0x19194f26c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
    24. 22 Foundation                     0x1919a3aa0 -[NSRunLoop(NSRunLoop) run] + 88
    25. 23 <Project>                            0x100022f10 __UnitySendWWWConnection_block_invoke_2 (WWWConnection.mm:357)
    26. 24 Foundation                     0x191a27fb0 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 16
    27. 25 Foundation                     0x19196caa8 -[NSBlockOperation main] + 96
    28. 26 Foundation                     0x19195d0a4 -[__NSOperationInternal _start:] + 620
    29. 27 Foundation                     0x191a2a35c __NSOQSchedule_f + 228
    30. 28 libdispatch.dylib              0x18fdc21bc _dispatch_client_callout + 16
    31. 29 libdispatch.dylib              0x18fdd03dc _dispatch_queue_serial_drain + 928
    32. 30 libdispatch.dylib              0x18fdc59a4 _dispatch_queue_invoke + 652
    33. 31 libdispatch.dylib              0x18fdd234c _dispatch_root_queue_drain + 572
    34. 32 libdispatch.dylib              0x18fdd20ac _dispatch_worker_thread3 + 124
    35. 33 libsystem_pthread.dylib        0x18ffcb2a0 _pthread_wqthread + 1288
    36. 34 libsystem_pthread.dylib        0x18ffcad8c start_wqthread + 4
     
  41. SweatyChair

    SweatyChair

    Joined:
    Feb 15, 2016
    Posts:
    140
    Has this too very occasionally in Unity 5.6.1p4 and iOS 10.3.2:


    Code (CSharp):
    1. Thread 3 (crashed)
    2. 0   libGPUSupportMercury.dylib          gpus_ReturnNotPermittedKillClient
    3. 1   libGPUSupportMercury.dylib          gpusSubmitDataBuffers
    4. 2   AGXGLDriver                         gldUpdateDispatch
    5. 3   WebCore                             WebCore::jsWebGLRenderingContextBasePrototypeFunctionFlush(JSC::ExecState*)
    6. 4   JavaScriptCore                      llint_entry
    7. 5   JavaScriptCore                      llint_entry
    8. 6   JavaScriptCore                      llint_entry
    9. 7   JavaScriptCore                      llint_entry
    10. 8   JavaScriptCore                      llint_entry
    11. 9   JavaScriptCore                      vmEntryToJavaScript
    12. 10  JavaScriptCore                      JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*)
    13. 11  JavaScriptCore                      JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&)
    14. 12  JavaScriptCore                      JSC::profiledCall(JSC::ExecState*, JSC::ProfilingReason, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&, WTF::NakedPtr<JSC::Exception>&)
    15. 13  WebCore                             WebCore::JSCallbackData::invokeCallback(WebCore::JSDOMGlobalObject&, JSC::JSObject*, JSC::MarkedArgumentBuffer&, WebCore::JSCallbackData::CallbackType, JSC::PropertyName, WTF::NakedPtr<JSC::Exception>&)
    16. 14  WebCore                             WebCore::JSRequestAnimationFrameCallback::handleEvent(double)
    17. 15  WebCore                             WebCore::ScriptedAnimationController::serviceScriptedAnimations(double)
    18. 16  WebCore                             WebCore::DisplayRefreshMonitor::displayDidRefresh()
    19. 17  WebCore                             -[WebDisplayLinkHandler handleDisplayLink:]
    20. 18  QuartzCore                          CA::Display::DisplayLinkItem::dispatch(unsigned long long)
    21. 19  QuartzCore                          CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long)
    22. 20  IOKit                               IODispatchCalloutFromCFMessage
    23. 21  CoreFoundation                      __CFMachPortPerform
    24. 22  CoreFoundation                      __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__
    25. 23  CoreFoundation                      __CFRunLoopDoSource1
    26. 24  CoreFoundation                      __CFRunLoopRun
    27. 25  CoreFoundation                      CFRunLoopRunSpecific
    28. 26  WebCore                             RunWebThread(void*)
    29. 27  libsystem_pthread.dylib             _pthread_body
    30. 28  libsystem_pthread.dylib             _pthread_body
    31. 29  libsystem_pthread.dylib             thread_start
    We are using Heyzap and ~8 ads platforms... Not sure if that's the ads causing the clash...
     
  42. christophergoy

    christophergoy

    Joined:
    Sep 16, 2015
    Posts:
    735
    Do you have the entire crash log? It would be good to see the other threads that were running during this crash.
    Cheers,
    Chris
     
  43. christophergoy

    christophergoy

    Joined:
    Sep 16, 2015
    Posts:
    735
    This doesn't seem like a unity stack trace as we do not use WebCore on iOS within the Unity Engine itself.