-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EXC_BAD_ACCESS Attempted to dereference garbage pointer 0x167f4beb8. #12159
Comments
I get the same error: EXC_BAD_ACCESS RCTShadowView
Attempted to dereference garbage pointer 0x10.
EXC_BAD_ACCESS Attempted to dereference garbage pointer 0x10.
/usr/lib/libobjc.A.dylib objc_retain
SPApp -[RCTShadowView isReactRootView]
SPApp -[RCTTextManager uiBlockToAmendWithShadowViewRegistry:]
SPApp -[RCTComponentData uiBlockToAmendWithShadowViewRegistry:]
SPApp -[RCTUIManager _layoutAndMount]
SPApp __36-[RCTBatchedBridge batchDidComplete]_block_invoke
/usr/lib/system/libdispatch.dylib __dispatch_call_block_and_release
/usr/lib/system/libdispatch.dylib __dispatch_queue_drain$VARIANT$mp
/usr/lib/system/libdispatch.dylib __dispatch_queue_invoke$VARIANT$mp
/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 EXC_BAD_ACCESS RCTView
Attempted to dereference garbage pointer 0xf168101e
EXC_BAD_ACCESS Attempted to dereference garbage pointer 0xf168101e.
/usr/lib/libobjc.A.dylib objc_release
/usr/lib/libobjc.A.dylib object_cxxDestructFromClass(objc_object*, objc_class*)
/usr/lib/libobjc.A.dylib objc_destructInstance
/usr/lib/libobjc.A.dylib object_dispose
/usr/lib/libobjc.A.dylib objc_object::sidetable_release(bool)
Frameworks/UIKit.framework/UIKit <redacted>
/usr/lib/libobjc.A.dylib object_cxxDestructFromClass(objc_object*, objc_class*)
/usr/lib/libobjc.A.dylib objc_destructInstance
/usr/lib/libobjc.A.dylib object_dispose
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/CoreFoundation.framework/CoreFoundation CFRelease
Frameworks/CoreFoundation.framework/CoreFoundation <redacted>
/usr/lib/libobjc.A.dylib objc_object::sidetable_release(bool)
/usr/lib/libobjc.A.dylib __object_remove_assocations
/usr/lib/libobjc.A.dylib objc_destructInstance
/usr/lib/libobjc.A.dylib object_dispose
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
SPApp -[RCTView dealloc]
Frameworks/CoreFoundation.framework/CoreFoundation CFRelease
Frameworks/CoreFoundation.framework/CoreFoundation <redacted>
/usr/lib/libobjc.A.dylib objc_object::sidetable_release(bool)
/usr/lib/libobjc.A.dylib __object_remove_assocations
/usr/lib/libobjc.A.dylib objc_destructInstance
/usr/lib/libobjc.A.dylib object_dispose
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
SPApp -[RCTView dealloc]
Frameworks/CoreFoundation.framework/CoreFoundation CFRelease
Frameworks/CoreFoundation.framework/CoreFoundation <redacted>
/usr/lib/libobjc.A.dylib objc_object::sidetable_release(bool)
/usr/lib/libobjc.A.dylib __object_remove_assocations
/usr/lib/libobjc.A.dylib objc_destructInstance
/usr/lib/libobjc.A.dylib object_dispose
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
SPApp -[RCTView dealloc]
Frameworks/CoreFoundation.framework/CoreFoundation CFRelease
Frameworks/CoreFoundation.framework/CoreFoundation <redacted>
/usr/lib/libobjc.A.dylib objc_object::sidetable_release(bool)
/usr/lib/libobjc.A.dylib __object_remove_assocations
/usr/lib/libobjc.A.dylib objc_destructInstance
/usr/lib/libobjc.A.dylib object_dispose
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
SPApp -[RCTView dealloc]
Frameworks/CoreFoundation.framework/CoreFoundation CFRelease
Frameworks/CoreFoundation.framework/CoreFoundation <redacted>
/usr/lib/libobjc.A.dylib objc_object::sidetable_release(bool)
/usr/lib/libobjc.A.dylib __object_remove_assocations
/usr/lib/libobjc.A.dylib objc_destructInstance
/usr/lib/libobjc.A.dylib object_dispose
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
SPApp -[RCTView dealloc]
Frameworks/CoreFoundation.framework/CoreFoundation CFRelease
Frameworks/CoreFoundation.framework/CoreFoundation <redacted>
/usr/lib/libobjc.A.dylib objc_object::sidetable_release(bool)
/usr/lib/libobjc.A.dylib __object_remove_assocations
/usr/lib/libobjc.A.dylib objc_destructInstance
/usr/lib/libobjc.A.dylib object_dispose
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
SPApp -[RCTView dealloc]
Frameworks/CoreFoundation.framework/CoreFoundation CFRelease
Frameworks/CoreFoundation.framework/CoreFoundation <redacted>
/usr/lib/libobjc.A.dylib objc_object::sidetable_release(bool)
/usr/lib/libobjc.A.dylib (anonymous namespace)::AutoreleasePoolPage::pop(void*)
Frameworks/CoreFoundation.framework/CoreFoundation CFAutoreleasePoolPop
Frameworks/CoreFoundation.framework/CoreFoundation <redacted>
Frameworks/CoreFoundation.framework/CoreFoundation CFRunLoopRunSpecific
Frameworks/CoreFoundation.framework/CoreFoundation CFRunLoopRunInMode
PrivateFrameworks/GraphicsServices.framework/GraphicsServices GSEventRunModal
Frameworks/UIKit.framework/UIKit UIApplicationMain
SPApp main EXC_BAD_ACCESS RCTText
Attempted to dereference garbage pointer 0xc.
EXC_BAD_ACCESS Attempted to dereference garbage pointer 0xc.
/usr/lib/libobjc.A.dylib objc_msgSend
SPApp -[RCTText didMoveToWindow]
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/Foundation.framework/Foundation -[NSISEngine withBehaviors:performModifications:]
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/UIKit.framework/UIKit <redacted>
Frameworks/QuartzCore.framework/QuartzCore -[CALayer layoutSublayers]
Frameworks/QuartzCore.framework/QuartzCore CA::Layer::layout_if_needed(CA::Transaction*)
Frameworks/QuartzCore.framework/QuartzCore CA::Layer::layout_and_display_if_needed(CA::Transaction*)
Frameworks/QuartzCore.framework/QuartzCore CA::Context::commit_transaction(CA::Transaction*)
Frameworks/QuartzCore.framework/QuartzCore CA::Transaction::commit()
Frameworks/QuartzCore.framework/QuartzCore CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*)
Frameworks/CoreFoundation.framework/CoreFoundation <redacted>
Frameworks/CoreFoundation.framework/CoreFoundation <redacted>
Frameworks/CoreFoundation.framework/CoreFoundation <redacted>
Frameworks/CoreFoundation.framework/CoreFoundation CFRunLoopRunSpecific
Frameworks/CoreFoundation.framework/CoreFoundation CFRunLoopRunInMode
PrivateFrameworks/GraphicsServices.framework/GraphicsServices GSEventRunModal
Frameworks/UIKit.framework/UIKit UIApplicationMain
SPApp main EXC_BAD_ACCESS RCTModuleMethod
Attempted to dereference garbage pointer 0xc.
EXC_BAD_ACCESS Attempted to dereference garbage pointer 0xc.
/usr/lib/libobjc.A.dylib objc_msgSend
Frameworks/Foundation.framework/Foundation __writeJSONValue
Frameworks/Foundation.framework/Foundation ____writeJSONObject_block_invoke
Frameworks/CoreFoundation.framework/CoreFoundation <redacted>
Frameworks/CoreFoundation.framework/CoreFoundation <redacted>
Frameworks/Foundation.framework/Foundation __writeJSONObject
Frameworks/Foundation.framework/Foundation __writeJSONValue
Frameworks/Foundation.framework/Foundation ____writeJSONObject_block_invoke
Frameworks/CoreFoundation.framework/CoreFoundation <redacted>
Frameworks/CoreFoundation.framework/CoreFoundation <redacted>
Frameworks/Foundation.framework/Foundation __writeJSONObject
Frameworks/Foundation.framework/Foundation __writeJSONValue
Frameworks/Foundation.framework/Foundation ____writeJSONObject_block_invoke
Frameworks/CoreFoundation.framework/CoreFoundation <redacted>
Frameworks/CoreFoundation.framework/CoreFoundation <redacted>
Frameworks/Foundation.framework/Foundation __writeJSONObject
Frameworks/Foundation.framework/Foundation __writeJSONValue
Frameworks/Foundation.framework/Foundation ____writeJSONObject_block_invoke
Frameworks/CoreFoundation.framework/CoreFoundation <redacted>
Frameworks/CoreFoundation.framework/CoreFoundation <redacted>
Frameworks/Foundation.framework/Foundation __writeJSONObject
Frameworks/Foundation.framework/Foundation __writeJSONValue
Frameworks/Foundation.framework/Foundation ____writeJSONObject_block_invoke
Frameworks/CoreFoundation.framework/CoreFoundation <redacted>
Frameworks/CoreFoundation.framework/CoreFoundation <redacted>
Frameworks/Foundation.framework/Foundation __writeJSONObject
Frameworks/Foundation.framework/Foundation __writeJSONValue
Frameworks/Foundation.framework/Foundation ____writeJSONObject_block_invoke
Frameworks/CoreFoundation.framework/CoreFoundation <redacted>
Frameworks/CoreFoundation.framework/CoreFoundation <redacted>
Frameworks/Foundation.framework/Foundation __writeJSONObject
Frameworks/Foundation.framework/Foundation __writeJSONValue
Frameworks/Foundation.framework/Foundation ____writeJSONObject_block_invoke
Frameworks/CoreFoundation.framework/CoreFoundation <redacted>
Frameworks/CoreFoundation.framework/CoreFoundation <redacted>
Frameworks/Foundation.framework/Foundation __writeJSONObject
Frameworks/Foundation.framework/Foundation __writeJSONValue
Frameworks/Foundation.framework/Foundation -[_NSJSONWriter dataWithRootObject:options:error:]
Frameworks/Foundation.framework/Foundation +[NSJSONSerialization dataWithJSONObject:options:error:]
SPApp -[BugsnagBreadcrumbs arrayValue]
SPApp -[BugsnagNotifier serializeBreadcrumbs]
SPApp +[Bugsnag leaveBreadcrumbWithBlock:]
SPApp -[BugsnagReactNative leaveBreadcrumb:]
Frameworks/CoreFoundation.framework/CoreFoundation <redacted>
Frameworks/CoreFoundation.framework/CoreFoundation <redacted>
Frameworks/CoreFoundation.framework/CoreFoundation <redacted>
SPApp -[RCTModuleMethod invokeWithBridge:module:arguments:]
SPApp -[RCTBatchedBridge callNativeModule:method:params:]
SPApp __33-[RCTBatchedBridge handleBuffer:]_block_invoke.357
/usr/lib/system/libdispatch.dylib __dispatch_call_block_and_release
/usr/lib/system/libdispatch.dylib __dispatch_queue_drain$VARIANT$mp
/usr/lib/system/libdispatch.dylib __dispatch_queue_invoke$VARIANT$mp
/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 This is very hard to reproduce, and I believe it happens when a view gets unmounted.
|
An interesting update.. I was working today (using react-redux in my project) and I forgot to export default connect(null, { purchase: buyStory }) and not export default connect(null, { purchase: buyStory })(StoryContainer) and it threw me a red screen error saying:
What's interesting is that this error didn't exist anymore but it still caused the app to crash. I re-built and ran the app (without changing a line of code) and it fired up fine. So the error definitely wasn't there but it was like it cached the error from earlier. Not sure if this provides any insight as to what's going on but wanted to share anyway. |
@SudoPlz It's possible I guess but I doubt it because it errored with the typical red screen first - not crashed. Then it crashedmany builds/runs later and then when I restarted the app, I saw it say "Sending 1 crash report". Anyway, was just working performing my usual behavior in my app that works fine (scrolling a view) when I got this: @SudoPlz Same issue as you with the ShadowView! Tried rerunning and oddly Bugnsnag didn't send the crash report either.. (Note the |
Just got this and it seems to be relevant to
|
@dwilt Could it have something to do with |
We are seeing a similar error with the
Like you - its being caught in bugsnag only. Its very rare when it happens, and we cannot reproduce it. I am posting because I saw you mentioned it was related to a fetch module you are using, and was curious if you were able to discover the root cause. |
Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally! If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:
If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution. |
It‘s rare indeed but still happening at rn version 0.55.0: EXC_BAD_ACCESS: Attempted to dereference garbage pointer 0x20. |
Still observing this sporadically with RN 0.55.3. Usually happens the first time it launches after building from Xcode.
|
I am also observing this in production. I have an app with ~10000 active iOS users over the last month. If anyone is looking in to this I would be happy to provide more information. |
I'm on the same boat @StribMaxMarti are you able to constantly reproduce this? |
same here, really annoying.. any updates on this issue? @StribMaxMarti @SudoPlz |
I haven't been able to replicate in dev thus far. Looking at recent occurrences, this seems to be happening after a user opens a specific webpage in my app's "browser" (webview with custom chrome). The error occurs seconds to hours after. My guess is that the browser stays mounted and something about the page causes the crash, perhaps a memory leak. The url: https://www.mlb.com/cut4/meet-gabby-dimarco-the-fan-who-caught-the-foul-ball-in-her-beer/c-279997458 There are other instances of this error that aren't related to the webview, so this is only part of the picture. |
No updates at all from my side.. |
Description
So, this is going to be tough because I don't have exact reproduction steps for this error. We're getting reports into our Bugsnag application of crashes, which we've experienced ourselves, but as I said, are unable to reproduce.
I've tried going through the stacktraces of the bugs, and a lot of them are consistent amongst themselves but there are also different once as well.
Here are the stracktraces:
Error 1:
Error 2:
Error 3:
Error 4:
Error 5:
Reproduction
No exact reproduction steps that I can explain.
Solution
Figure out where the issues are coming from as the errors don't explain much. Error 3 came from somewhere in
main.bundle.js
which sounds like a JS related issue but the variable namey
doesn't tell me much either and the line numbers are so early on it looks like the react native base code.Additional Information
The text was updated successfully, but these errors were encountered: