java.lang.UnsatisfiedLinkError

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

This happens sometimes when Android fails to load the necessary libraries when you install an app. Try reinstalling it or telling your client to reinstall it, as it seems to correctly install the libraries and fixes the problem.


rafaelrafael

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Hello , I 'm developing a propitiation for ios and android but when I compile the application , do the test fails when a real device Motorola G with android 6.0 Error: [INFO] : TiApplication: (main) [4,4] checkpoint, app created. [INFO] : TiApplication: (main) [110,114] Titanium 5.2.2 (2016/03/28 14:12 b685ddb) [INFO] : TiApplication: (main) [104,218] Titanium Javascript runtime: v8 [ERROR] : linker: readlink('/proc/self/fd/19') failed: Permission denied [fd=19] [INFO] : TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null [ERROR] : linker: warning: unable to get realpath for the library "/data/app/com.bea.paypal-1/lib/arm/libstlport_shared.so". Will use given name. [ERROR] : linker: readlink('/proc/self/fd/19') failed: Permission denied [fd=19] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/com.bea.paypal-1/lib/arm/libkroll-v8.so". Will use given name. [WARN] : TiTempFileHelper: (main) [27,27] The external temp directory doesn't exist, skipping cleanup [WARN] : V8Object: (KrollRuntimeThread) [230,257] Runtime disposed, cannot set property 'userAgent' [ERROR] : linker: readlink('/proc/self/fd/19') failed: Permission denied [fd=19] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/com.bea.paypal-1/lib/arm/libti.paypal.so". Will use given name. [ERROR] : TiApplication: (KrollRuntimeThread) [65,322] Sending event: exception on thread: KrollRuntimeThread msg:java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.bea.paypal-1/lib/arm/libti.paypal.so: has text relocations; Titanium 5.2.2,2016/03/28 14:12,b685ddb [ERROR] : TiApplication: java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.bea.paypal-1/lib/arm/libti.paypal.so: has text relocations [ERROR] : TiApplication: at java.lang.Runtime.loadLibrary(Runtime.java:372) [ERROR] : TiApplication: at java.lang.System.loadLibrary(System.java:1076) [ERROR] : TiApplication: at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:132) [ERROR] : TiApplication: at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:99) [ERROR] : TiApplication: at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:205) [ERROR] : TiApplication: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:114) [TRACE] : updating tiapp metadata with Appcelerator Platform... [TRACE] : Uploaded tiapp metadata with Appcelerator Platform! [INFO] : Process: Sending signal. PID: 9677 SIG: 9
    via by Eduardo Olvera,
  • Hello , I 'm developing a propitiation for ios and android but when I compile the application , do the test fails when a real device Motorola G with android 6.0 Error: [INFO] : TiApplication: (main) [4,4] checkpoint, app created. [INFO] : TiApplication: (main) [110,114] Titanium 5.2.2 (2016/03/28 14:12 b685ddb) [INFO] : TiApplication: (main) [104,218] Titanium Javascript runtime: v8 [ERROR] : linker: readlink('/proc/self/fd/19') failed: Permission denied [fd=19] [INFO] : TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null [ERROR] : linker: warning: unable to get realpath for the library "/data/app/com.bea.paypal-1/lib/arm/libstlport_shared.so". Will use given name. [ERROR] : linker: readlink('/proc/self/fd/19') failed: Permission denied [fd=19] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/com.bea.paypal-1/lib/arm/libkroll-v8.so". Will use given name. [WARN] : TiTempFileHelper: (main) [27,27] The external temp directory doesn't exist, skipping cleanup [WARN] : V8Object: (KrollRuntimeThread) [230,257] Runtime disposed, cannot set property 'userAgent' [ERROR] : linker: readlink('/proc/self/fd/19') failed: Permission denied [fd=19] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/com.bea.paypal-1/lib/arm/libti.paypal.so". Will use given name. [ERROR] : TiApplication: (KrollRuntimeThread) [65,322] Sending event: exception on thread: KrollRuntimeThread msg:java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.bea.paypal-1/lib/arm/libti.paypal.so: has text relocations; Titanium 5.2.2,2016/03/28 14:12,b685ddb [ERROR] : TiApplication: java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.bea.paypal-1/lib/arm/libti.paypal.so: has text relocations [ERROR] : TiApplication: at java.lang.Runtime.loadLibrary(Runtime.java:372) [ERROR] : TiApplication: at java.lang.System.loadLibrary(System.java:1076) [ERROR] : TiApplication: at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:132) [ERROR] : TiApplication: at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:99) [ERROR] : TiApplication: at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:205) [ERROR] : TiApplication: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:114) [TRACE] : updating tiapp metadata with Appcelerator Platform... [TRACE] : Uploaded tiapp metadata with Appcelerator Platform! [INFO] : Process: Sending signal. PID: 9677 SIG: 9
    via by Eduardo Olvera,
  • I am trying to compile my project using the mentioned environment plus: * [ti.permissions|http://gitt.io/component/ti.permissions] v0.5 module, * The titanium.jar file available on https://github.com/AppWerft/Tierstimmenarchiv/tree/master/modules/android and put into the folder Library/Application Support/Titanium/mobilesdk/osx/5.2.0.GA/android/. The two items above were suggested on this issue: https://jira.appcelerator.org/browse/TIMOB-20320 . After compiling the code I get the following error when the app is about to open on a device running Android 6: [ERROR] : linker: readlink('/proc/self/fd/19') failed: Permission denied [fd=19] [INFO] : TiApplication: (main) [184,314] Titanium Javascript runtime: v8 [ERROR] : linker: warning: unable to get realpath for the library "/data/app/com.mypackage-2/lib/arm/libstlport_shared.so". Will use given name. [ERROR] : linker: readlink('/proc/self/fd/19') failed: Permission denied [fd=19] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/com.mypackage-2/lib/arm/libkroll-v8.so". Will use given name. [INFO] : TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null [WARN] : TiTempFileHelper: (main) [29,29 [WARN] : V8Object: (KrollRuntimeThread) [99,128] Runtime disposed, cannot set property 'userAgent' [ERROR] : linker: readlink('/proc/self/fd/22') failed: Permission denied [fd=22] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/com.mypackage-2/lib/arm/libti.permissions.so". Will use given name. [ERROR] : linker: readlink('/proc/self/fd/22') failed: Permission denied [fd=22] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/com.mypackage-2/lib/arm/libti.imagefactory.so". Will use given name. [ERROR] : linker: readlink('/proc/self/fd/22') failed: Permission denied [fd=22] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/com.mypackage-2/lib/arm/libtjatse.photo.so". Will use given name. [ERROR] : linker: readlink('/proc/self/fd/22') failed: Permission denied [fd=22] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/com.mypackage-2/lib/arm/libti.inappbilling.so". Will use given name. [ERROR] : TiApplication: (KrollRuntimeThread) [71,199] Sending event: exception on thread: KrollRuntimeThread msg:java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.mypackage-2/lib/arm/libti.inappbilling.so: has text relocations; Titanium 5.2.0,2016/02/20 08:05,384775e [ERROR] : TiApplication: java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.mypackage-2/lib/arm/libti.inappbilling.so: has text relocations [ERROR] : TiApplication: at java.lang.Runtime.loadLibrary(Runtime.java:372) [ERROR] : TiApplication: at java.lang.System.loadLibrary(System.java:1076) [ERROR] : TiApplication: at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:132) [ERROR] : TiApplication: at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:99) [ERROR] : TiApplication: at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:205) [ERROR] : TiApplication: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:114) [INFO] : Process: Sending signal. PID: 11706 SIG: 9 But when running using the same environment but on an Android 5 device no error is raised.
    via by Gabriel Stoppini,
  • GitHub comment 14#212411875
    via GitHub by spudz000
    ,
  • I am trying to compile my project using the mentioned environment plus: * [ti.permissions|http://gitt.io/component/ti.permissions] v0.5 module, * The titanium.jar file available on https://github.com/AppWerft/Tierstimmenarchiv/tree/master/modules/android and put into the folder Library/Application Support/Titanium/mobilesdk/osx/5.2.0.GA/android/. The two items above were suggested on this issue: https://jira.appcelerator.org/browse/TIMOB-20320 . After compiling the code I get the following error when the app is about to open on a device running Android 6: [ERROR] : linker: readlink('/proc/self/fd/19') failed: Permission denied [fd=19] [INFO] : TiApplication: (main) [184,314] Titanium Javascript runtime: v8 [ERROR] : linker: warning: unable to get realpath for the library "/data/app/com.mypackage-2/lib/arm/libstlport_shared.so". Will use given name. [ERROR] : linker: readlink('/proc/self/fd/19') failed: Permission denied [fd=19] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/com.mypackage-2/lib/arm/libkroll-v8.so". Will use given name. [INFO] : TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null [WARN] : TiTempFileHelper: (main) [29,29 [WARN] : V8Object: (KrollRuntimeThread) [99,128] Runtime disposed, cannot set property 'userAgent' [ERROR] : linker: readlink('/proc/self/fd/22') failed: Permission denied [fd=22] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/com.mypackage-2/lib/arm/libti.permissions.so". Will use given name. [ERROR] : linker: readlink('/proc/self/fd/22') failed: Permission denied [fd=22] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/com.mypackage-2/lib/arm/libti.imagefactory.so". Will use given name. [ERROR] : linker: readlink('/proc/self/fd/22') failed: Permission denied [fd=22] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/com.mypackage-2/lib/arm/libtjatse.photo.so". Will use given name. [ERROR] : linker: readlink('/proc/self/fd/22') failed: Permission denied [fd=22] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/com.mypackage-2/lib/arm/libti.inappbilling.so". Will use given name. [ERROR] : TiApplication: (KrollRuntimeThread) [71,199] Sending event: exception on thread: KrollRuntimeThread msg:java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.mypackage-2/lib/arm/libti.inappbilling.so: has text relocations; Titanium 5.2.0,2016/02/20 08:05,384775e [ERROR] : TiApplication: java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.mypackage-2/lib/arm/libti.inappbilling.so: has text relocations [ERROR] : TiApplication: at java.lang.Runtime.loadLibrary(Runtime.java:372) [ERROR] : TiApplication: at java.lang.System.loadLibrary(System.java:1076) [ERROR] : TiApplication: at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:132) [ERROR] : TiApplication: at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:99) [ERROR] : TiApplication: at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:205) [ERROR] : TiApplication: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:114) [INFO] : Process: Sending signal. PID: 11706 SIG: 9 But when running using the same environment but on an Android 5 device no error is raised.
    via by Gabriel Stoppini,
  • Runtime Error
    via GitHub by asleson
    ,
    • java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.bea.paypal-1/lib/arm/libti.paypal.so: has text relocations at java.lang.Runtime.loadLibrary(Runtime.java:372) at java.lang.System.loadLibrary(System.java:1076) at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:132) at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:99) at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:205) at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:114)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Mihail MelnicMihail Melnic
    2 times, last one,
    271 more bugmates