Titanium JIRA Archive
Appcelerator Community (AC)

[AC-4018] App crashes on launch on Android > 6

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2016-07-11T16:18:23.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterPaneer Shekar
AssigneeHans Knöchel
Created2016-07-08T21:55:10.000+0000
Updated2016-07-18T17:25:48.000+0000

Description

On app launch with targetSdkVersion 23, the app crashes. We've added code to check for permissions as soon as the app launches and still we get the following error: [ERROR] : linker: /data/app/com.XYZ.dealers-1/lib/arm/libti.imagefactory.so: has text relocations [ERROR] : TiApplication: (KrollRuntimeThread) [58,196] Sending event: exception on thread: KrollRuntimeThread msg:java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.cars.quickoffers.dealers-1/lib/arm/libti.imagefactory.so: has text relocations; Titanium 5.3.1,2016/06/09 01:34,ee11b10 [ERROR] : TiApplication: java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.cars.quickoffers.dealers-1/lib/arm/libti.imagefactory.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)

Comments

  1. Stephen Feather 2016-07-09

    Sounds like you need an updated version of ti.imagefactory. https://github.com/appcelerator-modules/ti.imagefactory
  2. Hans Knöchel 2016-07-11

    Hey there, thanks Steven, exactly that is what happening: The module needed to be recompiled for Android 6 and since it wasn't, it's causing the error. Please use [ti.imagefactory 2.2.2](https://github.com/appcelerator-modules/ti.imagefactory/releases/tag/android-2.2.2) that will resolve this error. Thanks!
  3. Paneer Shekar 2016-07-18

    Apologize for the delay - ti.imagefactory 2.2.2 did fix the issue.

JSON Source