DeadSystemException启动服务Android 7 [英] DeadSystemException start service Android 7

查看:601
本文介绍了DeadSystemException启动服务Android 7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在过去的几周中,我遇到了崩溃报告程序:

For the past few weeks, I have on my crash reporter:

Fatal Exception: java.lang.RuntimeException: Unable to start service com.####.MyService@ef705d8 with Intent { act=HIDE cmp=com.####/.MyService (has extras) }: java.lang.RuntimeException: android.os.DeadSystemException
       at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3344)
       at android.app.ActivityThread.-wrap21(ActivityThread.java)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1583)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:154)
       at android.app.ActivityThread.main(ActivityThread.java:6121)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)

此崩溃存在于:


  • 所有三星设备7.0

  • all Samsung devices 7.0

7.1.2上的所有Nexus设备

all Nexus devices on 7.1.2

注意:


  • 这不是由于我们应用程序的最新更新,而是这些手机上的操作系统更新。

  • It is not due to a recent update of our application, just an OS updates on theses phones.

这是非常非常频繁的崩溃(这是迄今为止最大的崩溃)。

It is a very very frequent crashes (by far our biggest).

我们的用户没有报告崩溃(此崩溃是实际上对用户可见?)

Our users don't report crashes than before (is this crash actually visible for the user?)

我们无法在我们这一边进行复制

We are not able to reproduce it on our side

您可以看到堆栈跟踪,受影响的代码仅是系统的。我没有多少办法可以尝试抓住并处理该问题。

As you can see into the stack trace, the code impacted is system only. Not much I can do from my side to try and catch and handle the issue.

我检查了线程 Android DeadSystemException ,但这对我没有多大帮助。

I checked the thread Android DeadSystemException but that doesn't help me much.

我知道 DeadSystemException 是:


核心Android系统已死,正在通过运行时重新启动。所有正在运行的应用都将被立即杀死。

The core Android system has died and is going through a runtime restart. All running apps will be promptly killed.

除了说那是系统,我们不能做任何事情,我们能做些什么吗?

Is there anything we can do but to say "that's system, we cannot do anything"?

推荐答案

在重新启动设备时,您将无法运行应用程序。设备重新启动后,任何应用程序(不仅是您自己的应用程序)都无法运行。当系统崩溃时,您尝试执行某些操作时会发生AFAIK。这意味着如果系统崩溃并在重新启动应用程序时启动了服务或执行了某些操作,则您会收到该错误。

When the device is being restarted, you cannot run an app. Any app, not just yours but any given app cannot run when the device is restarting. AFAIK it occurs when you try to do something when the system crashes. Meaning if the system crashes and as it restarts your app starts a service or does something you get that error.

意味着该异常未连接到您的应用程序,但Android操作系统,您对此无能为力。

Meaning the exception is not connected to your app, but the Android OS and there is nothing you can do about it.

与启动服务有关的崩溃是因为这是您的应用在系统崩溃时所做的事情。

The crash being related to starting a service is because that is what your app did when the system crashed.

因此:错误是系统抛出的错误,因为您的应用在系统执行运行时重新引导时执行了某些操作。您无能为力,因为您无法从应用程序控制Android操作系统。

So: The error is something the system threw because your app did something when the system did a run-time reboot. There is nothing you can do about this, as you cannot control the Android OS from an app.

这篇关于DeadSystemException启动服务Android 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆