Android throw DeadObjectException:小包裹上的交易失败;远程进程可能只是在HUAWEI Android 8.0.0中死掉了

时间:2018-04-11 04:59:57

标签: java android exception android-binder deadobjectexception

1804-11 09:43:24.482 22968 22968 E CrashHandler: In thread: Thread[main,5,main]
1904-11 09:43:24.482 22968 22968 E CrashHandler: UncaughtException detected: java.lang.IllegalStateException: Failure reading AssistStructure data: android.os.DeadObjectException: Transaction failed on small parcel; remote process probably died
2004-11 09:43:24.482 22968 22968 E CrashHandler: at android.os.Parcel.readException(Parcel.java:1953)
2104-11 09:43:24.482 22968 22968 E CrashHandler: at android.os.Parcel.readException(Parcel.java:1891)
2204-11 09:43:24.482 22968 22968 E CrashHandler: at android.app.IActivityManager$Stub$Proxy.reportAssistContextExtras(IActivityManager.java:7637)
2304-11 09:43:24.482 22968 22968 E CrashHandler: at android.app.ActivityThread.handleRequestAssistContextExtras(ActivityThread.java:3483)
2404-11 09:43:24.482 22968 22968 E CrashHandler: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2125)
2504-11 09:43:24.482 22968 22968 E CrashHandler: at android.os.Handler.dispatchMessage(Handler.java:108)
2604-11 09:43:24.482 22968 22968 E CrashHandler: at android.os.Looper.loop(Looper.java:166)
2704-11 09:43:24.482 22968 22968 E CrashHandler: at android.app.ActivityThread.main(ActivityThread.java:7406)
2804-11 09:43:24.482 22968 22968 E CrashHandler: at java.lang.reflect.Method.invoke(Native Method)
2904-11 09:43:24.482 22968 22968 E CrashHandler: at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
3004-11 09:43:24.482 22968 22968 E CrashHandler: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:926)

崩溃前有许多相同的日志。

06-09 16:14:11.765 22033 22033 I AssistStructure: Flattened final assist data: 18020 bytes, containing 1 windows, 90 views
206-09 16:14:11.780 22033 22033 W View : dispatchProvideAutofillStructure(): not laid out, ignoring
306-09 16:14:11.783 22033 22033 W View : dispatchProvideAutofillStructure(): not laid out, ignoring
406-09 16:14:11.789 22033 22033 I AssistStructure: Flattened final assist data: 18020 bytes, containing 1 windows, 90 views
506-09 16:14:11.794 22033 22033 W View : dispatchProvideAutofillStructure(): not laid out, ignoring
606-09 16:14:11.796 22033 22033 W View : dispatchProvideAutofillStructure(): not laid out, ignoring
706-09 16:14:11.799 22033 22033 I AssistStructure: Flattened final assist data: 18020 bytes, containing 1 windows, 90 views
806-09 16:14:11.809 22033 22033 W View : dispatchProvideAutofillStructure(): not laid out, ignoring
906-09 16:14:11.811 22033 22033 W View : dispatchProvideAutofillStructure(): not laid out, ignoring
1006-09 16:14:11.815 22033 22033 I AssistStructure: Flattened final assist data: 18020 bytes, containing 1 windows, 90 views
1106-09 16:14:11.824 22033 22033 W View : dispatchProvideAutofillStructure(): not laid out, ignoring
1206-09 16:14:11.826 22033 22033 W View : dispatchProvideAutofillStructure(): not laid out, ignoring
1306-09 16:14:11.830 22033 22033 I AssistStructure: Flattened final assist data: 18020 bytes, containing 1 windows, 90 views
1406-09 16:14:11.840 22033 22033 W View : dispatchProvideAutofillStructure(): not laid out, ignoring
1506-09 16:14:11.842 22033 22033 W View : dispatchProvideAutofillStructure(): not laid out, ignoring
1606-09 16:14:11.845 22033 22033 I AssistStructure: Flattened final assist data: 18020 bytes, containing 1 windows, 90 views
1706-09 16:14:11.855 22033 22033 W View : dispatchProvideAutofillStructure(): not laid out, ignoring
1806-09 16:14:11.856 22033 22033 W View : dispatchProvideAutofillStructure(): not laid out, ignoring
1906-09 16:14:11.857 22033 22033 I AssistStructure: Flattened final assist data: 18020 bytes, containing 1 windows, 90 views
2006-09 16:14:11.871 22033 22033 W View : dispatchProvideAutofillStructure(): not laid out, ignoring
2106-09 16:14:11.873 22033 22033 W View : dispatchProvideAutofillStructure(): not laid out, ignoring
2206-09 16:14:11.876 22033 22033 I AssistStructure: Flattened final assist data: 18020 bytes, containing 1 windows, 90 views
2306-09 16:14:11.890 22033 22033 W View : dispatchProvideAutofillStructure(): not laid out, ignoring
2406-09 16:14:11.891 22033 22033 W View : dispatchProvideAutofillStructure(): not laid out, ignoring
2506-09 16:14:11.894 22033 22033 I AssistStructure: Flattened final assist data: 18020 bytes, containing 1 windows, 90 views
2606-09 16:14:11.906 22033 22033 W View : dispatchProvideAutofillStructure(): not laid out, ignoring
2706-09 16:14:11.908 22033 22033 W View : dispatchProvideAutofillStructure(): not laid out, ignoring
2806-09 16:14:11.910 22033 22033 I AssistStructure: Flattened final assist data: 18020 bytes, containing 1 windows, 90 views
2906-09 16:14:11.923 22033 22033 W View : dispatchProvideAutofillStructure(): not laid out, ignoring
3006-09 16:14:11.925 22033 22033 W View : dispatchProvideAutofillStructure(): not laid out, ignoring
3106-09 16:14:11.929 22033 22033 I AssistStructure: Flattened final assist data: 18020 bytes, containing 1 windows, 90 views
3206-09 16:14:11.941 22033 22033 W View : dispatchProvideAutofillStructure(): not laid out, ignoring
3306-09 16:14:11.943 22033 22033 W View : dispatchProvideAutofillStructure(): not laid out, ignoring
3406-09 16:14:11.946 22033 22033 I AssistStructure: Flattened final assist data: 18020 bytes, containing 1 windows, 90 views
3506-09 16:14:11.959 22033 22033 W View : dispatchProvideAutofillStructure(): not laid out, ignoring
3606-09 16:14:11.961 22033 22033 W View : dispatchProvideAutofillStructure(): not laid out, ignoring
3706-09 16:14:11.966 22033 22033 I AssistStructure: Flattened final assist data: 18020 bytes, containing 1 windows, 90 views
3806-09 16:14:11.977 22033 22033 W View : dispatchProvideAutofillStructure(): not laid out, ignoring
3906-09 16:14:11.979 22033 22033 W View : dispatchProvideAutofillStructure(): not laid out, ignoring
4006-09 16:14:11.983 22033 22033 I AssistStructure: Flattened final assist data: 18020 bytes, containing 1 windows, 90 views
4106-09 16:14:11.993 22033 22033 W View : dispatchProvideAutofillStructure(): not laid out, ignoring
4206-09 16:14:11.994 22033 22033 W View : dispatchProvideAutofillStructure(): not laid out, ignoring
4306-09 16:14:11.995 22033 22033 W View : dispatchProvideAutofillStructure(): not laid out, ignoring
4406-09 16:14:11.996 22033 22033 W View : dispatchProvideAutofillStructure(): not laid out, ignoring
4506-09 16:14:11.996 22033 22033 W View : dispatchProvideAutofillStructure(): not laid out, ignoring

应用程序中有一个ActivityB,任何跳转到此ActivityB的Activity都会抛出此异常在某些情况下,只是在跳转到此ActivityB 时发生,并且仅在华为Android 8.0.0

我找到了类似的question,但它并不适用于我。

我尝试使用 EventBus 在Activity之间传输捆绑,但它仍会抛出异常在某些情况下,只是发生在华为Android 8.0.0

我无法通过测试反复出现此异常。我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

最后,我将hardwareAccelerated设置为false,此解决方案可以避免崩溃,但是我仍然不知道崩溃的原因。

<activity
        android:hardwareAccelerated="false"
</activity>