tajogood / gcm

Automatically exported from code.google.com/p/gcm
Apache License 2.0
0 stars 0 forks source link

Unexpected crash on registration #32

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Calling getRegistrationId will crash on LG-P700 :

java.lang.RuntimeException: Unable to create application 
com.dailymotion.dailymotion.DailymotionApplication: java.lang.RuntimeException: 
Package manager has died
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3958)
    at android.app.ActivityThread.access$1300(ActivityThread.java:123)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1185)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:4464)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:822)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:589)
    at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: Package manager has died
    at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:75)
    at com.google.android.gcm.GCMRegistrar.getAppVersion(GCMRegistrar.java:453)
    at com.google.android.gcm.GCMRegistrar.getRegistrationId(GCMRegistrar.java:335)
    at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:969)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3955)
    ... 10 more
Caused by: android.os.DeadObjectException
    at android.os.BinderProxy.transact(Native Method)
    at android.content.pm.IPackageManager$Stub$Proxy.getPackageInfo(IPackageManager.java:1257)
    at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:70)
    ... 16 more

Original issue reported on code.google.com by guillaum...@gmail.com on 25 Jul 2013 at 5:56

GoogleCodeExporter commented 9 years ago
try to add the registration code...

Original comment by Satish.b...@gmail.com on 7 Aug 2014 at 10:36