我刚从用户那里得到一个奇怪的堆栈跟踪:
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=42, result=-1, data=Intent { dat=content://com.android.providers.media.documents/document/image:87 flg=0x43 }} to activity {org.walleth/org.walleth.activities.ImportActivity}: java.lang.RuntimeException: android.os.TransactionTooLargeException: data parcel size 3483676 bytes
at android.app.ActivityThread.deliverResults(ActivityThread.java:4436)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4479)
at android.app.ActivityThread.-wrap19(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1672)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6759)
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:770)
Caused by: java.lang.RuntimeException: android.os.TransactionTooLargeException: data parcel size 3483676 bytes
at android.view.autofill.AutofillManager.updateSessionLocked(AutofillManager.java:904)
at android.view.autofill.AutofillManager.notifyValueChanged(AutofillManager.java:649)
at android.widget.TextView.notifyAutoFillManagerAfterTextChangedIfNeeded(TextView.java:9657)
at android.widget.TextView.sendAfterTextChanged(TextView.java:9641)
at android.widget.TextView.setText(TextView.java:5651)
at android.widget.TextView.setText(TextView.java:5498)
at android.widget.EditText.setText(EditText.java:113)
at android.widget.TextView.setText(TextView.java:5435)
at org.walleth.activities.ImportActivity.onActivityResult(ImportActivity.kt:192)
at android.app.Activity.dispatchActivityResult(Activity.java:7240)
at android.app.ActivityThread.deliverResults(ActivityThread.java:4432)
... 9 more
Caused by: android.os.TransactionTooLargeException: data parcel size 3483676 bytes
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:766)
at android.view.autofill.IAutoFillManager$Stub$Proxy.updateSession(IAutoFillManager.java:468)
at android.view.autofill.AutofillManager.updateSessionLocked(AutofillManager.java:899)
其他人经历过这个错误,也许找到了一个好的解决方法?我目前唯一的想法是禁用此文本视图的自动填充。