Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

SoLoader load 'mapbox-gl' with FileLockInterruptionException #743

Open
lxzh opened this issue Nov 25, 2022 · 0 comments
Open

SoLoader load 'mapbox-gl' with FileLockInterruptionException #743

lxzh opened this issue Nov 25, 2022 · 0 comments
Labels
bug 🪲 Something isn't working

Comments

@lxzh
Copy link

lxzh commented Nov 25, 2022

Environment

  • Android OS version: Android 5.1.1 API 22
  • Devices affected:
  • Maps SDK Version: 8.6.6

Observed behavior and steps to reproduce

Application crashes due to Mapbox initialization exception

Mapbox.getInstance(context, context.getString(R.string.mapbox_access_token))

Expected behavior

Notes / preliminary analysis

java.lang.ExceptionInInitializerError
	at com.mapbox.mapboxsdk.net.ConnectivityReceiver.instance(ConnectivityReceiver.java:43)
	at com.mapbox.mapboxsdk.Mapbox.getInstance(Mapbox.java:67)
	at xxx.xxx.xxxActivity.onCreate(xxxActivity.java:208)
	at android.app.Activity.performCreate(Activity.java:6222)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2295)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2407)
	at android.app.ActivityThread.access$800(ActivityThread.java:151)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1319)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loop(Looper.java:135)
	at android.app.ActivityThread.main(ActivityThread.java:5280)
	at java.lang.reflect.Method.invoke(Method.java)
	at java.lang.reflect.Method.invoke(Method.java:372)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:963)
Caused by: java.lang.RuntimeException: java.nio.channels.FileLockInterruptionException
	at com.facebook.soloader.SoLoader.init(SoLoader.java:207)
	at com.mapbox.mapboxsdk.module.loader.LibraryLoaderProviderImpl$SoLibraryLoader.load(LibraryLoaderProviderImpl.java:41)
	at com.mapbox.mapboxsdk.LibraryLoader.load(LibraryLoader.java:43)
	at com.mapbox.mapboxsdk.net.NativeConnectivityListener.<clinit>(NativeConnectivityListener.java:13)
	... 16 more
Caused by: java.nio.channels.FileLockInterruptionException
	at java.nio.FileChannelImpl.lock(FileChannelImpl.java:172)
	at java.nio.channels.FileChannel.lock(FileChannel.java:185)
	at com.facebook.soloader.FileLocker.<init>(FileLocker.java:39)
	at com.facebook.soloader.FileLocker.lock(FileLocker.java:32)
	at com.facebook.soloader.UnpackingSoSource.prepare(UnpackingSoSource.java:411)
	at com.facebook.soloader.SoLoader.initSoSources(SoLoader.java:315)
	at com.facebook.soloader.SoLoader.init(SoLoader.java:193)
	at com.facebook.soloader.SoLoader.init(SoLoader.java:175)
	at com.facebook.soloader.SoLoader.init(SoLoader.java:205)

Additional links and references

@lxzh lxzh added the bug 🪲 Something isn't working label Nov 25, 2022
@kiryldz kiryldz transferred this issue from mapbox/mapbox-maps-android Nov 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug 🪲 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant