更新widger 导致widget host(home) 挂掉

 发送大量intent 更新 widget 会导致 home app 挂掉

2020-05-10 17:18:12.892 1716-1716/system_process I/IPCThreadState: BR_FAILED_REPLY received from Binder driver. err=-2147483646
2020-05-10 17:18:12.892 1716-1716/system_process E/JavaBinder: !!! FAILED BINDER TRANSACTION !!!  (parcel size = 1852)
2020-05-10 17:18:12.893 1716-1716/system_process E/AppWidgetServiceImpl: Widget host dead: HostId{user:0, app:10073, hostId:171808569, pkg:com.sonymobile.home}
    android.os.DeadObjectException: Transaction failed on small parcel; remote process probably died
        at android.os.BinderProxy.transactNative(Native Method)
        at android.os.BinderProxy.transact(Binder.java:748)
        at com.android.internal.appwidget.IAppWidgetHost$Stub$Proxy.updateAppWidget(IAppWidgetHost.java:123)
        at com.android.server.appwidget.AppWidgetServiceImpl.handleNotifyUpdateAppWidget(AppWidgetServiceImpl.java:2064)
        at com.android.server.appwidget.AppWidgetServiceImpl.-wrap10(Unknown Source:0)
        at com.android.server.appwidget.AppWidgetServiceImpl$CallbackHandler.handleMessage(AppWidgetServiceImpl.java:3602)
        at android.os.Handler.dispatchMessage(Handler.java:105)
        at android.os.Looper.loop(Looper.java:255)
        at com.android.server.SystemServer.run(SystemServer.java:455)
        at com.android.server.SystemServer.main(SystemServer.java:281)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)

 

你可能感兴趣的:(Android)