Firebase iOS SDK升级7.10.0后开启Zombie Objects崩溃,求排查
Firebase iOS SDK升级至7.10.0版本开启Zombie Objects触发崩溃问题
我们将Firebase iOS SDK从6.32.2版本升级至最新的7.10.0版本。
本次使用的库(及其依赖项)如下:
- Firebase Analytics
- Firebase Crashlytis
- Firebase In App Messaging
- Firebase Messaging
- Firebase Performance
- Firebase Remote Config
本次配置严格按照官方提供的README.md手动完成,未使用任何依赖管理工具。旧版本运行无任何异常,但新版本在Xcode Scheme的诊断设置中开启Zombie Objects选项时,会触发如下崩溃:
* thread #20, queue = 'com.google.GDTCCTUploader', stop reason = EXC_BAD_ACCESS (code=1, address=0x555555555552) * frame #0: 0x00007fff20176876 libobjc.A.dylib`object_setClass + 119 frame #1: 0x00007fff20430bd2 CoreFoundation`-[NSObject(NSObject) __dealloc_zombie] + 170 frame #2: 0x00007fff207f44d6 Foundation`-[NSOperation dealloc] + 281 frame #3: 0x00007fff2018f834 libobjc.A.dylib`objc_object::sidetable_release(bool, bool) + 174 frame #4: 0x00007fff2007f42f libsystem_blocks.dylib`_Block_release + 128 frame #5: 0x00007fff2007f42f libsystem_blocks.dylib`_Block_release + 128 frame #6: 0x00007fff2007f42f libsystem_blocks.dylib`_Block_release + 128 frame #7: 0x0000000104b44797 P2021_DEV`__destroy_helper_block_e8_32s40s48s + 24 frame #8: 0x00007fff2007f42f libsystem_blocks.dylib`_Block_release + 128 frame #9: 0x000000010c4219c8 libdispatch.dylib`_dispatch_client_callout + 8 frame #10: 0x000000010c428440 libdispatch.dylib`_dispatch_lane_serial_drain + 1222 frame #11: 0x000000010c428f67 libdispatch.dylib`_dispatch_lane_invoke + 439 frame #12: 0x000000010c434de2 libdispatch.dylib`_dispatch_workloop_worker_thread + 882 frame #13: 0x00007fff61167499 libsystem_pthread.dylib`_pthread_wqthread + 314 frame #14: 0x00007fff61166467 libsystem_pthread.dylib`start_wqthread + 15
运行应用时Xcode控制台还会随机输出如下告警信息:
objc[73435]: Class _NSZombie_NSURLRequest is implemented in both ?? (0x7fb7c65124b0) and ?? (0x7fb7c6212760). One of the two will be used. Which one is undefined. objc[73678]: Class _NSZombie_NSURLSessionEffectiveConfiguration is implemented in both ?? (0x7f8b0d586770) and ?? (0x7f8b0e2ec570). One of the two will be used. Which one is undefined. objc[73678]: Class _NSZombie_NWConcrete_nw_activity is implemented in both ?? (0x7f8b0eea9ac0) and ?? (0x7f8b3f423580). One of the two will be used. Which one is undefined. objc[73678]: Class _NSZombie___CFN_TaskMetrics is implemented in both ?? (0x7f8b1857beb0) and ?? (0x7f8b18b8fea0). One of the two will be used. Which one is undefined.
请问导致该问题的原因是什么?提问者判断这大概率是配置类问题,因此暂未在GitHub提交bug工单。
内容的提问来源于stack exchange,提问作者José。
相关产品推荐
相关产品推荐

