question

mrantoha avatar image
mrantoha asked

Crash in libAmazonGamesJni before "jniUpdateProgress response - onFailure".

Hi I've integrated GameCircle to my application using libraries you provided. Achievemnts and leaderboard posting functionality was taken from the library written in C++ ( libAmazonGamesJni.so). Now when I am trying to post achievement or scores I get the following response "jniUpdateProgress response - onSuccess" or "jniSubmitScores response - onSuccess". But if posting process is failed and I recieve "jniUpdateProgress response - onFailure" message my application is crashing! Such problem occures when internet connection is unstable. Please help me. Here is crash log: 01-30 15:22:39.130: D/ProfileToJavaInterface(24605): requestLocalPlayerProfile - called 01-30 15:22:39.161: D/LeaderboardToJavaInterface(24605): submitScore - called 01-30 15:22:39.169: D/AchievementToJavaInterface(24605): updateProgress - called 01-30 15:22:39.169: D/AchievementToJavaInterface(24605): updateProgress - called 01-30 15:22:39.176: D/ProfileToJavaInterface(24605): requestLocalPlayerProfile - called 01-30 15:22:39.176: D/AchievementToJavaInterface(24605): updateProgress - called 01-30 15:22:39.184: D/AchievementToJavaInterface(24605): updateProgress - called 01-30 15:22:39.184: D/AchievementToJavaInterface(24605): updateProgress - called 01-30 15:22:39.184: D/AchievementToJavaInterface(24605): updateProgress - called 01-30 15:22:39.184: D/AchievementToJavaInterface(24605): updateProgress - called 01-30 15:22:39.184: D/AchievementToJavaInterface(24605): updateProgress - called 01-30 15:22:39.942: D/GC_HttpNetworkClient(24605): Request: GET https://cortana-gateway.amazon.com/cortana/gateway/profile/getDefaultProfile?playerId=a1726946-81d6-40e9-93dc-2b065f1e4f90&GameId=49d6832b-b2c7-487a-b532-5c3921170494&locale=en_GB&gameId=49d6832b-b2c7-487a-b532-5c3921170494&PlayerId=a1726946-81d6-40e9-93dc-2b065f1e4f90 01-30 15:22:40.012: D/GC_HttpNetworkClient(24605): Request: PUT https://ags-ext.amazon.com/service/achievements/updateAchievementProgress 01-30 15:22:40.036: D/GC_HttpNetworkClient(24605): Request: GET https://cortana-gateway.amazon.com/cortana/gateway/profile/getDefaultProfile?playerId=a1726946-81d6-40e9-93dc-2b065f1e4f90&GameId=49d6832b-b2c7-487a-b532-5c3921170494&locale=en_GB&gameId=49d6832b-b2c7-487a-b532-5c3921170494&PlayerId=a1726946-81d6-40e9-93dc-2b065f1e4f90 01-30 15:22:40.036: D/GC_HttpNetworkClient(24605): Request: PUT https://ags-ext.amazon.com/service/achievements/updateAchievementProgress 01-30 15:22:40.036: D/GC_HttpNetworkClient(24605): Request: PUT https://ags-ext.amazon.com/service/leaderboards/submitScore 01-30 15:22:40.044: D/GC_HttpNetworkClient(24605): Request: PUT https://ags-ext.amazon.com/service/achievements/updateAchievementProgress 01-30 15:22:40.044: D/GC_HttpNetworkClient(24605): Request: PUT https://ags-ext.amazon.com/service/achievements/updateAchievementProgress 01-30 15:22:40.067: D/GC_HttpNetworkClient(24605): Request: PUT https://ags-ext.amazon.com/service/achievements/updateAchievementProgress 01-30 15:22:40.067: D/GC_HttpNetworkClient(24605): Request: PUT https://ags-ext.amazon.com/service/achievements/updateAchievementProgress 01-30 15:22:40.075: D/GC_HttpNetworkClient(24605): Request: PUT https://ags-ext.amazon.com/service/achievements/updateAchievementProgress 01-30 15:22:40.114: D/GC_HttpNetworkClient(24605): Request: PUT https://ags-ext.amazon.com/service/achievements/updateAchievementProgress 01-30 15:22:41.505: D/GC_HttpNetworkClient(24605): Result:HTTP/1.1 200 OK 01-30 15:22:41.551: I/AmazonInsightsSDK(24605): Event: 'GameC...' recorded to local filestore 01-30 15:22:41.770: D/RequestLocalPlayerProfileJniResponseHandler(24605): jniRequestPlayerProfile response - onSuccess 01-30 15:22:41.770: D/AGSProfileJni(24605): getLocalPlayerProfileResponseSuccess called 01-30 15:22:41.841: D/dalvikvm(24605): GC_FOR_MALLOC freed 253K, 41% free 5906K/9927K, external 1014K/3854K, paused 42ms 01-30 15:22:42.200: I/ActivityManager(1386): Process com.amazon.gardemanger (pid 24414) has died. 01-30 15:22:42.216: D/dalvikvm(24605): GC_FOR_MALLOC freed 0K, 40% free 6379K/10567K, external 1014K/3854K, paused 33ms 01-30 15:22:42.223: D/GC_HttpNetworkClient(24605): Result:HTTP/1.1 200 OK 01-30 15:22:42.223: D/GC_HttpNetworkClient(24605): Result:HTTP/1.1 200 OK 01-30 15:22:42.364: D/GC_HttpNetworkClient(24605): Result:HTTP/1.1 200 OK 01-30 15:22:42.380: I/AmazonInsightsSDK(24605): Event: 'GameC...' recorded to local filestore 01-30 15:22:42.395: I/AmazonInsightsSDK(24605): Event: 'GameC...' recorded to local filestore 01-30 15:22:42.450: D/dalvikvm(24605): GC_FOR_MALLOC freed 299K, 38% free 6776K/10823K, external 1014K/3854K, paused 35ms 01-30 15:22:42.473: I/AmazonInsightsSDK(24605): Event: 'GameC...' recorded to local filestore 01-30 15:22:42.489: I/AmazonInsightsSDK(24605): Event: 'PostA...' recorded to local filestore 01-30 15:22:42.497: D/UpdateProgressJniRespHandler(24605): jniUpdateProgress response - onSuccess 01-30 15:22:42.497: D/AGSAchievementJni(24605): updateProgressResponseSuccess called 01-30 15:22:42.512: I/AmazonInsightsSDK(24605): Event: 'PostA...' recorded to local filestore 01-30 15:22:42.536: D/UpdateProgressJniRespHandler(24605): jniUpdateProgress response - onSuccess 01-30 15:22:42.536: D/AGSAchievementJni(24605): updateProgressResponseSuccess called 01-30 15:22:42.544: I/AmazonInsightsSDK(24605): Event: 'PostA...' recorded to local filestore 01-30 15:22:42.559: D/UpdateProgressJniRespHandler(24605): jniUpdateProgress response - onSuccess 01-30 15:22:42.559: D/AGSAchievementJni(24605): updateProgressResponseSuccess called 01-30 15:22:43.044: D/GC_HttpNetworkClient(24605): Result:HTTP/1.1 200 OK 01-30 15:22:43.051: I/AmazonInsightsSDK(24605): Event: 'GameC...' recorded to local filestore 01-30 15:22:43.067: I/AmazonInsightsSDK(24605): Event: 'PostA...' recorded to local filestore 01-30 15:22:43.075: D/UpdateProgressJniRespHandler(24605): jniUpdateProgress response - onSuccess 01-30 15:22:43.075: D/AGSAchievementJni(24605): updateProgressResponseSuccess called 01-30 15:22:43.747: D/dalvikvm(24605): GC_FOR_MALLOC freed 985K, 37% free 6908K/10951K, external 1014K/3854K, paused 54ms 01-30 15:22:43.973: D/GC_HttpNetworkClient(24605): Result:HTTP/1.1 200 OK 01-30 15:22:43.981: I/AmazonInsightsSDK(24605): Event: 'GameC...' recorded to local filestore 01-30 15:22:44.122: D/RequestLocalPlayerProfileJniResponseHandler(24605): jniRequestPlayerProfile response - onSuccess 01-30 15:22:44.122: D/AGSProfileJni(24605): getLocalPlayerProfileResponseSuccess called 01-30 15:22:44.270: D/GC_HttpNetworkClient(24605): Result:HTTP/1.1 200 OK 01-30 15:22:44.294: D/UpdateProgressJniRespHandler(24605): jniUpdateProgress response - onSuccess 01-30 15:22:44.294: D/AGSAchievementJni(24605): updateProgressResponseSuccess called 01-30 15:22:44.294: I/AmazonInsightsSDK(24605): Event: 'GameC...' recorded to local filestore 01-30 15:22:44.309: I/AmazonInsightsSDK(24605): Event: 'PostA...' recorded to local filestore 01-30 15:22:45.692: D/GC_HttpNetworkClient(24605): Result:HTTP/1.1 200 OK 01-30 15:22:45.700: I/AmazonInsightsSDK(24605): Event: 'GameC...' recorded to local filestore 01-30 15:22:45.708: I/dalvikvm(24605): Jit: resizing JitTable from 4096 to 8192 01-30 15:22:45.716: I/AmazonInsightsSDK(24605): Event: 'PostA...' recorded to local filestore 01-30 15:22:45.731: D/UpdateProgressJniRespHandler(24605): jniUpdateProgress response - onSuccess 01-30 15:22:45.731: D/AGSAchievementJni(24605): updateProgressResponseSuccess called 01-30 15:22:46.419: D/GC_HttpNetworkClient(24605): Result:HTTP/1.1 200 OK 01-30 15:22:46.426: I/AmazonInsightsSDK(24605): Event: 'GameC...' recorded to local filestore 01-30 15:22:46.450: I/AmazonInsightsSDK(24605): Event: 'PostA...' recorded to local filestore 01-30 15:22:46.473: D/UpdateProgressJniRespHandler(24605): jniUpdateProgress response - onSuccess 01-30 15:22:46.473: D/AGSAchievementJni(24605): updateProgressResponseSuccess called 01-30 15:22:46.567: D/dalvikvm(24605): GC_CONCURRENT freed 1509K, 36% free 7171K/11143K, external 1014K/3854K, paused 3ms+5ms 01-30 15:22:49.169: D/SubmitScoreJniResponseHandler(24605): jniSubmitScores response - onFailure 01-30 15:22:49.169: D/AGSLeaderboardJni(24605): submitScoreResponseFailure called 01-30 15:22:49.169: W/GC_AsynchronousReplyMessenger(24605): Request e476bd53-f5d9-4c3a-94eb-492430f0ead0 timed out. 01-30 15:22:49.184: D/UpdateProgressJniRespHandler(24605): jniUpdateProgress response - onFailure 01-30 15:22:49.184: D/AGSAchievementJni(24605): updateProgressResponseFailure called 01-30 15:22:49.208: I/DEBUG(21806): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 01-30 15:22:49.208: I/DEBUG(21806): Build fingerprint: 'generic/blaze/blaze:2.3.4/GINGERBREAD/6.3.2_user_4110520:user/release-keys' 01-30 15:22:49.208: I/DEBUG(21806): pid: 24605, tid: 24654 >>> com.g5e.app.amzn <<< 01-30 15:22:49.208: I/DEBUG(21806): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000 01-30 15:22:49.208: I/DEBUG(21806): r0 816e21a5 r1 00000001 r2 00000000 r3 00000001 01-30 15:22:49.208: I/DEBUG(21806): r4 81546339 r5 81714010 r6 00000000 r7 00000000 01-30 15:22:49.208: I/DEBUG(21806): r8 4982cb40 r9 46b82de4 10 46b82dd0 fp 800a5368 01-30 15:22:49.208: I/DEBUG(21806): ip afa03118 sp 4982cb08 lr 811210c5 pc 81546348 cpsr 80000130 01-30 15:22:49.208: I/DEBUG(21806): d0 64656c6c61632065 d1 72756c6961466573 01-30 15:22:49.208: I/DEBUG(21806): d2 6c27207972617264 d3 4c434f5256506261 01-30 15:22:49.208: I/DEBUG(21806): d4 00610062002f0074 d5 00720067006b0063 01-30 15:22:49.208: I/DEBUG(21806): d6 0064006e0075006f d7 006d00740068002e 01-30 15:22:49.208: I/DEBUG(21806): d8 000000000945fef0 d9 0000000000000000 01-30 15:22:49.208: I/DEBUG(21806): d10 0000000000000000 d11 0000000000000000 01-30 15:22:49.208: I/DEBUG(21806): d12 0000000000000000 d13 0000000000000000 01-30 15:22:49.208: I/DEBUG(21806): d14 0000000000000000 d15 0000000000000000 01-30 15:22:49.208: I/DEBUG(21806): d16 ffffffff00000001 d17 0000000000000000 01-30 15:22:49.208: I/DEBUG(21806): d18 3ff0000000000000 d19 0000000000000000 01-30 15:22:49.208: I/DEBUG(21806): d20 0000000000000000 d21 0000000000000000 01-30 15:22:49.208: I/DEBUG(21806): d22 0000000000000000 d23 3ff0000000000000 01-30 15:22:49.208: I/DEBUG(21806): d24 0000000000000000 d25 bff0000000000000 01-30 15:22:49.208: I/DEBUG(21806): d26 0000000000000000 d27 3ff0000000000000 01-30 15:22:49.208: I/DEBUG(21806): d28 11800000117bc000 d29 1188c00011848000 01-30 15:22:49.208: I/DEBUG(21806): d30 116e8000116a0000 d31 117740001172c000 01-30 15:22:49.208: I/DEBUG(21806): scr 80000012 01-30 15:22:49.333: I/DEBUG(21806): #00 pc 00146348 /data/data/com.g5e.app.amzn/lib/libmain.so 01-30 15:22:49.341: I/DEBUG(21806): #01 pc 000210c2 /data/data/com.g5e.app.amzn/lib/libAmazonGamesJni.so 01-30 15:22:49.341: I/DEBUG(21806): #02 pc 0001f23e /data/data/com.g5e.app.amzn/lib/libAmazonGamesJni.so 01-30 15:22:49.341: I/DEBUG(21806): #03 pc 00017e34 /system/lib/ libdvm.so 01-30 15:22:49.341: I/DEBUG(21806): code around pc: 01-30 15:22:49.341: I/DEBUG(21806): 81546328 f0fb4478 bf00bdd5 0019bdfd 0019be12 01-30 15:22:49.341: I/DEBUG(21806): 81546338 b919460b 79134804 e0014478 44784803 01-30 15:22:49.341: I/DEBUG(21806): 81546348 461a6811 bdc4f0fb 0019be26 0019be5b 01-30 15:22:49.341: I/DEBUG(21806): 81546358 4c0cb510 6823447c d40f07db f1694620 01-30 15:22:49.341: I/DEBUG(21806): 81546368 b158e9b6 44784808 f0f84601 3000ffef 01-30 15:22:49.341: I/DEBUG(21806): code around lr: 01-30 15:22:49.341: I/DEBUG(21806): 811210a4 44781c3a f7fc4479 e009fe98 98066813 01-30 15:22:49.341: I/DEBUG(21806): 811210b4 f7fc689c 1c32feb9 1c3b1c01 47a01c28 01-30 15:22:49.341: I/DEBUG(21806): 811210c4 46c0bdf8 0001cbff 0001cdb5 4f36b5f7 01-30 15:22:49.341: I/DEBUG(21806): 811210d4 49361c0e 1c05447f 1c384479 fe7df7fc 01-30 15:22:49.341: I/DEBUG(21806): 811210e4 1c294a33 310c1c30 2301447a f977f7fd 01-30 15:22:49.341: I/DEBUG(21806): stack: 01-30 15:22:49.341: I/DEBUG(21806): 4982cac8 00000000 01-30 15:22:49.341: I/DEBUG(21806): 4982cacc 46b82dd0 01-30 15:22:49.341: I/DEBUG(21806): 4982cad0 8380070c 01-30 15:22:49.341: I/DEBUG(21806): 4982cad4 00000001 01-30 15:22:49.341: I/DEBUG(21806): 4982cad8 00000010 01-30 15:22:49.341: I/DEBUG(21806): 4982cadc afd46480 01-30 15:22:49.341: I/DEBUG(21806): 4982cae0 0000005f 01-30 15:22:49.341: I/DEBUG(21806): 4982cae4 00000052 01-30 15:22:49.341: I/DEBUG(21806): 4982cae8 8008dc73 /system/lib/ libdvm.so 01-30 15:22:49.341: I/DEBUG(21806): 4982caec 06b57df5 01-30 15:22:49.341: I/DEBUG(21806): 4982caf0 00000407 01-30 15:22:49.341: I/DEBUG(21806): 4982caf4 d1dd653c 01-30 15:22:49.341: I/DEBUG(21806): 4982caf8 81714010 01-30 15:22:49.341: I/DEBUG(21806): 4982cafc ffffffff 01-30 15:22:49.341: I/DEBUG(21806): 4982cb00 df002777 01-30 15:22:49.341: I/DEBUG(21806): 4982cb04 e3a070ad 01-30 15:22:49.341: I/DEBUG(21806): #01 4982cb08 ffffffff 01-30 15:22:49.341: I/DEBUG(21806): 4982cb0c 81714010 01-30 15:22:49.341: I/DEBUG(21806): 4982cb10 ffffffff 01-30 15:22:49.341: I/DEBUG(21806): 4982cb14 4982cc10 01-30 15:22:49.341: I/DEBUG(21806): 4982cb18 46b82df4 01-30 15:22:49.341: I/DEBUG(21806): 4982cb1c 8111f243 /data/data/com.g5e.app.amzn/lib/libAmazonGamesJni.so 01-30 15:22:51.153: D/GC_HttpNetworkClient(24605): Result:HTTP/1.1 200 OK 01-30 15:22:51.161: I/AmazonInsightsSDK(24605): Event: 'GameC...' recorded to local filestore 01-30 15:22:51.192: I/AmazonInsightsSDK(24605): Event: 'PostL...' recorded to local filestore 01-30 15:22:51.208: W/GC_AsynchronousReplyMessenger(24605): No pending message found for message id e476bd53-f5d9-4c3a-94eb-492430f0ead0 01-30 15:22:51.434: D/GC_HttpNetworkClient(24605): Result:HTTP/1.1 200 OK 01-30 15:22:51.442: I/AmazonInsightsSDK(24605): Event: 'GameC...' recorded to local filestore 01-30 15:22:51.466: I/AmazonInsightsSDK(24605): Event: 'PostA...' recorded to local filestore 01-30 15:22:51.481: W/GC_AsynchronousReplyMessenger(24605): No pending message found for message id 7f4a1b52-8a86-44f3-ab4f-d884084b3c7a 01-30 15:22:59.294: V/DeviceStorageMonitorService(1386): mTotalMemory is 11734999 01-30 15:22:59.989: I/BootReceiver(1386): Copying /data/tombstones/tombstone_01 to DropBox (SYSTEM_TOMBSTONE) 01-30 15:22:59.997: I/DEBUG(21806): debuggerd committing suicide to free the zombie! 01-30 15:23:00.028: I/DEBUG(24815): debuggerd: Feb 27 2013 04:50:50 01-30 15:23:00.075: I/ActivityManager(1386): Process com.g5e.app.amzn (pid 24605) has died. 01-30 15:23:00.075: I/WindowManager(1386): WIN DEATH: Window{4078e858 SurfaceView paused=false} Message was edited by: mrantoha
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 Mrantoha, Are you testing it in Kindle Fire Emulator? or device? Please let us know.
10 |5000

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

mrantoha avatar image
mrantoha answered
Hi, I tested on 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.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
This problem is no more reproducible with latest SDK. Thanks.
10 |5000

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