Android game freezes after Timed out connecting to Google Play
if I use all the data in my mobile data package, with WiFi disabled, the game will freeze when connecting to Google Play timed out.
Details:
I have a game that uses CloudOnce to manage Google Play and iOS Game Center signing in, the game tries to sign in at game start;
It works fine if I have internet connection, meaning I have WiFi, or I have data package that still have data left. Signing in will success.
If I disable WIFI and data all together, it's also ok because signing in is gonna fail, the game still runs.
But, if I enable data(no data left in package), disable WIFI, probably internally it thinks internet connection OK thus try to sign in? game will freeze a few seconds after starts.
Log right before freeze:
06-17 19:06:26.725: I/nanohub(663): osLog: [AR_CHRE] still: 100
06-17 19:06:26.726: I/nanohub(663): osLog: [AR_CHRE] ON => IDLE
06-17 19:06:27.279: I/GamesNativeSDK(7984): Timed out connecting to Google Play.
06-17 19:06:27.283: I/Unity(7984): [Play Games Plugin DLL] 06/17/18 19:06:27 +12:00 DEBUG: Starting Auth Transition. Op: SIGN_IN status: ERROR_TIMEOUT
06-17 19:06:27.283: I/Unity(7984): [Play Games Plugin DLL] 06/17/18 19:06:27 +12:00 DEBUG: AuthState == Unauthenticated calling auth callbacks with failure
06-17 19:06:27.286: W/main(8014): type=1400 audit(0.0:219): avc: denied { read } for name="uptime" dev="proc" ino=4026532358 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:proc:s0 tclass=file permissive=0
06-17 19:06:27.937: W/Conscrypt(2349): Could not set socket write timeout: java.lang.reflect.InvocationTargetException
06-17 19:06:27.938: W/Conscrypt(2349): at java.lang.reflect.Method.invoke(Native Method)
06-17 19:06:27.938: W/Conscrypt(2349): at com.google.android.gms.org.conscrypt.Platform.setSocketWriteTimeout(:com.google.android.gms@12685052@12.6.85 (090400-197041431):13)
06-17 19:06:27.938: W/Conscrypt(2349): Caused by: android.system.ErrnoException: setsockopt failed: EBADF (Bad file descriptor)
06-17 19:06:27.938: W/Conscrypt(2349): at libcore.io.Linux.setsockoptTimeval(Native Method)
06-17 19:06:27.939: W/Conscrypt(2349): at libcore.io.ForwardingOs.setsockoptTimeval(ForwardingOs.java:175)
06-17 19:06:31.113: I/nanohub(663): osLog: [AR_CHRE] IDLE => ON
01-01 00:00:00.000: E/(-1): Device disconnected
How to I fix this?
Hi there, did you found any solution? Currently i am using cloudonce too, facing similar issue.
Your answer
Follow this Question
Related Questions
Game freezes when changing scenes only in release build downloaded off google play. 1 Answer
Unity : Read phone state permission android 0 Answers
Google Cardboard on Unity: Why when I put in the scene "GvrEditorEmulator" the game doesn't go? 0 Answers
android playstore claiming devices are incompatible 1 Answer