-
Notifications
You must be signed in to change notification settings - Fork 171
java.lang.IllegalStateException: IAB helper is not set up #199
Comments
answer #200 question, please |
Do you have any update on that problem maybe? I get quite a lot of crashes every day. |
Please log your threads. Must be the same thread, but according to your log it is not. |
Hi @marqs87 Could you try this version of OpenIAB and let me know? http://yadi.sk/d/F3y6KrD_QFJPr It has updated synchronization model |
It will be difficult as I can't reproduce the problem myself and I won't be able to use it in my release because I already use customized version of OnePF due to the Amazon null pointer exceptions I logged here some time ago. |
I'm having the same issue |
I'm currently use OpenIAB 0.9.6 (Unity plugin) and have the same issue as @adriandiesel: java.lang.IllegalStateException
org.onepf.oms.appstore.googleUtils.IabHelper.checkSetupDone(IabHelper.java:806)
org.onepf.oms.appstore.googleUtils.IabHelper.queryInventory(IabHelper.java:566)
org.onepf.oms.OpenIabHelper.queryInventory(OpenIabHelper.java:930)
org.onepf.oms.OpenIabHelper$5.run(OpenIabHelper.java:957)
java.lang.Thread.run(Thread.java:856) Crashes by devices
Crashes by firmware
Hope this data can help. Also I never can catch this bug myself on my test devices. |
Please, find fixed version on 'master'. Artifacts will be released in 0.9.7 soon |
If meet with some unexpected cases after OpenIAB update, please let us know |
I'm having trouble adding openiab as a library project with gradle in android studio. Any eta on .9.7 or any way to mitigate the issue until then? |
Hi @sbaar! Currently we don't support gradle for OpenIAB. I suggest to simply put OpenIAB.jar to /libs folder of Android project layout. Android default build procedure should pick it up. If doesn't work, please let me know! |
Sorry, I was unclear in my last response. I can do that fine, it's just im getting intermittent crashes reported in this issue. I'll try ant later tonight (although from experience ant hates me). Is there any specific version of ant I need to use? If not I'll just wait for the next jar, I was just wondering when that would be. |
Issue is fixed in 0.9.7-pre, you can try .jar from here http://yadi.sk/d/A4GzFHfsSY8r6 I expect to finish with 0.9.7 this week. Need to finish with several pull-requests first |
A considerable number of my users get this exception. However, I cannot reproduce it on any of my devices.
java.lang.IllegalStateException: IAB helper is not set up. Can't perform operation: queryInventory
at org.onepf.oms.appstore.googleUtils.IabHelper.checkSetupDone(IabHelper.java:806)
at org.onepf.oms.appstore.googleUtils.IabHelper.queryInventory(IabHelper.java:566)
at org.onepf.oms.OpenIabHelper.queryInventory(OpenIabHelper.java:930)
at org.onepf.oms.OpenIabHelper$5.run(OpenIabHelper.java:957)
at java.lang.Thread.run(Thread.java:864)
I can see that you throw IllegalStateException when mSetupDone is false in checkSetupDone() in org.onepf.oms.appstore.googleUtils.IabHelper
I guess we could add 'catch (IllegalStateException ex)' to the queryInventoryAsync method in OpenIabHelper to handle this exception.
The text was updated successfully, but these errors were encountered: