java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.br.tistyledlabeltest-1/lib/arm/libti.styledlabel.so: has text relocations

Appcelerator JIRA | Be Rushton | 10 months ago
  1. 0

    Creating a new issue as I no longer have permission to comment on previous ticket: https://jira.appcelerator.org/browse/MOD-2195 As with many other modules, this module is no longer working on Android 6 when using Ti 5.1.X and therefore Android SDK Level 23. Apparently ti.imagefactory, ti.barcode and ti.paint all suffer this same issue according to https://jira.appcelerator.org/browse/TIMOB-19369 As per request, the bug is pretty much exactly what it says on the tin but here is an example code and log: app.js: {code:java} var win = Titanium.UI.createWindow({backgroundColor:'#ccc'}); var view = Titanium.UI.createView(); var styledlabel = require('ti.styledlabel'); var label = styledlabel.createLabel({ color:'#999', html:'I am <b>bold</b>', }); view.add(label); win.add(view); win.open(); {code} error log: {code:java} [ERROR] : linker: /data/app/com.br.tistyledlabeltest-1/lib/arm/libti.styledlabel.so: has text relocations [ERROR] : TiApplication: (KrollRuntimeThread) [31,107] Sending event: exception on thread: KrollRuntimeThread msg:java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.br.tistyledlabeltest-1/lib/arm/libti.styledlabel.so: has text relocations; Titanium 5.1.2,2015/12/16 19:00,ca822b2 [ERROR] : TiApplication: java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.br.tistyledlabeltest-1/lib/arm/libti.styledlabel.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:185) [ERROR] : TiApplication: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:109) {code} Expected result - app compiles and runs on Android 6 device under SDK 5.1.X as it does on SDK 5.0.X and below. Actual result - app will not compile. This error relates directly to https://jira.appcelerator.org/browse/TIMOB-19369. The StyledLabel module is out of date and must be updated.

    Appcelerator JIRA | 10 months ago | Be Rushton
    java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.br.tistyledlabeltest-1/lib/arm/libti.styledlabel.so: has text relocations
  2. 0

    Creating a new issue as I no longer have permission to comment on previous ticket: https://jira.appcelerator.org/browse/MOD-2195 As with many other modules, this module is no longer working on Android 6 when using Ti 5.1.X and therefore Android SDK Level 23. Apparently ti.imagefactory, ti.barcode and ti.paint all suffer this same issue according to https://jira.appcelerator.org/browse/TIMOB-19369 As per request, the bug is pretty much exactly what it says on the tin but here is an example code and log: app.js: {code:java} var win = Titanium.UI.createWindow({backgroundColor:'#ccc'}); var view = Titanium.UI.createView(); var styledlabel = require('ti.styledlabel'); var label = styledlabel.createLabel({ color:'#999', html:'I am <b>bold</b>', }); view.add(label); win.add(view); win.open(); {code} error log: {code:java} [ERROR] : linker: /data/app/com.br.tistyledlabeltest-1/lib/arm/libti.styledlabel.so: has text relocations [ERROR] : TiApplication: (KrollRuntimeThread) [31,107] Sending event: exception on thread: KrollRuntimeThread msg:java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.br.tistyledlabeltest-1/lib/arm/libti.styledlabel.so: has text relocations; Titanium 5.1.2,2015/12/16 19:00,ca822b2 [ERROR] : TiApplication: java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.br.tistyledlabeltest-1/lib/arm/libti.styledlabel.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:185) [ERROR] : TiApplication: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:109) {code} Expected result - app compiles and runs on Android 6 device under SDK 5.1.X as it does on SDK 5.0.X and below. Actual result - app will not compile. This error relates directly to https://jira.appcelerator.org/browse/TIMOB-19369. The StyledLabel module is out of date and must be updated.

    Appcelerator JIRA | 10 months ago | Be Rushton
    java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.br.tistyledlabeltest-1/lib/arm/libti.styledlabel.so: has text relocations
  3. 0

    GitHub comment 6#157251342

    GitHub | 1 year ago | ashcoding
    java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/sg.com.appcelerator-2/lib/arm/libti.compression.so: has text relocations
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 11#162574025

    GitHub | 1 year ago | pke
    java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/de.evopark.evopark-1/lib/arm/liborg.iotashan.TiTouchImageView.so: has text relocations
  6. 0

    Fails on Nexus 5 with Android 6.0

    GitHub | 11 months ago | annakozy2011
    java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.womala.womalaandroid-2/lib/arm/libti.inappbilling.so: has text relocations

  1. filpgame 1 times, last 1 month ago
  2. rp 3 times, last 1 month ago
  3. franky li 4 times, last 1 month ago
  4. ajinkya_w 21 times, last 2 months ago
  5. serious2monkeys 14 times, last 2 weeks ago
26 more registered users
69 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.UnsatisfiedLinkError

    dlopen failed: /data/app/com.br.tistyledlabeltest-1/lib/arm/libti.styledlabel.so: has text relocations

    at java.lang.Runtime.loadLibrary()
  2. Java RT
    System.loadLibrary
    1. java.lang.Runtime.loadLibrary(Runtime.java:372)
    2. java.lang.System.loadLibrary(System.java:1076)
    2 frames
  3. org.appcelerator.kroll
    KrollRuntime$KrollRuntimeThread.run
    1. org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:132)
    2. org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:99)
    3. org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:185)
    4. org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:109)
    4 frames