android 崩溃日志 arc,崩溃日志分析 · Issue #233 · leancloud/objc-sdk · GitHub

本文探讨了一个出现在Objective-C中的异常错误,特别是关于方法OS_nw_pathpublicKeysFromCerts:被发送到无效实例的问题。该问题涉及网络路径处理与证书相关的方法调用,疑似存在self引用不当的情况。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

b1dc1ba827a32ea7fda8eea80110ae15.png

#6 Thread

NSInvalidArgumentException

-[OS_nw_path publicKeysFromCerts:]: unrecognized selector sent to instance 0x1012f1940

0 CoreFoundation___exceptionPreprocess + 124

1 libobjc.A.dylibobjc_exception_throw + 56

2 CoreFoundation___methodDescriptionForSelector

3 CoreFoundation____forwarding___ + 916

4 CoreFoundation_CF_forwarding_prep_0 + 92

5 jike-[AVIMWebSocket pinPublicKey:forServerTrust:] (AVIMWebSocket.m:1462)

6 jike-[AVIMWebSocket stream:handleEvent:] (AVIMWebSocket.m:1517)

7 CoreFoundation__signalEventSync + 212

8 CoreFoundation__cfstream_solo_signalEventSync + 256

9 CoreFoundation__CFStreamSignalEvent + 520

10 CFNetworkSocketStream::socketCallback(__CFSocket*, unsigned long, __CFData const*, void const*) + 148

11 CFNetworkSocketStream::_SocketCallBack_stream(__CFSocket*, unsigned long, __CFData const*, void const*, void*) + 88

12 CoreFoundation___CFSocketPerformV0 + 1076

13 CoreFoundation___CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24

14 CoreFoundation___CFRunLoopDoSources0 + 540

15 CoreFoundation___CFRunLoopRun + 744

16 CoreFoundationCFRunLoopRunSpecific + 424

17 Foundation-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304

18 jike-[_AVIMRunLoopThread main] (AVIMWebSocket.m:1890)

19 Foundation___NSThread__start__ + 996

20 libsystem_pthread.dylib__pthread_body + 240

21 libsystem_pthread.dylib__pthread_body

22 libsystem_pthread.dylibthread_start + 4

#0 Thread

0 libsystem_kernel.dylib0x000000018912f224 mach_msg_trap

1 libsystem_kernel.dylib0x000000018912f09c mach_msg

2 CoreFoundation0x000000018a100e88 ___CFRunLoopServiceMachPort

3 CoreFoundation0x000000018a0feadc ___CFRunLoopRun

4 CoreFoundation0x000000018a02ed94 CFRunLoopRunSpecific

5 GraphicsServices0x000000018ba98074 GSEventRunModal

6 UIKit0x00000001902e7130 UIApplicationMain

7 jike0x0000000100256d94 main (main.m:19)

8 libdyld.dylib0x000000018903d59c _start

#1 com.apple.uikit.eventfetch-thread

0 libsystem_kernel.dylib0x000000018912f224 mach_msg_trap

1 libsystem_kernel.dylib0x000000018912f09c mach_msg

2 CoreFoundation0x000000018a100e88 ___CFRunLoopServiceMachPort

3 CoreFoundation0x000000018a0feadc ___CFRunLoopRun

4 CoreFoundation0x000000018a02ed94 CFRunLoopRunSpecific

5 Foundation0x000000018ab48d64 -[NSRunLoop(NSRunLoop) runMode:beforeDate:]

6 Foundation0x000000018ab69b34 -[NSRunLoop(NSRunLoop) runUntilDate:]

7 UIKit0x0000000190c715f8 -[UIEventFetcher threadMain]

8 Foundation0x000000018ac462c8 ___NSThread__start__

9 libsystem_pthread.dylib0x000000018921575c __pthread_body

10 libsystem_pthread.dylib0x000000018921566c __pthread_body

#2 com.apple.NSURLConnectionLoader

0 libsystem_kernel.dylib0x000000018912f224 mach_msg_trap

1 libsystem_kernel.dylib0x000000018912f09c mach_msg

2 CoreFoundation0x000000018a100e88 ___CFRunLoopServiceMachPort

3 CoreFoundation0x000000018a0feadc ___CFRunLoopRun

4 CoreFoundation0x000000018a02ed94 CFRunLoopRunSpecific

5 CFNetwork0x000000018a83aca4 +[NSURLConnection(Loader) _resourceLoadLoop:]

6 Foundation0x000000018ac462c8 ___NSThread__start__

7 libsystem_pthread.dylib0x000000018921575c __pthread_body

8 libsystem_pthread.dylib0x000000018921566c __pthread_body

#3 Thread

0 libsystem_kernel.dylib0x000000018914d314 __semwait_signal

1 libsystem_c.dylib0x000000018906c8b0 nanosleep

2 Foundation0x000000018ac45580 +[NSThread sleepForTimeInterval:]

3 jike0x00000001006437e4 -[LCNetworkStatistics startInBackground] (LCNetworkStatistics.m:232)

4 Foundation0x000000018ac462c8 ___NSThread__start__

5 libsystem_pthread.dylib0x000000018921575c __pthread_body

6 libsystem_pthread.dylib0x000000018921566c __pthread_body

#4 UMSocial_Thread

0 libsystem_kernel.dylib0x000000018912f224 mach_msg_trap

1 libsystem_kernel.dylib0x000000018912f09c mach_msg

2 CoreFoundation0x000000018a100e88 ___CFRunLoopServiceMachPort

3 CoreFoundation0x000000018a0feadc ___CFRunLoopRun

4 CoreFoundation0x000000018a02ed94 CFRunLoopRunSpecific

5 Foundation0x000000018ab48d64 -[NSRunLoop(NSRunLoop) runMode:beforeDate:]

6 Foundation0x000000018ab9d6b4 -[NSRunLoop(NSRunLoop) run]

7 jike0x0000000100bb616c +[UMSocialTaskOperation networkRequestThreadEntryPoint:] (UMSocialTaskOperation.m:53)

8 Foundation0x000000018ac462c8 ___NSThread__start__

9 libsystem_pthread.dylib0x000000018921575c __pthread_body

10 libsystem_pthread.dylib0x000000018921566c __pthread_body

#5 RLMRealm notification listener

0 libsystem_kernel.dylib0x00000001891336e4 kevent

1 jike0x000000010082ff4c realm::_impl::ExternalCommitHelper::listen() (external_commit_helper.cpp:202)

2 jike0x000000010083017c _ZNSt3__112__async_funcIZN5realm5_impl20ExternalCommitHelperC1ERNS2_16RealmCoordinatorEE3$_0JEEclEv (future:2341)

3 jike0x0000000100830104 _ZNSt3__119__async_assoc_stateIvNS_12__async_funcIZN5realm5_impl20ExternalCommitHelperC1ERNS3_16RealmCoordinatorEE3$_0JEEEE9__executeEv (future:1032)

4 jike0x00000001008302cc _ZNSt3__114__thread_proxyINS_5tupleIJMNS_19__async_assoc_stateIvNS_12__async_funcIZN5realm5_impl20ExternalCommitHelperC1ERNS5_16RealmCoordinatorEE3$_0JEEEEEFvvEPSB_EEEEEPvSG_ (memory:2525)

5 libsystem_pthread.dylib0x000000018921575c __pthread_body

6 libsystem_pthread.dylib0x000000018921566c __pthread_body

#7 com.apple.CFSocket.private

0 libsystem_kernel.dylib0x000000018914d23c __select

1 CoreFoundation0x000000018a107ca8 ___CFSocketManager

2 libsystem_pthread.dylib0x000000018921575c __pthread_body

3 libsystem_pthread.dylib0x000000018921566c __pthread_body

#8 AVAudioSession Notify Thread

0 libsystem_kernel.dylib0x000000018912f224 mach_msg_trap

1 libsystem_kernel.dylib0x000000018912f09c mach_msg

2 CoreFoundation0x000000018a100e88 ___CFRunLoopServiceMachPort

3 CoreFoundation0x000000018a0feadc ___CFRunLoopRun

4 CoreFoundation0x000000018a02ed94 CFRunLoopRunSpecific

5 AVFAudio0x00000001a41cb540 GenericRunLoopThread::Entry(void*)

6 AVFAudio0x00000001a41f1814 CAPThread::Entry(CAPThread*)

7 libsystem_pthread.dylib0x000000018921575c __pthread_body

8 libsystem_pthread.dylib0x000000018921566c __pthread_body

#9 Thread

0 libsystem_kernel.dylib0x000000018914ce1c __psynch_cvwait

1 libsystem_pthread.dylib0x00000001892148e4 __pthread_cond_wait

2 libc++.1.dylib0x0000000188b3dac8 std::__1::condition_variable::wait(std::__1::unique_lock<:__1::mutex>&)

3 JavaScriptCore0x000000018e9dfc98 void std::__1::condition_variable_any::wait<:__1::unique_lock> >(std::__1::unique_lock<:mutex>&)

4 JavaScriptCore0x000000018e9dfc0c bmalloc::AsyncTask<:heap void>::threadRunLoop()

5 JavaScriptCore0x000000018e9dfaec std::__1::__shared_ptr_emplace<:__1::mutex std::__1::allocator> >::~__shared_ptr_emplace()

6 JavaScriptCore0x000000018e9dfd9c void* std::__1::__thread_proxy<:__1::tuple void>*), bmalloc::AsyncTask<:heap void>*> >(void*)

7 libsystem_pthread.dylib0x000000018921575c __pthread_body

8 libsystem_pthread.dylib0x000000018921566c __pthread_body

#10 Thread

0 libsystem_kernel.dylib0x000000018914da88 __workq_kernreturn

1 libsystem_pthread.dylib0x0000000189213274 _pthread_wqthread

#11 Thread

0 libsystem_kernel.dylib0x000000018914da88 __workq_kernreturn

1 libsystem_pthread.dylib0x0000000189213274 _pthread_wqthread

#12 Thread

0 libsystem_kernel.dylib0x000000018914da88 __workq_kernreturn

1 libsystem_pthread.dylib0x0000000189213274 _pthread_wqthread

#13 Thread

0 libsystem_kernel.dylib0x000000018914da88 __workq_kernreturn

1 libsystem_pthread.dylib0x0000000189213274 _pthread_wqthread

#14 Thread

0 libsystem_kernel.dylib0x000000018914da88 __workq_kernreturn

1 libsystem_pthread.dylib0x00000001892130a0 _pthread_wqthread

#15 Thread

0 libsystem_kernel.dylib0x000000018914da88 __workq_kernreturn

1 libsystem_pthread.dylib0x0000000189213274 _pthread_wqthread

#16 Thread

0 libsystem_kernel.dylib0x000000018914da88 __workq_kernreturn

1 libsystem_pthread.dylib0x0000000189213274 _pthread_wqthread

#17 Thread

0 libsystem_kernel.dylib0x000000018914da88 __workq_kernreturn

1 libsystem_pthread.dylib0x0000000189213274 _pthread_wqthread

#18 Thread

0 libsystem_kernel.dylib0x000000018914da88 __workq_kernreturn

1 libsystem_pthread.dylib0x0000000189213274 _pthread_wqthread

#19 Thread

0 libsystem_kernel.dylib0x000000018914da88 __workq_kernreturn

1 libsystem_pthread.dylib0x0000000189213274 _pthread_wqthread

#20 Thread

0 libsystem_kernel.dylib0x000000018914da88 __workq_kernreturn

1 libsystem_pthread.dylib0x0000000189213274 _pthread_wqthread

#21 Thread

0 libsystem_kernel.dylib0x000000018914da88 __workq_kernreturn

1 libsystem_pthread.dylib0x0000000189213274 _pthread_wqthread

#22 Thread

0 libsystem_kernel.dylib0x000000018912f224 mach_msg_trap

1 libsystem_kernel.dylib0x000000018912f09c mach_msg

2 MediaToolbox0x00000001915a1228 _FigAssetRemoteClient_GetNextPendingNotification

3 MediaToolbox0x000000019159a940 _FigAssetCallbackServer_NotificationIsPending

4 MediaToolbox0x000000019159f91c _FigAssetCallback_server

5 libdispatch.dylib0x00000001890101a8 dispatch_mig_server

6 libdispatch.dylib0x000000018900a9a0 __dispatch_client_callout

7 libdispatch.dylib0x0000000189017604 __dispatch_continuation_pop

8 libdispatch.dylib0x0000000189023c1c __dispatch_source_latch_and_call

9 libdispatch.dylib0x000000018900c8a0 __dispatch_source_invoke

10 libdispatch.dylib0x0000000189018964 __dispatch_queue_serial_drain

11 libdispatch.dylib0x000000018900e2cc __dispatch_queue_invoke

12 libdispatch.dylib0x0000000189019950 __dispatch_root_queue_drain_deferred_item

13 libdispatch.dylib0x0000000189020170 __dispatch_kevent_worker_thread

14 libsystem_pthread.dylib0x000000018921308c _pthread_wqthread

#23 Thread

0 libsystem_kernel.dylib0x000000018914da88 __workq_kernreturn

1 libsystem_pthread.dylib0x0000000189213274 _pthread_wqthread

#24 GCDAsyncSocket-CFStream

0 libsystem_kernel.dylib0x000000018912f224 mach_msg_trap

1 libsystem_kernel.dylib0x000000018912f09c mach_msg

2 CoreFoundation0x000000018a100e88 ___CFRunLoopServiceMachPort

3 CoreFoundation0x000000018a0feadc ___CFRunLoopRun

4 CoreFoundation0x000000018a02ed94 CFRunLoopRunSpecific

5 Foundation0x000000018ab48d64 -[NSRunLoop(NSRunLoop) runMode:beforeDate:]

6 jike0x0000000100969cac +[WXOGCDAsyncSocket cfstreamThread]

7 Foundation0x000000018ac462c8 ___NSThread__start__

8 libsystem_pthread.dylib0x000000018921575c __pthread_body

9 libsystem_pthread.dylib0x000000018921566c __pthread_body

#25 Thread

0 libsystem_kernel.dylib0x000000018912f278 semaphore_timedwait_trap

1 libdispatch.dylib0x000000018901d6b4 __os_semaphore_timedwait

2 libdispatch.dylib0x000000018901cc5c __dispatch_semaphore_wait_slow

3 libdispatch.dylib0x000000018901bf48 __dispatch_worker_thread

4 libsystem_pthread.dylib0x000000018921575c __pthread_body

5 libsystem_pthread.dylib0x000000018921566c __pthread_body

为什么会是 OS_nw_path publicKeysFromCerts:这个方法呢? 感觉这里的self 指引有问题了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值