Crash on [Mixpanel currentRadio]
lmmenge opened this issue · 1 comments
lmmenge commented
Integration Method: CocoaPods
Xcode Version: 12.2
Library Version: 3.6.3
Platform: iOS
Language: Objective-C
Description: Crash on [Mixpanel currentRadio]
Expected Behavior: No crashes
OS Version: iOS 14.2.1 (18B121)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: BUS_NOOP at 0x0000007b747ae650
Crashed Thread: 10
Application Specific Information:
ermediateStates > retain >
Attempted to dereference garbage pointer 0x7b747ae650.
Thread 10 Crashed:
0 libobjc.A.dylib 0x363b9f0f8 objc_msgSend
1 SegmentAnalytics 0x103a7df7c __24-[Mixpanel currentRadio]_block_invoke
2 CoreFoundation 0x31a6eeadc <redacted>
3 CoreFoundation 0x31a665280 <redacted>
4 SegmentAnalytics 0x103a7de80 -[Mixpanel currentRadio]
5 SegmentAnalytics 0x103a7dd38 __27-[Mixpanel setCurrentRadio]_block_invoke
6 libdispatch.dylib 0x1859d724c <redacted>
7 libdispatch.dylib 0x1859d8db0 <redacted>
8 libdispatch.dylib 0x1859e010c <redacted>
9 libdispatch.dylib 0x1859e0c5c <redacted>
10 libdispatch.dylib 0x1859ead78 <redacted>
11 libsystem_pthread.dylib 0x3984aa804 _pthread_wqthread
The method in question is accessing CTTelephonyNetworkInfo.serviceCurrentRadioAccessTechnology
on a background thread, but it seems that API is not Thread-safe, according to others having the same crash: https://openradar.appspot.com/46873673
zihejia commented
Hi @lmmenge , we made a fix to this issue so it should not crash now. https://github.com/mixpanel/mixpanel-iphone/releases/tag/v3.6.4. I'm closing this issue now, please feel free to reopen it if the problem still exists.