Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

PayPalService has leaked ServiceConnection #254

Closed
jbaginski opened this issue Feb 9, 2016 · 3 comments
Closed

PayPalService has leaked ServiceConnection #254

jbaginski opened this issue Feb 9, 2016 · 3 comments
Labels

Comments

@jbaginski
Copy link

E/ActivityThread: Service com.paypal.android.sdk.payments.PayPalService has leaked ServiceConnection com.google.android.gms.common.g@ae272be that was originally bound here
       android.app.ServiceConnectionLeaked: Service com.paypal.android.sdk.payments.PayPalService has leaked ServiceConnection com.google.android.gms.common.g@ae272be that was originally bound here
           at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:1092)
           at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:986)
           at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1303)
           at android.app.ContextImpl.bindService(ContextImpl.java:1286)
           at android.content.ContextWrapper.bindService(ContextWrapper.java:604)
           at com.google.android.gms.common.stats.b.a(Unknown Source)
           at com.google.android.gms.common.stats.b.a(Unknown Source)
           at com.google.android.gms.ads.identifier.AdvertisingIdClient.zzp(Unknown Source)
           at com.google.android.gms.ads.identifier.AdvertisingIdClient.zzb(Unknown Source)
           at com.google.android.gms.ads.identifier.AdvertisingIdClient.getAdvertisingIdInfo(Unknown Source)
           at com.paypal.android.sdk.au.run(Unknown Source)
           at java.lang.Thread.run(Thread.java:818)

our code:

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    Intent intent = new Intent(this, PayPalService.class);
    intent.putExtra(PayPalService.EXTRA_PAYPAL_CONFIGURATION, PayPalPaymentService.getPaypalConfig());
    startService(intent);

    // ...
}

@Override
public void onDestroy() {
    stopService(new Intent(this, PayPalService.class));
    super.onDestroy();
}

PayPal SDK v2.13.1
Google Play Services v8.4.0

@braebot
Copy link
Contributor

braebot commented Feb 9, 2016

Hmm, I'm not sure if this is an issue that we can fix. There's an API internal to the SDK that is just calling getAdvertisingIdInfo(). Perhaps we need to do a proper shut down of that client?

@naitikvithlani
Copy link

@jbaginski
I was also facing the same issue in my application, it was caused by other dependency library used with gradle.

once checked with either library with PayPal, I solved it. Please check with your application other dependency libraries.

@randstraw
Copy link

closing the issue, please let us know if further assistance is needed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants