distriqt / airnativeextensions

DEPRECATED: Original repository of the distriqt native extensions and is no longer maintained. Please see our site for the latest ANEs
https://airnativeextensions.com
2 stars 0 forks source link

InAppBilling ANE : NullPointerException on IabHelper.queryPurchases #193

Closed VoodooGames closed 9 years ago

VoodooGames commented 10 years ago

Hi,

Many of our Android users have reported a crash caused by in-app purchases.

I had a look at Flurry crash reports and saw these two crash report stack trace :

java.lang.NullPointerException
com.distriqt.extension.inappbilling.util.IabHelper.queryPurchases(IabHelper.java:842)
com.distriqt.extension.inappbilling.util.IabHelper.queryInventory(IabHelper.java:544)
com.distriqt.extension.inappbilling.util.IabHelper.queryInventory(IabHelper.java:522)
com.distriqt.extension.inappbilling.util.IabHelper$2.run(IabHelper.java:617)
java.lang.Thread.run(Thread.java:841)

and

java.lang.NullPointerException
com.distriqt.extension.inappbilling.util.IabHelper.queryPurchases(IabHelper.java:836)
com.distriqt.extension.inappbilling.util.IabHelper.queryInventory(IabHelper.java:558)
com.distriqt.extension.inappbilling.util.IabHelper.queryInventory(IabHelper.java:522)
com.distriqt.extension.inappbilling.util.IabHelper$2.run(IabHelper.java:617)
java.lang.Thread.run(Thread.java:856)

Do you have any idea of the origin of this bug?

Something that may be related :

We've had another issue a few month ago : https://github.com/distriqt/airnativeextensions/issues/74 We fixed it by NEVER calling InAppBilling.service.dispose().

Maybe if you wait for a few minutes without calling InAppBilling.service.setup again, a network service is lost, causing the NullPointerException? Just a guess.

Thanks for your help.

marchbold commented 10 years ago

Hi, Is the application completely crashing at these reports or is it just reported in the logs?

VoodooGames commented 10 years ago

Some users reported a crash, others said the app wall still running but buggy, so i don't really have clear answer to give.

Thanks for your help

VoodooGames commented 10 years ago

Any updates?

VoodooGames commented 10 years ago

Still nothing?

marchbold commented 10 years ago

Sorry for the delay,

We're looking into it. We've got a couple of updates for the InAppBilling extension that are in testing at the moment so I'm going to put this one out with that update.

VoodooGames commented 10 years ago

Great ! Thanks for your help, looking forward to the next update :)

VoodooGames commented 10 years ago

Hi,

Do we have an ETA for the next release?

Thanks

graemelaws commented 10 years ago

Hi,

I'm having the same issue as well, crash logs in google play are as follows:

java.lang.NullPointerException at com.distriqt.extension.inappbilling.util.IabHelper.queryPurchases(IabHelper.java:860) at com.distriqt.extension.inappbilling.util.IabHelper.queryInventory(IabHelper.java:544) at com.distriqt.extension.inappbilling.util.IabHelper.queryInventory(IabHelper.java:522) at com.distriqt.extension.inappbilling.util.IabHelper$2.run(IabHelper.java:617) at java.lang.Thread.run(Thread.java:856)

Thanks, Graeme.

minimedj commented 10 years ago

@marchbold

Michael, it is more than a month since you wrote that you are looking... Any news so far?

marchbold commented 10 years ago

I do apologise, we are swamped with iOS 8 updates at the moment. I am working on this issue and hope to have an update very soon.