question

maxnalin avatar image
maxnalin asked

Game Circle initialization fails randomly

Good afternoon, after using the debug keystore's MD5, I managed to get by the api key problem, however initialization fails randomly. I can't figure out what triggers failure. When it succeeds, everything else appears to work as it should. Any ideas ? 07-15 15:44:18.976: D/GC_Whispersync(12293): Initial load from disk started 07-15 15:44:18.992: V/GC_Whispersync(12293): Retrieved JSON string [{"gameData":{}}] of game data map from disk 07-15 15:44:18.992: W/GC_Whispersync(12293): GameDataMap - Unable to merge from an invalid/unset GameDataMap com.amazon.ags.client.whispersync.GameDataSingleMap@40f90ea8 07-15 15:44:18.992: D/GC_Whispersync(12293): Initial load from disk completed in 15 msec. 07-15 15:44:19.086: I/GC_ContentManager(12293): Upgrade zip does not exist. 07-15 15:44:19.086: D/GC_ContentManager(12293): Current JavaScript content version: 2.4.0 07-15 15:44:19.093: D/GC_ContentManager(12293): Default JavaScript content version: 2.4.0 07-15 15:44:19.093: D/GC_ContentManager(12293): Upgrade JavaScript content version: -1.-1.-1 07-15 15:44:22.273: I/GC_FileUtils(12293): Beginning download of /data/data/com.maxnalin.crazyspanner/files/.ags/download/agsmanifest.txt 07-15 15:44:22.281: I/GC_FileUtils(12293): Download of /data/data/com.maxnalin.crazyspanner/files/.ags/download/agsmanifest.txt was successful: true 07-15 15:44:29.804: D/GC_NativeKindleFireStateCallHandler(12293): Processing request [backgroundwebview-5] for call type [isKindle] 07-15 15:44:29.804: D/GC_NativeKindleFireStateCallHandler(12293): Returning reply [{"value":false}] for request [backgroundwebview-5] 07-15 15:44:29.812: D/GC_NativeKindleFireStateCallHandler(12293): Processing request [backgroundwebview-6] for call type [isKindleRegistered] 07-15 15:44:29.812: D/GC_NativeKindleFireStateCallHandler(12293): Returning reply [{"value":false}] for request [backgroundwebview-6] 07-15 15:44:29.816: D/GC_NativeKindleFireStateCallHandler(12293): Processing request [backgroundwebview-7] for call type [isGCServiceReady] 07-15 15:44:29.816: D/GC_NativeKindleFireStateCallHandler(12293): Returning reply [{"value":false}] for request [backgroundwebview-7] 07-15 15:44:29.828: D/GC_NativeKindleFireStateCallHandler(12293): Processing request [backgroundwebview-8] for call type [hasOptedIn] 07-15 15:44:29.828: D/GC_NativeKindleFireStateCallHandler(12293): Returning reply [{"value":false}] for request [backgroundwebview-8] 07-15 15:44:29.921: D/GC_HttpNetworkClient(12293): Request: GET https://ags-ext.amazon.com/services/featuredetection/getFeaturesUsage?GameId=amzn1.application.4877aa4216b945ea8a9f688420a254d4&locale=it_IT&gameId=amzn1.application.4877aa4216b945ea8a9f688420a254d4 07-15 15:44:29.953: D/GC_HttpNetworkClient(12293): Request: PUT https://ags-ext.amazon.com/service/achievements/getAchievementsPublic 07-15 15:44:29.976: D/GC_HttpNetworkClient(12293): Request: PUT https://ags-ext.amazon.com/service/leaderboards/getLeaderboardsForGamePublic 07-15 15:44:30.293: D/GC_NativeAuthCallHandler(12293): Logged in: true 07-15 15:44:30.296: D/GC_HttpNetworkClient(12293): Request: POST https://ags-ext.amazon.com/services/ux/v1/getQueryData?GameId=amzn1.application.4877aa4216b945ea8a9f688420a254d4&locale=it_IT&gameId=amzn1.application.4877aa4216b945ea8a9f688420a254d4 07-15 15:44:30.535: V/GC_ClickableToastImpl(12293): Tried to remove toast but none was attached. 07-15 15:44:31.011: D/GC_AGSClientInstanceCoordinator(12293): AGSClientInstanceCoordinator already initialized. 07-15 15:44:31.011: D/GC_EventCollectorClient(12293): EventCollectorClient already initialized. 07-15 15:44:31.039: D/GC_HttpNetworkClient(12293): Request: GET https://cortana-gateway.amazon.com/cortana/gateway/profile/getDefaultProfile?playerId=95a28557-7c14-417c-82d5-e1632ee5f6db&GameId=amzn1.application.4877aa4216b945ea8a9f688420a254d4&locale=it_IT&gameId=amzn1.application.4877aa4216b945ea8a9f688420a254d4&PlayerId=95a28557-7c14-417c-82d5-e1632ee5f6db 07-15 15:44:31.144: W/GC_AsynchronousReplyMessenger(12293): Request 7fb2368f-12a0-4385-be38-47715d82eb35 timed out. 07-15 15:44:31.332: I/GC_ContentManager(12293): Upgrade zip does not exist. 07-15 15:44:31.332: D/GC_ContentManager(12293): Current JavaScript content version: 2.4.0 07-15 15:44:31.332: D/GC_ContentManager(12293): Default JavaScript content version: 2.4.0 07-15 15:44:31.336: D/GC_ContentManager(12293): Upgrade JavaScript content version: -1.-1.-1 07-15 15:44:31.507: D/GC_HttpNetworkClient(12293): Result:HTTP/1.1 200 OK 07-15 15:44:31.546: D/GC_HttpNetworkClient(12293): Result:HTTP/1.1 200 OK 07-15 15:44:31.550: D/GC_HttpNetworkClient(12293): Result:HTTP/1.1 200 OK 07-15 15:44:31.566: D/GC_HttpNetworkClient(12293): Result:HTTP/1.1 200 OK 07-15 15:44:31.964: I/GC_FileUtils(12293): Beginning download of /data/data/com.maxnalin.crazyspanner/files/.ags/download/agsmanifest.txt 07-15 15:44:31.976: I/GC_FileUtils(12293): Download of /data/data/com.maxnalin.crazyspanner/files/.ags/download/agsmanifest.txt was successful: true 07-15 15:44:32.101: D/GC_HttpNetworkClient(12293): Result:HTTP/1.1 200 OK 07-15 15:44:36.078: W/GC_AsynchronousReplyMessenger(12293): No pending message found for message id 7fb2368f-12a0-4385-be38-47715d82eb35 07-15 15:44:37.382: V/GC_ClickableToastImpl(12293): Tried to remove toast but none was attached. 07-15 15:44:37.390: V/GC_ClickableToastImpl(12293): Tried to remove toast but none was attached. 07-15 15:44:40.027: D/GC_NativeKindleFireStateCallHandler(12293): Processing request [backgroundwebview-5] for call type [isKindle] 07-15 15:44:40.027: D/GC_NativeKindleFireStateCallHandler(12293): Returning reply [{"value":false}] for request [backgroundwebview-5] 07-15 15:44:40.043: D/GC_NativeKindleFireStateCallHandler(12293): Processing request [backgroundwebview-6] for call type [isKindleRegistered] 07-15 15:44:40.046: D/GC_NativeKindleFireStateCallHandler(12293): Returning reply [{"value":false}] for request [backgroundwebview-6] 07-15 15:44:40.046: D/GC_NativeKindleFireStateCallHandler(12293): Processing request [backgroundwebview-7] for call type [isGCServiceReady] 07-15 15:44:40.046: D/GC_NativeKindleFireStateCallHandler(12293): Returning reply [{"value":false}] for request [backgroundwebview-7] 07-15 15:44:40.050: D/GC_NativeKindleFireStateCallHandler(12293): Processing request [backgroundwebview-8] for call type [hasOptedIn] 07-15 15:44:40.054: D/GC_NativeKindleFireStateCallHandler(12293): Returning reply [{"value":false}] for request [backgroundwebview-8] 07-15 15:44:40.261: D/GC_HttpNetworkClient(12293): Request: GET https://ags-ext.amazon.com/services/featuredetection/getFeaturesUsage?GameId=amzn1.application.4877aa4216b945ea8a9f688420a254d4&locale=it_IT&gameId=amzn1.application.4877aa4216b945ea8a9f688420a254d4 07-15 15:44:40.914: D/GC_HttpNetworkClient(12293): Result:HTTP/1.1 200 OK 07-15 15:44:42.109: V/GC_ClickableToastImpl(12293): Tried to remove toast but none was attached. 07-15 15:44:42.339: D/GC_AGSClientInstanceCoordinator(12293): AGSClientInstanceCoordinator already initialized. 07-15 15:44:42.343: D/GC_EventCollectorClient(12293): EventCollectorClient already initialized. 07-15 15:44:42.488: W/GC_AsynchronousReplyMessenger(12293): Request d032ebcb-67e5-4f6a-9319-e5d538af66e9 timed out. 07-15 15:44:42.832: I/GC_ContentManager(12293): Upgrade zip does not exist. 07-15 15:44:42.836: D/GC_ContentManager(12293): Current JavaScript content version: 2.4.0 07-15 15:44:42.836: D/GC_ContentManager(12293): Default JavaScript content version: 2.4.0 07-15 15:44:42.836: D/GC_ContentManager(12293): Upgrade JavaScript content version: -1.-1.-1 07-15 15:44:43.027: D/GC_HttpNetworkClient(12293): Request: PUT https://ags-ext.amazon.com/service/achievements/getAchievementsPublic 07-15 15:44:43.086: D/GC_HttpNetworkClient(12293): Request: PUT https://ags-ext.amazon.com/service/leaderboards/getLeaderboardsForGamePublic 07-15 15:44:43.171: D/GC_HttpNetworkClient(12293): Request: POST https://ags-ext.amazon.com/services/ux/v1/getQueryData?GameId=amzn1.application.4877aa4216b945ea8a9f688420a254d4&locale=it_IT&gameId=amzn1.application.4877aa4216b945ea8a9f688420a254d4 07-15 15:44:43.316: D/GC_HttpNetworkClient(12293): Result:HTTP/1.1 200 OK 07-15 15:44:43.484: I/GC_FileUtils(12293): Beginning download of /data/data/com.maxnalin.crazyspanner/files/.ags/download/agsmanifest.txt 07-15 15:44:43.503: I/GC_FileUtils(12293): Download of /data/data/com.maxnalin.crazyspanner/files/.ags/download/agsmanifest.txt was successful: true 07-15 15:44:43.578: D/GC_NativeAuthCallHandler(12293): Logged in: true 07-15 15:44:43.683: D/GC_HttpNetworkClient(12293): Result:HTTP/1.1 200 OK 07-15 15:44:43.691: D/GC_HttpNetworkClient(12293): Result:HTTP/1.1 200 OK 07-15 15:44:50.507: W/GC_AsynchronousReplyMessenger(12293): No pending message found for message id d032ebcb-67e5-4f6a-9319-e5d538af66e9 07-15 15:44:50.593: D/GC_HttpNetworkClient(12293): Request: GET https://cortana-gateway.amazon.com/cortana/gateway/profile/getDefaultProfile?playerId=95a28557-7c14-417c-82d5-e1632ee5f6db&GameId=amzn1.application.4877aa4216b945ea8a9f688420a254d4&locale=it_IT&gameId=amzn1.application.4877aa4216b945ea8a9f688420a254d4&PlayerId=95a28557-7c14-417c-82d5-e1632ee5f6db
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

maxnalin avatar image
maxnalin answered
Additionally, I'm getting null pointer exceptions from com.amazon.ags after calling: AmazonGamesClient.initialize(this, callback, gameFeatures); 07-17 09:20:07.648: E/AndroidRuntime(30132): FATAL EXCEPTION: pool-9-thread-4 07-17 09:20:07.648: E/AndroidRuntime(30132): java.lang.NullPointerException 07-17 09:20:07.648: E/AndroidRuntime(30132): at com.amazon.ags.html5.javascript.domain.JavascriptInterface$4.run(JavascriptInterface.java:181) 07-17 09:20:07.648: E/AndroidRuntime(30132): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080) 07-17 09:20:07.648: E/AndroidRuntime(30132): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573) 07-17 09:20:07.648: E/AndroidRuntime(30132): at java.lang.Thread.run(Thread.java:856) 07-17 09:20:07.652: W/ActivityManager(410): Force finishing activity com.maxnalin.crazyspanner/.CrazySpanner Message was edited by: maxnalin
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Maxnalin, Can you create a new version of your app Crazy Spanner and upload the apk (do not submit it) so that I can try it on Kindle devices? Have you tried it in only one device?
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

maxnalin avatar image
maxnalin answered
Sure, where should I upload it ? App testing service ? I've tested it only on my own Android phone. Message was edited by: maxnalin
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

maxnalin avatar image
maxnalin answered
Also, what apk ? Debug or Release (only the api key changes)
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Maxnalin, Please create a new version of your app in portal and upload the apk (debug or release - the one giving problem), but do not submit the version.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

maxnalin avatar image
maxnalin answered
Greetings, both versions exhibit the same behaviour. I've uploaded the debug version as Binary1 in the portal. Kind Regards
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

nicoviano avatar image
nicoviano answered
Hi, I am getting the same Exception which says Maxnalin when running my application in some Android devices (not all) 07-17 09:20:07.648: E/AndroidRuntime(30132): FATAL EXCEPTION: pool-9-thread-4 07-17 09:20:07.648: E/AndroidRuntime(30132): java.lang.NullPointerException 07-17 09:20:07.648: E/AndroidRuntime(30132): at com.amazon.ags.html5.javascript.domain.JavascriptInterface$4.run(JavascriptInterface.java:181) 07-17 09:20:07.648: E/AndroidRuntime(30132): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080) 07-17 09:20:07.648: E/AndroidRuntime(30132): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573) 07-17 09:20:07.648: E/AndroidRuntime(30132): at java.lang.Thread.run(Thread.java:856) 07-17 09:20:07.652: W/ActivityManager(410): Force finishing activity com.maxnalin.crazyspanner/.CrazySpanner Did you find the root of this issue? Are you planning to solve it soon? Thank you for your help.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Stephane D. avatar image
Stephane D. answered
I've just created a similar post for the same exception. It's been more than a year since this post from nicoviano, and he got no response?
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.