[TIMOB-25052] [Android] Application crashes after opening and closing the application multiple times
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 7.0.0 |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Samir Mohammed |
Assignee | Unknown |
Created | 2017-08-01T21:09:07.000+0000 |
Updated | 2018-02-28T19:54:47.000+0000 |
Description
Sometimes the application crashes when attempting to relaunch a closed application (after multiple attempts) [SDK: SDK 7.0.0.v20170801134317]
Information below is from logcat:
8-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
08-01 13:41:11.811 29957 30053 D audio_hw_primary: disable_snd_device: snd_device(2: speaker)
08-01 13:41:11.984 27532 27595 W OpenGLRenderer: Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
08-01 13:41:11.984 27532 27595 W OpenGLRenderer: Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
08-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
08-01 13:41:12.001 29957 30053 D audio_hw_primary: enable_snd_device: snd_device(2: speaker)
08-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
08-01 13:41:12.036 11189 11189 I TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null
08-01 13:41:12.163 11189 11189 W TiApplication: (main) [127,127] Registering module with name already in use.
08-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
08-01 13:41:12.194 30186 30199 I sensors : batch
08-01 13:41:12.196 30186 30199 I nanohub : queueBatch: sensor=1, handle=1, period=160000000, latency=0
08-01 13:41:12.196 30186 30199 I sensors : activate
08-01 13:41:12.197 30186 30199 I nanohub : queueActivate: sensor=1, handle=1, enable=1
08-01 13:41:12.200 11189 11189 I TiRootActivity: (main) [0,0] checkpoint, on root activity resume. activity = com.appc.T5.T5Activity@cb1b6d8
08-01 13:41:12.265 11189 11189 D Window : Checkpoint: postWindowCreated()
08-01 13:41:12.279 30186 31231 I sensors : flush
08-01 13:41:12.281 30186 31231 I nanohub : queueFlush: sensor=1, handle=1
08-01 13:41:12.283 30186 30352 I nanohub : flushing 1
08-01 13:41:12.298 11189 11189 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 11189 (com.appc.T5)
08-01 13:41:12.299 373 373 W : debuggerd: handling request: pid=11189 uid=10260 gid=10260 tid=11189
08-01 13:41:12.372 11487 11487 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
08-01 13:41:12.373 11487 11487 F DEBUG : Build fingerprint: 'google/angler/angler:7.1.1/N4F26O/3582057:user/release-keys'
08-01 13:41:12.373 11487 11487 F DEBUG : Revision: '0'
08-01 13:41:12.373 11487 11487 F DEBUG : ABI: 'arm'
08-01 13:41:12.373 11487 11487 F DEBUG : pid: 11189, tid: 11189, name: com.appc.T5 >>> com.appc.T5 <<<
08-01 13:41:12.373 11487 11487 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
08-01 13:41:12.373 11487 11487 F DEBUG : r0 32c0b400 r1 b3b5534a r2 00000001 r3 ce74582c
08-01 13:41:12.373 11487 11487 F DEBUG : r4 00100d63 r5 00000000 r6 e7f05400 r7 ffd9c090
08-01 13:41:12.373 11487 11487 F DEBUG : r8 ffd9c120 r9 00102436 sl 00000043 fp e7e7eef0
08-01 13:41:12.373 11487 11487 F DEBUG : ip cdd27149 sp ffd9c078 lr e7c4d693 pc e7c77eee cpsr 600b0030
08-01 13:41:12.376 11487 11487 F DEBUG :
08-01 13:41:12.376 11487 11487 F DEBUG : backtrace:
08-01 13:41:12.376 11487 11487 F DEBUG : #00 pc 00264eee /system/lib/libart.so (_ZN3art3JNI12IsInstanceOfEP7_JNIEnvP8_jobjectP7_jclass+445)
08-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)
08-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)
08-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)
08-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)
08-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)
08-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)
08-01 13:41:12.376 11487 11487 F DEBUG : #07 pc 004b6ed5 /data/app/com.appc.T5-1/oat/arm/base.odex (offset 0x476000)
08-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
08-01 13:41:12.542 29957 30053 D audio_hw_primary: disable_snd_device: snd_device(2: speaker)
08-01 13:41:12.629 29957 30053 D audio_hw_primary: enable_snd_device: snd_device(2: speaker)
08-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
08-01 13:41:12.994 30186 11491 W ActivityManager: Force finishing activity com.appc.T5/org.appcelerator.titanium.TiActivity
08-01 13:41:12.998 30186 30218 I BootReceiver: Copying /data/tombstones/tombstone_04 to DropBox (SYSTEM_TOMBSTONE)
08-01 13:41:12.999 373 373 W : debuggerd: resuming target 11189
08-01 13:41:13.000 30186 11491 W ActivityManager: Force finishing activity com.appc.T5/.T5Activity
08-01 13:41:13.011 407 407 E lowmemorykiller: Error writing /proc/11189/oom_score_adj; errno=22
08-01 13:41:13.011 30186 30205 W ActivityManager: Failed setting process group of 11189 to 1
08-01 13:41:13.011 30186 30205 W System.err: java.lang.IllegalArgumentException: Given thread 11231 does not exist
08-01 13:41:13.011 30186 30205 W System.err: at android.os.Process.setThreadPriority(Native Method)
08-01 13:41:13.011 30186 30205 W System.err: at com.android.server.am.ActivityManagerService.applyOomAdjLocked(ActivityManagerService.java:20514)
08-01 13:41:13.011 30186 30205 W System.err: at com.android.server.am.ActivityManagerService.updateOomAdjLocked(ActivityManagerService.java:21013)
08-01 13:41:13.011 30186 30205 W System.err: at com.android.server.am.BroadcastQueue.processCurBroadcastLocked(BroadcastQueue.java:272)
08-01 13:41:13.011 30186 30205 W System.err: at com.android.server.am.BroadcastQueue.processNextBroadcast(BroadcastQueue.java:1222)
08-01 13:41:13.012 30186 30205 W System.err: at com.android.server.am.BroadcastQueue$BroadcastHandler.handleMessage(BroadcastQueue.java:172)
08-01 13:41:13.012 30186 30205 W System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
08-01 13:41:13.012 30186 30205 W System.err: at android.os.Looper.loop(Looper.java:154)
08-01 13:41:13.012 30186 30205 W System.err: at android.os.HandlerThread.run(HandlerThread.java:61)
08-01 13:41:13.012 30186 30205 W System.err: at com.android.server.ServiceThread.run(ServiceThread.java:46)
08-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 }
08-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 }
08-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 }
08-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 }
08-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 }
08-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 }
08-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 }
08-01 13:41:13.058 30186 31307 D GraphicsStats: Buffer count: 5
08-01 13:41:13.058 30186 5004 I sensors : batch
08-01 13:41:13.059 30186 31306 I ActivityManager: Process com.appc.T5 (pid 11189) has died
08-01 13:41:13.059 30186 31306 D ActivityManager: cleanUpApplicationRecord -- 11189
08-01 13:41:13.060 30186 5004 I nanohub : queueBatch: sensor=1, handle=1, period=160000000, latency=0
08-01 13:41:13.060 30186 31183 I sensors : activate
*Test steps*
1. Create a basic application with exitOnClose
var win = Ti.UI.createWindow({backgroundColor: 'gray', exitOnClose: true});
win.open();
2. Launch application
3. Press back to exit the application
4. Quickly re-launch the application by pressing the application icon (you may want to add a shortcut to your homescreen)
5. Repeat this multiple times till the application crashes (15-20 times usually)
*EXPECTED*
- The application should not crash
*ACTUAL*
- The application crashes
No comments