Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The final ZIP files contain incomplete tracks #1082

Closed
JanisE opened this issue Jun 15, 2023 · 5 comments
Closed

The final ZIP files contain incomplete tracks #1082

JanisE opened this issue Jun 15, 2023 · 5 comments
Milestone

Comments

@JanisE
Copy link

JanisE commented Jun 15, 2023

I've been trying GPSLogger out for a week now, configured to automatically upload zipped tracks to Drive each hour.

When I now look at all the files in the storage directory on the phone – GPX files mixed with ZIP files –, I notice that (most?) of the ZIP files contain incomplete GPX files compared to the actual non-zipped GPX files.

As I understand, if GPS logging is going on for a while, when an automatic upload needs to be done, the incomplete GPX – as it is at the moment – gets zipped and uploaded. When the next time to upload comes, the updated GPX file gets zipped and uploaded and overwrites the older ZIP file.

However, it seems that when the logging is stopped, the last track bit never gets zipped and uploaded.

@mendhak
Copy link
Owner

mendhak commented Jun 19, 2023

So far what you've described sounds just about right. When the transfer needs to happen, the GPX is zipped and the zip is uploaded. If the last upload doesn't happen have a look at the setting "When I press stop" which is under the Auto send settings. If that's unchecked then that could be why nothing is sent right at the end.

@JanisE
Copy link
Author

JanisE commented Jun 20, 2023

Yes, that option was disabled, thank you!

Maybe you could consider making it on by default (I don't remember disabling it), as auto-uploading complete tracks makes more sense, I think.

mendhak added a commit that referenced this issue Jul 7, 2023
@mendhak
Copy link
Owner

mendhak commented Jul 7, 2023

That makes sense to me because it's a way of completing the track, if you're auto sending you want the final thing to be sent too. Added in milestone 128

@mendhak mendhak added this to the v128 milestone Jul 7, 2023
@mendhak mendhak mentioned this issue Jul 7, 2023
@mendhak
Copy link
Owner

mendhak commented Jul 7, 2023

If anyone wants to test, I have placed a prerelease APK here: https://github.com/mendhak/gpslogger/releases/tag/v128-rc1

This APK is not compatible with the F-Droid version, so if you install this you will lose all your previous GPSLogger settings/files etc.

@mendhak
Copy link
Owner

mendhak commented Nov 10, 2023

It's on FDroid now.

@mendhak mendhak closed this as completed Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants