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

Duplicate entries of favorite places with Cloud Sync #18632

Closed
MiMoHo opened this issue Nov 29, 2023 · 3 comments
Closed

Duplicate entries of favorite places with Cloud Sync #18632

MiMoHo opened this issue Nov 29, 2023 · 3 comments

Comments

@MiMoHo
Copy link

MiMoHo commented Nov 29, 2023

Description

I experienced duplicate favorites when using the Cloud Sync on two separate Android 13 devices with Osmand~ 4.5.10, one master, one slave device. In the settings, there is OsmAnd Cloud with a big Sync now option. The user expects to have the latest changes written over the outdated data which is not reliable. The options Local changes, Cloud changes and Conflicts are hidden as folded in despite being essential as one-way synchronization options.

After syncing the first device before the second, I'm confronted with many conflicts on both devices. Despite that I always kept the local version on the master device and opted for the cloud version on the slave device in Conflicts, the cloud mixed up things and produced lots of duplicates in My Places. I ended up with some favorites having dozens of identical entries.

When selecting one entry (place) for deletion, all other matching entries are selected automatically as well. I can't delete double entries that way and as my entire library got duplicated or even multiplicated, this would be too much effort anyway.

Please improve:

  • The folded out state of favorite groups should not be saved in the gpx file.
  • Cloud Sync must not damage the library but allow for foolproof backups. It is mandatory to show a proper sync direction for the user to define to only upload, download or use both directions.
  • The backup download from the cloud is interrupted every few seconds or minutes so that a clean download is not possible.

Steps to reproduce

I tried to export and import an OSF file but it restores the damaged library. Exporting the favorites.gpx results in a 25MB file. When importing it to an empty library after completely resetting the app, the double entries are gone and a new exported file is just 1MB in size, so this seems fixing it. I also experienced a crash upon importing the favorites whose log file is below.

Actual result

Expected result

Your Environment (required)

OsmAnd version: 4.5.10
Android version: 13
Device model: Sony Xperia 5
Crash-Logs: ![exception.log](https://github.com/osmandapp/OsmAnd/files/13512598/exception.log)
@pawelpbm
Copy link

pawelpbm commented Jan 2, 2024

This duplication also happned to me.

Any ideas how to clean it up? I have probably couple of thousands of points so cleaning it up manually is not really an option.

@yuriiurshuliak
Copy link

Do you have Auto backup enabled?(OsmAnd documentation on global settings)
You can access files through My Files and locate where OsmAnd was stored, where you might find a folder named 'favorite backups.' You can also navigate through OsmAnd: Go to Settings -> Export to File -> Favorite Backups.

Additionally, ensure you've updated the application to the latest version and check if the error persists there.

Duplicate of #17977

@vshcherb vshcherb closed this as completed Feb 1, 2024
@vshcherb
Copy link
Member

vshcherb commented Feb 1, 2024

Issue was fixed

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

4 participants