Skip to content
This repository has been archived by the owner on Apr 28, 2022. It is now read-only.

App with OpenIAB crashes if Google Play or OpenStore process is killed #38

Closed
oorlov opened this issue Sep 28, 2013 · 1 comment
Closed
Assignees
Labels

Comments

@oorlov
Copy link
Contributor

oorlov commented Sep 28, 2013

  • Open TrivialDrive
  • Buy something in Google Play / OpenStore
  • Kill Google Play / OpenStore process
  • Try to buy something else
    ACT: TrivialDrive crashes
    EXP: Should reconnect to service and perform purchase

Log:

09-29 01:30:30.619: E/AndroidRuntime(27929): FATAL EXCEPTION: main
09-29 01:30:30.619: E/AndroidRuntime(27929): java.lang.IllegalStateException: Could not execute method of the activity
09-29 01:30:30.619: E/AndroidRuntime(27929):    at android.view.View$1.onClick(View.java:3699)
09-29 01:30:30.619: E/AndroidRuntime(27929):    at android.view.View.performClick(View.java:4223)
09-29 01:30:30.619: E/AndroidRuntime(27929):    at android.view.View$PerformClick.run(View.java:17275)
09-29 01:30:30.619: E/AndroidRuntime(27929):    at android.os.Handler.handleCallback(Handler.java:615)
09-29 01:30:30.619: E/AndroidRuntime(27929):    at android.os.Handler.dispatchMessage(Handler.java:92)
09-29 01:30:30.619: E/AndroidRuntime(27929):    at android.os.Looper.loop(Looper.java:137)
09-29 01:30:30.619: E/AndroidRuntime(27929):    at android.app.ActivityThread.main(ActivityThread.java:4898)
09-29 01:30:30.619: E/AndroidRuntime(27929):    at java.lang.reflect.Method.invokeNative(Native Method)
09-29 01:30:30.619: E/AndroidRuntime(27929):    at java.lang.reflect.Method.invoke(Method.java:511)
09-29 01:30:30.619: E/AndroidRuntime(27929):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1008)
09-29 01:30:30.619: E/AndroidRuntime(27929):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:775)
09-29 01:30:30.619: E/AndroidRuntime(27929):    at dalvik.system.NativeStart.main(Native Method)
09-29 01:30:30.619: E/AndroidRuntime(27929): Caused by: java.lang.reflect.InvocationTargetException
09-29 01:30:30.619: E/AndroidRuntime(27929):    at java.lang.reflect.Method.invokeNative(Native Method)
09-29 01:30:30.619: E/AndroidRuntime(27929):    at java.lang.reflect.Method.invoke(Method.java:511)
09-29 01:30:30.619: E/AndroidRuntime(27929):    at android.view.View$1.onClick(View.java:3694)
09-29 01:30:30.619: E/AndroidRuntime(27929):    ... 11 more
09-29 01:30:30.619: E/AndroidRuntime(27929): Caused by: java.lang.NullPointerException
09-29 01:30:30.619: E/AndroidRuntime(27929):    at org.onepf.oms.appstore.googleUtils.IabHelper.launchPurchaseFlow(IabHelper.java:397)
09-29 01:30:30.619: E/AndroidRuntime(27929):    at org.onepf.oms.OpenIabHelper.launchPurchaseFlow(OpenIabHelper.java:249)
09-29 01:30:30.619: E/AndroidRuntime(27929):    at org.onepf.oms.OpenIabHelper.launchPurchaseFlow(OpenIabHelper.java:232)
09-29 01:30:30.619: E/AndroidRuntime(27929):    at org.onepf.trivialdrive.MainActivity.onBuyGasButtonClicked(MainActivity.java:271)
09-29 01:30:30.619: E/AndroidRuntime(27929):    ... 14 more
@ghost ghost assigned akarimova Jan 15, 2014
@akarimova
Copy link
Contributor

As a simple solution lets try to reconnect to the service. Not in the current IabHelper method (it requires tons of synchronization) but inside the connection listener.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Development

No branches or pull requests

2 participants