我让我的应用程序正常工作了几个小时,然后我突然收到了这条消息,手机关机了:
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 行。我也不知道那是怎么回事,因为我的应用程序看起来没有参与,并且在发生致命错误时没有做任何事情。