Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-19369

Android 6.0 (M) : Default classic & alloy app crashes on android 6.0 preview 3 final when "android:targetSdkVersion=23" is set in the tiapp.xml

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: High
    • Resolution: Cannot Reproduce
    • Affects Version/s: Release 5.0.0
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
    • Environment:
    • Story Points:
      2
    • Sprint:
      2015 Sprint 20 SDK

      Description

      Steps To Reproduce:

      1. Create a default classic & alloy app.
      2. Add this to the tiapp.xml so that we know for sure we are building for API 23:

      <android xmlns:android="http://schemas.android.com/apk/res/android">
          <manifest>
              <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="23"/>
          </manifest>
      </android>
      

      3. Build for android device running android 6.0 preview final(from studio or appc CLI).

      Actual Results:

      1. The app crashes immediately when it try's to launch with errors:
      For classic app:

      08-17 18:21:04.003: D/AudioFlinger(198): mixer(0xb4100000) throttle end: throttle time(10)
      08-17 18:21:04.050: I/TiApplication(10988): (main) [0,0] checkpoint, app created.
      08-17 18:21:04.114: I/TiApplication(10988): (main) [64,64] Titanium 4.2.0 (2015/08/17 00:20 1405c59)
      08-17 18:21:04.133: E/Surface(5881): getSlotFromBufferLocked: unknown buffer: 0x9b24ade0
      08-17 18:21:04.141: E/linker(10988): readlink('/proc/self/fd/17') failed: Permission denied [fd=17]
      08-17 18:21:04.141: E/linker(10988): warning: unable to get realpath for the library "/data/app/com.app.testme-1/lib/arm/libstlport_shared.so". Will use given name.
      08-17 18:21:04.151: E/linker(10988): readlink('/proc/self/fd/17') failed: Permission denied [fd=17]
      08-17 18:21:04.151: E/linker(10988): warning: unable to get realpath for the library "/data/app/com.app.testme-1/lib/arm/libkroll-v8.so". Will use given name.
      08-17 18:21:04.154: I/TiApplication(10988): (main) [40,104] Titanium Javascript runtime: v8
      08-17 18:21:04.161: D/CrittercismAndroidModule(10988): (main) [7,111] App context is defined.
      08-17 18:21:04.170: I/System.out(10988): ActivityRecorder: before com.app.testme.TestmeActivity@ce6d2a7_onCreate(), launchUrl = null
      08-17 18:21:04.171: I/TiRootActivity(10988): (main) [0,0] checkpoint, on root activity create, savedInstanceState: null
      08-17 18:21:04.182: W/TiTempFileHelper(10988): (main) [11,11] The external temp directory doesn't exist, skipping cleanup
      08-17 18:21:04.182: I/System.out(10988): ActivityRecorder: before com.app.testme.TestmeActivity@ce6d2a7_onCreate(), launchUrl = null
      08-17 18:21:04.183: I/System.out(10988): ActivityRecorder: before com.app.testme.TestmeActivity@ce6d2a7_onCreate(), launchUrl = null
      08-17 18:21:04.269: W/V8Object(10988): (KrollRuntimeThread) [87,98] Runtime disposed, cannot set property 'userAgent'
      08-17 18:21:04.297: E/linker(10988): readlink('/proc/self/fd/17') failed: Permission denied [fd=17]
      08-17 18:21:04.297: E/linker(10988): warning: unable to get realpath for the library "/data/app/com.app.testme-1/lib/arm/libcom.appcelerator.apm.so". Will use given name.
      08-17 18:21:04.301: E/TiApplication(10988): (KrollRuntimeThread) [31,129] Sending event: exception on thread: KrollRuntimeThread msg:java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.app.testme-1/lib/arm/libcom.appcelerator.apm.so: has text relocations; Titanium 4.2.0,2015/08/17 00:20,1405c59
      08-17 18:21:04.301: E/TiApplication(10988): java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.app.testme-1/lib/arm/libcom.appcelerator.apm.so: has text relocations
      08-17 18:21:04.301: E/TiApplication(10988): 	at java.lang.Runtime.loadLibrary(Runtime.java:372)
      08-17 18:21:04.301: E/TiApplication(10988): 	at java.lang.System.loadLibrary(System.java:1076)
      08-17 18:21:04.301: E/TiApplication(10988): 	at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:132)
      08-17 18:21:04.301: E/TiApplication(10988): 	at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:99)
      08-17 18:21:04.301: E/TiApplication(10988): 	at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:185)
      08-17 18:21:04.301: E/TiApplication(10988): 	at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:109)
      08-17 18:21:04.397: E/AndroidRuntime(10988): FATAL EXCEPTION: KrollRuntimeThread
      08-17 18:21:04.397: E/AndroidRuntime(10988): Process: com.app.testme, PID: 10988
      08-17 18:21:04.397: E/AndroidRuntime(10988): java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.app.testme-1/lib/arm/libcom.appcelerator.apm.so: has text relocations
      08-17 18:21:04.397: E/AndroidRuntime(10988): 	at java.lang.Runtime.loadLibrary(Runtime.java:372)
      08-17 18:21:04.397: E/AndroidRuntime(10988): 	at java.lang.System.loadLibrary(System.java:1076)
      08-17 18:21:04.397: E/AndroidRuntime(10988): 	at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:132)
      08-17 18:21:04.397: E/AndroidRuntime(10988): 	at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:99)
      08-17 18:21:04.397: E/AndroidRuntime(10988): 	at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:185)
      08-17 18:21:04.397: E/AndroidRuntime(10988): 	at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:109)
      08-17 18:21:04.399: W/ActivityManager(792):   Force finishing activity com.app.testme/.TestmeActivity
      08-17 18:21:04.453: I/Adreno-EGL(792): <qeglDrvAPI_eglInitialize:379>: QUALCOMM Build: 08/12/15, 70b1c55, I9e0bc0c0ce
      08-17 18:21:04.453: I/OpenGLRenderer(792): Initialized EGL, version 1.4
      08-17 18:21:04.493: I/art(792): Background partial concurrent mark sweep GC freed 17319(992KB) AllocSpace objects, 2(5MB) LOS objects, 33% free, 30MB/45MB, paused 5.592ms total 84.707ms
      08-17 18:21:04.914: W/ActivityManager(792): Activity pause timeout for ActivityRecord{1b5900a u0 com.app.testme/.TestmeActivity t17 f}
      08-17 18:21:04.965: I/AccountSwitcherDrawerPr(5881): Disabling menu items due to client not being connected
      08-17 18:21:05.838: I/ThermalEngine(211): TM Id 'battery_LCD_monitor' Sensor 'batt_therm' - alarm cleared 2 at 330.0 degC
      08-17 18:21:05.838: E/ThermalEngine(211): override action 10000
      08-17 18:21:05.838: E/ThermalEngine(211): Thermal-Server: Thermal received msg override 10000
      08-17 18:21:05.838: E/ThermalEngine(211): override_notify : SS mode 1 override 10000
      08-17 18:21:07.203: D/audio_hw_primary(198): disable_audio_route: reset and update mixer path: low-latency-playback
      08-17 18:21:07.203: D/audio_hw_primary(198): disable_snd_device: snd_device(2: speaker)
      08-17 18:21:07.941: D/NetlinkSocketObserver(792): NeighborEvent{elapsedMs=1436586, 172.16.0.6, [503DE582D593], RTM_NEWNEIGH, NUD_STALE}
      08-17 18:21:15.004: W/ActivityManager(792): Activity destroy timeout for ActivityRecord{1b5900a u0 com.app.testme/.TestmeActivity t17 f}
      08-17 18:21:17.766: I/AccountManagerService(792): getTypesVisibleToCaller: isPermitted? true
      

      For alloy app:

      08-17 18:27:34.819: I/MicrophoneInputStream(1608): mic_close com.google.android.apps.gsa.speech.audio.u@8b6cd2f
      08-17 18:27:34.820: E/AudioRecord-JNI(1608): Error -4 during AudioRecord native read
      08-17 18:27:34.824: D/audio_hw_primary(198): out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2
      08-17 18:27:34.842: I/EventLoggerService(1608): #scheduleSendEvents
      08-17 18:27:34.864: D/audio_hw_primary(198): disable_audio_route: reset and update mixer path: audio-record
      08-17 18:27:34.864: D/audio_hw_primary(198): disable_snd_device: snd_device(61: voice-rec-mic)
      08-17 18:27:34.871: I/HotwordRecognitionRnr(1608): Hotword detection finished
      08-17 18:27:34.871: I/HotwordRecognitionRnr(1608): Stopping hotword detection.
      08-17 18:27:34.872: I/Keyboard.Facilitator(5762): onFinishInput()
      08-17 18:27:34.876: D/audio_hw_primary(198): select_devices: out_snd_device(2: speaker) in_snd_device(0: none)
      08-17 18:27:34.876: D/msm8974_platform(198): platform_send_audio_calibration: sending audio calibration for snd_device(2) acdb_id(15)
      08-17 18:27:34.876: D/audio_hw_primary(198): enable_snd_device: snd_device(2: speaker)
      08-17 18:27:34.878: D/audio_hw_primary(198): enable_audio_route: apply and update mixer path: low-latency-playback
      08-17 18:27:36.612: D/NetlinkSocketObserver(792): NeighborEvent{elapsedMs=1825256, 172.16.0.6, [503DE582D593], RTM_NEWNEIGH, NUD_PROBE}
      08-17 18:27:38.094: D/audio_hw_primary(198): disable_audio_route: reset and update mixer path: low-latency-playback
      08-17 18:27:38.095: D/audio_hw_primary(198): disable_snd_device: snd_device(2: speaker)
      08-17 18:27:38.629: I/ActivityManager(792): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.app.malloy/.MalloyActivity (has extras)} from uid 10028 on display 0
      08-17 18:27:38.630: D/audio_hw_primary(198): out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2
      08-17 18:27:38.641: D/audio_hw_primary(198): select_devices: out_snd_device(2: speaker) in_snd_device(0: none)
      08-17 18:27:38.641: D/msm8974_platform(198): platform_send_audio_calibration: sending audio calibration for snd_device(2) acdb_id(15)
      08-17 18:27:38.641: D/audio_hw_primary(198): enable_snd_device: snd_device(2: speaker)
      08-17 18:27:38.642: D/audio_hw_primary(198): enable_audio_route: apply and update mixer path: low-latency-playback
      08-17 18:27:38.667: D/AudioFlinger(198): mixer(0xb4100000) throttle end: throttle time(10)
      08-17 18:27:38.684: I/ActivityManager(792): Start proc 11762:com.app.malloy/u0a88 for activity com.app.malloy/.MalloyActivity
      08-17 18:27:38.754: I/TiApplication(11762): (main) [0,0] checkpoint, app created.
      08-17 18:27:38.774: E/Surface(5881): getSlotFromBufferLocked: unknown buffer: 0xa974a950
      08-17 18:27:38.806: I/TiApplication(11762): (main) [52,52] Titanium 4.2.0 (2015/08/17 00:20 1405c59)
      08-17 18:27:38.837: E/linker(11762): readlink('/proc/self/fd/19') failed: Permission denied [fd=19]
      08-17 18:27:38.837: E/linker(11762): warning: unable to get realpath for the library "/data/app/com.app.malloy-1/lib/arm/libstlport_shared.so". Will use given name.
      08-17 18:27:38.841: E/linker(11762): readlink('/proc/self/fd/19') failed: Permission denied [fd=19]
      08-17 18:27:38.841: E/linker(11762): warning: unable to get realpath for the library "/data/app/com.app.malloy-1/lib/arm/libkroll-v8.so". Will use given name.
      08-17 18:27:38.844: I/TiApplication(11762): (main) [38,90] Titanium Javascript runtime: v8
      08-17 18:27:38.854: D/CrittercismAndroidModule(11762): (main) [10,100] App context is defined.
      08-17 18:27:38.863: I/System.out(11762): ActivityRecorder: before com.app.malloy.MalloyActivity@ce6d2a7_onCreate(), launchUrl = null
      08-17 18:27:38.863: I/TiRootActivity(11762): (main) [0,0] checkpoint, on root activity create, savedInstanceState: null
      08-17 18:27:38.882: W/TiTempFileHelper(11762): (main) [19,19] The external temp directory doesn't exist, skipping cleanup
      08-17 18:27:38.882: I/System.out(11762): ActivityRecorder: before com.app.malloy.MalloyActivity@ce6d2a7_onCreate(), launchUrl = null
      08-17 18:27:38.883: I/System.out(11762): ActivityRecorder: before com.app.malloy.MalloyActivity@ce6d2a7_onCreate(), launchUrl = null
      08-17 18:27:38.941: W/V8Object(11762): (KrollRuntimeThread) [59,78] Runtime disposed, cannot set property 'userAgent'
      08-17 18:27:38.973: E/linker(11762): readlink('/proc/self/fd/19') failed: Permission denied [fd=19]
      08-17 18:27:38.973: E/linker(11762): warning: unable to get realpath for the library "/data/app/com.app.malloy-1/lib/arm/libcom.appcelerator.apm.so". Will use given name.
      08-17 18:27:38.976: E/TiApplication(11762): (KrollRuntimeThread) [35,113] Sending event: exception on thread: KrollRuntimeThread msg:java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.app.malloy-1/lib/arm/libcom.appcelerator.apm.so: has text relocations; Titanium 4.2.0,2015/08/17 00:20,1405c59
      08-17 18:27:38.976: E/TiApplication(11762): java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.app.malloy-1/lib/arm/libcom.appcelerator.apm.so: has text relocations
      08-17 18:27:38.976: E/TiApplication(11762): 	at java.lang.Runtime.loadLibrary(Runtime.java:372)
      08-17 18:27:38.976: E/TiApplication(11762): 	at java.lang.System.loadLibrary(System.java:1076)
      08-17 18:27:38.976: E/TiApplication(11762): 	at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:132)
      08-17 18:27:38.976: E/TiApplication(11762): 	at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:99)
      08-17 18:27:38.976: E/TiApplication(11762): 	at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:185)
      08-17 18:27:38.976: E/TiApplication(11762): 	at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:109)
      08-17 18:27:39.030: E/AndroidRuntime(11762): FATAL EXCEPTION: KrollRuntimeThread
      08-17 18:27:39.030: E/AndroidRuntime(11762): Process: com.app.malloy, PID: 11762
      08-17 18:27:39.030: E/AndroidRuntime(11762): java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.app.malloy-1/lib/arm/libcom.appcelerator.apm.so: has text relocations
      08-17 18:27:39.030: E/AndroidRuntime(11762): 	at java.lang.Runtime.loadLibrary(Runtime.java:372)
      08-17 18:27:39.030: E/AndroidRuntime(11762): 	at java.lang.System.loadLibrary(System.java:1076)
      08-17 18:27:39.030: E/AndroidRuntime(11762): 	at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:132)
      08-17 18:27:39.030: E/AndroidRuntime(11762): 	at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:99)
      08-17 18:27:39.030: E/AndroidRuntime(11762): 	at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:185)
      08-17 18:27:39.030: E/AndroidRuntime(11762): 	at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:109)
      08-17 18:27:39.032: W/ActivityManager(792):   Force finishing activity com.app.malloy/.MalloyActivity
      08-17 18:27:39.098: I/Adreno-EGL(792): <qeglDrvAPI_eglInitialize:379>: QUALCOMM Build: 08/12/15, 70b1c55, I9e0bc0c0ce
      08-17 18:27:39.099: I/OpenGLRenderer(792): Initialized EGL, version 1.4
      08-17 18:27:39.553: W/ActivityManager(792): Activity pause timeout for ActivityRecord{1dd0a94 u0 com.app.malloy/.MalloyActivity t20 f}
      08-17 18:27:39.605: I/AccountSwitcherDrawerPr(5881): Disabling menu items due to client not being connected
      08-17 18:27:39.843: I/ActivityManager(792): Killing 9367:com.google.android.deskclock/u0a69 (adj 15): empty #17
      08-17 18:27:41.860: D/audio_hw_primary(198): disable_audio_route: reset and update mixer path: low-latency-playback
      08-17 18:27:41.861: D/audio_hw_primary(198): disable_snd_device: snd_device(2: speaker)
      08-17 18:27:44.852: I/EventLoggerService(1608): Sending 1
      08-17 18:27:44.854: W/CronetSyncConnectionRcs(1608): Upload content type not set.
      08-17 18:27:47.834: D/ConnectivityService(792): updateNetworkScore for NetworkAgentInfo [WIFI () - 101] to 60
      08-17 18:27:47.834: D/ConnectivityService(792): rematching NetworkAgentInfo [WIFI () - 101]
      08-17 18:27:49.670: W/ActivityManager(792): Activity destroy timeout for ActivityRecord{1dd0a94 u0 com.app.malloy/.MalloyActivity t20 f}
      08-17 18:27:50.870: D/ConnectivityService(792): updateNetworkScore for NetworkAgentInfo [WIFI () - 101] to 56
      08-17 18:27:50.870: D/ConnectivityService(792): rematching NetworkAgentInfo [WIFI () - 101]
      

      Expected Result:

      1. The app should launch fine & not crash.

        Attachments

          Activity

            People

            • Assignee:
              hpham Hieu Pham
              Reporter:
              lchoudhary Lokesh Choudhary
            • Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code