当前位置:  开发笔记 > 编程语言 > 正文

React Native:EXC_BAD_ACCESS·尝试取消引用垃圾指针

如何解决《ReactNative:EXC_BAD_ACCESS·尝试取消引用垃圾指针》经验,为你挑选了0个好方法。

在过去的几个月中,我们一直在我们的应用程序中随机出现这些错误,这些错误显示在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位用户中。

有人有想法么???

推荐阅读
k78283381
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有