View Issue Details

IDProjectCategoryView StatusLast Update
0012582MMW v4Synchronizationpublic2015-03-05 17:34
Reporterrusty Assigned To 
PriorityurgentSeveritymajorReproducibilityalways
Status resolvedResolutionwon't fix 
Product Version4.1.6 
Target Version4.1.6 
Summary0012582: USB Sync: ratings fail to update
DescriptionAt http://www.mediamonkey.com/forum/viewtopic.php?f=21&t=72060&start=45#p401741 , there's a problem reported in which a user made updates to album ratings in MMA, and upon synchronization, they're deleted.

The report indicates that it's related to the location of the tracks (e.g. external memory), however, I'm able to replicate something similar just by syncing to an internal memory location.

1 Add an unrated album to the autosync list
2 Auto-Sync (wired)
3 Rate the tracks in MMA
4 Auto-Sync
-->Some of the tracks are updated with the new ratings and for most of the tracks, the 'unknown' value from MMW overwrites the value in MMA.

If the bug doesn't occur, then...
5 Delete the Album from the device
6 Set the ratings in MMW for all tracks on the Album to 'Unknown'
7 Repeat from Step 2

Note:
- This occurs whether the sync location is internal or external
- This occurs whether internal or external sync locations are enabled
- This doesn't occur for rating updates made in MMW (they sync correctly to MMA)
- This doesn't occur for Wi-Fi sync

My guess is that something is going wrong in the determination of which track is more up to date.
Additional InformationDebugview log file posted to ftp.

155: Set ratings of all Dirty Dancing tracks to unknown

0000342:0001400-1700 USB Auto-sync to copy the tracks to the device internal memory

Rated all the tracks in MMA
Debug log: AFFEXB9M3Z
Verified that ratings were saved.

1791 USB Auto-sync to sync updated ratings
--> Ratings of tracks 1 and 2 are synced from MMA to MMW. For all other tracks, the MMW 'unknown' rating overwrote the MMA rating.
Debug log: W7YKCUAITM
Tagstodoc-KB
Fixed in build

Relationships

related to 0012555 feedbackrusty Artwork / ratings lost from media on external storage on some devices ( Xperia ) 

Activities

Ludek

2015-02-11 20:35

developer   ~0042019

Last edited: 2015-02-11 22:03

I haven't tested yet, but Marek indicated that he can't reproduce.
I also suspect a time delta issue (PC vs Android).

@Rusty,
1) Did you start DbgView prior to MMW start? I guess that you didn't as I cannot found some important messages that should be there, namely line like:
TDevice.GetDeltaTimeUsingFile

2) Is your PC time somehow shifted against the Android time? What is the difference?

Ludek

2015-02-12 13:43

developer   ~0042028

Last edited: 2015-02-12 14:06

I have just tested and I cannot reproduce, nevertheless my UTC times (Android vs PC) are in sync. I saw in my log that getting the time shift by uploading the dummy file has failed in my case (no longer seem to work) so there is currently no way how to get Android time via MTP protocol on my end.

With this in mind I would suggest that MMA changes should have higher preference than the MMW changes.
Or there should be at least 1 day lag when comparing the timestamps (as we cannot be sure that UTC are in sync (Android vs PC).

This way metadata changes in MMA from the last day would by preferred over the metadata changes made in MMW unless the checkbox:
[x] Auto-sync file metadata from the device to the PC
is unchecked

rusty

2015-02-12 22:08

administrator   ~0042031

Retested and posted a second MMW debug log:
1000 Cleared ratings for Album: Dirty Dancing
2804 USB auto-sync (Dirty Dancing is copied to device)
Rated all 12 of the Dirty Dancing tracks in MMA
4975-7203 USB auto-sync (ratings are synced)
Go to album in MMW: only first track is rated!
Go to album in MMA: only first track is rated! i.e. MMW values overwrote MMA.

Debug log in MMA at this point: DU97ROIMC6

Note: time discrepancy between PC/MMW and Device/MMA is ~3minutes.
Reminder: the bug doesn't occur over Wi-Fi sync
Note: the severity of the bug is reduced (i.e. most track values sync correctly) when the time discrepancy is less.

Ludek

2015-02-12 22:27

developer   ~0042032

Last edited: 2015-02-12 22:30

I can confirm from the logs that it failed to get the time discrepancy (using upload of dummy file over MTP) in your case as well.

Otherwise yes, Wi-Fi sync is OK, because MMA gets the time discrepancy from HTTP header sent by MMW, but in case of MTP transfer there is no longer a way how to find the discrepancy.

So we might probably want to take the approach suggested in 0012582:0042028 ?

rusty

2015-02-13 19:40

administrator   ~0042047

Re. your comment at 0012582:0042028 : I don't think that it's possible to know whether the user prefers MMA or MMW to have precedence, unless they're prompted. And even then, it's unlikely that precedence is per device, but rather per-file (i.e. the user is likely to have modified some files on the device and some on the pc).

Given that this issue only occurs if syncing within the period of the time differential between the PC and device, it's probably preferable to leave it as is, but document the issue in the KB.

rusty

2015-03-05 17:34

administrator   ~0042256

Documented at: http://www.mediamonkey.com/support/index.php?/Knowledgebase/Article/View/221/1/android-usb-synchronization-fails