iOS崩溃核心位置CFBasicHashCreateCopy?

前端之家收集整理的这篇文章主要介绍了iOS崩溃核心位置CFBasicHashCreateCopy?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我已经通过Crashlytics报告了这个问题,尽管我无法在本地复制它,所以我没有什么可以去除下面的堆栈跟踪..不知道是否引用CoreLocation在堆栈跟踪与它有任何关系,但我不知道可能是什么原因.我的项目正在使用ARC.任何线索?
  1. Thread : Crashed: com.apple.CoreLocation.ConnectionClient.0x14eb3510.events
  2. 0 CoreFoundation 0x307769a8 CFBasicHashCreateCopy + 712
  3. 1 libobjc.A.dylib 0x3afd1a19 object_setClass + 24
  4. 2 CoreFoundation 0x30782d0f CFDictionaryCreateMutableCopy + 154
  5. 3 CoreLocation 0x30d0a8f3 CLLocationCoordinate2DGetDistanceFrom + 47590
  6. 4 CoreLocation 0x30d2d607 CLClientCreateIso6709Notation + 49626
  7. 5 CoreFoundation 0x30786d45 __CFDictionaryApplyFunction_block_invoke + 16
  8. 6 CoreFoundation 0x30772cd4 CFBasicHashApply + 128
  9. 7 CoreFoundation 0x3077be27 CFDictionaryApplyFunction + 154
  10. 8 CoreLocation 0x30d2cc25 CLClientCreateIso6709Notation + 47096
  11. 9 CoreLocation 0x30d2b625 CLClientCreateIso6709Notation + 41464
  12. 10 libxpc.dylib 0x3b5fc3a9 _xpc_connection_call_event_handler + 40
  13. 11 libxpc.dylib 0x3b5fee67 do_mach_notify_port_destroyed + 122
  14. 12 libxpc.dylib 0x3b5fedd1 _Xmach_notify_port_destroyed + 104
  15. 13 libxpc.dylib 0x3b5fed47 notify_server + 62
  16. 14 libxpc.dylib 0x3b5fa9cf _xpc_connection_mach_event + 1926
  17. 15 libdispatch.dylib 0x3b4bdf43 _dispatch_mach_msg_invoke + 118
  18. 16 libdispatch.dylib 0x3b4c0c71 _dispatch_queue_drain + 412
  19. 17 libdispatch.dylib 0x3b4bda6b _dispatch_mach_invoke + 78
  20. 18 libdispatch.dylib 0x3b4c0c71 _dispatch_queue_drain + 412
  21. 19 libdispatch.dylib 0x3b4bdc6f _dispatch_queue_invoke + 42
  22. 20 libdispatch.dylib 0x3b4c0c71 _dispatch_queue_drain + 412
  23. 21 libdispatch.dylib 0x3b4bdc6f _dispatch_queue_invoke + 42
  24. 22 libdispatch.dylib 0x3b4c15f1 _dispatch_root_queue_drain + 76
  25. 23 libdispatch.dylib 0x3b4c18dd _dispatch_worker_thread2 + 56
  26. 24 libsystem_pthread.dylib 0x3b5ecc17 _pthread_wqthread + 298

这是另一个可能相关的.

  1. Crashed: com.apple.CoreLocation.ConnectionClient.0x17665330.events
  2. EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x11755e44
  3.  
  4. Thread : Crashed: com.apple.CoreLocation.ConnectionClient.0x17665330.events
  5. 0 libobjc.A.dylib 0x381db626 objc_msgSend + 5
  6. 1 CoreFoundation 0x2d979d75 CFDictionaryCreateMutableCopy + 320
  7. 2 CoreLocation 0x2df018f3 (null) + 47590
  8. 3 CoreLocation 0x2df24607 (null) + 49626
  9. 4 CoreFoundation 0x2d97dd05 __CFDictionaryApplyFunction_block_invoke + 16
  10. 5 CoreFoundation 0x2d969c94 CFBasicHashApply + 128
  11. 6 CoreFoundation 0x2d972de7 CFDictionaryApplyFunction + 154
  12. 7 CoreLocation 0x2df23c25 (null) + 47096
  13. 8 CoreLocation 0x2df22625 (null) + 41464
  14. 9 libxpc.dylib 0x387fb3a9 _xpc_connection_call_event_handler + 40
  15. 10 libxpc.dylib 0x387fde67 do_mach_notify_port_destroyed + 122
  16. 11 libxpc.dylib 0x387fddd1 _Xmach_notify_port_destroyed + 104
  17. 12 libxpc.dylib 0x387fdd47 notify_server + 62
  18. 13 libxpc.dylib 0x387f99cf _xpc_connection_mach_event + 1926
  19. 14 libdispatch.dylib 0x386bcf43 _dispatch_mach_msg_invoke + 118
  20. 15 libdispatch.dylib 0x386bfc71 _dispatch_queue_drain + 412
  21. 16 libdispatch.dylib 0x386bca6b _dispatch_mach_invoke + 78
  22. 17 libdispatch.dylib 0x386bfc71 _dispatch_queue_drain + 412
  23. 18 libdispatch.dylib 0x386bcc6f _dispatch_queue_invoke + 42
  24. 19 libdispatch.dylib 0x386bfc71 _dispatch_queue_drain + 412
  25. 20 libdispatch.dylib 0x386bcc6f _dispatch_queue_invoke + 42
  26. 21 libdispatch.dylib 0x386c05f1 _dispatch_root_queue_drain + 76
  27. 22 libdispatch.dylib 0x386c08dd _dispatch_worker_thread2 + 56
  28. 23 libsystem_pthread.dylib 0x387ebc17 _pthread_wqthread + 298

解决方法

您已将系统发送到一个对象本来应该是坏的内存位置的消息.所以我的建议是启用僵尸检测(编辑方案,然后选择诊断选项卡,勾选启用僵尸对象),并重新执行测试场景,特别是导致CoreLocation事件的任何事情.

然后,当核心位置向发布的对象发送消息时,您将知道最初发布的对象是什么(因为这个调试设置被人为地保存为僵尸对象).

猜你在找的iOS相关文章