AndroidInAppBilling
AndroidInAppBilling copied to clipboard
Mysterious crashes
Hi,
I've recently upgraded my app to version 2.0 and it includes your plugin. So far 85000 people upgraded and I received a dozen or so 1-star comments that the app crashes (and hell knows how many people simply uninstalled the app).
I only have one crash reported @ the Google Play Developer Console, here's the stack trace:
java.lang.NullPointerException
at com.smartmobilesoftware.util.IabHelper.queryPurchases(IabHelper.java:836)
at com.smartmobilesoftware.util.IabHelper.queryInventory(IabHelper.java:558)
at com.smartmobilesoftware.util.IabHelper.queryInventory(IabHelper.java:522)
at com.smartmobilesoftware.util.IabHelper$2.run(IabHelper.java:617)
at java.lang.Thread.run(Thread.java:856)
I found a similar (probably the same) problem on Stack Overflow ( http://stackoverflow.com/questions/15456434/billing-api-v3-iabhelper-nullpointerexception ) and it looks like IabHelper is buggy. Solutions are offered, but I don't speak Java.
@poiuytrez Can you please take a look at it?
Got another one. According to the user, the app froze, then crashed. It didn't crash on any of the next runs.
java.lang.IllegalStateException: IAB helper is not set up. Can't perform operation: queryInventory
at com.smartmobilesoftware.util.IabHelper.checkSetupDone(IabHelper.java:782)
at com.smartmobilesoftware.util.IabHelper.queryInventoryAsync(IabHelper.java:610)
at com.smartmobilesoftware.util.IabHelper.queryInventoryAsync(IabHelper.java:639)
at com.smartmobilesoftware.inappbilling.InAppBillingPlugin$1.onIabSetupFinished(InAppBillingPlugin.java:166)
at com.smartmobilesoftware.util.IabHelper$1.onServiceConnected(IabHelper.java:260)
at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1098)
at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1115)
at android.os.Handler.handleCallback(Handler.java:615)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4921)
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:1038)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
at dalvik.system.NativeStart.main(Native Method)
Apparently the behavior shown in the video is caused by another plugin, sorry for that. But those two crash reports stand... .
I had the same issue on Intel Atom. Works fine on ARM.
I am very busy currently. However, I will merge any pull request improvement into this project. Email me directly if you need professional support.
Has this ever been resolved? I'm seeing the same error from Google Play reports.