playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.45k stars 962 forks source link

Achievements issue after updating Google Play Services #303

Closed kordsl closed 9 years ago

kordsl commented 9 years ago

Hi.

I implemented the plugin and it worked fine. After some time my google play services were updated from 6.1.88 036 to a later version (I've tried several and all of them had this issue, the latest one = 6.5.87 036 too). The issue is when I call showAchievementsUI the game starts to load it and right after the background appears it goes to the android desktop. The application doesn't crash, it's still working and most of the times when I reopen the app - it has the achievements loaded. I've tried downloading a random app with achievements made with this plugin and I encountered the same issue so it doesn't seem to be connected to my implementation. I've tried removing cache, data, etc. from both gps and my game, it didn't help. Reinstalling them didn't help either. Has anyone else encountered this issue?

Just to let you know - I tested this on Xiaomi redmi 1S.

EDIT: It seems like it might be connected to this: http://www.reddit.com/r/androiddev/comments/2nmhlz/google_play_services_6587_crashing_my_game/

hutchjl commented 9 years ago

Hi,

Yes we're seeing the same thing. I can reproduce it with a minimal example that just authenticates and then shows achievements. I've found several other reports of what looks like the same thing, and reproduced it in well-known titles (including CSR Racing) on the store.

Anyone looking at these issues?

sebastianulm commented 9 years ago

Same here. logcat spits out the same stack trace in all apps i've tried so far.

Here is the one from Clash of Clans, though:

E/AndroidRuntime( 4804): FATAL EXCEPTION: main E/AndroidRuntime( 4804): Process: com.google.android.gms.ui, PID: 4804 E/AndroidRuntime( 4804): java.lang.NullPointerException E/AndroidRuntime( 4804): at com.google.android.play.a.a.a(SourceFile:128) E/AndroidRuntime( 4804): at com.google.android.gms.games.ui.cp.run(SourceFile:45) E/AndroidRuntime( 4804): at com.google.android.gms.games.ui.co.a(SourceFile:51) E/AndroidRuntime( 4804): at android.support.v7.widget.br.run(SourceFile:248) E/AndroidRuntime( 4804): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761) E/AndroidRuntime( 4804): at android.view.Choreographer.doCallbacks(Choreographer.java:574) E/AndroidRuntime( 4804): at android.view.Choreographer.doFrame(Choreographer.java:543) E/AndroidRuntime( 4804): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747) E/AndroidRuntime( 4804): at android.os.Handler.handleCallback(Handler.java:733) E/AndroidRuntime( 4804): at android.os.Handler.dispatchMessage(Handler.java:95) E/AndroidRuntime( 4804): at android.os.Looper.loop(Looper.java:136) E/AndroidRuntime( 4804): at android.app.ActivityThread.main(ActivityThread.java:5086) E/AndroidRuntime( 4804): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 4804): at java.lang.reflect.Method.invoke(Method.java:515) E/AndroidRuntime( 4804): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) E/AndroidRuntime( 4804): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) E/AndroidRuntime( 4804): at dalvik.system.NativeStart.main(Native Method) W/ActivityManager( 1022): Force finishing activity com.google.android.gms/.games.ui.client.achievements.ClientAchievementListActivity W/ContextImpl( 1259): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1252 android.content.ContextWrapper.sendBroadcast:365 com.motorola.motocare.util.TriggerHelper$TriggerBuilder.send:76 com.motorola.motocare.internal.frameworkevents.PauseResumeTrigger.handleFrameworkEvent:53 com.motorola.motocare.internal.frameworkevents.FwEventMonitor$FrameworkListener.processFrameworkEvent:114 W/ActivityManager( 1022): Force finishing activity com.supercell.clashofclans/.GameApp

Good luck.

YashpalJavia commented 9 years ago

I have a same problem. It happens only sometime. when I open Achievements app crash and cast following logs

W/dalvikvm(3807): threadid=1: thread exiting with uncaught exception (group=0x415abba8) E/AndroidRuntime(3807): FATAL EXCEPTION: main E/AndroidRuntime(3807): Process: com.google.android.gms.ui, PID: 3807 E/AndroidRuntime(3807): java.lang.NullPointerException E/AndroidRuntime(3807): at com.google.android.play.a.a.a(SourceFile:128) E/AndroidRuntime(3807): at com.google.android.gms.games.ui.cp.run(SourceFile:45) E/AndroidRuntime(3807): at com.google.android.gms.games.ui.co.a(SourceFile:51) E/AndroidRuntime(3807): at android.support.v7.widget.br.run(SourceFile:248) E/AndroidRuntime(3807): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761) E/AndroidRuntime(3807): at android.view.Choreographer.doCallbacks(Choreographer.java:574) E/AndroidRuntime(3807): at android.view.Choreographer.doFrame(Choreographer.java:543) E/AndroidRuntime(3807): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747) E/AndroidRuntime(3807): at android.os.Handler.handleCallback(Handler.java:733) E/AndroidRuntime(3807): at android.os.Handler.dispatchMessage(Handler.java:95) E/AndroidRuntime(3807): at android.os.Looper.loop(Looper.java:136) E/AndroidRuntime(3807): at android.app.ActivityThread.main(ActivityThread.java:5001) E/AndroidRuntime(3807): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(3807): at java.lang.reflect.Method.invoke(Method.java:515) E/AndroidRuntime(3807): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) E/AndroidRuntime(3807): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) E/AndroidRuntime(3807): at dalvik.system.NativeStart.main(Native Method) W/ActivityManager(571): Force finishing activity com.google.android.gms/.games.ui.client.achievements.ClientAchievementListActivity

Did you find any solution?

ToddKerpelman commented 9 years ago

Sorry for the delay, folks. We're looking into it; this probably an issue with GMSCore and not the Unity plugin itself. Tracking internally as 18899108

ToddKerpelman commented 9 years ago

Hey, all. Okay, I've confirmed this is an issue with GMSCore and the team has a fix that will go out with the next Play Services update. No action will be required on your end.

tivee commented 9 years ago

Thank you for the info, do you know when the new version of Play Services will be released? I have the same issue on Google Services 6.6.03 (1681564-036)

ghost commented 9 years ago

Same here. Mostly on first try after starting app oder install. This happens also after 4-6 times one after another call of ShowAchievementsUI().

02-13 10:50:28.164 21822-21822/? E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.google.android.gms.ui, PID: 21822 java.lang.NullPointerException at com.google.android.play.a.a.a(SourceFile:128) at com.google.android.gms.games.ui.cp.run(SourceFile:45) at com.google.android.gms.games.ui.co.a(SourceFile:51) at android.support.v7.widget.br.run(SourceFile:248) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761) at android.view.Choreographer.doCallbacks(Choreographer.java:574) at android.view.Choreographer.doFrame(Choreographer.java:543) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747) at android.os.Handler.handleCallback(Handler.java:733) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5105) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:792) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608) at dalvik.system.NativeStart.main(Native Method) 02-13 10:50:30.544 940-1263/? W/InputMethodManagerService﹕ Got RemoteException sending setActive(false) notification to pid 21698 uid 10190 02-13 10:50:30.554 1374-29535/? W/Binder﹕ Caught a RuntimeException from the binder stub implementation. java.lang.NullPointerException at android.inputmethodservice.IInputMethodWrapper.setSessionEnabled(IInputMethodWrapper.java:280) at com.android.internal.view.IInputMethod$Stub.onTransact(IInputMethod.java:129) at android.os.Binder.execTransact(Binder.java:407) at dalvik.system.NativeStart.run(Native Method)

kordsl commented 9 years ago

It seems to be working in 6.7.74. Thanks GPS team.

gguuss commented 9 years ago

Closing as fixed in update to GMS