redfish64 / TinyTravelTracker

Private Android GPS tracker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Restore from GPX crashes app - 'corruption in database cache'

ckush opened this issue · comments

I just switched phones and tried to transfer my TTT history over to the new device using the inbuilt backup/restore functionality. Backup seems to be happening fine as I can see all the points when I open the .gpx as text. But on restoring I get the message 'restore finished' and on tapping OK I get the message 'The app has encountered corruption in the database cache used to display points', and while the message says the cache will be deleted and regenerated, If I tap OK on it the app crashes immediately.

Also the restoring progress bar shows 'x/7500' . If that's the number of points then that's certainly incorrect as the are a lot more points in this gpx file.

I fixed this by importing a gpx from Tiny Travel Tracker on my new phone, copying the portion till the first </trkpt>, replacing it in my older file and replacing the lat lon elev time, etc in the first trkpt to what they were earlier. Not sure what fixed it but something in the older file was off.

If I run diff on the two files this is the only line that's different and could possibly cause this...

Older file (crashes TTT):
<extensions><rareventure:new_time_zone id="Asia/Calcutta" /></extensions>

New edit (works):
<extensions><rareventure:new_time_zone id="Asia/Kolkata" /></extensions>