{"action":"created","issue":{"url":"https://api.github.com/repos/googlesamples/android-play-billing/issues/125","repository_url":"https://api.github.com/repos/googlesamples/android-play-billing","labels_url":"https://api.github.com/repos/googlesamples/android-play-billing/issues/125/labels{/name}","comments_url":"https://api.github.com/repos/googlesamples/android-play-billing/issues/125/comments","events_url":"https://api.github.com/repos/googlesamples/android-play-billing/issues/125/events","html_url":"https://github.com/googlesamples/android-play-billing/issues/125","id":306737493,"number":125,"title":"Crash: java.lang.IllegalStateException","user":{"login":"gaurangtalwadkar","id":1962656,"avatar_url":"https://avatars3.githubusercontent.com/u/1962656?v=4","gravatar_id":"","url":"https://api.github.com/users/gaurangtalwadkar","html_url":"https://github.com/gaurangtalwadkar","followers_url":"https://api.github.com/users/gaurangtalwadkar/followers","following_url":"https://api.github.com/users/gaurangtalwadkar/following{/other_user}","gists_url":"https://api.github.com/users/gaurangtalwadkar/gists{/gist_id}","starred_url":"https://api.github.com/users/gaurangtalwadkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaurangtalwadkar/subscriptions","organizations_url":"https://api.github.com/users/gaurangtalwadkar/orgs","repos_url":"https://api.github.com/users/gaurangtalwadkar/repos","events_url":"https://api.github.com/users/gaurangtalwadkar/events{/privacy}","received_events_url":"https://api.github.com/users/gaurangtalwadkar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-20T05:51:47Z","updated_at":"2018-05-30T07:48:53Z","closed_at":null,"author_association":"NONE","body":"I have in-app-billing integrated in my app and I've followed Trivial Drive sample app for implementation. But I'm getting crashes reported for `java.lang.IllegalStateException`.  I'm not able to reproduce the crash but more than 1% users are facing this issue. Please let me know what could be the issue and how to fix it.\r\n```\r\njava.lang.IllegalStateException: \r\n  at com.bitrhymes.iab.util.IabHelper.checkSetupDone (IabHelper.java:822)\r\n  at com.bitrhymes.iab.util.IabHelper.queryInventoryAsync (IabHelper.java:644)\r\n  at com.bitrhymes.iab.util.IabHelper.queryInventoryAsync (IabHelper.java:678)\r\n  at com.bitrhymes.iab.functions.GoogleIABV3Activity$4.onIabSetupFinished (GoogleIABV3Activity.java:356)\r\n  at com.bitrhymes.iab.util.IabHelper$1.onServiceConnected (IabHelper.java:252)\r\n  at android.app.LoadedApk$ServiceDispatcher.doConnected (LoadedApk.java:1516)\r\n  at android.app.LoadedApk$ServiceDispatcher$RunConnection.run (LoadedApk.java:1544)\r\n  at android.os.Handler.handleCallback (Handler.java:751)\r\n  at android.os.Handler.dispatchMessage (Handler.java:95)\r\n  at android.os.Looper.loop (Looper.java:154)\r\n  at android.app.ActivityThread.main (ActivityThread.java:6682)\r\n  at java.lang.reflect.Method.invoke (Native Method)\r\n  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1520)\r\n  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1410)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/googlesamples/android-play-billing/issues/comments/393064291","html_url":"https://github.com/googlesamples/android-play-billing/issues/125#issuecomment-393064291","issue_url":"https://api.github.com/repos/googlesamples/android-play-billing/issues/125","id":393064291,"user":{"login":"proctar","id":7567594,"avatar_url":"https://avatars0.githubusercontent.com/u/7567594?v=4","gravatar_id":"","url":"https://api.github.com/users/proctar","html_url":"https://github.com/proctar","followers_url":"https://api.github.com/users/proctar/followers","following_url":"https://api.github.com/users/proctar/following{/other_user}","gists_url":"https://api.github.com/users/proctar/gists{/gist_id}","starred_url":"https://api.github.com/users/proctar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/proctar/subscriptions","organizations_url":"https://api.github.com/users/proctar/orgs","repos_url":"https://api.github.com/users/proctar/repos","events_url":"https://api.github.com/users/proctar/events{/privacy}","received_events_url":"https://api.github.com/users/proctar/received_events","type":"User","site_admin":false},"created_at":"2018-05-30T07:48:53Z","updated_at":"2018-05-30T07:48:53Z","author_association":"NONE","body":"Same here. Could this be because IABHelper's startSetup() catches RemoteException, but not any other kind of exception? In that case, getting another exception than RemoteException would result in a BILLING_RESPONSE_RESULT_OK response, then we try to call queryInventoryAsync() and the IABHelper is not \"ready\"... I'm considering changing \"RemoteException\" into \"Exception\" for now."}}
{"actor":{"display_login":"proctar"}}