RealReachability icon indicating copy to clipboard operation
RealReachability copied to clipboard

Crash on PingFoundation dealloc

Open ohlulu opened this issue 2 years ago • 2 comments

根據文檔,或許我們不應該在 PingFoundation dealloc 時調用 [self stop]

Crash call stack:

Crashed: SearchSerialQueue (QOS: UNSPECIFIED)
0  CFNetwork                      0xca530 CFHostUnscheduleFromRunLoop + 60
1  RealReachability               0xa230 -[PingFoundation stopHostResolution] + 800 (PingFoundation.m:800)
2  RealReachability               0xa2d0 -[PingFoundation stop] + 816 (PingFoundation.m:816)
3  RealReachability               0x8d0c -[PingFoundation dealloc] + 188 (PingFoundation.m:188)
4  RealReachability               0xa990 -[PingHelper setHost:] + 116 (PingHelper.m:116)

...

ohlulu avatar Oct 11 '22 03:10 ohlulu

在iOS16上会崩溃,和https://github.com/robbiehanson/CocoaAsyncSocket/issues/803 这个类似

xiaoshaogg avatar Nov 08 '22 02:11 xiaoshaogg

@xiaoshaogg 請問是指 https://github.com/dustturtle/RealReachability/pull/139 這個 PR 會在 iOS16 上崩潰嗎?

ohlulu avatar Nov 15 '22 04:11 ohlulu