- Home /
ios Crash SetStatusCode()
Hello,
We're using Untiy3d 5.4.1 and the latest Xcode 8. Our application uses internet connection to fetch some data from our server. But even if we totally shut down our network part, we receive crash while application in idle (active but without any activity)
In xcode we got next stack-trace:
Thread 136:
0x01057a8c in ::SetStatusCode() at /Users/builduser/buildslave/unity/build/Runtime/WebRequest/Helpers/StatusHelper.cpp:17
0x01057fde in SetStatusCode [inlined] at /Users/builduser/buildslave/unity/build/./Runtime/WebRequest/Prototypes/ResponseHelperProto.h:86
0x01057fd6 in ::ErrorCallback() at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/WebRequest/Transports/TransportiPhone.cpp:214
0x0002c8e6 in ::-[UnityWWWConnectionDelegate connection:didFailWithError:](NSURLConnection , NSError ) at /Projects/SkyTrak/ios/SkyTrak/Classes/Unity/WWWConnection.mm:237
0x240a43a0 in __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke ()
0x240a4358 in -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] ()
0x240a447c in -[NSURLConnectionInternal _withConnectionAndDelegate:] ()
0x24080124 in _NSURLConnectionDidFail(CFURLConnection*, _CFError*, void const*) ()
0x2401f202 in __ZN27URLConnectionClient_Classic17_delegate_didFailEP9__CFErrorU13block_pointerFvvE_block_invoke ()
0x2401da82 in ___ZN27URLConnectionClient_Classic18_withDelegateAsyncEPKcU13block_pointerFvP16_CFURLConnectionPK33CFURLConnectionClientCurrent_VMaxE_block_invoke_2 ()
0x235efcaa in _dispatch_client_callout ()
0x235f7542 in _dispatch_block_invoke ()
0x23f4fd22 in RunloopBlockContext::_invoke_block(void const*, void*) ()
0x2396bc08 in CFArrayApplyFunction ()
0x23f4fc0a in RunloopBlockContext::perform() ()
0x23f4fad4 in MultiplexerSource::perform() ()
0x23f4f968 in MultiplexerSource::_perform(void*) ()
0x23a1f9e6 in CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION ()
0x23a1f5d6 in __CFRunLoopDoSources0 ()
0x23a1d93e in __CFRunLoopRun ()
0x2396c1c8 in CFRunLoopRunSpecific ()
0x2396bfbc in CFRunLoopRunInMode ()
0x241b942c in -[NSRunLoop(NSRunLoop) runMode:beforeDate:] ()
0x24207d74 in -[NSRunLoop(NSRunLoop) run] ()
0x0002dad6 in ::__UnitySendWWWConnection_block_invoke_2() at /Projects/SkyTrak/ios/SkyTrak/Classes/Unity/WWWConnection.mm:361
0x2427284c in NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK ()
0x241d387e in -[NSBlockOperation main] ()
0x241c5f8e in -[__NSOperationInternal _start:] ()
0x24274b0c in __NSOQSchedule_f ()
0x235f9e7e in _dispatch_queue_drain ()
0x235f2e16 in _dispatch_queue_invoke ()
0x235fb20c in _dispatch_root_queue_drain ()
0x235fb07a in _dispatch_worker_thread3 ()
0x2378ee0c in _pthread_wqthread ()
0x2378e9fc in start_wqthread ()
Please see attached full stack trace.link text
Any ideas what cause it ? Seems like it is internal Untiy3d call.
Thank you.