在过去的几个月中,我们一直在我们的应用程序中随机出现这些错误,这些错误显示在Bugsnag中。它们肯定会导致崩溃,因为我们的团队内部成员已经报告了崩溃,但随后无法重现它们。这是完整的痕迹:
EXC_BAD_ACCESS Attempted to dereference garbage pointer 0x167f4beb8. /usr/lib/libobjc.A.dylib objc_msgSend Frameworks/Foundation.framework/Foundation -[NSObject(NSKeyValueObservingPrivate) _changeValueForKeys:count:maybeOldValuesDict:usingBlock:] Frameworks/Foundation.framework/Foundation -[NSObject(NSKeyValueObservingPrivate) _changeValueForKey:key:key:usingBlock:] Frameworks/Foundation.framework/Foundation -[NSOperationQueue setMaxConcurrentOperationCount:] GreatJonesStreet-Prod mh_execute_header GreatJonesStreet-Prod mh_execute_header GreatJonesStreet-Prod mh_execute_header /usr/lib/system/libdispatch.dylib __dispatch_call_block_and_release /usr/lib/system/libdispatch.dylib __dispatch_client_callout /usr/lib/system/libdispatch.dylib __dispatch_queue_override_invoke /usr/lib/system/libdispatch.dylib __dispatch_root_queue_drain /usr/lib/system/libdispatch.dylib __dispatch_worker_thread3 /usr/lib/system/libsystem_pthread.dylib __pthread_wqthread
我已经在多个地方读到其他人都遇到了这个问题,而Bugsnag(真是具有讽刺意味)似乎是在发现该问题时提到的常见问题。我并不是说Bugsnag是造成此问题的原因,但是人们一直在报告他们在Bugsnag报告中看到了崩溃日志。只是奇怪的巧合。
这是另一个:
EXC_BAD_ACCESS Attempted to dereference garbage pointer 0xa8a94beb8. /usr/lib/libobjc.A.dylib objc_msgSend Frameworks/Foundation.framework/Foundation -[NSObject(NSKeyValueObservingPrivate) _changeValueForKeys:count:maybeOldValuesDict:usingBlock:] Frameworks/Foundation.framework/Foundation -[NSObject(NSKeyValueObservingPrivate) _changeValueForKey:key:key:usingBlock:] Frameworks/Foundation.framework/Foundation -[NSOperationQueue setMaxConcurrentOperationCount:] GreatJonesStreet mh_execute_header GreatJonesStreet mh_execute_header GreatJonesStreet mh_execute_header /usr/lib/system/libdispatch.dylib __dispatch_call_block_and_release /usr/lib/system/libdispatch.dylib __dispatch_client_callout /usr/lib/system/libdispatch.dylib __dispatch_queue_override_invoke /usr/lib/system/libdispatch.dylib __dispatch_root_queue_drain /usr/lib/system/libdispatch.dylib __dispatch_worker_thread3 /usr/lib/system/libsystem_pthread.dylib __pthread_wqthread
在发布此问题时,上述错误中有75个发生在我们的56位用户中。
有人有想法么???