-
Notifications
You must be signed in to change notification settings - Fork 564
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
Attempt to invoke virtual method 'void com.marianhello.bgloc.LocationService.start()' on a null object reference #232
Comments
Is this due to race condition? Hit this while launching the app. |
randomly getting this bug as well. This is on Plugin version: 0.5.0-alpha.21 though
|
@Yusiro85 are you launching your app from notification? |
nope. I didn't. |
Have you modified plugin somehow? Or using vanilla? Because lines from your stack trace doesn't match. Eg.
Line 145 of plugin in version 0.5.0-alpha.34 is method declaration so it could not crash there. Line 145 in 4f2be66
|
Yes, I did apply a wakelock.acquire in Constructor and release it in onHostDestroy. |
Probably not, but it made error stacktrace useless. |
what about this error? this is based on Plugin version: 0.5.0-alpha.21. |
Not sure what is your reason to stay on old alpha (since you're not opening app from notification and that for not affected by #201) But if you need to stay on old alpha pick up 3.0.0-alpha.22, because of this (from CHANGELOG.md) fix: |
Ok thanks for pointing me in the right direction. |
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. |
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. |
Your Environment
Plugin version: 0.5.0-alpha.34
Platform: Android
OS version: 7.0
Device manufacturer and model: Huawei VIE-L29
React Native version: 0.51.0
Plugin configuration options:
BackgroundGeolocation.configure({
distanceFilter: 50,
debug: false,
startOnBoot: false,
stationaryRadius: 50,
stopOnTerminate: true,
desiredAccuracy: 10,
interval: 15000
});
Link to your project:
Context
Expected Behavior
Launch the app and run without issue, start tracking location
Actual Behavior
Crash after launch and login the app
Possible Fix
Steps to Reproduce
Context
Debug logs
The text was updated successfully, but these errors were encountered: