Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[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

GitHub Issuen/a
TypeBug
PriorityHigh
StatusResolved
ResolutionCannot Reproduce
Resolution Date2015-09-28T02:16:22.000+0000
Affected Version/sRelease 5.0.0
Fix Version/sn/a
ComponentsAndroid
Labelsqe-4.1.1, qe-5.0.0
ReporterLokesh Choudhary
AssigneeHieu Pham
Created2015-08-18T16:28:23.000+0000
Updated2016-01-20T04:33:11.000+0000

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.

Comments

  1. Ingo Muschenetz 2015-09-12

    I believe we might be able to defer this out of 5.0.0, but want to confirm.
  2. Hieu Pham 2015-09-13

    Starting with Preview 3, text relocations are no longer a warning, but an error. It looks like libcom.appcelerator.apm.so may need to be modified - could be as easy as updating NDK to latest, which usually solve most text relocations.
  3. Ingo Muschenetz 2015-09-13

    Were you going to make an update, or are we deferring this to 5.0.1?
  4. Ashraf Abu 2015-09-25

    I'm currently using 5.0.0.GA with Android 6.0 preview 3 final with targetSdkVersion 23 set. Not facing this issue.
  5. Hieu Pham 2015-09-28

    Cannot reproduce with latest master running with apm module. If this is still happening, please provide a sample project along with the apm module that is causing it. Closing this ticket till then.
  6. Muhammad Ahmed Fahad 2015-11-09

    Please test on a real device.. Facing this problem with 5.1.0 SDK on a Nexus 5 with Android 6. The error didn't occur on Emulator. Please test with real device!
  7. Ashraf Abu 2015-11-11

    [~fahad86] Currently, I'm not facing any issues with a real device Nexus 6 with Android 6. Could you provide the following information: -Error logs that you get from the logcat -Code that you were using and if you were developing for classic or alloy Any other info that can help that is related to the error would be much appreciated!
  8. Muhammad Ahmed Fahad 2015-11-11

    Errors similar to the one pointed above "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" "unable to get realpath for the library "/data/app/com.app.malloy-1/lib/arm/libcom.appcelerator.apm.so". Will use given name." Happens when certain modules that worked with Ti SDK 4.1.1 on Android 6 devices with Android SDK 22, stopped working on Ti SDK 5.0.2 with Android SDK 23 on Android 6 devices. E.g. of the module which when added the problem occurs: https://github.com/gbaldera/TiTouchGallery/tree/develop/dist What Works: 1) Ti SDK 4.1.1 Android SDK 22 Android: All (4-6) 2) Ti SDK 5.0.2 Android SDK 23 Android: 4-5 What doesn't work: 1) Ti SDK 5.0.2 Android SDK 23 Android: 6
  9. Ashraf Abu 2015-11-11

    [~fahad86] Thanks for the detailed fast reply and information! If the errors you are getting has java.lang.UnsatisfiedLinkError: dlopen and has text relocations, for modules, it means that the modules need to be recompiled with the latest NDK. In this case, for https://github.com/gbaldera/TiTouchGallery , you would need to get the author to recompile the module with the latest NDK. Alternatively, you can recompile it on your own. If it's an Appcelerator Android module, please let me know which ones are causing the problem and I'll create a ticket to handle those modules.
  10. Mike Stancliffe 2015-11-25

    Ashraf Abu, we are having this issue with this as well with ti.imagefactory, ti.barcode and ti.paint
  11. Ashraf Abu 2015-11-26

  12. Ashraf Abu 2015-11-26

  13. Be Rushton 2015-12-16

    So basically most old android modules need to be recompiled to work under Ti 5.1.X and API 23? I'm having this problem on most of my projects.
  14. Ashraf Abu 2015-12-16

    [~bearus] If your logs says, {quote} java.lang.UnsatisfiedLinkError: dlopen {quote} and {quote}has text relocations{quote} The answer is yes.
  15. Be Rushton 2015-12-16

    And there is no way to update the SDK to work around this? Obviously something was added in 5.1.X that broke existing android modules. I'm assuming there is a good reason but this is a big breaking change. There is a lot of modules that will break and the error is not very clear about why. I think you need to make some bigger noise about this issue with the AppC dev community as most of us will be scratching our head for days until we find this ticket like I was. At least display a nicer error inside Studio rather than make us hunt through logcat logs looking for some weird error. And notify module developers that they will have to release updates to their modules.
  16. sagar k patel 2016-01-19

    I am facing this same issue in the Ti SDK 5.1.2.GA sdk for android in Android 6 version. Did anybody have solution of this issue...? Is there is any way to fix this {quote} [ERROR] : linker: readlink('/proc/self/fd/20') failed: Permission denied [fd=20] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/com-1/lib/arm/libstlport_shared.so". Will use given name. [ERROR] : linker: readlink('/proc/self/fd/20') failed: Permission denied [fd=20] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/com.-1/lib/arm/libkroll-v8.so". Will use given name. [ERROR] : linker: readlink('/proc/self/fd/22') failed: Permission denied [fd=22] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/com-1/lib/arm/libti.cloudpush.so". Will use given name. [ERROR] : linker: readlink('/proc/self/fd/21') failed: Permission denied [fd=21] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/com-1/lib/arm/libti.imagefactory.so". Will use given name. [ERROR] : Error: ETIMEDOUT at [object Object]. (/Users/saggy/.appcelerator/install/5.1.0/package/node_modules/request/request.js:808:15) at Timer.listOnTimeout (timers.js:92:15) --------------------------------------------- at Request.init (/Users/saggy/.appcelerator/install/5.1.0/package/node_modules/request/request.js:200:10) at new Request (/Users/saggy/.appcelerator/install/5.1.0/package/node_modules/request/request.js:140:8) at request (/Users/saggy/.appcelerator/install/5.1.0/package/node_modules/request/index.js:55:10) at Function.get (/Users/saggy/.appcelerator/install/5.1.0/package/node_modules/request/index.js:63:12) at _createRequest (/Users/saggy/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/appc-platform-sdk/lib/index.js:382:39) at Function.AppC.createRequest (/Users/saggy/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/appc-platform-sdk/lib/index.js:340:9) at /Users/saggy/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/appc-platform-sdk/lib/auth.js:234:8 at /Users/saggy/.appcelerator/install/5.1.0/package/node_modules/async/lib/async.js:251:17 at /Users/saggy/.appcelerator/install/5.1.0/package/node_modules/async/lib/async.js:154:25 --------------------------------------------- at /Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/node_modules/async/lib/async.js:275:35 at /Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/node_modules/async/lib/async.js:44:16 at /Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/node_modules/async/lib/async.js:694:17 at /Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/node_modules/async/lib/async.js:173:37 at /Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/cli/hooks/run.js:387:7 at /Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/node_modules/async/lib/async.js:689:13 at iterate (/Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/node_modules/async/lib/async.js:265:13) at /Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/node_modules/async/lib/async.js:277:29 at /Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/node_modules/async/lib/async.js:44:16 --------------------------------------------- at /Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/cli/hooks/run.js:361:13 at ADB. (/Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/node_modules/titanium-sdk/lib/adb.js:568:6) at conn.exec.bufferUntilClose (/Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/node_modules/titanium-sdk/lib/adb.js:492:5) at Connection. (/Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/node_modules/titanium-sdk/lib/adb.js:251:4) at emitNone (events.js:72:20) at Socket.emit (events.js:166:7) at endReadableNT (_stream_readable.js:905:12) --------------------------------------------- at Socket.Readable.on (_stream_readable.js:665:33) at Connection.exec (/Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/node_modules/titanium-sdk/lib/adb.js:248:9) at ADB. (/Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/node_modules/titanium-sdk/lib/adb.js:491:9) at Connection. (/Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/node_modules/titanium-sdk/lib/adb.js:171:8) at emitOne (events.js:77:13) at Socket.emit (events.js:169:7) at readableAddChunk (_stream_readable.js:146:16) at Socket.Readable.push (_stream_readable.js:110:10) at TCP.onread (net.js:523:20) --------------------------------------------- at Socket.Readable.on (_stream_readable.js:665:33) at Connection.exec (/Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/node_modules/titanium-sdk/lib/adb.js:119:9) at ADB.shell (/Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/node_modules/titanium-sdk/lib/adb.js:487:7) at ADB.getPid (/Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/node_modules/titanium-sdk/lib/adb.js:557:7) at /Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/cli/hooks/run.js:351:15 at Object.async.whilst (/Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/node_modules/async/lib/async.js:763:13) at /Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/cli/hooks/run.js:348:15 at conn.exec.bufferUntilClose (/Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/node_modules/titanium-sdk/lib/adb.js:492:5) at Connection. (/Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/node_modules/titanium-sdk/lib/adb.js:251:4) --------------------------------------------- at Socket.Readable.on (_stream_readable.js:665:33) at Connection.exec (/Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/node_modules/titanium-sdk/lib/adb.js:248:9) at ADB. (/Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/node_modules/titanium-sdk/lib/adb.js:491:9) at Connection. (/Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/node_modules/titanium-sdk/lib/adb.js:171:8) at emitOne (events.js:77:13) at Socket.emit (events.js:169:7) at readableAddChunk (_stream_readable.js:146:16) at Socket.Readable.push (_stream_readable.js:110:10) --------------------------------------------- at Socket.Readable.on (_stream_readable.js:665:33) at Connection.exec (/Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/node_modules/titanium-sdk/lib/adb.js:119:9) at ADB.shell (/Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/node_modules/titanium-sdk/lib/adb.js:487:7) at ADB.startApp (/Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/node_modules/titanium-sdk/lib/adb.js:585:7) at startApp (/Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/cli/hooks/run.js:342:12) at /Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/cli/hooks/run.js:373:9 at /Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/node_modules/async/lib/async.js:187:20 at iterate (/Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/node_modules/async/lib/async.js:265:13) at Object.async.forEachOfSeries.async.eachOfSeries (/Users/saggy/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/node_modules/async/lib/async.js:284:9) – End application log ------------------------------------------------------- 2016-01-19T05:54:52.932Z | TRACE | titanium exited with exit code 0 2016-01-19T05:54:52.988Z | TRACE | Sending exit signal to titanium process: 17068 {quote}
  17. Ashraf Abu 2016-01-19

    [~sagar patel] I'm unsure of the module version that you are using. You can try replacing the modules with the latest ones and see if it helps:- ti.imagefactory: https://github.com/appcelerator-modules/ti.imagefactory/releases/tag/android-2.2.2 ti.cloudpush: https://github.com/appcelerator/titanium_mobile/blob/71915ab92ac196eb4c28472015d7057be93a505c/support/module/packaged/ti.cloudpush-android-3.4.1.zip
  18. Peter Ladis 2016-01-19

    We are running into the same issue...here its my stack trace output: -- Start application log ----------------------------------------------------- [INFO] : TiApplication: (main) [1,1] checkpoint, app created. [INFO] : TiApplication: (main) [167,168] Titanium 5.1.2 (2015/12/16 19:00 ca822b2) [INFO] : Project built successfully in 1m 38s 600ms [INFO] : TiApplication: (main) [256,424] Titanium Javascript runtime: v8 [ERROR] : linker: readlink('/proc/self/fd/23') failed: Permission denied [fd=23] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/com.lilypadsolutions.lilypadappV2-2/lib/arm/libstlport_shared.so". Will use given name. [ERROR] : linker: readlink('/proc/self/fd/23') failed: Permission denied [fd=23] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/com.lilypadsolutions.lilypadappV2-2/lib/arm/libkroll-v8.so". Will use given name. [WARN] : V8Object: (KrollRuntimeThread) [121,545] Runtime disposed, cannot set property 'userAgent' [ERROR] : linker: readlink('/proc/self/fd/23') failed: Permission denied [fd=23] [ERROR] : linker: warning: unable to get realpath for the library "/data/app/com.lilypadsolutions.lilypadappV2-2/lib/arm/libti.paint.so". Will use given name. [INFO] : Process: Sending signal. PID: 13685 SIG: 9
  19. Ashraf Abu 2016-01-20

    [~peterladis] could you try replacing your module https://github.com/appcelerator-modules/ti.paint/releases/tag/android-2.0.3
  20. sagar k patel 2016-01-20

    HI @Ahsraf Abu Thanx for giving hint. But as you mention by replacing the module with new version, is not helping me. I had replace my all the current module in app with their newest version available, but same error come forward in android with newest Ti SDK 5.1.2.GA in andriod 6 version.
  21. Ashraf Abu 2016-01-20

    [~sagar patel] Is it possible for you to run adb logcat on terminal and get the logs from the device when it crashes? That would help greatly.

JSON Source