[AC-4018] App crashes on launch on Android > 6
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-07-11T16:18:23.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Paneer Shekar |
Assignee | Hans Knöchel |
Created | 2016-07-08T21:55:10.000+0000 |
Updated | 2016-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)
Sounds like you need an updated version of ti.imagefactory. https://github.com/appcelerator-modules/ti.imagefactory
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!
Apologize for the delay - ti.imagefactory 2.2.2 did fix the issue.