App quit on second run if Debug = true
linhtranvu opened this issue · 1 comments
linhtranvu commented
Your Environment
- Plugin version: 3.1.0
- Platform: iOS
- OS version: 13.5
- Device manufacturer and model: IPhone 7 Plus
- Running in Simulator: Iphone 8
- Cordova version (
cordova -v
): 9.0.0 - Cordova platform version (
cordova platform ls
): 5.0 - Plugin configuration options: Use sample project
- Link to your project: Issue with sample project at https://github.com/mauron85/cordova-plugin-background-geolocation-example
Context
- Run sample app
- Press Start
- Double on home button, force quit app
- Run app, press start, app quit unexpectedly
Expected Behavior
App run normal
Actual Behavior
app quit unexpectedly on second run
Possible Fix
Steps to Reproduce
- Turn debug on
- Run sample app (clone from https://github.com/mauron85/cordova-plugin-background-geolocation-example) on IOS 13.5
- Press Start
- Double on home button, force quit app
- Run app, press start, app quit unexpectedly
Context
Debug logs
I try to look at look log on iphone and find this.
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_PROTECTION_FAILURE at 0x000000016f127ff0
VM Region Info: 0x16f127ff0 is in 0x16f124000-0x16f128000; bytes after start: 16368 bytes before end: 15
Turn on Zombie debug on XCode and find our this error happen when setting has debug on. Happen on line 480, file CDVBackgroundGeolocation.m
with userNotification Center
jamesonsaunders commented
Workaround: set debug
to false