nidjis / marketbilling

Automatically exported from code.google.com/p/marketbilling
0 stars 0 forks source link

IllegalStateException: Can't start async operation (refresh inventory) because another async operation(refresh inventory) is in progress #134

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
STEPS TO REPRODUCE:
1. launch app
2. click on market icon
3. sometimes it crashes (I cannot reproduce it every time)

I have 1 call to query items when the app start and 1 to query item when the 
market activity start (in order to refresh them).

EXPECTED OUTPUT:

All calls handle correctly parallels and async interaction 

ACTUAL OUTPUT:

Crash with this log:

java.lang.IllegalStateException: Can't start async operation (refresh 
inventory) because another async operation(refresh inventory) is in progress
.at 
com.android.vending.billing.util.IabHelper.flagStartAsync(IabHelper.java:901)
at 
com.android.vending.billing.util.IabHelper.queryInventoryAsync(IabHelper.java:69
2)
at 
com.designfuture.music.service.InappPurchaseService$2.onIabSetupFinished(InappPu
rchaseService.java:97)
at 
com.android.vending.billing.util.IabHelper$1.onServiceConnected(IabHelper.java:2
70)
at 
android.app.ActivityThread$PackageInfo$ServiceDispatcher.doConnected(ActivityThr
ead.java:1247)
at 
android.app.ActivityThread$PackageInfo$ServiceDispatcher$RunConnection.run(Activ
ityThread.java:1264)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at dalvik.system.NativeStart.main(Native Method)

AFFECTED ORDER IDS (IF RELEVANT):

OS VERSION: not relevant

MARKET/MYAPPS VERSION: not published yet.

DEVICE:

OUTPUT FROM ADB BUGREPORT ATTACHED:
(Note: The output from "adb bugreport" is required for all bug reports.)

NOTES:

Original issue reported on code.google.com by stermi on 26 Jul 2013 at 12:50

GoogleCodeExporter commented 8 years ago
Is this going to be fixed?

Original comment by jonas.he...@gmail.com on 30 May 2014 at 4:56