We’ve just come across a slightly odd bug. Our game has a function which takes a “screenshot” of the game using display.captureScreen().
This is then scaled down and put into a popup as if you’ve taken a photo and are seeing a preview: http://i.imgur.com/zmKxze1.png (the area inside the black rect was the previous screen).
On some devices (reported on Samsung Galaxy Nexus GT-I9250, Samsung galaxy s2 and MotoRazr) it takes the screenshot but some of the display objects get left out for some reason: http://i.imgur.com/xW2MtiD.jpg
In the second image, all text plus the logo at the top and a rect that covers the bottom buttons has not been saved to the screenshot.
Our best guess is that somewhere during the process where the screen is assigned to a display object an error is occurring, which prevents the rest of the objects being added, but we’re not sure. The only error I’ve seen in the log when it happened is this one:
01-19 20:11:06.804: I/GLSUser(661): [GLSUser] extracting token using key:Auth 01-19 20:11:06.804: W/GLSActivity(661): gms.StatusHelper Status from wire: BadAuthentication status: BAD\_AUTHENTICATION 01-19 20:11:06.804: I/GLSUser(661): GLS error: BadAuthentication someemailaddress@gmail.com oauth2:https://www.googleapis.com/auth/plus.me https://www.googleapis.com/auth/plus.stream.read https://www.googleapis.com/auth/plus.stream.write https://www.googleapis.com/auth/plus.circles.write https://www.googleapis.com/auth/plus.circles.read https://www.googleapis.com/auth/plus.photos.readwrite https://www.googleapis.com/auth/plus.native 01-19 20:11:06.811: V/GLSActivity(661): AuthDelegateWrapperCreated with selected intent: Intent { cmp=com.google.android.gms/.auth.DefaultAuthDelegateService } 01-19 20:11:06.843: I/GLSActivity(661): Use browser flow? false 01-19 20:11:06.890: E/HttpOperation(1044): [jzt{fetchnotificationscount, fetchnotifications, fetchnotifications}] Unexpected exception 01-19 20:11:06.890: E/HttpOperation(1044): java.io.IOException: Cannot obtain authentication token 01-19 20:11:06.890: E/HttpOperation(1044): at jzu.a(PG:65) 01-19 20:11:06.890: E/HttpOperation(1044): at jze.u(PG:385) 01-19 20:11:06.890: E/HttpOperation(1044): at jza.a(PG:29) 01-19 20:11:06.890: E/HttpOperation(1044): at jze.l(PG:132) 01-19 20:11:06.890: E/HttpOperation(1044): at dqb.a(PG:791) 01-19 20:11:06.890: E/HttpOperation(1044): at ffi.a(PG:1112) 01-19 20:11:06.890: E/HttpOperation(1044): at ffi.a(PG:901) 01-19 20:11:06.890: E/HttpOperation(1044): at ffi.onPerformSync(PG:631) 01-19 20:11:06.890: E/HttpOperation(1044): at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:254) 01-19 20:11:06.890: E/HttpOperation(1044): Caused by: android.accounts.AuthenticatorException: Cannot get Oauth2 token from GMS 01-19 20:11:06.890: E/HttpOperation(1044): at idt.a(PG:22) 01-19 20:11:06.890: E/HttpOperation(1044): at jzs.a(PG:91) 01-19 20:11:06.890: E/HttpOperation(1044): at jzu.a(PG:62) 01-19 20:11:06.890: E/HttpOperation(1044): ... 8 more 01-19 20:11:06.890: E/HttpOperation(1044): Caused by: gaw: User intervention required. Notification has been pushed. 01-19 20:11:06.890: E/HttpOperation(1044): at gas.c(Unknown Source) 01-19 20:11:06.890: E/HttpOperation(1044): at gas.b(Unknown Source) 01-19 20:11:06.890: E/HttpOperation(1044): at idt.a(PG:19) 01-19 20:11:06.890: E/HttpOperation(1044): ... 10 more 01-19 20:11:06.897: E/EsSyncAdapterService(1044): Sync failure 01-19 20:11:06.897: E/EsSyncAdapterService(1044): java.io.IOException: Error: 0 [null] 01-19 20:11:06.897: E/EsSyncAdapterService(1044): at dqb.a(PG:791) 01-19 20:11:06.897: E/EsSyncAdapterService(1044): at ffi.a(PG:1112) 01-19 20:11:06.897: E/EsSyncAdapterService(1044): at ffi.a(PG:901) 01-19 20:11:06.897: E/EsSyncAdapterService(1044): at ffi.onPerformSync(PG:631) 01-19 20:11:06.897: E/EsSyncAdapterService(1044): at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:254) 01-19 20:11:06.913: D/SyncManager(404): failed sync operation someemailaddress@gmail.com u0 (com.google), com.google.android.apps.plus.content.EsProvider, POLL, earliestRunTime 20992684, reason: AccountsUpdated, SyncResult: stats [numIoExceptions: 2]
I’m not sure that’s related though, it seems to be an email error. We do have the option for the user to send the screen capture function to a friend using email - but at this point no email functions have been called.
Does anyone have any ideas about what could be happening here?