cordova-plugin-background-geolocation icon indicating copy to clipboard operation
cordova-plugin-background-geolocation copied to clipboard

App quit on second run if Debug = true

Open linhtranvu opened this issue 5 years ago • 1 comments

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

  1. Turn debug on
  2. Run sample app (clone from https://github.com/mauron85/cordova-plugin-background-geolocation-example) on IOS 13.5
  3. Press Start
  4. Double on home button, force quit app
  5. 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

linhtranvu avatar Nov 04 '20 10:11 linhtranvu

Workaround: set debug to false

jamesonsaunders avatar Sep 03 '21 17:09 jamesonsaunders