Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

com.marianhello.bgloc.LocationService$PostLocationTask.add (LocationService.java:549) #243

Closed
ntelkedzhiev opened this issue Jul 18, 2018 · 6 comments
Labels
stale auto labeled abandoned issues after a period of inactivity

Comments

@ntelkedzhiev
Copy link

Your Environment

  • Plugin version: 0.5.0-alpha.35
  • Platform: Android
  • OS version: 7.1.2
  • Device manufacturer and model: Xiaomi Redmi 5
  • React Native version: 0.56.0
  • Plugin configuration options:
    desiredAccuracy: BackgroundGeolocation.HIGH_ACCURACY,
    stationaryRadius: 30,
    distanceFilter: 30,
    debug: false,
    startOnBoot: false,
    stopOnTerminate: true,
    locationProvider: BackgroundGeolocation.ACTIVITY_PROVIDER,
    interval: 60000,
    fastestInterval: FASTEST_INTERVAL,
    activitiesInterval: 30000,
    stopOnStillActivity: false,

Context

Reported by Crashlytics on a live version.

Debug logs

Fatal Exception: java.util.concurrent.RejectedExecutionException
Task com.marianhello.bgloc.LocationService$PostLocationTask$1@21f3611 rejected from java.util.concurrent.ThreadPoolExecutor@be96376[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 188]

@tlacroix
Copy link

I am experiencing the same problem on a Huawei Mate SE running Android 8.0. The app sends 2-3 locations, then I get this message every 10 seconds in adb logcat.

All 3 providers give the same result. I'm using medium accuracy. My updates are sent roughly every 2-3 minutes (depending on the filter).

The server response time isn't a problem (the whole HTTP request takes about 80ms).

I'm not using the "location" event, only the url parameter.

Once in a blue moon (once every 20-30 tests roughly), it'll work for a few hours.

Everything works fine on iOS.

@mauron85
Copy link
Owner

@tlacroix what version are you using?

@tlacroix
Copy link

tlacroix commented Dec 10, 2018

@mauron85 The cordova-plugin-mauron85-background-geolocation version 3.0.0-alpha.49
cordova: 8.0.0
cordova-android: 7.1.4

I suspect the problem might be with the underlying geolocation library, so common to both plugins.

@tlacroix
Copy link

Sorry for the cross-project comment. I've been a bit desperate about this issue! I've been doing more testing on this (4h today, for a total of 40h+ in the past two weeks), and I think I'm starting to see a pattern. Anyhow, I'll open an issue on the right project and document it properly, and reference it here.

@stale
Copy link

stale bot commented Jun 9, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale auto labeled abandoned issues after a period of inactivity label Jun 9, 2019
@stale
Copy link

stale bot commented Jun 16, 2019

This issue has been automatically closed, because it has not had recent activity. If you believe this issue shouldn't be closed, please reopen or write down a comment requesting issue reopening with explanation why you think it's important. Thank you for your contributions.

@stale stale bot closed this as completed Jun 16, 2019
mauron85 added a commit that referenced this issue Sep 16, 2019
Fixes:

- Android fix RejectedExecutionException (fixes #319 #259 #243 #149 #68)
- Android add stop guard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale auto labeled abandoned issues after a period of inactivity
Projects
None yet
Development

No branches or pull requests

3 participants