Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1063] Android: ti.compression crashes on Android 6.0

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionCannot Reproduce
Resolution Date2015-11-26T06:27:17.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAppcelerator Modules
Labelsn/a
ReporterManuel Lehner
AssigneeShak Hossain
Created2015-10-19T13:30:32.000+0000
Updated2016-03-08T07:37:24.000+0000

Description

This affects 5.0.0.GA and 5.1.0 - it works fine on 4.1.0.GA The ti.compression module is a dependency of TiShadow which makes development impossible on Android 6.0 devices. This is the exception log for a default alloy app built with appc run --platform android --project-dir ./ --no-banner --no-progress-bars --no-prompt --target device --sdk 5.1.0 --shadow using the 5_1_X branch:
10-19 15:08:45.943: E/AndroidRuntime(20815): FATAL EXCEPTION: KrollRuntimeThread
10-19 15:08:45.943: E/AndroidRuntime(20815): Process: com.myapp.test, PID: 20815
10-19 15:08:45.943: E/AndroidRuntime(20815): java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.myapp.test-1/lib/arm/libti.compression.so: has text relocations
10-19 15:08:45.943: E/AndroidRuntime(20815): 	at java.lang.Runtime.loadLibrary(Runtime.java:372)
10-19 15:08:45.943: E/AndroidRuntime(20815): 	at java.lang.System.loadLibrary(System.java:1076)
10-19 15:08:45.943: E/AndroidRuntime(20815): 	at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:132)
10-19 15:08:45.943: E/AndroidRuntime(20815): 	at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:99)
10-19 15:08:45.943: E/AndroidRuntime(20815): 	at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:185)
10-19 15:08:45.943: E/AndroidRuntime(20815): 	at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:109)

Comments

  1. Aminul Islam 2015-10-30

    Hi, I tested this issue with SDK 5.0.2.GA on Android 5.1.0 and Android 6.0 , *ti.compression* module is working fine for me. *Environment*
       Android 5.1 
       Android 4.4
       Android 6.0 
       Operating System
         Name                        = Mac OS X
         Version                     = 10.10.5
         Architecture                = 64bit
         # CPUs                      = 4
         Memory                      = 8589934592
       Node.js
         Node.js Version             = 0.10.37
         npm Version                 = 1.4.28
       Titanium CLI
         CLI Version                 = 5.0.5
       Titanium SDK
         SDK Version                 = 5.0.2.GA
         SDK Path                    = /Users/Library/Application Support/Titanium/mobilesdk/osx/5.0.2.GA
         Target Platform             = android
       
    Thanks

JSON Source