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.

[7.0.9] Crashing on Android

See original GitHub issue

Describe the bug App no longer loads and crashes as the app is opening up.

To Reproduce Upgrade to version 7.0.9. Open Andriod app.

Crash results from Android Debugger:

E/SoLibraryLoader: Couldn't load so file with relinker, application context missing, call Mapbox.getInstance(Context context, String accessToken) first
E/Mbgl-LibraryLoader: Failed to load native shared library.
    java.lang.UnsatisfiedLinkError: 
    Using MapView requires calling Mapbox.getInstance(Context context, String accessToken) before inflating or creating the view. The access token parameter is required when using a Mapbox service.
    Please see https://www.mapbox.com/help/create-api-access-token/ to learn how to create one.
    More information in this guide https://www.mapbox.com/help/first-steps-android-sdk/#access-tokens.
        at com.mapbox.mapboxsdk.module.loader.LibraryLoaderProviderImpl$SoLibraryLoader.load(LibraryLoaderProviderImpl.java:46)
        at com.mapbox.mapboxsdk.LibraryLoader.load(LibraryLoader.java:43)
        at com.mapbox.mapboxsdk.offline.OfflineManager.<clinit>(OfflineManager.java:45)
        at com.mapbox.mapboxsdk.offline.OfflineManager.getInstance(Unknown Source:0)
        at com.mapbox.rctmgl.modules.RCTMGLOfflineModule.setTileCountLimit(RCTMGLOfflineModule.java:324)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:371)
        at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:150)
        at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
        at android.os.Handler.handleCallback(Handler.java:873)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:26)
        at android.os.Looper.loop(Looper.java:193)
        at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:225)
        at java.lang.Thread.run(Thread.java:764)

Does not happen with 7.0.8 or lower.

Expected behavior App should load normally without crash.

Screenshots

Screen Shot 2020-01-18 at 11 01 23 AM

Versions (please complete the following information):

  • Platfrom: Android
  • Device: Android Simulator and Android Device (Moto)
  • OS: Android
  • SDK Version 28
  • React Native Version “react-native”: “0.61.5”,

Additional context

iOS seems to load and work with Mapbox 7.0.9.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
ferdicuscommented, Jan 20, 2020

Hey there, thanks for also looking into this. I think we might’ve multiple crash causing issues here unfortunately 😦

1reaction
systemlevelcommented, Jan 20, 2020

For anyone else experiencing this here are some references to the native java android repo discussing this same issue:

https://github.com/mapbox/mapbox-gl-native/issues/15331 https://github.com/mapbox/mapbox-gl-native/issues/15535 https://github.com/mapbox/mapbox-gl-native/issues/13045

From this repo:

https://github.com/react-native-mapbox-gl/maps/issues/353

I still don’t have a fix to share yet.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[7.0.9] Crashing on Android · Issue #626 · rnmapbox/maps
Describe the bug App no longer loads and crashes as the app is opening up. To Reproduce Upgrade to version 7.0.9. Open Andriod...
Read more >
11 Quick Ways to Fix Apps Keep Crashing on Android - iMobie
Here are the detailed steps. Go to “Settings” > Apps > Find the app that keeps crashing. Enter the information of the App,...
Read more >
Fix an installed Android app that isn't working - Google Support
Try the following steps if an app installed on your phone has any of these problems: Crashing. Won't open. Won't respond. Isn't working...
Read more >
Google app crashing after new update; here's how to fix
Launch Android Settings app · Go to Apps & notifications · Tap “See all apps” · Find and tap Google from the app...
Read more >
Crashes | Android Developers
An Android app crashes whenever there's an unexpected exit caused by an unhandled exception or signal. An app that is written using Java...
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