View Issue Details

IDProjectCategoryView StatusLast Update
0011132MMW v4Synchronizationpublic2013-10-11 15:18
Reporterrusty Assigned To 
PriorityurgentSeveritymajorReproducibilitysometimes
Status closedResolutionfixed 
Product Version4.1 
Target Version4.1Fixed in Version4.1 
Summary0011132: USB sync: Ratings can fail to sync
Description1 sync autoplaylist (via USB)
2 edit ratings of 1 track from the autoplaylist on the PC
3 edit ratings of 1 track from the autoplaylist on the device
4 sync autoplaylist (via USB)
--> the track edited on the device is updated on the PC, but the track edited on the PC isn't updated on the device
Additional InformationReported at:
https://www.mediamonkey.com/forum/viewtopic.php?f=21&t=71766#p367752
TagsNo tags attached.
Fixed in build1657

Relationships

related to 0011220 closedpeke Sync: Delay on scaning devices with Multiple Storage 
related to 0011088 closedLudek Sync troubles when device system time is different from PC system time 
parent of 0010552 closedLudek Nexus 7, JB 4.2.2, MTP sometimes freezes  

Activities

Ludek

2013-08-12 13:40

developer   ~0037133

Based on my test it is just MMA refresh issue.

i.e. playback of the track in question needs to be re-initiated so that MMA shows the updated rating after the sync.

Can you confirm? If not, attach MMW's debug log, but I haven't found a problem on MMW side.

rusty

2013-09-04 22:13

administrator   ~0037426

Playlist: Sync Test
0000486:0001600: (Let me be Your) Teddy Bear: changed to 1 stars on MMW
(Get A) Grip (On Yourself): changed to 5 stars on MMA

1645 plug in device
5954 initiate USB sync
--> Metadata update occurs (prior to the auto-sync confirmation dialog:
 - Let me be Your) Teddy Bear: is 1 star in MMW
 - (Get A) Grip (On Yourself): is updated 5 stars in MMW
 
16645 Accept confirmation dialog
--> several tracks sync
 BUT at 0005993:0019000 when checking device ratings from within MMW, MMW shows:
 - Let me be Your) Teddy Bear: 1 star
 - (Get A) Grip (On Yourself): 2 stars!
 
 And when examining the ratings on the device:
  - Let me be Your) Teddy Bear: is 5 stars in MMA even after playing the track!
  - (Get A) Grip (On Yourself): appears as 5 stars in MMA
  
In summary, there are 2 issues:
1) MMA fails to update the track rating
2) MMW fails to display the correct rating of a track that has been modified within MMA

Debug log uploaded to ftp

 

Ludek

2013-09-06 12:52

developer   ~0037433

Last edited: 2013-09-06 13:29

I was able to replicate issue 2) where MMW fails to show updated rating when browsing device content via Media Tree -> <Device> subnodes
=> Fixed in build 1657.

But I still cannot replicate original issue 1) and also by analyzing the log I haven't found a reason, because MMW correctly updated the info and uploaded it to the device. But I saw in the log that MMW failed to get the device time delta ( 0011088 ). In my case it gets the delta fine over MTP. Does your device time differ from your PC time? If yes, it would be a clue.

Neverthless I saw another problem in the log, the device scan takes more than two minutes although it should take just several seconds, the reason is the same as for Peke here: 0011220 i.e. MTP freezes for two minutes in your case after plugining the device.

rusty

2013-09-08 01:04

administrator   ~0037439

The device is 3 minutes ahead of the PC time. Is there more information that you'd need?

Ludek

2013-09-09 08:08

developer   ~0037440

Last edited: 2013-09-09 08:10

So isn't it that you changed a property of the track '(Let me be Your) Teddy Bear' in MMA less than 3 minutes before the rating change in MMW?

If you sync your PC and device time, does the issue still occurs?

rusty

2013-09-11 15:12

administrator   ~0037467

Can't replicate issue 1. Tagging as resolved in 1657, and will retest both issues with the new build.

rusty

2013-09-13 03:35

administrator   ~0037522

Last edited: 2013-09-13 03:36

Tested MMW 1658 / MMA 164:
Issue 1: resolved -- MMW correctly sees the changes on the device
Issue 2: still open -- MMA still fails to display the correct rating for a track that exists in both locations, but has been edited on the PC and then synced (even if I play the track and wait 10 minutes after initially observing the error).

Note: timeclocks are pretty close (within a minute for both the PC and the device).

rusty

2013-09-13 20:40

administrator   ~0037530

Note: some users are indicating that ratings are absent on the device upon an initial sync as well:
http://www.mediamonkey.com/forum/viewtopic.php?f=21&t=73685

Ludek

2013-09-15 22:41

developer   ~0037545

Last edited: 2013-09-15 22:44

What do you think by "MMA still fails to display the correct rating for a track that exists in both locations", if a track is synced from MMW to MMA then such a track exists in _both_ locations. Do you mean the tracks that were initially on the device (before first sync with MMW) and are not on sync-list?

Another idea that I have is that MMA might not proceed the mmstore.db.synced uploaded by MMW after the sync and including the ratings. i.e. if the rating update fails, does the mmstore.db.synced file still exists along with mmstore.db on the device? (this shouldn't happen)

You also wrote in the note 0011132:0037467 that you can't replicate the issue, so I guess that you can replicate it only sometimes? i.e. we need to find the patter, does it always appear only for some tracks? Are the tracks still on sync-list? Has been mmstore.db.synced processed?

rusty

2013-09-16 17:09

administrator   ~0037564

By "MMA still fails to display the correct rating for a track that exists in both locations", I'm referring to the originally described bug i.e.:
1 Autosync autoplaylistA (via USB)
2 edit ratings of trackB of autoplaylistA on the PC
3 edit ratings of trackC of autoplaylistA on the device
4 Autosync autoplaylistA (via USB)
--> trackB is updated in MMW on the PC, but trackC isn't updated in MMA (as verified both by looking at the device from MMW, and by examining MMA directly)

This bug doesn't happen always, but it does occur most of the time. When it occurs, both mmstore.db and mmstore.db.synced files (along with storagInfo.xml and sync_finished) exist on the device. I've posted these to the ftp server in case they're of use. TrackB=(Get A) Grip (On Yourself)1

Ludek

2013-09-17 09:35

developer   ~0037572

Assigned to Marek to find why MMA doesn't process mmstore.db.synced in this case, I checked it and it includes all the rating changes (within the modifications table)

marek

2013-10-01 17:30

developer   ~0037722

Fixed in build 168

Please test on your device, because it uses different MTP workflow. Send log in case of these issues persist.

peke

2013-10-11 15:18

developer   ~0037873

Verified MMA 168 and MMW 1663