Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android.os.TransactionTooLargeException: data parcel size 2600612 bytes #150

Open
IdioticMadman opened this issue Dec 28, 2021 · 3 comments

Comments

@IdioticMadman
Copy link

2021-12-28 11:42:38.574 2527-2527/com.jeremyliao.livedatabus W/System.err: java.lang.RuntimeException: android.os.TransactionTooLargeException: data parcel size 2600612 bytes
2021-12-28 11:42:38.574 2527-2527/com.jeremyliao.livedatabus W/System.err: at android.app.ContextImpl.sendBroadcast(ContextImpl.java:1131)
2021-12-28 11:42:38.574 2527-2527/com.jeremyliao.livedatabus W/System.err: at android.content.ContextWrapper.sendBroadcast(ContextWrapper.java:468)
2021-12-28 11:42:38.574 2527-2527/com.jeremyliao.livedatabus W/System.err: at com.jeremyliao.liveeventbus.core.LiveEventBusCore$LiveEvent.broadcastInternal(LiveEventBusCore.java:383)
2021-12-28 11:42:38.574 2527-2527/com.jeremyliao.livedatabus W/System.err: at com.jeremyliao.liveeventbus.core.LiveEventBusCore$LiveEvent.broadcast(LiveEventBusCore.java:244)
2021-12-28 11:42:38.574 2527-2527/com.jeremyliao.livedatabus W/System.err: at com.jeremyliao.liveeventbus.core.LiveEventBusCore$LiveEvent.postAcrossApp(LiveEventBusCore.java:183)
2021-12-28 11:42:38.574 2527-2527/com.jeremyliao.livedatabus W/System.err: at com.jeremyliao.lebapp.LiveEventBusDemo.testBroadcast(LiveEventBusDemo.java:232)
2021-12-28 11:42:38.574 2527-2527/com.jeremyliao.livedatabus W/System.err: at com.jeremyliao.lebapp.databinding.ActivityLiveDataBusDemoBindingImpl._internalCallbackOnClick(ActivityLiveDataBusDemoBindingImpl.java:321)
2021-12-28 11:42:38.574 2527-2527/com.jeremyliao.livedatabus W/System.err: at com.jeremyliao.lebapp.generated.callback.OnClickListener.onClick(OnClickListener.java:11)
2021-12-28 11:42:38.574 2527-2527/com.jeremyliao.livedatabus W/System.err: at android.view.View.performClick(View.java:7520)
2021-12-28 11:42:38.574 2527-2527/com.jeremyliao.livedatabus W/System.err: at android.view.View.performClickInternal(View.java:7489)
2021-12-28 11:42:38.574 2527-2527/com.jeremyliao.livedatabus W/System.err: at android.view.View.access$3600(View.java:826)
2021-12-28 11:42:38.574 2527-2527/com.jeremyliao.livedatabus W/System.err: at android.view.View$PerformClick.run(View.java:28555)
2021-12-28 11:42:38.574 2527-2527/com.jeremyliao.livedatabus W/System.err: at android.os.Handler.handleCallback(Handler.java:938)
2021-12-28 11:42:38.574 2527-2527/com.jeremyliao.livedatabus W/System.err: at android.os.Handler.dispatchMessage(Handler.java:99)
2021-12-28 11:42:38.574 2527-2527/com.jeremyliao.livedatabus W/System.err: at android.os.Looper.loop(Looper.java:233)
2021-12-28 11:42:38.574 2527-2527/com.jeremyliao.livedatabus W/System.err: at android.app.ActivityThread.main(ActivityThread.java:8010)
2021-12-28 11:42:38.574 2527-2527/com.jeremyliao.livedatabus W/System.err: at java.lang.reflect.Method.invoke(Native Method)
2021-12-28 11:42:38.574 2527-2527/com.jeremyliao.livedatabus W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:631)
2021-12-28 11:42:38.574 2527-2527/com.jeremyliao.livedatabus W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:978)
2021-12-28 11:42:38.574 2527-2527/com.jeremyliao.livedatabus W/System.err: Caused by: android.os.TransactionTooLargeException: data parcel size 2600612 bytes
2021-12-28 11:42:38.574 2527-2527/com.jeremyliao.livedatabus W/System.err: at android.os.BinderProxy.transactNative(Native Method)
2021-12-28 11:42:38.574 2527-2527/com.jeremyliao.livedatabus W/System.err: at android.os.BinderProxy.transact(BinderProxy.java:591)
2021-12-28 11:42:38.574 2527-2527/com.jeremyliao.livedatabus W/System.err: at android.app.IActivityManager$Stub$Proxy.broadcastIntentWithFeature(IActivityManager.java:5680)
2021-12-28 11:42:38.575 2527-2527/com.jeremyliao.livedatabus W/System.err: at android.app.ContextImpl.sendBroadcast(ContextImpl.java:1126)
2021-12-28 11:42:38.575 2527-2527/com.jeremyliao.livedatabus W/System.err: ... 18 more

@wanxiasijin
Copy link

明显跨进程你传输数据大于1M了

@IdioticMadman
Copy link
Author

@wanxiasijin 这个不支持大数据跨进程么?

@wanxiasijin
Copy link

肯定不支持啊
原理binder机制的 要大数据需要匿名共享内存

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants