{ "id": "169226", "key": "TIMOB-25052", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2017-08-01T21:09:07.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "17609", "description": "", "name": "Release 7.0.0", "archived": false, "released": true, "releaseDate": "2017-12-07" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:54:47.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "Sometimes the application crashes when attempting to relaunch a closed application (after multiple attempts) [SDK: SDK 7.0.0.v20170801134317]\r\n\r\nInformation below is from logcat:\r\n{code:java}\r\n8-01 13:41:11.804 29957 30053 D audio_hw_primary: disable_audio_route: usecase(1) reset and update mixer path: low-latency-playback speaker\r\n08-01 13:41:11.811 29957 30053 D audio_hw_primary: disable_snd_device: snd_device(2: speaker)\r\n08-01 13:41:11.984 27532 27595 W OpenGLRenderer: Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...\r\n08-01 13:41:11.984 27532 27595 W OpenGLRenderer: Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...\r\n08-01 13:41:11.988 30186 31309 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.appc.T5/.T5Activity bnds=[368,353][720,759] (has extras)} from uid 10031 on display 0\r\n08-01 13:41:12.001 29957 30053 D audio_hw_primary: enable_snd_device: snd_device(2: speaker)\r\n08-01 13:41:12.005 29957 30053 D audio_hw_primary: enable_audio_route: usecase(1) apply and update mixer path: low-latency-playback speaker\r\n08-01 13:41:12.036 11189 11189 I TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null\r\n08-01 13:41:12.163 11189 11189 W TiApplication: (main) [127,127] Registering module with name already in use.\r\n08-01 13:41:12.185 30186 13137 I ActivityManager: START u0 {cmp=com.appc.T5/org.appcelerator.titanium.TiActivity (has extras)} from uid 10260 on display 0\r\n08-01 13:41:12.194 30186 30199 I sensors : batch\r\n08-01 13:41:12.196 30186 30199 I nanohub : queueBatch: sensor=1, handle=1, period=160000000, latency=0\r\n08-01 13:41:12.196 30186 30199 I sensors : activate\r\n08-01 13:41:12.197 30186 30199 I nanohub : queueActivate: sensor=1, handle=1, enable=1\r\n08-01 13:41:12.200 11189 11189 I TiRootActivity: (main) [0,0] checkpoint, on root activity resume. activity = com.appc.T5.T5Activity@cb1b6d8\r\n08-01 13:41:12.265 11189 11189 D Window : Checkpoint: postWindowCreated()\r\n08-01 13:41:12.279 30186 31231 I sensors : flush\r\n08-01 13:41:12.281 30186 31231 I nanohub : queueFlush: sensor=1, handle=1\r\n08-01 13:41:12.283 30186 30352 I nanohub : flushing 1\r\n08-01 13:41:12.298 11189 11189 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 11189 (com.appc.T5)\r\n08-01 13:41:12.299 373 373 W : debuggerd: handling request: pid=11189 uid=10260 gid=10260 tid=11189\r\n08-01 13:41:12.372 11487 11487 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***\r\n08-01 13:41:12.373 11487 11487 F DEBUG : Build fingerprint: 'google/angler/angler:7.1.1/N4F26O/3582057:user/release-keys'\r\n08-01 13:41:12.373 11487 11487 F DEBUG : Revision: '0'\r\n08-01 13:41:12.373 11487 11487 F DEBUG : ABI: 'arm'\r\n08-01 13:41:12.373 11487 11487 F DEBUG : pid: 11189, tid: 11189, name: com.appc.T5 >>> com.appc.T5 <<<\r\n08-01 13:41:12.373 11487 11487 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0\r\n08-01 13:41:12.373 11487 11487 F DEBUG : r0 32c0b400 r1 b3b5534a r2 00000001 r3 ce74582c\r\n08-01 13:41:12.373 11487 11487 F DEBUG : r4 00100d63 r5 00000000 r6 e7f05400 r7 ffd9c090\r\n08-01 13:41:12.373 11487 11487 F DEBUG : r8 ffd9c120 r9 00102436 sl 00000043 fp e7e7eef0\r\n08-01 13:41:12.373 11487 11487 F DEBUG : ip cdd27149 sp ffd9c078 lr e7c4d693 pc e7c77eee cpsr 600b0030\r\n08-01 13:41:12.376 11487 11487 F DEBUG : \r\n08-01 13:41:12.376 11487 11487 F DEBUG : backtrace:\r\n08-01 13:41:12.376 11487 11487 F DEBUG : #00 pc 00264eee /system/lib/libart.so (_ZN3art3JNI12IsInstanceOfEP7_JNIEnvP8_jobjectP7_jclass+445)\r\n08-01 13:41:12.376 11487 11487 F DEBUG : #01 pc 0038e1ed /data/app/com.appc.T5-1/lib/arm/libkroll-v8.so (_ZN8titanium7JNIUtil13removePointerEP8_jobject+32)\r\n08-01 13:41:12.376 11487 11487 F DEBUG : #02 pc 0038f17f /data/app/com.appc.T5-1/lib/arm/libkroll-v8.so (_ZN8titanium10JavaObject13DeleteJavaRefEv+22)\r\n08-01 13:41:12.376 11487 11487 F DEBUG : #03 pc 0038f1d1 /data/app/com.appc.T5-1/lib/arm/libkroll-v8.so (_ZN8titanium10JavaObjectD2Ev+28)\r\n08-01 13:41:12.376 11487 11487 F DEBUG : #04 pc 003906ef /data/app/com.appc.T5-1/lib/arm/libkroll-v8.so (_ZN8titanium5ProxyD2Ev+14)\r\n08-01 13:41:12.376 11487 11487 F DEBUG : #05 pc 00390701 /data/app/com.appc.T5-1/lib/arm/libkroll-v8.so (_ZN8titanium5ProxyD0Ev+4)\r\n08-01 13:41:12.376 11487 11487 F DEBUG : #06 pc 00394193 /data/app/com.appc.T5-1/lib/arm/libkroll-v8.so (Java_org_appcelerator_kroll_runtime_v8_V8Object_nativeRelease+74)\r\n08-01 13:41:12.376 11487 11487 F DEBUG : #07 pc 004b6ed5 /data/app/com.appc.T5-1/oat/arm/base.odex (offset 0x476000)\r\n08-01 13:41:12.536 29957 30053 D audio_hw_primary: disable_audio_route: usecase(1) reset and update mixer path: low-latency-playback speaker\r\n08-01 13:41:12.542 29957 30053 D audio_hw_primary: disable_snd_device: snd_device(2: speaker)\r\n08-01 13:41:12.629 29957 30053 D audio_hw_primary: enable_snd_device: snd_device(2: speaker)\r\n08-01 13:41:12.632 29957 30053 D audio_hw_primary: enable_audio_route: usecase(1) apply and update mixer path: low-latency-playback speaker\r\n08-01 13:41:12.994 30186 11491 W ActivityManager: Force finishing activity com.appc.T5/org.appcelerator.titanium.TiActivity\r\n08-01 13:41:12.998 30186 30218 I BootReceiver: Copying /data/tombstones/tombstone_04 to DropBox (SYSTEM_TOMBSTONE)\r\n08-01 13:41:12.999 373 373 W : debuggerd: resuming target 11189\r\n08-01 13:41:13.000 30186 11491 W ActivityManager: Force finishing activity com.appc.T5/.T5Activity\r\n08-01 13:41:13.011 407 407 E lowmemorykiller: Error writing /proc/11189/oom_score_adj; errno=22\r\n08-01 13:41:13.011 30186 30205 W ActivityManager: Failed setting process group of 11189 to 1\r\n08-01 13:41:13.011 30186 30205 W System.err: java.lang.IllegalArgumentException: Given thread 11231 does not exist\r\n08-01 13:41:13.011 30186 30205 W System.err: \tat android.os.Process.setThreadPriority(Native Method)\r\n08-01 13:41:13.011 30186 30205 W System.err: \tat com.android.server.am.ActivityManagerService.applyOomAdjLocked(ActivityManagerService.java:20514)\r\n08-01 13:41:13.011 30186 30205 W System.err: \tat com.android.server.am.ActivityManagerService.updateOomAdjLocked(ActivityManagerService.java:21013)\r\n08-01 13:41:13.011 30186 30205 W System.err: \tat com.android.server.am.BroadcastQueue.processCurBroadcastLocked(BroadcastQueue.java:272)\r\n08-01 13:41:13.011 30186 30205 W System.err: \tat com.android.server.am.BroadcastQueue.processNextBroadcast(BroadcastQueue.java:1222)\r\n08-01 13:41:13.012 30186 30205 W System.err: \tat com.android.server.am.BroadcastQueue$BroadcastHandler.handleMessage(BroadcastQueue.java:172)\r\n08-01 13:41:13.012 30186 30205 W System.err: \tat android.os.Handler.dispatchMessage(Handler.java:102)\r\n08-01 13:41:13.012 30186 30205 W System.err: \tat android.os.Looper.loop(Looper.java:154)\r\n08-01 13:41:13.012 30186 30205 W System.err: \tat android.os.HandlerThread.run(HandlerThread.java:61)\r\n08-01 13:41:13.012 30186 30205 W System.err: \tat com.android.server.ServiceThread.run(ServiceThread.java:46)\r\n08-01 13:41:13.031 30186 30206 W ViewRootImpl[T5]: Dropping event due to no window focus: KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x48, repeatCount=0, eventTime=1234560533, downTime=1234560533, deviceId=-1, source=0x101 }\r\n08-01 13:41:13.034 30186 30206 W ViewRootImpl[T5]: Cancelling event due to no window focus: KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x68, repeatCount=0, eventTime=1234560952, downTime=1234560533, deviceId=-1, source=0x101 }\r\n08-01 13:41:13.034 30186 30206 W ViewRootImpl[T5]: Cancelling event due to no window focus: KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x68, repeatCount=0, eventTime=1234560952, downTime=1234560533, deviceId=-1, source=0x101 }\r\n08-01 13:41:13.034 30186 30206 W ViewRootImpl[T5]: Cancelling event due to no window focus: KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x68, repeatCount=0, eventTime=1234560952, downTime=1234560533, deviceId=-1, source=0x101 }\r\n08-01 13:41:13.034 30186 30206 W ViewRootImpl[T5]: Cancelling event due to no window focus: KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x68, repeatCount=0, eventTime=1234560952, downTime=1234560533, deviceId=-1, source=0x101 }\r\n08-01 13:41:13.034 30186 30206 W ViewRootImpl[T5]: Cancelling event due to no window focus: KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x68, repeatCount=0, eventTime=1234560952, downTime=1234560533, deviceId=-1, source=0x101 }\r\n08-01 13:41:13.034 30186 30206 W ViewRootImpl[T5]: Cancelling event due to no window focus: KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x68, repeatCount=0, eventTime=1234560952, downTime=1234560533, deviceId=-1, source=0x101 }\r\n08-01 13:41:13.058 30186 31307 D GraphicsStats: Buffer count: 5\r\n08-01 13:41:13.058 30186 5004 I sensors : batch\r\n08-01 13:41:13.059 30186 31306 I ActivityManager: Process com.appc.T5 (pid 11189) has died\r\n08-01 13:41:13.059 30186 31306 D ActivityManager: cleanUpApplicationRecord -- 11189\r\n08-01 13:41:13.060 30186 5004 I nanohub : queueBatch: sensor=1, handle=1, period=160000000, latency=0\r\n08-01 13:41:13.060 30186 31183 I sensors : activate\r\n{code}\r\n\r\n*Test steps*\r\n1. Create a basic application with {{exitOnClose}}\r\n{code:js}\r\nvar win = Ti.UI.createWindow({backgroundColor: 'gray', exitOnClose: true});\r\nwin.open();\r\n{code}\r\n2. Launch application\r\n3. Press back to exit the application\r\n4. Quickly re-launch the application by pressing the application icon (you may want to add a shortcut to your homescreen)\r\n5. Repeat this multiple times till the application crashes (15-20 times usually)\r\n\r\n*EXPECTED*\r\n- The application should not crash\r\n\r\n*ACTUAL*\r\n- The application crashes\r\n", "attachment": [], "flagged": false, "summary": "[Android] Application crashes after opening and closing the application multiple times", "creator": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator Command-Line Interface, version 6.2.3-21\r\nGoogle Nexus 6P (7.1.1)\r\nOperating System Name: Mac OS X El Capitan\r\nOperating System Version: 10.11.6\r\nNode.js Version: 6.10.1\r\nXcode: 8.2\r\nAppcelerator Studio: 4.9.0.201705302345\r\nSDK 7.0.0.v20170801134317", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }