View Issue Details

IDProjectCategoryView StatusLast Update
0011012MMW v4Synchronizationpublic2013-07-20 01:40
Reporterrusty Assigned To 
PriorityimmediateSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version4.1 
Target Version4.1Fixed in Version4.1 
Summary0011012: MMW prompts to reverse sync unchanged tracks and playlists over USB
Description1 Sync tracks and playlists over Wi-Fi Sync
--> no tracks are reverse synced
2 Sync tracks over USB
--> MMW prompts the user to Update 300 (out of 600) tracks, and a playlist

I can't figure out why those tracks specifically are being reverse synced, but no changes were made on MMA that should have triggered a reverse sync operation.
TagsNo tags attached.
Attached Files
bug_11012.LOG.txt (315,065 bytes)
auto_conversion_settings.jpg (235,311 bytes)   
auto_conversion_settings.jpg (235,311 bytes)   
bidi_conf_dialog.jpg (119,287 bytes)   
bidi_conf_dialog.jpg (119,287 bytes)   
tracks_on_synclist.gif (158,326 bytes)   
tracks_on_synclist.gif (158,326 bytes)   
Fixed in build1648

Relationships

related to 0010948 closedLudek Auto-sync (-->Library) fails to copy files to PC sometimes 
related to 0008542 closedLudek Device Sync: Auto-converted tracks shows incorrect bitrate in MM interface 

Activities

Ludek

2013-07-01 14:47

developer   ~0036699

Last edited: 2013-07-01 14:53

I cannot replicate, this is how I tested:
- deleted all tracks in MMA
- synced 1 playlist containing 10 tracks over WiFi
- synced the same over USB
=> no confirmation

In your case, were the files marked as 'New' or 'Existing' to copy to PC? Were the checkboxes auto-selected? Could you attach debug log?

I was only able to replicate it in scenario like this:
- sync some tracks/playlists over WiFi
- delete the device profile in MMW (this step makes MMW think that all tracks are new)
- sync over USB
=> tracks are marked as 'New to copy', but all are unchecked because they already exist in MMW library (per 0010948:0036291).

Maybe it was your case? I was thinking that we could change it a bit and skip such a tracks complettely. i.e. if user copy a new track to device using another app and the track with same metadata already exists in MMW library, then such a track shouldn't be shown at all in the confirmation?

rusty

2013-07-05 19:50

administrator   ~0036759

Here's how I can replicate the bug:
1 Delete all tracks/playlists from MMA
2 Enable (in MMW) delete unselected and auto-sync files/metadata from the device to the PC
3 In MMW add to the sync list: 1 auto playlist, 1 artist, 1 album
4 Run MMA and click Sync
-->Tracks and playlists sync successfully
5 Close MMA
6 Connect the device to the PC
7 In MMW (line 1956 of the debug log) press wired sync button next to device in tree
--> MMW prompts to update 24 files from the device to the PC (line 3024 of the debug log) even though no changes were made in MMA that would warrant these updates!!

Tested with MMA 148 / MMW 1646. Debug log attached.

Ludek

2013-07-08 14:40

developer   ~0036775

Although I haven't been able to replicate the issue, I think that I found the reason and fix it (based on the log).

To be verified by Rusty in build 1647.

peke

2013-07-10 22:08

developer   ~0036796

No regressions in 1647

Left for Rusty to Confirm and Close

rusty

2013-07-12 05:57

administrator   ~0036827

Last edited: 2013-07-12 05:59

Tested in 1647 and the bug is still occurring. Further testing shows the root of the problem. Auto-conversion is configured to convert files to custom VBR settings. However, it seems that MMW is ignoring the auto-conversion settings, and just converting files matching the filter to 128 CBR.

I expect that when MMW syncs, it notices that the files on the device don't match the expect VBR bandwiths.

Attached is a screengrab of the config settings.

Ludek

2013-07-12 09:20

developer   ~0036832

Last edited: 2013-07-12 10:10

Rusty, I still haven't been able to replicate.

Please, generate two more logs using build 1647:
- one log of the WiFi sync
- the second log of the USB sync (until the confirmation dialog appears)
+ attach screenshot of the confirmation dialog

Also please test with the lowest possible amount of files.

Re: the auto-conversion settings, you are true that there is a bug that MMW presents them as 128/CBR in MMW interface while they have been correctly converted to VBR/175 (I will fix it as 0008542 that I've re-opened). Nevertheless this shouldn't have an impact on the original issue.

rusty

2013-07-12 15:17

administrator   ~0036837

Last edited: 2013-07-12 15:33

Attached is a log file syncing an autoplaylist consisting of 23 files:
0-7700: Initial wifi sync
8350: initiate wired sync
9030: confirmation dialog
10108: sync completion

Also attached are images of the sync confirmation dialog, and of the tracks that are on the sync list.

I can't see a pattern re. the files that were synced back--hopefully the log tells you something...

Ludek

2013-07-12 20:33

developer   ~0036847

Last edited: 2013-07-12 21:53

Thank you, I analyzed the log and the reason is obvious now from this debug line:

File for BiDi sync: File was changed physically in the device, Uploadtime: 2013-07-12 15:04:46, Device change: 2013-07-12 15:07:49

Because I take the device change timestamp from MMA's DB (the time when MMA synced the file with media store), but obviously in your case it is 3 minutes later than it was actually synced.

I will ask Marek to add truly media.file_modified timestamp to MMA's DB for MMW to use it. For android devices without MMA installed I get the info over MTP protocol, but this would be too slow.

Ludek

2013-07-15 12:49

developer   ~0036855

Finally resolved another way for now (in build 1648)

Because it would be problematic for MMA to keep media.file_modified in DB up-to-date for each file, and because we sync file metadata back from MMA, it doesn't make much sense to copy the synced files back physically. Thus if MMA is installed, then metadata are auto-synced, but not the files physically.

New files (not MMW->MMA synced) are copied to MMW as expected, only the existing are not copied back for the reasons explained above.

peke

2013-07-20 01:40

developer   ~0036933

Verified 150

MMA-> MMW Seams to be faster now as files are not copied but only metadata is updated.