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

TransactionTooLargeException in "isGooglePlayInstalled" #34

Open
ertanden opened this issue Dec 13, 2014 · 4 comments
Open

TransactionTooLargeException in "isGooglePlayInstalled" #34

ertanden opened this issue Dec 13, 2014 · 4 comments

Comments

@ertanden
Copy link

I have lots of crash reports about "TransactionTooLargeException" in the method isGooglePlayInstalled.

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.goseet.VidTrim/com.goseet.VidTrim.VideoDetails}: java.lang.RuntimeException: Package manager has died
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2245)
       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2299)
       at android.app.ActivityThread.access$700(ActivityThread.java:150)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1280)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loop(Looper.java:137)
       at android.app.ActivityThread.main(ActivityThread.java:5283)
       at java.lang.reflect.Method.invokeNative(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:511)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
       at dalvik.system.NativeStart.main(NativeStart.java)
Caused by: java.lang.RuntimeException: Package manager has died
       at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:99)
       at fr.nicolaspomepuy.discreetapprate.Utils.isGooglePlayInstalled(Utils.java:69)
       at fr.nicolaspomepuy.discreetapprate.AppRate.checkAndShow(AppRate.java:294)
       at com.goseet.VidTrim.VideoDetails.setupActivity(VideoDetails.java:168)
       at com.goseet.VidTrim.VideoDetails.onCreate(VideoDetails.java:73)
       at android.app.Activity.performCreate(Activity.java:5283)
       at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1097)
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2209)
       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2299)
       at android.app.ActivityThread.access$700(ActivityThread.java:150)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1280)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loop(Looper.java:137)
       at android.app.ActivityThread.main(ActivityThread.java:5283)
       at java.lang.reflect.Method.invokeNative(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:511)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
       at dalvik.system.NativeStart.main(NativeStart.java)
Caused by: android.os.TransactionTooLargeException
       at android.os.BinderProxy.transact(Binder.java)
       at android.content.pm.IPackageManager$Stub$Proxy.getPackageInfo(IPackageManager.java:1612)
       at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:94)
       at fr.nicolaspomepuy.discreetapprate.Utils.isGooglePlayInstalled(Utils.java:69)
       at fr.nicolaspomepuy.discreetapprate.AppRate.checkAndShow(AppRate.java:294)
       at com.goseet.VidTrim.VideoDetails.setupActivity(VideoDetails.java:168)
       at com.goseet.VidTrim.VideoDetails.onCreate(VideoDetails.java:73)
       at android.app.Activity.performCreate(Activity.java:5283)
       at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1097)
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2209)
       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2299)
       at android.app.ActivityThread.access$700(ActivityThread.java:150)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1280)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loop(Looper.java:137)
       at android.app.ActivityThread.main(ActivityThread.java:5283)
       at java.lang.reflect.Method.invokeNative(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:511)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
       at dalvik.system.NativeStart.main(NativeStart.java)
@PomepuyN
Copy link
Owner

According to what I've read, this is due to the 1Mb limit that is being reached by the activity listing.
http://stackoverflow.com/questions/24253976/android-package-manager-has-died-with-transactiontoolargeexception

Does it happen for multiple users or just one?

@ertanden
Copy link
Author

Multiple users.

Should be easy to fix with a try catch. If it gives exception, you can assume there's no play store.

@ertanden
Copy link
Author

Any updates on this?

@ertanden
Copy link
Author

ertanden commented Apr 1, 2015

Check pull request #38

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