iOS-Open-GPX-Tracker icon indicating copy to clipboard operation
iOS-Open-GPX-Tracker copied to clipboard

Crash on Waypoint edit

Open jaroslawhartman opened this issue 5 years ago • 6 comments

Hi,

The app is constantly crashing for me after choosing Edit waypoint name and pressing Save. This happens to me when:

  • I start track recording on a GPX pre-prepared on my PC and the file is loaded to the app
  • I record live from GPX (i.e. on top of a pre-prepared and loaded GPX)
  • I save the file
  • Add a Waypoint
  • Select it for editing, edit and save new WP name

For reference:

  • I'm on GXP Tracker v1.7.2
  • iOS 13.3.1
  • Added for reference GPX I'm working on
  • Added CrashReport

Best regards, Jarek

PS: I've just noticed that this supposed to be fixed as #151 but somehow it's back?

jaroslawhartman avatar Mar 22 '20 19:03 jaroslawhartman

Hi Jarek, I guess #151 didn't fully fix things up correctly. Give me some time while I try to understand what went wrong.

Also, thanks for documenting the issue.

vincentneo avatar Mar 23 '20 04:03 vincentneo

Hi Jarek @jaroslawhartman,

I tried replicating the bug, and on my side, I am able to replicate the crash in the app store v1.7.2 app, but was unable to replicate the crash in the latest commit.

That is quite baffling for me, as #151 is included in v1.7.2, and the other commits after the v1.7.2 are not 'critical' commits that fixes anything...

Have seen your crash report, but was unable to symbolicate. Still, am able to see that the fault occurred at NSManagedObjectContext, suggesting its relations to Core Data, which is something that #151 is related to as well.

Can I kindly ask you to try out latest commit, in case I was clumsy doing something wrong?

Thanks!

vincentneo avatar Mar 25 '20 13:03 vincentneo

Still having the crash issue on the v1.7.2, repeatable. I have a big map loaded, trying to edit a just created waypoint, crash. Secondly when deleting a just created waypoint, same: crash.

JDDoe avatar Jun 09 '20 20:06 JDDoe

How to crash in 5 easy steps (you won't believe number 3!):

  1. Open GPX_Tracker or tap reset
  2. Add point (drop a pin)
  3. Save (any name will do)
  4. Edit point (select the point you added, then click the pencil icon to edit, no need to enter anything)
  5. Tap 'Save' and see the app go away!

Because I encountered some random crashes in the past, I started saving frequently or even after entering points... this only made crashes more frequent (because of this bug), but made me think I had a way to reliably reproduce.

Above is a minimal set of steps to reproduce this crash.

Counterintuitively, the way to avoid crashing is not to save!
Or, after you save, open and load the data again--this seems to work.
Edit after save appears to cause the crash.

toddkaufmann avatar Oct 17 '21 22:10 toddkaufmann