memen45 / SubMusic

Sync music and podcasts to your Garmin watch from your own SubSonic or Ampache server
GNU General Public License v3.0
122 stars 13 forks source link

Method to cancel a sync #64

Closed thekiefs closed 1 year ago

thekiefs commented 1 year ago

I froze syncing my Plex playlist. Is there a way to cancel a sync and retry? Or do I have to fully reboot the watch?

memen45 commented 1 year ago

Normally, it shouldn't freeze. Any errors are either handled by SubMusic directly without stopping the sync (e.g. response size adjustments) or escalate to skipping certain sync steps, resulting in completion of the sync.

There are crashes possible during the sync, such as timeouts or out of memory errors. These ones are currently not caught in software and could interrupt the sync. Not sure how Garmin handles such interruptions.

On what device did you see this issue? Maybe I can check the error logs to find the cause. Either way, rebooting while a sync is in progress should not corrupt storage in most cases, so should be safe. If you tried to sync many playlists at once, you could try to do it in smaller steps at a time. This reduces the chances of a timeout error.

thekiefs commented 1 year ago

I saw it on a Garmin Descent MK2. There was a funky bug with a lot of the metadata being totally wrong. I rebooted the watch, cleared cache/data, and restarted the sync and it worked this time.

memen45 commented 1 year ago

Closing this, as either it is resolved, or it is in the Garmin software (sync can be cancelled, and hooks for it are implemented and handled correctly by SubMusic already).

Feel free to reopen if it was not resolved!