Android pre-API21: Exception java/lang/UnsatisfiedLinkError; Cannot load library: reloc_library[1306]: 1165 cannot locate 'mmap64' #257

Open
opened 2020-08-06 16:57:27 +00:00 by gburd · 0 comments
gburd commented 2020-08-06 16:57:27 +00:00 (Migrated from github.com)

Seeing this on Android API16 while trying to use the Android SDK.

D/dalvikvm( 2491): Trying to load lib /data/data/org.mozilla.samplefenixprofile/lib/libmentat_ffi.so 0xa711e900
W/dalvikvm( 2491): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lorg/mozilla/mentat/Mentat;
D/AndroidRuntime( 2491): Shutting down VM
W/dalvikvm( 2491): threadid=1: thread exiting with uncaught exception (group=0xa669c228)
E/AndroidRuntime( 2491): FATAL EXCEPTION: main
E/AndroidRuntime( 2491): java.lang.ExceptionInInitializerError
E/AndroidRuntime( 2491): 	at org.mozilla.samplefenixprofile.MainActivity.onCreate(MainActivity.kt:14)
E/AndroidRuntime( 2491): 	at android.app.Activity.performCreate(Activity.java:5008)
E/AndroidRuntime( 2491): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
E/AndroidRuntime( 2491): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
E/AndroidRuntime( 2491): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
E/AndroidRuntime( 2491): 	at android.app.ActivityThread.access$600(ActivityThread.java:130)
E/AndroidRuntime( 2491): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
E/AndroidRuntime( 2491): 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 2491): 	at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 2491): 	at android.app.ActivityThread.main(ActivityThread.java:4745)
E/AndroidRuntime( 2491): 	at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2491): 	at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 2491): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
E/AndroidRuntime( 2491): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
E/AndroidRuntime( 2491): 	at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 2491): Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1306]:  1165 cannot locate 'mmap64'...
E/AndroidRuntime( 2491): 
E/AndroidRuntime( 2491): 	at java.lang.Runtime.loadLibrary(Runtime.java:370)
E/AndroidRuntime( 2491): 	at java.lang.System.loadLibrary(System.java:535)
E/AndroidRuntime( 2491): 	at org.mozilla.mentat.Mentat.<clinit>(Mentat.java:26)
E/AndroidRuntime( 2491): 	... 15 more
W/ActivityManager( 1520):   Force finishing activity org.mozilla.samplefenixprofile/.MainActivity
Seeing this on Android API16 while trying to use the Android SDK. ``` D/dalvikvm( 2491): Trying to load lib /data/data/org.mozilla.samplefenixprofile/lib/libmentat_ffi.so 0xa711e900 W/dalvikvm( 2491): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lorg/mozilla/mentat/Mentat; D/AndroidRuntime( 2491): Shutting down VM W/dalvikvm( 2491): threadid=1: thread exiting with uncaught exception (group=0xa669c228) E/AndroidRuntime( 2491): FATAL EXCEPTION: main E/AndroidRuntime( 2491): java.lang.ExceptionInInitializerError E/AndroidRuntime( 2491): at org.mozilla.samplefenixprofile.MainActivity.onCreate(MainActivity.kt:14) E/AndroidRuntime( 2491): at android.app.Activity.performCreate(Activity.java:5008) E/AndroidRuntime( 2491): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079) E/AndroidRuntime( 2491): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023) E/AndroidRuntime( 2491): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084) E/AndroidRuntime( 2491): at android.app.ActivityThread.access$600(ActivityThread.java:130) E/AndroidRuntime( 2491): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195) E/AndroidRuntime( 2491): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime( 2491): at android.os.Looper.loop(Looper.java:137) E/AndroidRuntime( 2491): at android.app.ActivityThread.main(ActivityThread.java:4745) E/AndroidRuntime( 2491): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 2491): at java.lang.reflect.Method.invoke(Method.java:511) E/AndroidRuntime( 2491): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) E/AndroidRuntime( 2491): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) E/AndroidRuntime( 2491): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime( 2491): Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1306]: 1165 cannot locate 'mmap64'... E/AndroidRuntime( 2491): E/AndroidRuntime( 2491): at java.lang.Runtime.loadLibrary(Runtime.java:370) E/AndroidRuntime( 2491): at java.lang.System.loadLibrary(System.java:535) E/AndroidRuntime( 2491): at org.mozilla.mentat.Mentat.<clinit>(Mentat.java:26) E/AndroidRuntime( 2491): ... 15 more W/ActivityManager( 1520): Force finishing activity org.mozilla.samplefenixprofile/.MainActivity ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: greg/mentat#257
No description provided.