gpslogger icon indicating copy to clipboard operation
gpslogger copied to clipboard

Log files may get corrupted

Open farmazon3000 opened this issue 4 years ago • 0 comments

I started to wondering do you have some sort validation of log files - so far my examination of source code says: no.

What may go wrong - write to log (e.g. Gpx10FileLogger) may get interrupted in any time by Android.

This is quite unlike to happen but still possible. It may occur in two cases:

  1. app is killed by OS to reclaim resources,
  2. app is killed by user (e.g. from app's settings - force stop).

I think it may be worth to add "validate log files" procedure to close all xml tags etc. It amy be started from UI (on user trigger) or automatically on app's process startup.

(BTW this may be related https://github.com/mendhak/gpslogger/issues/530)

farmazon3000 avatar Apr 13 '20 08:04 farmazon3000