iOS在CFAllocatedReferenceCountedObject崩溃

wljmcqd8  于 2023-06-25  发布在  iOS
关注(0)|答案(1)|浏览(107)

我的应用程序经常崩溃,并显示以下信息:

0 CFNetwork CFAllocatedReferenceCountedObject::_retainable_hash(void const*)
1 CoreFoundation    _CFBasicHashFindBucket + 164
2 CoreFoundation    CFDictionaryGetValue + 224
3 CFNetwork TubeManager::_onqueue_enqueueRequestForProtocol(MetaConnectionCacheClient*, HTTPRequestMessage const*, MetaConnectionOptions, BaseAwaitingTube*) + 80
4 CFNetwork TubeManager::_onqueue_reenqueueAwaitingTube(BaseAwaitingTube*) + 112
5 CFNetwork ___ZN11TubeManager21_onqueue_newTubeReadyEP4Tube13CFStreamError_block_invoke + 28
6 CFNetwork ___ZNK18QCoreSchedulingSet12performAsyncEU13block_pointerFvvE_block_invoke + 52
7 libdispatch.dylib __dispatch_call_block_and_release + 24
8 libdispatch.dylib __dispatch_client_callout + 16
9 libdispatch.dylib __dispatch_queue_serial_drain$VARIANT$mp + 528
10 libdispatch.dylib    __dispatch_queue_invoke$VARIANT$mp + 340
11 libdispatch.dylib    __dispatch_queue_serial_drain$VARIANT$mp + 200
12 libdispatch.dylib    __dispatch_queue_invoke$VARIANT$mp + 340
13 libdispatch.dylib    __dispatch_root_queue_drain_deferred_wlh$VARIANT$mp + 404
14 libdispatch.dylib    __dispatch_workloop_worker_thread$VARIANT$mp + 644
15 libsystem_pthread.dylib  _pthread_wqthread + 932

碰撞装置信息:

谁知道这是怎么发生的,如何解决这个问题?

u0njafvf

u0njafvf1#

此错误似乎来自网络连接部分。请检查与网络连接相关的代码部分。
在我的例子中,当我在后台反复调用连接API到网络时,就会出现这种情况。换句话说,我在一个API完成之前再次调用了网络API。或者在一个API调用未完成之前,我移动到调用新Api的另一个屏幕(ViewController)。

相关问题