THEONE10211024/ApiDemos

app启动后闪退,然后抛出TransactionTooLargeException异常.楼主有遇到过同样问题吗?

RunningShadow-007 opened this issue · 1 comments

07-01 12:53:54.463 13027-13027/? I/art: Late-enabling -Xcheck:jni 07-01 12:53:54.492 13027-13027/? D/TidaProvider: TidaProvider() 07-01 12:53:54.532 13027-13027/com.example.android.apis V/SettingsInterface: invalidate [system]: current 912 != cached 0 07-01 12:53:54.533 13027-13027/com.example.android.apis D/ActivityThread: hoder:android.app.IActivityManager$ContentProviderHolder@3eba0787,provider,holder.Provider:android.content.ContentProviderProxy@3cea86b4 07-01 12:53:54.662 13027-13027/com.example.android.apis I/art: Open dexFile: /data/app/com.example.android.apis-1/split_lib_dependencies_apk.apk, Fallback to original dex file with InterpretOnly 07-01 12:53:54.670 13027-13027/com.example.android.apis I/art: Open dexFile: /data/app/com.example.android.apis-1/split_lib_slice_0_apk.apk, Fallback to original dex file with InterpretOnly 07-01 12:53:54.739 13027-13027/com.example.android.apis I/art: Open dexFile: /data/app/com.example.android.apis-1/split_lib_slice_1_apk.apk, Fallback to original dex file with InterpretOnly 07-01 12:53:54.748 13027-13027/com.example.android.apis I/art: Open dexFile: /data/app/com.example.android.apis-1/split_lib_slice_2_apk.apk, Fallback to original dex file with InterpretOnly 07-01 12:53:54.754 13027-13027/com.example.android.apis I/art: Open dexFile: /data/app/com.example.android.apis-1/split_lib_slice_3_apk.apk, Fallback to original dex file with InterpretOnly 07-01 12:53:54.762 13027-13027/com.example.android.apis I/art: Open dexFile: /data/app/com.example.android.apis-1/split_lib_slice_4_apk.apk, Fallback to original dex file with InterpretOnly 07-01 12:53:54.772 13027-13027/com.example.android.apis I/art: Open dexFile: /data/app/com.example.android.apis-1/split_lib_slice_5_apk.apk, Fallback to original dex file with InterpretOnly 07-01 12:53:54.788 13027-13027/com.example.android.apis I/art: Open dexFile: /data/app/com.example.android.apis-1/split_lib_slice_6_apk.apk, Fallback to original dex file with InterpretOnly 07-01 12:53:54.790 13027-13027/com.example.android.apis I/art: Open dexFile: /data/app/com.example.android.apis-1/split_lib_slice_7_apk.apk, Fallback to original dex file with InterpretOnly 07-01 12:53:54.791 13027-13027/com.example.android.apis I/art: Open dexFile: /data/app/com.example.android.apis-1/split_lib_slice_8_apk.apk, Fallback to original dex file with InterpretOnly 07-01 12:53:54.817 13027-13027/com.example.android.apis I/art: Open dexFile: /data/app/com.example.android.apis-1/split_lib_slice_9_apk.apk, Fallback to original dex file with InterpretOnly 07-01 12:53:54.825 13027-13027/com.example.android.apis D/ActivityThread: installProvider: context.getPackageName()=com.example.android.apis 07-01 12:53:54.830 13027-13027/com.example.android.apis D/ActivityThread: installProvider: context.getPackageName()=com.example.android.apis 07-01 12:53:54.834 13027-13027/com.example.android.apis D/ActivityThread: installProvider: context.getPackageName()=com.example.android.apis 07-01 12:53:54.837 13027-13027/com.example.android.apis I/InstantRun: starting instant run server: is main process 07-01 12:53:54.839 13027-13027/com.example.android.apis D/ActivityThread: installProvider: context.getPackageName()=com.example.android.apis 07-01 12:53:54.842 13027-13027/com.example.android.apis D/ActivityThread: installProvider: context.getPackageName()=com.example.android.apis 07-01 12:53:54.869 13027-13027/com.example.android.apis V/ActivityThread: Handling launch of ActivityRecord{1832607f token=android.os.BinderProxy@813f84c {com.example.android.apis/com.example.android.apis.ApiDemos}} 07-01 12:53:54.887 13027-13027/com.example.android.apis V/ActivityThread: ActivityRecord{1832607f token=android.os.BinderProxy@813f84c {com.example.android.apis/com.example.android.apis.ApiDemos}}: app=com.example.android.apis.ApiDemosApplication@1f82a5aa, appName=com.example.android.apis, pkg=com.example.android.apis, comp={com.example.android.apis/com.example.android.apis.ApiDemos}, dir=/data/app/com.example.android.apis-1/base.apk 07-01 12:53:54.908 13027-13027/com.example.android.apis D/ApiDemos: ╔════════════════════════════════════════════════════════════════════════════════════════ 07-01 12:53:54.909 13027-13027/com.example.android.apis D/ApiDemos: ║ Thread: main 07-01 12:53:54.909 13027-13027/com.example.android.apis D/ApiDemos: ╟──────────────────────────────────────────────────────────────────────────────────────── 07-01 12:53:54.909 13027-13027/com.example.android.apis D/ApiDemos: ║ Activity.performCreate (Activity.java:6034) 07-01 12:53:54.909 13027-13027/com.example.android.apis D/ApiDemos: ║ ApiDemos.onCreate (ApiDemos.java:49) 07-01 12:53:54.909 13027-13027/com.example.android.apis D/ApiDemos: ╟──────────────────────────────────────────────────────────────────────────────────────── 07-01 12:53:54.909 13027-13027/com.example.android.apis D/ApiDemos: ║ apidemos onCreate path == 07-01 12:53:54.909 13027-13027/com.example.android.apis D/ApiDemos: ╚════════════════════════════════════════════════════════════════════════════════════════ 07-01 12:53:54.911 13027-13189/com.example.android.apis W/ResourcesManager: Asset path '/system/framework/gson.jar' does not exist or contains no resources. 07-01 12:53:54.911 13027-13189/com.example.android.apis W/ResourcesManager: Asset path '/system/framework/volley.jar' does not exist or contains no resources. 07-01 12:53:54.941 13027-13027/com.example.android.apis E/JavaBinder: !!! FAILED BINDER TRANSACTION !!! 07-01 12:53:54.941 13027-13027/com.example.android.apis D/AndroidRuntime: Shutting down VM 07-01 12:53:54.942 13027-13027/com.example.android.apis E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.android.apis, PID: 13027 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.android.apis/com.example.android.apis.ApiDemos}: java.lang.RuntimeException: Package manager has died at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2470) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2532) at android.app.ActivityThread.access$900(ActivityThread.java:169) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1421) at android.os.Handler.dispatchMessage(Handler.java:111) at android.os.Looper.loop(Looper.java:194) at android.app.ActivityThread.main(ActivityThread.java:5562) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:968) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:763) Caused by: java.lang.RuntimeException: Package manager has died at android.app.ApplicationPackageManager.queryIntentActivitiesAsUser(ApplicationPackageManager.java:576) at android.app.ApplicationPackageManager.queryIntentActivities(ApplicationPackageManager.java:562) at com.example.android.apis.ApiDemos.getData(ApiDemos.java:72) at com.example.android.apis.ApiDemos.onCreate(ApiDemos.java:51) at android.app.Activity.performCreate(Activity.java:6034) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1111) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2423) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2532)  at android.app.ActivityThread.access$900(ActivityThread.java:169)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1421)  at android.os.Handler.dispatchMessage(Handler.java:111)  at android.os.Looper.loop(Looper.java:194)  at android.app.ActivityThread.main(ActivityThread.java:5562)  at java.lang.reflect.Method.invoke(Native Method)  at java.lang.reflect.Method.invoke(Method.java:372)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:968)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:763)  Caused by: android.os.TransactionTooLargeException at android.os.BinderProxy.transactNative(Native Method) at android.os.BinderProxy.transact(Binder.java:504) at android.content.pm.IPackageManager$Stub$Proxy.queryIntentActivities(IPackageManager.java:2514) at android.app.ApplicationPackageManager.queryIntentActivitiesAsUser(ApplicationPackageManager.java:570) at android.app.ApplicationPackageManager.queryIntentActivities(ApplicationPackageManager.java:562)  at com.example.android.apis.ApiDemos.getData(ApiDemos.java:72)  at com.example.android.apis.ApiDemos.onCreate(ApiDemos.java:51)  at android.app.Activity.performCreate(Activity.java:6034)  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1111)  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2423)  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2532)  at android.app.ActivityThread.access$900(ActivityThread.java:169)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1421)  at android.os.Handler.dispatchMessage(Handler.java:111)  at android.os.Looper.loop(Looper.java:194)  at android.app.ActivityThread.main(ActivityThread.java:5562)  at java.lang.reflect.Method.invoke(Native Method)  at java.lang.reflect.Method.invoke(Method.java:372)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:968)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:763)  07-01 12:53:54.951 13027-13027/com.example.android.apis I/Process: Sending signal. PID: 13027 SIG: 9

传递的数据太大了,具体可以看看com.example.android.apis.ApiDemos.getData(ApiDemos.java:72)这行代码里传递的数据量是多少