mauron85/cordova-plugin-background-geolocation

App quit on second run if Debug = true

linhtranvu opened this issue · 1 comments

Your Environment

  • Plugin version: 3.1.0
  • Platform: iOS
  • OS version: 13.5
  • Device manufacturer and model: IPhone 7 Plus

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

Workaround: set debug to false