AndroidInAppBilling icon indicating copy to clipboard operation
AndroidInAppBilling copied to clipboard

Mysterious crashes

Open muszek opened this issue 10 years ago • 5 comments

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?

muszek avatar Jul 01 '14 12:07 muszek

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)

muszek avatar Jul 01 '14 16:07 muszek

Apparently the behavior shown in the video is caused by another plugin, sorry for that. But those two crash reports stand... .

muszek avatar Jul 08 '14 20:07 muszek

I had the same issue on Intel Atom. Works fine on ARM.

manuelpaulo avatar Sep 06 '14 04:09 manuelpaulo

I am very busy currently. However, I will merge any pull request improvement into this project. Email me directly if you need professional support.

poiuytrez avatar Sep 08 '14 09:09 poiuytrez

Has this ever been resolved? I'm seeing the same error from Google Play reports.

Dave-Richardson avatar Nov 30 '14 22:11 Dave-Richardson