[Note] 2021-06-22 应用被杀的日志分析

AS stop app

2021-06-22 15:35:59.005 3493-3506/system_process I/ActivityManager: Force stopping com.lunix.testproject appid=10050 user=0: from pid 5032
2021-06-22 15:35:59.006 3493-3506/system_process I/ActivityManager: Killing 4912:com.lunix.testproject/u0a50 (adj 0): stop com.lunix.testproject
2021-06-22 15:35:59.006 3493-3520/system_process W/libprocessgroup: kill(-4912, 9) failed: No such process
2021-06-22 15:35:59.007 3493-3506/system_process W/ActivityManager: Force removing ActivityRecord{de432a2 u0 com.lunix.testproject/.MainActivity t47}: app died, no saved state
2021-06-22 15:35:59.016 3264-3304/? W/SurfaceFlinger: Attempting to destroy on removed layer: AppWindowToken{b6e4ef0 token=Token{ce31b33 ActivityRecord{de432a2 u0 com.lunix.testproject/.MainActivity t47}}}#0
2021-06-22 15:35:59.051 3493-3520/system_process W/libprocessgroup: kill(-4912, 9) failed: No such process

AS run app

2021-06-22 15:39:15.421 3493-3945/system_process I/ActivityManager: Force stopping com.lunix.testproject appid=10050 user=0: from pid 5316
2021-06-22 15:39:15.422 3493-3945/system_process I/ActivityManager: Killing 5270:com.lunix.testproject/u0a50 (adj 0): stop com.lunix.testproject
2021-06-22 15:39:15.423 3493-3945/system_process W/ActivityManager: Force removing ActivityRecord{274d9ed u0 com.lunix.testproject/.MainActivity t49}: app died, no saved state
2021-06-22 15:39:13.982 3777-3777/com.android.phone I/chatty: uid=1001(radio) com.android.phone identical 5 lines
2021-06-22 15:39:14.983 3777-3777/com.android.phone W/ServiceManagement: Waited one second for [email protected]::IRadio/slot1. Waiting another...
2021-06-22 15:39:15.423 3493-3520/system_process W/libprocessgroup: kill(-5270, 9) failed: No such process
2021-06-22 15:39:15.467 3493-3520/system_process W/libprocessgroup: kill(-5270, 9) failed: No such process
2021-06-22 15:39:15.475 4200-4350/com.android.launcher3 D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
2021-06-22 15:39:15.484 3493-5228/system_process W/InputMethodManagerService: Got RemoteException sending setActive(false) notification to pid 5270 uid 10050
2021-06-22 15:39:15.510 3493-3525/system_process W/ActivityManager: setHasOverlayUi called on unknown pid: 5270
2021-06-22 15:39:15.511 3493-3520/system_process W/libprocessgroup: kill(-5270, 9) failed: No such process
2021-06-22 15:39:15.511 3493-3520/system_process I/libprocessgroup: Successfully killed process cgroup uid 10050 pid 5270 in 88ms
2021-06-22 15:39:15.511 3232-3232/? I/Zygote: Process 5270 exited due to signal (9)
2021-06-22 15:39:15.719 3493-3719/system_process I/ActivityManager: Force stopping com.lunix.testproject appid=10050 user=0: from pid 5327
2021-06-22 15:39:15.827 3493-3719/system_process I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.lunix.testproject/.MainActivity} from uid 0
2021-06-22 15:39:15.869 3493-3519/system_process I/ActivityManager: Start proc 5334:com.lunix.testproject/u0a50 for activity com.lunix.testproject/.MainActivity
2021-06-22 15:39:15.873 5334-5334/? I/Zygote: seccomp disabled by setenforce 0

Terminal force-stop

2021-06-22 15:46:00.370 3493-5688/system_process I/ActivityManager: Force stopping com.lunix.testproject appid=10050 user=0: from pid 5840
2021-06-22 15:46:00.371 3493-5688/system_process I/ActivityManager: Killing 5795:com.lunix.testproject/u0a50 (adj 0): stop com.lunix.testproject
2021-06-22 15:46:00.372 3493-5688/system_process W/ActivityManager: Force removing ActivityRecord{8194103 u0 com.lunix.testproject/.MainActivity t57}: app died, no saved state
2021-06-22 15:45:59.091 3777-3777/com.android.phone I/chatty: uid=1001(radio) com.android.phone identical 11 lines
2021-06-22 15:46:00.091 3777-3777/com.android.phone W/ServiceManagement: Waited one second for [email protected]::IRadio/slot1. Waiting another...
2021-06-22 15:46:00.372 3493-3520/system_process W/libprocessgroup: kill(-5795, 9) failed: No such process
2021-06-22 15:46:00.380 3264-3610/? W/SurfaceFlinger: Attempting to destroy on removed layer: AppWindowToken{1398eb9 token=Token{fe1c880 ActivityRecord{8194103 u0 com.lunix.testproject/.MainActivity t57}}}#0

APP system.exit

2021-06-22 15:43:13.393 5690-5690/com.lunix.testproject I/nix.testprojec: System.exit called, status: 0
2021-06-22 15:43:13.393 5690-5690/com.lunix.testproject I/AndroidRuntime: VM exiting with result code 0, cleanup skipped.
2021-06-22 15:43:13.394 3239-5269/? I/audio_hw_subMixingFactory: padding_bytes 6144
2021-06-22 15:43:13.394 3239-3434/? I/amlaudioMixer: ++mixer_output_startup start open
2021-06-22 15:43:13.394 3239-3434/? I/audio_hw_port: output_port_start(), open ALSA hw:0,1
2021-06-22 15:43:13.399 3239-5269/? I/audio_hw_subMixingFactory: padding_bytes 4096
2021-06-22 15:43:13.399 3239-5269/? I/audio_hw_subMixingFactory: padding_bytes 2048
2021-06-22 15:43:13.436 3261-3441/? D/AudioFlinger: mixer(0xa8283200) throttle end: throttle time(5)
2021-06-22 15:43:13.455 3493-3573/system_process W/InputDispatcher: channel '70a5bc0 com.lunix.testproject/com.lunix.testproject.MainActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0xd
2021-06-22 15:43:13.455 3493-3573/system_process E/InputDispatcher: channel '70a5bc0 com.lunix.testproject/com.lunix.testproject.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
2021-06-22 15:43:13.463 3493-5536/system_process I/ActivityManager: Process com.lunix.testproject (pid 5690) has died: fore TOP 
2021-06-22 15:43:13.464 3493-4739/system_process I/WindowManager: WIN DEATH: Window{70a5bc0 u0 com.lunix.testproject/com.lunix.testproject.MainActivity}
2021-06-22 15:43:13.464 3493-4739/system_process W/InputDispatcher: Attempted to unregister already unregistered input channel '70a5bc0 com.lunix.testproject/com.lunix.testproject.MainActivity (server)'
2021-06-22 15:43:13.464 3232-3232/? I/Zygote: Process 5690 exited cleanly (0)
2021-06-22 15:43:13.464 3493-3520/system_process W/libprocessgroup: kill(-5690, 9) failed: No such process
2021-06-22 15:43:13.464 3493-3520/system_process I/libprocessgroup: Successfully killed process cgroup uid 10050 pid 5690 in 0ms
2021-06-22 15:43:13.466 3493-5536/system_process W/ActivityManager: Force removing ActivityRecord{afc7fb6 u0 com.lunix.testproject/.MainActivity t55}: app died, no saved state
2021-06-22 15:43:13.467 3493-3573/system_process I/InputDispatcher: Dropping event because there is no touchable window at (954, 508).
2021-06-22 15:43:13.467 3493-3573/system_process I/InputDispatcher: Dropping event because there is no touchable window at (955, 508).
2021-06-22 15:43:13.469 3264-3490/? W/SurfaceFlinger: Attempting to destroy on removed layer: AppWindowToken{76bf424 token=Token{93004b7 ActivityRecord{afc7fb6 u0 com.lunix.testproject/.MainActivity t55}}}#0

app exitprocess

2021-06-22 15:56:16.576 4888-4888/com.lunix.testproject I/nix.testprojec: System.exit called, status: 0
2021-06-22 15:56:16.576 4888-4888/com.lunix.testproject I/AndroidRuntime: VM exiting with result code 0, cleanup skipped.
2021-06-22 15:56:16.642 3515-3596/system_process W/InputDispatcher: channel '54a085 com.lunix.testproject/com.lunix.testproject.MainActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
2021-06-22 15:56:16.642 3515-3596/system_process E/InputDispatcher: channel '54a085 com.lunix.testproject/com.lunix.testproject.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
    
    --------- beginning of system
2021-06-22 15:56:16.648 3515-3528/system_process I/ActivityManager: Process com.lunix.testproject (pid 4888) has died: fore TOP 
2021-06-22 15:56:16.648 3515-3528/system_process W/ActivityManager: Force removing ActivityRecord{aac4b7a u0 com.lunix.testproject/.MainActivity t61}: app died, no saved state
2021-06-22 15:56:16.649 3515-3543/system_process W/libprocessgroup: kill(-4888, 9) failed: No such process
2021-06-22 15:56:16.649 3515-3644/system_process I/WindowManager: WIN DEATH: Window{54a085 u0 com.lunix.testproject/com.lunix.testproject.MainActivity}
2021-06-22 15:56:16.649 3515-3644/system_process W/InputDispatcher: Attempted to unregister already unregistered input channel '54a085 com.lunix.testproject/com.lunix.testproject.MainActivity (server)'
2021-06-22 15:56:16.650 3258-3258/? I/Zygote: Process 4888 exited cleanly (0)
2021-06-22 15:56:16.656 3289-3955/? W/SurfaceFlinger: Attempting to destroy on removed layer: AppWindowToken{1226f88 token=Token{4b77f2b ActivityRecord{aac4b7a u0 com.lunix.testproject/.MainActivity t61}}}#0

Terminal kill

2021-06-22 15:44:49.639 3493-3573/system_process W/InputDispatcher: channel 'c420111 com.lunix.testproject/com.lunix.testproject.MainActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
2021-06-22 15:44:49.639 3493-3573/system_process E/InputDispatcher: channel 'c420111 com.lunix.testproject/com.lunix.testproject.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
    
    --------- beginning of system
2021-06-22 15:44:49.645 3493-4739/system_process I/ActivityManager: Process com.lunix.testproject (pid 5731) has died: fore TOP 
2021-06-22 15:44:49.645 3493-3520/system_process W/libprocessgroup: kill(-5731, 9) failed: No such process
2021-06-22 15:44:49.645 3493-3520/system_process I/libprocessgroup: Successfully killed process cgroup uid 10050 pid 5731 in 0ms
2021-06-22 15:44:49.646 3232-3232/? I/Zygote: Process 5731 exited due to signal (15)
2021-06-22 15:44:49.646 3493-4739/system_process W/ActivityManager: Force removing ActivityRecord{f5d58f u0 com.lunix.testproject/.MainActivity t56}: app died, no saved state
2021-06-22 15:44:49.647 3493-5729/system_process I/WindowManager: WIN DEATH: Window{c420111 u0 com.lunix.testproject/com.lunix.testproject.MainActivity}
2021-06-22 15:44:49.647 3493-5729/system_process W/InputDispatcher: Attempted to unregister already unregistered input channel 'c420111 com.lunix.testproject/com.lunix.testproject.MainActivity (server)'
2021-06-22 15:44:49.663 3264-3610/? W/SurfaceFlinger: Attempting to destroy on removed layer: AppWindowToken{da6b425 token=Token{b57b01c ActivityRecord{f5d58f u0 com.lunix.testproject/.MainActivity t56}}}#0

APP OOM

2021-06-22 16:08:40.034 5413-5413/com.lunix.testproject I/nix.testprojec: Alloc concurrent copying GC freed 350824(12MB) AllocSpace objects, 0(0B) LOS objects, 49% free, 3MB/7MB, paused 34us total 11.880ms
    
    --------- beginning of crash
2021-06-22 16:08:40.035 5413-5413/com.lunix.testproject E/AndroidRuntime: Error reporting crash
    java.lang.OutOfMemoryError: OutOfMemoryError thrown while trying to throw OutOfMemoryError; no stack trace available
2021-06-22 16:08:40.035 5413-5413/com.lunix.testproject I/Process: Sending signal. PID: 5413 SIG: 9
2021-06-22 16:08:40.036 3790-3790/com.android.phone W/ServiceManagement: Waited one second for [email protected]::IRadio/slot1. Waiting another...
2021-06-22 16:08:40.090 3515-3596/system_process W/InputDispatcher: channel 'eb2b349 com.lunix.testproject/com.lunix.testproject.MainActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
2021-06-22 16:08:40.090 3515-3596/system_process E/InputDispatcher: channel 'eb2b349 com.lunix.testproject/com.lunix.testproject.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
    
    --------- beginning of system
2021-06-22 16:08:40.095 3515-5401/system_process I/WindowManager: WIN DEATH: Window{eb2b349 u0 com.lunix.testproject/com.lunix.testproject.MainActivity}
2021-06-22 16:08:40.095 3515-5401/system_process W/InputDispatcher: Attempted to unregister already unregistered input channel 'eb2b349 com.lunix.testproject/com.lunix.testproject.MainActivity (server)'
2021-06-22 16:08:40.095 3515-5061/system_process I/ActivityManager: Process com.lunix.testproject (pid 5413) has died: fore TOP 
2021-06-22 16:08:40.095 3515-3543/system_process W/libprocessgroup: kill(-5413, 9) failed: No such process
2021-06-22 16:08:40.096 3515-5061/system_process W/ActivityManager: Force removing ActivityRecord{b769fa1 u0 com.lunix.testproject/.MainActivity t67}: app died, no saved state
2021-06-22 16:08:40.096 3258-3258/? I/Zygote: Process 5413 exited due to signal (9)
2021-06-22 16:08:40.112 3515-3548/system_process W/ActivityManager: setHasOverlayUi called on unknown pid: 5413
2021-06-22 16:08:40.138 3515-3543/system_process W/libprocessgroup: kill(-5413, 9) failed: No such process
2021-06-22 16:08:40.138 3515-3543/system_process I/libprocessgroup: Successfully killed process cgroup uid 10050 pid 5413 in 42ms

APP OOM_1

2021-06-22 16:00:58.577 5080-5091/com.lunix.testproject I/nix.testprojec: Clamp target GC heap from 19MB to 16MB
2021-06-22 16:00:58.578 5080-5080/com.lunix.testproject I/nix.testprojec: WaitForGcToComplete blocked Alloc on ProfileSaver for 24.533ms
2021-06-22 16:00:58.578 5080-5080/com.lunix.testproject I/nix.testprojec: Starting a blocking GC Alloc
2021-06-22 16:00:58.578 5080-5080/com.lunix.testproject I/chatty: uid=10050(com.lunix.testproject) identical 1 line
2021-06-22 16:00:58.578 5080-5080/com.lunix.testproject I/nix.testprojec: Starting a blocking GC Alloc
2021-06-22 16:00:58.587 5080-5080/com.lunix.testproject I/nix.testprojec: Clamp target GC heap from 21MB to 16MB
2021-06-22 16:00:58.587 5080-5080/com.lunix.testproject I/nix.testprojec: Alloc concurrent copying GC freed 61(42KB) AllocSpace objects, 0(0B) LOS objects, 3% free, 15MB/16MB, paused 37us total 8.938ms
2021-06-22 16:00:58.587 5080-5080/com.lunix.testproject I/nix.testprojec: Starting a blocking GC Alloc
2021-06-22 16:00:58.595 3265-4973/? I/audio_hw_subMixingFactory: padding_bytes 4096
2021-06-22 16:00:58.595 3265-4973/? I/audio_hw_subMixingFactory: padding_bytes 2048
2021-06-22 16:00:58.598 5080-5080/com.lunix.testproject I/nix.testprojec: Clamp target GC heap from 21MB to 16MB
2021-06-22 16:00:58.598 5080-5080/com.lunix.testproject I/nix.testprojec: Alloc concurrent copying GC freed 135(20KB) AllocSpace objects, 0(0B) LOS objects, 3% free, 15MB/16MB, paused 31us total 10.595ms
2021-06-22 16:00:58.598 5080-5080/com.lunix.testproject I/nix.testprojec: Forcing collection of SoftReferences for 2MB allocation
2021-06-22 16:00:58.598 5080-5080/com.lunix.testproject I/nix.testprojec: Starting a blocking GC Alloc
2021-06-22 16:00:58.607 5080-5080/com.lunix.testproject I/nix.testprojec: Clamp target GC heap from 21MB to 16MB
2021-06-22 16:00:58.607 5080-5080/com.lunix.testproject I/nix.testprojec: Alloc concurrent copying GC freed 88(19KB) AllocSpace objects, 0(0B) LOS objects, 3% free, 15MB/16MB, paused 63us total 8.732ms
2021-06-22 16:00:58.607 5080-5080/com.lunix.testproject W/nix.testprojec: Throwing OutOfMemoryError "Failed to allocate a 2097164 byte allocation with 653720 free bytes and 638KB until OOM, max allowed footprint 16777216, growth limit 16777216"
2021-06-22 16:00:58.607 5080-5080/com.lunix.testproject I/nix.testprojec: Starting a blocking GC Alloc
2021-06-22 16:00:58.607 5080-5080/com.lunix.testproject I/nix.testprojec: Starting a blocking GC Alloc
2021-06-22 16:00:58.616 5080-5080/com.lunix.testproject I/nix.testprojec: Clamp target GC heap from 21MB to 16MB
2021-06-22 16:00:58.616 5080-5080/com.lunix.testproject I/nix.testprojec: Alloc concurrent copying GC freed 4(16KB) AllocSpace objects, 0(0B) LOS objects, 3% free, 15MB/16MB, paused 25us total 8.544ms
2021-06-22 16:00:58.616 5080-5080/com.lunix.testproject I/nix.testprojec: Starting a blocking GC Alloc
2021-06-22 16:00:58.623 5080-5080/com.lunix.testproject I/nix.testprojec: Clamp target GC heap from 21MB to 16MB
2021-06-22 16:00:58.623 5080-5080/com.lunix.testproject I/nix.testprojec: Alloc concurrent copying GC freed 0(0B) AllocSpace objects, 0(0B) LOS objects, 3% free, 15MB/16MB, paused 27us total 7.281ms
2021-06-22 16:00:58.623 5080-5080/com.lunix.testproject I/nix.testprojec: Forcing collection of SoftReferences for 2MB allocation
2021-06-22 16:00:58.623 5080-5080/com.lunix.testproject I/nix.testprojec: Starting a blocking GC Alloc
2021-06-22 16:00:58.632 5080-5080/com.lunix.testproject I/nix.testprojec: Clamp target GC heap from 21MB to 16MB
2021-06-22 16:00:58.632 5080-5080/com.lunix.testproject I/nix.testprojec: Alloc concurrent copying GC freed 6(16KB) AllocSpace objects, 0(0B) LOS objects, 3% free, 15MB/16MB, paused 26us total 7.960ms
2021-06-22 16:00:58.632 5080-5080/com.lunix.testproject W/nix.testprojec: Throwing OutOfMemoryError "Failed to allocate a 2097168 byte allocation with 653792 free bytes and 638KB until OOM, max allowed footprint 16777216, growth limit 16777216"
2021-06-22 16:00:58.632 5080-5080/com.lunix.testproject D/AndroidRuntime: Shutting down VM
    
    
    --------- beginning of crash
2021-06-22 16:00:58.634 5080-5080/com.lunix.testproject E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.lunix.testproject, PID: 5080
    java.lang.IllegalStateException: Could not execute method for android:onClick
        at androidx.appcompat.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:402)
        at android.view.View.performClick(View.java:6597)
        at android.view.View.performClickInternal(View.java:6574)
        at android.view.View.access$3100(View.java:778)
        at android.view.View$PerformClick.run(View.java:25885)
        at android.os.Handler.handleCallback(Handler.java:873)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:193)
        at android.app.ActivityThread.main(ActivityThread.java:6669)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
     Caused by: java.lang.reflect.InvocationTargetException
        at java.lang.reflect.Method.invoke(Native Method)
        at androidx.appcompat.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:397)
        at android.view.View.performClick(View.java:6597) 
        at android.view.View.performClickInternal(View.java:6574) 
        at android.view.View.access$3100(View.java:778) 
        at android.view.View$PerformClick.run(View.java:25885) 
        at android.os.Handler.handleCallback(Handler.java:873) 
        at android.os.Handler.dispatchMessage(Handler.java:99) 
        at android.os.Looper.loop(Looper.java:193) 
        at android.app.ActivityThread.main(ActivityThread.java:6669) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) 
     Caused by: java.lang.OutOfMemoryError: Failed to allocate a 2097168 byte allocation with 653792 free bytes and 638KB until OOM, max allowed footprint 16777216, growth limit 16777216
        at com.lunix.testproject.MainActivity.onClickMainBtn(MainActivity.kt:24)
        at java.lang.reflect.Method.invoke(Native Method) 
        at androidx.appcompat.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:397) 
        at android.view.View.performClick(View.java:6597) 
        at android.view.View.performClickInternal(View.java:6574) 
        at android.view.View.access$3100(View.java:778) 
        at android.view.View$PerformClick.run(View.java:25885) 
        at android.os.Handler.handleCallback(Handler.java:873) 
        at android.os.Handler.dispatchMessage(Handler.java:99) 
        at android.os.Looper.loop(Looper.java:193) 
        at android.app.ActivityThread.main(ActivityThread.java:6669) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) 
    
    
    --------- beginning of system
2021-06-22 16:00:58.638 3515-5061/system_process W/ActivityManager:   Force finishing activity com.lunix.testproject/.MainActivity
2021-06-22 16:00:58.645 3515-3541/system_process I/ActivityManager: Showing crash dialog for package com.lunix.testproject u0
2021-06-22 16:00:58.649 3287-3455/? D/AudioFlinger: mixer(0xa5f83a80) throttle end: throttle time(5)
2021-06-22 16:00:58.673 3515-4903/system_process I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
2021-06-22 16:00:58.673 3515-4903/system_process I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
2021-06-22 16:00:58.674 3515-4903/system_process I/OpenGLRenderer: Initialized EGL, version 1.4
2021-06-22 16:00:58.674 3515-4903/system_process D/OpenGLRenderer: Swap behavior 2
2021-06-22 16:00:58.680 3515-4903/system_process D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
2021-06-22 16:00:58.760 3289-3289/? E/Layer: layer [Dim Layer for - mAboveAppWindowsContainers#0] computeScreenBounds - NO PARENT [0, 0, 1920, 1080]
2021-06-22 16:00:58.893 3289-3289/? I/chatty: uid=1000(system) /system/bin/surfaceflinger identical 8 lines
2021-06-22 16:00:58.909 3289-3289/? E/Layer: layer [Dim Layer for - mAboveAppWindowsContainers#0] computeScreenBounds - NO PARENT [0, 0, 1920, 1080]
2021-06-22 16:00:58.917 3790-3790/com.android.phone W/ServiceManagement: Waited one second for [email protected]::IRadio/slot1. Waiting another...
2021-06-22 16:00:58.926 3289-3289/? E/Layer: layer [Dim Layer for - mAboveAppWindowsContainers#0] computeScreenBounds - NO PARENT [0, 0, 1920, 1080]
2021-06-22 16:00:59.139 3515-3540/system_process W/ActivityManager: Activity pause timeout for ActivityRecord{c511c33 u0 com.lunix.testproject/.MainActivity t63 f}

APP runtime exception

2021-06-22 15:47:57.167 6010-6010/com.lunix.testproject D/AndroidRuntime: Shutting down VM
    
    
    --------- beginning of crash
2021-06-22 15:47:57.171 6010-6010/com.lunix.testproject E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.lunix.testproject, PID: 6010
    java.lang.IllegalStateException: Could not execute method for android:onClick
        at androidx.appcompat.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:402)
        at android.view.View.performClick(View.java:6597)
        at android.view.View.performClickInternal(View.java:6574)
        at android.view.View.access$3100(View.java:778)
        at android.view.View$PerformClick.run(View.java:25885)
        at android.os.Handler.handleCallback(Handler.java:873)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:193)
        at android.app.ActivityThread.main(ActivityThread.java:6669)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
     Caused by: java.lang.reflect.InvocationTargetException
        at java.lang.reflect.Method.invoke(Native Method)
        at androidx.appcompat.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:397)
        at android.view.View.performClick(View.java:6597) 
        at android.view.View.performClickInternal(View.java:6574) 
        at android.view.View.access$3100(View.java:778) 
        at android.view.View$PerformClick.run(View.java:25885) 
        at android.os.Handler.handleCallback(Handler.java:873) 
        at android.os.Handler.dispatchMessage(Handler.java:99) 
        at android.os.Looper.loop(Looper.java:193) 
        at android.app.ActivityThread.main(ActivityThread.java:6669) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) 
     Caused by: java.lang.RuntimeException: Test exception!
        at com.lunix.testproject.MainActivity.onClickMainBtn(MainActivity.kt:17)
        at java.lang.reflect.Method.invoke(Native Method) 
        at androidx.appcompat.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:397) 
        at android.view.View.performClick(View.java:6597) 
        at android.view.View.performClickInternal(View.java:6574) 
        at android.view.View.access$3100(View.java:778) 
        at android.view.View$PerformClick.run(View.java:25885) 
        at android.os.Handler.handleCallback(Handler.java:873) 
        at android.os.Handler.dispatchMessage(Handler.java:99) 
        at android.os.Looper.loop(Looper.java:193) 
        at android.app.ActivityThread.main(ActivityThread.java:6669) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) 
2021-06-22 15:47:57.176 3239-5269/? I/audio_hw_subMixingFactory: ++usecase_change_validate_l_sm: dev usecase masks = 0, out usecase_masks = 0, out usecase STREAM_PCM_NORMAL
2021-06-22 15:47:57.176 3239-5269/? I/audio_hw_subMixingFactory: ++++usecase_change_validate_l_sm(),continuous_audio_mode 0 dev usecase masks = 0, out usecase_masks = 0, out usecase STREAM_PCM_NORMAL
2021-06-22 15:47:57.176 3239-5269/? I/audio_hw_subMixingFactory: usecase_change_validate_l_sm(), mixer_aux_buffer_write_sm !
2021-06-22 15:47:57.176 3239-5269/? I/audio_hw_subMixingFactory: ----usecase_change_validate_l_sm(), continuous_audio_mode 0 dev usecase masks = 0x1, out usecase_masks = 0x1, out usecase STREAM_PCM_NORMAL
2021-06-22 15:47:57.176 3239-5269/? I/audio_hw_port: get_input_port_index(), samplerate 48000
2021-06-22 15:47:57.176 3239-5269/? D/audio_hw_port: new_input_port(), index:0, rbuf size:8192, direct_on:0
2021-06-22 15:47:57.176 3239-5269/? D/audio_hw_port: new_input_port(), fmt 0x1, rate 48000
2021-06-22 15:47:57.176 3239-5269/? I/amlaudioMixer: ++init_mixer_input_port port index 0, size 512 frames
2021-06-22 15:47:57.176 3239-5269/? I/amlaudioMixer: init_mixer_input_port(), port->initial_frames: 1926144
2021-06-22 15:47:57.177 3239-5269/? I/audio_hw_port: get_input_port_index(), samplerate 48000
2021-06-22 15:47:57.177 3239-5269/? I/audio_hw_subMixingFactory: mixer_aux_buffer_write_sm(), primary 0xabafd000 port index = 0
2021-06-22 15:47:57.177 3239-5269/? I/audio_hw_subMixingFactory: padding_bytes 16384
2021-06-22 15:47:57.177 3239-5269/? I/amlaudioMixer: port index 0 is active now
2021-06-22 15:47:57.177 3239-5269/? I/audio_hw_subMixingFactory: padding_bytes 14336
2021-06-22 15:47:57.177 3239-3434/? I/amlaudioMixer: [mixer_thread_sleep:421] the thread is awakened
2021-06-22 15:47:57.177 3239-5269/? I/audio_hw_subMixingFactory: padding_bytes 12288
2021-06-22 15:47:57.177 3239-5269/? I/audio_hw_subMixingFactory: padding_bytes 10240
2021-06-22 15:47:57.177 3239-5269/? I/audio_hw_subMixingFactory: padding_bytes 8192
2021-06-22 15:47:57.177 3239-3434/? I/amlaudioMixer: ++mixer_output_startup start open
2021-06-22 15:47:57.177 3239-5269/? I/audio_hw_subMixingFactory: padding_bytes 6144
2021-06-22 15:47:57.177 3239-3434/? I/audio_hw_port: output_port_start(), open ALSA hw:0,1
    
    --------- beginning of system
2021-06-22 15:47:57.181 3493-3945/system_process W/ActivityManager:   Force finishing activity com.lunix.testproject/.MainActivity
2021-06-22 15:47:57.190 3493-3518/system_process I/ActivityManager: Showing crash dialog for package com.lunix.testproject u0
2021-06-22 15:47:57.192 3239-5269/? I/audio_hw_subMixingFactory: padding_bytes 4096
2021-06-22 15:47:57.192 3239-5269/? I/audio_hw_subMixingFactory: padding_bytes 2048
2021-06-22 15:47:57.229 3261-3441/? D/AudioFlinger: mixer(0xa8283200) throttle end: throttle time(5)
2021-06-22 15:47:57.233 3493-4581/system_process I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
2021-06-22 15:47:57.233 3493-4581/system_process I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
2021-06-22 15:47:57.234 3493-4581/system_process I/OpenGLRenderer: Initialized EGL, version 1.4
2021-06-22 15:47:57.234 3493-4581/system_process D/OpenGLRenderer: Swap behavior 2
2021-06-22 15:47:57.241 3493-4581/system_process D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
2021-06-22 15:47:57.340 3264-3264/? E/Layer: layer [Dim Layer for - mAboveAppWindowsContainers#0] computeScreenBounds - NO PARENT [0, 0, 1920, 1080]
2021-06-22 15:47:57.684 3493-3517/system_process W/ActivityManager: Activity pause timeout for ActivityRecord{890c91 u0 com.lunix.testproject/.MainActivity t59 f}

你可能感兴趣的:([Note] 2021-06-22 应用被杀的日志分析)