Comments (27)
Ok, the issue isn't really here. When the user cancel the login the first time, automatically the play game service is asking again to login. If the user login the second time, all action request are put in a queue.
from play-games-plugin-for-unity.
This is a very serious issue, I'm experiencing it too. I've been able to reproduce it in a similar way to the one described here:
When the user logs out ingame, e.g. via the leaderboard settings, and tries to log in again, often the authentification process completes but our cloud load call is put into the queue. We're waiting for the cloud callback when the user logs in and this puts us in an infinite loop. Closing and reopening the game is not a solution for live apps.
[Removed adb log because of new repro steps below]
from play-games-plugin-for-unity.
Got the same issue here :( Any quick temporary fix?
from play-games-plugin-for-unity.
Just to confirm the steps to repro this:
- Log in
- Open up a leaderboards screen and sign out from that screen
- Close the leaderboards screen
- Log in again
Is that correct?
from play-games-plugin-for-unity.
Also, is this happening on 0.8.00 or 0.8.01?
from play-games-plugin-for-unity.
It is reproducible with the Cubic Pilot sample running version 0.8.01.
- Sign in
- Sign out
- Repeat step 1-2 until the cloud load fails (scheduled for later).
from play-games-plugin-for-unity.
Sorry for the triple post. (will delete the 2 older ones) Just discovered an error in my implementation. So now I am exactly able to reproduce the error in everybodys way and actually really only in that way. I am sorry for the wrong informations i provided earlier.
from play-games-plugin-for-unity.
I'm having the same issue here.
The problem occurs after a manual sign-out. When loading the game with an account signed in from a previous session, everything works correctly.
If you:
- Sign out
- Then Sign in again
all actions are scheduled for later:
[Play Games Plugin DLL] Action scheduled for later (connection currently in progress).
If, however, I Sign out / Sign in again, the error goes away. Until I Sign out again.
Sending the app to the background (or killing and re-launching it) also fixes the issue.
from play-games-plugin-for-unity.
It is only happening with 0.8.01 version. I downgrade to 0.8.00 and everythings is working fine.
from play-games-plugin-for-unity.
I believe our next bugfix update (coming soon) will fix this. At least I can't repro the bug any more. But just to be sure, could someone enable debug logs, produce logs for this problem and attach them here?
To enable debug logs, do this before calling Authenticate:
PlayGamesPlatform.Instance.DebugLogEnabled = true;
from play-games-plugin-for-unity.
Awesome. Could you push the bug-fix update in a different branch so I can test it? Thanks :)
from play-games-plugin-for-unity.
Here the data I just logged. As you will notice, I wasn't able to reproduce the bug directly, the second try did it. I replaced my ID with [ID] and my name with [NAME]. I also deleted the Achievements. Here the link to the log-file. I hope it will help. =) If you have questions, I would like to hear/read from you.
Regards
Kalle
EDIT: I want to add, that I sometimes, after a reinstall get this problem on first login. So I login and I am initially not able to do an action. I will try to log that also.
EDIT2: not able to reproduce this at the moment. The bug has a very low probability at first login.
from play-games-plugin-for-unity.
Let's try something. Could you please try downloading this JAR:
https://docs.google.com/file/d/0B1IdIjhHcunCMEtkU3ZXR1prYW8/edit
And overwrite your play-games-plugin-support.jar here:
PluginDev/Assets/Plugins/Android/MainLibProj/libs/play-games-plugin-support.jar
Then rebuild and redeploy your APK.
Does the problem persist after this?
from play-games-plugin-for-unity.
Sadly I am still able to reproduce the bug in the same way on first try. Here is the log: http://pastebin.com/jkReDMiL
(Made two (what a stupid mistake) runs, both same result)
from play-games-plugin-for-unity.
Thanks for trying this. Could you please enable the debug logs so I can see what's going on in greater detail? Just add this right before the call to Authenticate:
PlayGamesPlatform.Instance.DebugLogEnabled = true;
from play-games-plugin-for-unity.
If I try to add this. I get this error: "Assets/Scripts/MenuControllScript.cs(294,52): error CS0176: Static member `GooglePlayGames.PlayGamesPlatform.DebugLogEnabled' cannot be accessed with an instance reference, qualify it with a type name instead"
Should this line do something different then: "PlayGamesPlatform.DebugLogEnabled = true;"?
My code fragment:
PlayGamesPlatform.Activate ();
PlayGamesPlatform.Instance.DebugLogEnabled = true;
Social.localUser.Authenticate ((bool success) => { ...
from play-games-plugin-for-unity.
There's typo there, you're missing 'Instance':
GooglePlayGames.PlayGamesPlatform.Instance.DebugLogEnabled = true;
from play-games-plugin-for-unity.
If i try this:
PlayGamesPlatform.Activate ();
GooglePlayGames.PlayGamesPlatform.Instance.DebugLogEnabled = true;
Social.localUser.Authenticate ((bool success) => {...
I still get this error:
"Assets/Scripts/MenuControllScript.cs(294,68): error CS0176: Static member `GooglePlayGames.PlayGamesPlatform.DebugLogEnabled' cannot be accessed with an instance reference, qualify it with a type name instead"
Are you sure that I need the "Instance"?
from play-games-plugin-for-unity.
Hmmm try this instead:
GooglePlayGames.PlayGamesPlatform.DebugLogEnabled = true;
PlayGamesPlatform.Activate ();
Social.localUser.Authenticate ((bool success) => {...
from play-games-plugin-for-unity.
I think that is what I did for the last log. But I'll try it. Oh I think I should filter for another Tag in logcat i that possible?
from play-games-plugin-for-unity.
If possible, show me the whole logcat. Things come in with a lot of different tags.
If you can, clear your logcat before running the test (with "adb logcat -c") so that the log will only contain the test's output.
from play-games-plugin-for-unity.
Actually I am not able to reproduce it. I will change back from the .jar you uploaded to the old one. I don't get it why I am sometimes be able to reproduce it, sometimes I get the error without logging out and now I am not able to reproduce it.
I'll try it with the old files now. Moment pls.
Is there a way to submit this log to you in private? Would like to not show all IDs etc. to the complete internet. ;)
from play-games-plugin-for-unity.
This is using the test jar you posted.
I still have the same issue.
from play-games-plugin-for-unity.
Now that I know what you need...:
from play-games-plugin-for-unity.
Ok, from the logs and some investigation (and especially with the help of friikyeu@), it looks like this is what's happening:
- When the sign-in helper activity (SignInHelperActivity.java in the plugin support library) reports sign in success, the main Activity (the game) starts its sign in flow; this happens in GameHelperManager.cs, OnSignInSucceeded.
- The sign-in helper Activity quits and the game gets OnApplicationPaused false, causing GameHelperManager to start the sign in flow and set the "connecting" flag
Depending on the order these two things happen, the game activity gets into a state where it thinks it's undergoing a connection flow when in fact it isn't. Particularly, when (1) happens before (2), the result is that (2) will set the state to "connecting" even though (1) has already done that, so the race condition causes the state to remain as "connecting" forever, which means actions will be put on the queue.
I'm rolling out a fix to this bug in the next few days.
from play-games-plugin-for-unity.
Good to hear, thank you for looking into it. Can't wait for the fix :)
from play-games-plugin-for-unity.
I believe this is fixed in 0.9.00. Please reopen this issue if this is not the case.
from play-games-plugin-for-unity.
Related Issues (20)
- [Bug] Non-secure network connections error
- How would this plugin behave when granular permissions of Google OAuth is enabled? HOT 6
- Can someone share sample for google play login? HOT 2
- Authentication failed. Prompt shows 400 Bad Request
- Sign in doesn't work. Returning an error code. HOT 11
- Only One Player data Saved
- Automated testing isn't possible with auto sign in as it hangs on the create profile screen
- Cloud saves sometimes deleted?
- `SavedGameMetadata` is closed after `CommitUpdate` HOT 1
- Is it possible to do a silent login with play games platform? HOT 1
- Errors on install from Package Manager (missing .meta files) HOT 4
- Cannot create a new save data file with OpenWithAutomaticConflictResolution HOT 1
- Issue getting Saved Games to work on device HOT 3
- Exception java.lang.NullPointerException: null reference at com.google.android.gms.games.ui.signinflow.SignInChimeraActivity.F HOT 15
- How to validate an auth token in my custom backend? HOT 1
- When uploading to google play get message (Update your Play Core Maven dependency to an Android 14 compatible version! ) HOT 5
- How to map Google Services Leaderboard user id to current user?
- Google play serices doesn't call authentificate function HOT 1
- Not up to date for google requirements HOT 1
- No Google Play Games Resources for application
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from play-games-plugin-for-unity.