question

Marcel Tricolici avatar image
Marcel Tricolici asked

crashes in SDK (on some devices)

Hey guys. our application is live.. works fine.. however.. on some devices.. sometimes (860 crashes last week) we see this crash (see stacktrace bellow).. as we don't call this methods directly.. we can't handle this :( How can this be avoided? java.lang.NullPointerException at com.amazon.ags.api.AmazonGamesClient.initializeSession(SourceFile:236) at com.amazon.ags.api.AmazonGamesClient.access$600(SourceFile:66) at com.amazon.ags.api.AmazonGamesClient$1$1$1$1.onBound(SourceFile:211) at com.amazon.ags.client.KindleFireIPCProxy.notifyCaller(SourceFile:365) at com.amazon.ags.client.KindleFireIPCProxy.changeStatus(SourceFile:376) at com.amazon.ags.client.KindleFireIPCProxy.onAuthorized(SourceFile:437) at com.amazon.ags.client.KindleFireIPCProxy.access$400(SourceFile:44) at com.amazon.ags.client.KindleFireIPCProxy$3.handleMessage(SourceFile:416) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4532) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) at dalvik.system.NativeStart.main(Native Method)
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 Marcel, Thank you for bringing this into our notice. I have reported it to concerned team. We might need the app name or id to debug the issue further. You can post back the app information here or send it through a ContactUs ( https://developer.amazon.com/help/contactus.html) . If you create a case, please mention there about this thread url so that we can track it appropriately.
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 Marcel, We need to know what is the SDK version you have integrated with current version of your app. Please let us know. 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.

Marcel Tricolici avatar image
Marcel Tricolici answered
App Name: Lost Bubble (net.peakgames.lostbubble.LostBubblesAndroid)
10 |5000

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

Marcel Tricolici avatar image
Marcel Tricolici answered
gamecirclesdk.jar version - 2.2.1 (info from VersionInfo class)
10 |5000

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

Marcel Tricolici avatar image
Marcel Tricolici answered
1 crash in android 2.3.4 57 crashes in android 4.0.3 7 crashes in android 4.0.4 808 crashes in android 4.2.2
10 |5000

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

Marcel Tricolici avatar image
Marcel Tricolici answered
Devices where this crash appears: AMAZON KFSOWI, AMAZON KFTHWI, AMAZON KFAPWI, AMAZON KFTT, AMAZON KFJWA
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
Thanks for the details.
10 |5000

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

Bipin@Amazon avatar image
Bipin@Amazon answered
You have to use latest Amazon GameCircle Android SDK Version 2.3.0. This will solve the problem NEW FEATURES: --------------- * Adds the AGSignedInListener callback interface. You can use this to detect when the signed in state of a player changes. * Adds the PlayerClient interface, which retrieves player information for a given player from the Amazon Game Service. This interface provides the isSignedIn and setSignedInListener methods that you can use to check and detect the signed-in state of a player. PlayerClient replaces ProfileClient.
10 |5000

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

Marcel Tricolici avatar image
Marcel Tricolici answered
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.