SDKBOX Amazon IAP issue

Anyone know how to fix this with SDKBOX Amazon IAP? I am using v3.15.1. Might be just a bug in SDKBOX ???

Repro Steps

  1. Try to make purchase
  2. Dismiss IAP dialog

This is where we see the error.

Thanks!

09-14 21:49:51.663 5952-5952/? E/ActivityThread: Activity com.amazon.mas.client.iap.purchase.PurchaseActivity has leaked ServiceConnection com.amazon.mas.client.iap.purchase.AbstractPurchaseController$1@23e82c38 that was originally bound here
android.app.ServiceConnectionLeaked: Activity com.amazon.mas.client.iap.purchase.PurchaseActivity has leaked ServiceConnection com.amazon.mas.client.iap.purchase.AbstractPurchaseController$1@23e82c38 that was originally bound here
at android.app.LoadedApk$ServiceDispatcher.(LoadedApk.java:1113)
at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:1007)
at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1867)
at android.app.ContextImpl.bindService(ContextImpl.java:1850)
at android.content.ContextWrapper.bindService(ContextWrapper.java:564)
at com.amazon.mas.client.iap.purchase.AbstractPurchaseController.onStart(AbstractPurchaseController.java:182)
at com.amazon.mas.client.iap.purchase.PurchaseActivity.onStart(PurchaseActivity.java:151)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1252)
at android.app.Activity.performStart(Activity.java:6042)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2330)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2435)
at android.app.ActivityThread.access$800(ActivityThread.java:160)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5484)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:984)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
09-14 21:49:51.785 5952-7824/? I/AmazonAppstore.IAP/IapAD3LoggingDelegate: IAP event: 5c91b0fe-3173-465b-9190-a9bae403a24e IapThirdPartyProcessRemainedInMemory

I can’t reproduce this issue with https://github.com/sdkbox/sdkbox-sample-amazon,
can u help to test ?

I am testing it live not the App Tester thingy. Have you tried it live? It should never be leaking connections, it’s most likely a SDKBOX bug.

En, I have updated amazon’s sdk, could u try it ?

https://github.com/sdkbox/sdkbox-sample-amazon/blob/master/cpp/proj.android/libs/amazon-iap.jar

Still same issue.

i’m trying to live my app.

Best way to quickly test is use the “Live App Testing” see below. Thanks man!

thanks, i’ll check it .

yes, i reproduce this issue.

09-19 10:06:51.946 22917-22917/? E/ActivityThread: Activity com.amazon.mas.client.iap.purchase.PurchaseActivity has leaked ServiceConnection com.amazon.mas.client.iap.purchase.AbstractPurchaseController$1@41e32ed8 that was originally bound here
                                                   android.app.ServiceConnectionLeaked: Activity com.amazon.mas.client.iap.purchase.PurchaseActivity has leaked ServiceConnection com.amazon.mas.client.iap.purchase.AbstractPurchaseController$1@41e32ed8 that was originally bound here
                                                       at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:980)
                                                       at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:874)
                                                       at android.app.ContextImpl.bindService(ContextImpl.java:1404)
                                                       at android.content.ContextWrapper.bindService(ContextWrapper.java:387)
                                                       at com.amazon.mas.client.iap.purchase.AbstractPurchaseController.onStart(AbstractPurchaseController.java:182)
                                                       at com.amazon.mas.client.iap.purchase.PurchaseActivity.onStart(PurchaseActivity.java:151)
                                                       at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1133)
                                                       at android.app.Activity.performStart(Activity.java:4648)
                                                       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2004)
                                                       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2056)
                                                       at android.app.ActivityThread.access$600(ActivityThread.java:127)
                                                       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1177)
                                                       at android.os.Handler.dispatchMessage(Handler.java:99)
                                                       at android.os.Looper.loop(Looper.java:137)
                                                       at android.app.ActivityThread.main(ActivityThread.java:4533)
                                                       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)
09-19 10:06:51.954 204-450/? W/ActivityManager: Unbind failed: could not find connection for android.os.BinderProxy@41dbdc90

Awesome, please ping me when you guys have a fix :slight_smile:

@yinjimmy what’s your timeline on a fix available? Thanks!

we’re working with amazon developers.

@yinjimmy Sorry, we are not sure what you mean? You waiting on amazon?

we’re working with amazon developers.

also tracking the issue here.