gpt4 book ai didi

Android 操作系统关闭 - 错误报告 WTF

转载 作者:行者123 更新时间:2023-11-30 03:31:06 25 4
gpt4 key购买 nike

我让我的应用程序正常工作了几个小时,然后我突然收到这条消息,手机关机了:

    07-04 16:39:01.974: E/AndroidRuntime(12188): Error reporting WTF
07-04 16:39:01.974: E/AndroidRuntime(12188): android.os.DeadObjectException
07-04 16:39:01.974: E/AndroidRuntime(12188): at android.os.BinderProxy.transact(Native Method)
07-04 16:39:01.974: E/AndroidRuntime(12188): at android.app.ActivityManagerProxy.handleApplicationWtf(ActivityManagerNative.java:3287)
07-04 16:39:01.974: E/AndroidRuntime(12188): at com.android.internal.os.RuntimeInit.wtf(RuntimeInit.java:331)
07-04 16:39:01.974: E/AndroidRuntime(12188): at android.util.Log$1.onTerribleFailure(Log.java:105)
07-04 16:39:01.974: E/AndroidRuntime(12188): at android.util.Log.wtf(Log.java:359)
07-04 16:39:01.974: E/AndroidRuntime(12188): at android.util.Log.wtf(Log.java:336)
07-04 16:39:01.974: E/AndroidRuntime(12188): at android.os.PowerManager$WakeLock.finalize(PowerManager.java:414)
07-04 16:39:01.974: E/AndroidRuntime(12188): at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:186)
07-04 16:39:01.974: E/AndroidRuntime(12188): at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:169)
07-04 16:39:01.974: E/AndroidRuntime(12188): at java.lang.Thread.run(Thread.java:856)
07-04 16:39:01.974: E/AndroidRuntime(12188): --------- beginning of /dev/log/main
07-04 16:39:02.089: E/BluetoothAdapter(12188): android.os.DeadObjectException
07-04 16:39:02.089: E/BluetoothAdapter(12188): at android.os.BinderProxy.transact(Native Method)
07-04 16:39:02.089: E/BluetoothAdapter(12188): at android.bluetooth.IBluetooth$Stub$Proxy.getBluetoothState(IBluetooth.java:1297)
07-04 16:39:02.089: E/BluetoothAdapter(12188): at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:476)
07-04 16:39:02.089: E/BluetoothAdapter(12188): at android.bluetooth.BluetoothAdapter.isDiscovering(BluetoothAdapter.java:852)
07-04 16:39:02.089: E/BluetoothAdapter(12188): at com.vittorio.floaty.ScannerManager.run(ScannerManager.java:43)
07-04 16:39:02.089: E/BluetoothAdapter(12188): at java.lang.Thread.run(Thread.java:856)

在 logcat 中重复了大约 500 行。我也不知道那是什么,因为我的应用程序看起来没有参与,并且在发生 fatal error 时没有做任何事情。

最佳答案

DeadObjectException 在以下情况下抛出:

The object you are calling has died, because its hosting process no longer exists.

您是否绑定(bind)到应用中的服务?文档说:

You should always trap DeadObjectException exceptions, which are thrown when the connection has broken. This is the only exception thrown by remote methods.

在此特定上下文中,“连接”指的是服务连接。

关于Android 操作系统关闭 - 错误报告 WTF,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17473319/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com