2013-07-04 60 views
1

我有我的應用程序工作正常了幾個小時,然後出藍色我得到這個消息,並在手機關機的:Android操作系統關閉 - 錯誤報告WTF

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線。我不知道這是怎麼回事,因爲我的應用程序看起來不參與,並且在致命錯誤發生時沒有做任何事情。

回答

1

DeadObjectException被拋出時:

您呼叫的對象已經死亡,因爲它的託管過程中沒有 不復存在。

您是否綁定了應用程序中的服務? 文檔說:

你應該總是陷阱DeadObjectException例外,這是 當連接斷開拋出。這是遠程方法拋出的唯一異常 。

在這個特定的上下文中,「連接」是指服務連接。

+0

謝謝你的回答!不,我沒有在我的應用程序中使用任何服務,根據你所說的,在我的情況下,我要做的事情是Powermanager和BluetoothAdapter ..但它們是系統對象:s!他們怎麼會死? –