我已经搜索了此日志,但是我看到的所有内容都只是警告。在某些背景下,这不会在Oreo上崩溃,但会在Pie上崩溃。我不知道什么广播可能会导致它。
我在我称为“ sendBroadcast”的每个位置都放置了断点,并可以确认崩溃是在从应用发送任何广播之前发生的。
如果您需要任何班级的任何代码,请告诉我,我会立即进行整理
有人知道为什么这会在Pie上崩溃吗?
2019-01-03 09:18:09.043 879-1094/? W/ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1023 com.android.server.am.AppStateBroadcaster.broadcastAppState:125 com.android.server.am.AppStateBroadcaster.sendApplicationFocusGain:49 com.android.server.am.OnePlusAmUtil$OnePlusActivityManagerService$1.run:346 android.os.Handler.handleCallback:873
2019-01-03 09:18:09.043 879-6821/? I/ActivityManager: Process com.android.chrome:sandboxed_process0 (pid 31022) has died: fore SVC
2019-01-03 09:18:09.043 1959-1959/? D/QcrilMsgTunnelIfaceManager: handleMessage what = 1
2019-01-03 09:18:09.043 1801-1801/? I/Zygote: Process 31022 exited cleanly (0)
2019-01-03 09:18:09.046 1959-1959/? I/QcrilOemhookMsgTunnel: [0]invokeOemRilRequestRaw: serial=4446 length=24
2019-01-03 09:18:09.047 879-1094/? E/ActivityManager: Sending non-protected broadcast diagandroid.app.ApplicationState from system 879:system/1000 pkg android
java.lang.Throwable
at com.android.server.am.ActivityManagerService.checkBroadcastFromSystem(ActivityManagerService.java:23205)
at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:23790)
at com.android.server.am.ActivityManagerService.broadcastIntent(ActivityManagerService.java:24025)
at android.app.ContextImpl.sendBroadcast(ContextImpl.java:1029)
at com.android.server.am.AppStateBroadcaster.broadcastAppState(AppStateBroadcaster.java:125)
at com.android.server.am.AppStateBroadcaster.sendApplicationFocusGain(AppStateBroadcaster.java:49)
at com.android.server.am.OnePlusAmUtil$OnePlusActivityManagerService$1.run(OnePlusAmUtil.java:346)
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.os.HandlerThread.run(HandlerThread.java:65)
at com.android.server.ServiceThread.run(ServiceThread.java:44)
答案 0 :(得分:1)
有时,您会看到在Logcat中打印的与您的应用程序无关的堆栈跟踪。要找出导致您的崩溃的原因,请搜索“ FATAL”一词。通常,这将导致您导致应用程序崩溃的实际原因。