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

Getting Crash from IllegalStateException Max XP must be more that Min XP #304

Open
protoDean opened this issue Feb 3, 2020 · 2 comments

Comments

@protoDean
Copy link

protoDean commented Feb 3, 2020

This happens every time a score is submitted and it results in the app crashing. Once it happens once, to a player, it will happen every time they submit a score, killing the app. Only way to stop it is to log out and log in with another user.

We can reproduce it by submitting a score very early, while GPGS is still trying to log in.

Any help here would be great. There doesnt seem to be anything we can do to avoid this other than killing GPGS. Its bad.

Full stack:

com.google.android.gms.common.internal.Preconditions.checkState (Unknown Source:29)
com.google.android.gms.games.PlayerLevel. (com.google.android.gms:play-services-games@@18.0.1:3)
com.google.android.gms.games.PlayerRef. (com.google.android.gms:play-services-games@@18.0.1:14)
com.google.android.gms.games.PlayerRef. (com.google.android.gms:play-services-games@@18.0.1:1)
com.google.android.gms.games.leaderboard.LeaderboardScoreRef. (com.google.android.gms:play-services-games@@18.0.1:2)
com.google.android.gms.games.leaderboard.LeaderboardScoreBuffer.get (com.google.android.gms:play-services-games@@18.0.1:4)
com.google.android.gms.games.leaderboard.LeaderboardScoreBuffer.get (com.google.android.gms:play-services-games@@18.0.1:6)
com.google.android.gms.common.data.DataBufferIterator.next (Unknown Source:8)
com.prime31.PlayGameServicesPlugin.jsonFromLeaderboardScoreBuffer (PlayGameServicesPlugin.java:249)
com.prime31.PlayGameServicesPlugin.access$1500 (PlayGameServicesPlugin.java:82)
com.prime31.PlayGameServicesPlugin$ScoreLoadListener.onResult (PlayGameServicesPlugin.java:2041)
com.prime31.PlayGameServicesPlugin$ScoreLoadListener.onResult (PlayGameServicesPlugin.java:2007)
com.google.android.gms.common.api.internal.BasePendingResult$CallbackHandler.handleMessage (Unknown Source:10)
android.os.Handler.dispatchMessage (Handler.java:106)
com.google.android.gms.internal.base.zap.dispatchMessage (Unknown Source:8)
android.os.Looper.loop (Looper.java:280)
android.app.ActivityThread.main (ActivityThread.java:6710)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:858)

@MigrantP
Copy link

We are getting reports of the same issue in one of our games. It's on Unity 2019.2.11 and GPGS 0.9.63.

@aaronflippo
Copy link

I'm seeing this issue too in a Unity game. Unity 2020.3.29f1, unity plugin 0.11.01.
Anyone know of a workaround or fix?

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

3 participants