question

Marcel Tricolici avatar image
Marcel Tricolici asked

NullPointer in com.amazon.ags.api.AmazonGamesClient.initializeSession

We are getting an unhandled exception in a thread that we can't control (it's amazon sdk thread). I've reported this earlier in a separate topic. You guys said that latest SDK fixes this but it doesn't! How to reproduce: Lock the device, rotate screen. unlock. Stacktrace: java.lang.NullPointerException at com.amazon.ags.api.AmazonGamesClient.initializeSession(SourceFile:249) at com.amazon.ags.api.AmazonGamesClient.access$700(SourceFile:70) at com.amazon.ags.api.AmazonGamesClient$1$1$1$1.onBound(SourceFile:220) 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:151) at android.app.ActivityThread.main(ActivityThread.java:5185) 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:793) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) 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.

Marcel Tricolici avatar image
Marcel Tricolici answered
Because of this bug in SDK amazon rejected a new version of our product.
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, I tried to follow the reproduction steps as you have mentioned: Lock the device, rotate screen. unlock. I am unable to reproduce the issue. I am sending you a sample app which is integrate with GameCircle latest SDK to you registered email id. Please check whether you can reproduce the issue or not. If not, please look at your app to find any significant difference between your app and the sample app that I am sending you. You can send us a sample up what can reproduce the issue for further investigation.
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
Ok. We have received your ContactUs and we are unable to to repro the issue. We are escalating to internal appropriate team for re-review your app. We will let you know the status through mail shortly. 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.