question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

EXC_BAD_ACCESS: Attempted to dereference garbage pointer 0x43e14141ff01ff08

See original GitHub issue

Describe the bug

Fatal crash received from Sentry.

To Reproduce

EXC_BAD_ACCESS ampground-marker > campground-marker > za-metropolitan-2 > Attempted to dereference garbage pointer 0x43e14141ff01ff08.

Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: BUS_NOOP at 0x43e14141ff01ff08
Crashed Thread: 0

Application Specific Information:
ampground-marker > campground-marker > za-metropolitan-2 >
Attempted to dereference garbage pointer 0x43e14141ff01ff08.

Thread 0 Crashed:
0   Mapbox                          0x2873000f4         mbgl::resourceURLWithAccountType
1   Mapbox                          0x287140cd4         mbgl::resourceURLWithAccountType
2   Mapbox                          0x28718a1d8         mbgl::resourceURLWithAccountType
3   Mapbox                          0x2871d90cc         mbgl::resourceURLWithAccountType
4   Mapbox                          0x2871e2ccc         mbgl::resourceURLWithAccountType
5   Mapbox                          0x2873e602c         MGLStringFromMetricType
6   Mapbox                          0x2873e5da0         MGLStringFromMetricType
7   CoreFoundation                  0x335fca284         __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__
8   CoreFoundation                  0x335fca2cc         ___CFXRegistrationPost1_block_invoke
9   CoreFoundation                  0x335fc962c         _CFXRegistrationPost1
10  CoreFoundation                  0x335fc92e4         ___CFXNotificationPost_block_invoke
11  CoreFoundation                  0x335f45598         -[_CFXNotificationRegistrar find:object:observer:enumerator:]
12  CoreFoundation                  0x335fc8c34         _CFXNotificationPost
13  Foundation                      0x339d04134         -[NSNotificationCenter postNotificationName:object:userInfo:]
14  UIKitCore                       0x3425c3364         __47-[UIApplication _applicationDidEnterBackground]_block_invoke
15  UIKitCore                       0x341fb0628         +[UIViewController _performWithoutDeferringTransitionsAllowingAnimation:actions:]
16  UIKitCore                       0x3425c3120         -[UIApplication _applicationDidEnterBackground]
17  UIKitCore                       0x341d896a0         __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke_2
18  UIKitCore                       0x34221eb6c         _UIScenePerformActionsWithLifecycleActionMask
19  UIKitCore                       0x341d892ac         __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke
20  UIKitCore                       0x341d88db8         -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:]
21  UIKitCore                       0x341d890d8         -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]
22  UIKitCore                       0x341d88994         -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:]
23  UIKitCore                       0x341d8ce80         __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke_2
24  UIKitCore                       0x3421503dc         +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:]
25  UIKitCore                       0x342238158         _UISceneSettingsDiffActionPerformChangesWithTransitionContext
26  UIKitCore                       0x341d8cbb8         __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke
27  UIKitCore                       0x342238054         _UISceneSettingsDiffActionPerformActionsWithDelayForTransitionContext
28  UIKitCore                       0x341d8ca24         -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]
29  UIKitCore                       0x341bfe87c         __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke
30  UIKitCore                       0x341bfd3e4         -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:]
31  UIKitCore                       0x341bfe5b4         -[UIScene scene:didUpdateWithDiff:transitionContext:completion:]
32  UIKitCore                       0x342171244         -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:]
33  FrontBoardServices              0x342759244         -[FBSSceneImpl updater:didUpdateSettings:withDiff:transitionContext:completion:]
34  FrontBoardServices              0x34277dd24         __88-[FBSWorkspaceScenesClient sceneID:updateWithSettingsDiff:transitionContext:completion:]_block_invoke_2
35  FrontBoardServices              0x342762f00         -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:]
36  FrontBoardServices              0x34277dc58         __88-[FBSWorkspaceScenesClient sceneID:updateWithSettingsDiff:transitionContext:completion:]_block_invoke
37  libdispatch.dylib               0x332f06180         _dispatch_client_callout
38  libdispatch.dylib               0x332ee041c         _dispatch_block_invoke_direct$VARIANT$armv81
39  FrontBoardServices              0x3427a2414         __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__
40  FrontBoardServices              0x3427a20e0         -[FBSSerialQueue _queue_performNextIfPossible]
41  FrontBoardServices              0x3427a2608         -[FBSSerialQueue _performNextFromRunLoopSource]
42  CoreFoundation                  0x335fec9fc         __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
43  CoreFoundation                  0x335fec954         __CFRunLoopDoSource0
44  CoreFoundation                  0x335fec0ec         __CFRunLoopDoSources0
45  CoreFoundation                  0x335fe7238         __CFRunLoopRun
46  CoreFoundation                  0x335fe6ad8         CFRunLoopRunSpecific
47  GraphicsServices                0x3484eb324         GSEventRunModal
48  UIKitCore                       0x3425bdadc         UIApplicationMain
49  The Dyrt                        0x2041298a0         <redacted>
50  libdyld.dylib                   0x32f70135c         start

Expected behavior No crash.

Versions (please complete the following information):

  • Platform: iOS
  • Device: Apple iPhone X
  • Emulator/ Simulator: No
  • OS: iOS 13.3
  • react-native-mapbox-gl Version: 8.0.0
  • React Native Version 0.61.4

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:19 (13 by maintainers)

github_iconTop GitHub Comments

3reactions
mfazekascommented, Oct 21, 2020

@cbrevik the use of showsUserHeadingIndicator just means that we’re going to hit this code path. I’ve added a PR #1089 that should fix the issue.

2reactions
cbrevikcommented, Oct 21, 2020

Awesome @mfazekas! Thanks for handling this. Is this going to be released in a new rc-version short term, or do you need help testing it out first?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Attempted to dereference garbage pointer ... - GitHub
Attempted to dereference garbage pointer 0x43e14141ff01ff08. Exception Type: EXC_BAD_ACCESS (SIGBUS) Exception Codes: BUS_NOOP at ...
Read more >
iOS EXC_BAD_ACCESS Attempted to dereference garbage ...
My first attempt at answer wasn't nearly detailed enough to be helpful - my apologies. Let's try again. Based on the App Specific...
Read more >
Crash after block release, but thr… | Apple Developer Forums
Code Block. EXC_BAD_ACCESS · Attempted to dereference garbage pointer 0x20. 0libobjc.A.dylib_objc_release. 1libsystem_blocks.dylibBlock_release.
Read more >
Fixing an Unfixable Bug | Develop with Dillon
The error message was EXC_BAD_ACCESS , with this detail: Attempted to dereference garbage pointer 0x10. The address of the garbage pointer ...
Read more >
Crashed: Avaudiosession Notify Thread Exc_Bad_Access
Attempted to dereference garbage pointer 0x43e14141ff01ff08. Exception Type: EXCBADACCESS SIGBUS Exception Codes: BUSNOOP at. EXCBADACCESS ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found