View Issue Details

IDProjectCategoryView StatusLast Update
0012983MMASynchronizationpublic2016-07-22 13:09
ReporterLudek Assigned To 
PriorityurgentSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.1.3 
Target Version1.1.3Fixed in Version1.1.3 
Summary0012983: Playlists synced prior to MMA install result in duplicates after WiFi sync
Description1) Be sure that MMA was never been installed on the tested storage (i.e. /MediaMonkey/files/ directory is empty)
2) USB sync playlist called 'playlist' from MMW to the storage
3) Install MMA
4) Perform WiFi sync

=> playlists are duplicated:
one with filename /playlists/playlist.m3u
the other one with filename /playlists/playlist_1.m3u

Looking at the mmstore.db the playlists have different GUID.

Solution: MMA should probably assign GUID to an unknown playlist only once the playlist is created (or edited?) in MMA, otherwise suppose that it is the same playlist as the one from MMW (once the file path is the same)
TagsNo tags attached.
Attached Files
Fixed in build517

Relationships

related to 0012101 closedLudek MMW v4 Duplicate names of playlists fail to sync correctly 
parent of 0013082 closedLudek MMW v4 USB sync failure to android device when a default auto-playlist was synced prior to MMA install (regression in MMA 1.1.3) 

Activities

Ludek

2015-11-29 19:07

developer   ~0043451

Last edited: 2015-11-29 19:19

Rusty also indicated that he observes duplicate playlists also in case of USB sync runned after another USB sync prior to MMA install.

I guess this is probably related only to KitKat devices where MMW copies playlists to the standard locations at first (/Playlists/ dir) and after MMA install it copies them to the MMA's read-write dir (/Android/Data/...)

I guess that performing USB sync with enabled
[x] Enforce use of sync mask for files already on the device
solves this problem.

Is this the case?

Probably yes, and is related to item 1i here: http://www.ventismedia.com/mantis/view.php?id=12967#c43352
i.e. whether
[x] Enforce use of sync mask for files already on the device
should be auto-enabled which we previously concluded that shouldn't.

But maybe it should to prevent from duplicate content being synced.

rusty

2015-11-30 04:52

administrator   ~0043452

Last edited: 2015-11-30 06:23

Note that I _was_ testing on a kitkat device.

But, enabling 'Enforce use of sync mask' after a USB sync doesn't necessarily clean up the playlists. For example, if the USB sync yields a clean list of playlists, enabling this option and performing a USB sync

-->

Sync Test case 9) Enabling enforce sync mask and then synchronizing via USB --> hierarchical playlists appear in duplicate (one of them correct, and the duplicate 'empty').
Debug log: 7VLYUY05V8

OR

On a second occasion, this test resulted in:
Test Hierarchy (3 playlists)
Test list (empty)
Test list 2 (empty)
Test Playlists (2 playlists)
Debug log: 2iJ03DJ7Q8

EDIT: I performed this test again, but this time generated a debug log in MMW of the sync operation (attached). If this is a different bug, we can create a separate bug.
Debug log: FY4BG9SBRL

Ludek

2015-11-30 12:39

developer   ~0043457

Last edited: 2015-11-30 12:40

From the MMW log I see them duplicated already in the mmstore.db, there are:
\Android\data\com.ventismedia.android.mediamonkey\files\Playlists\Test list.m3u
\Android\data\com.ventismedia.android.mediamonkey\files\Playlists\Test list_1.m3u
\Android\data\com.ventismedia.android.mediamonkey\files\Playlists\Test list 2.m3u

So so far it looks that the cause is the same as for the duplication after WiFi sync, I will try if I can replicate with the special MMA build emulating write limited storage that Marek is creating for me.

Ludek

2015-11-30 18:05

developer   ~0043463

Last edited: 2015-11-30 18:06

BTW I found a glitch during fixing the 0012101 that could cause playlist duplication after USB sync, so this should be tested with MMW build 1771 or higher.

marek

2015-12-01 15:58

developer   ~0043481

Last edited: 2015-12-01 16:11

Tested with last EXE from Ludek (1771+) with MMA 514 and there is still issues in USB sync when:

1.Clean Android
2. USB sync following hierarchic playlists
 -aaa HierarchicX Empty
   - SubplaylistX A
   - SubplaylistX C
3. Install MMA
  - MMA contains SubplaylistX A and SubplaylistX C because the parent is empty and m3u doesn't exist
4. USB sync
 - I tried to sync simple hierarchic playlists and only one was updated. The second one wasn't.

  - SubplaylistX C
  - aaa HierarchicX Empty
     - SubplaylistX A

Duplicates after wifi sync are fixed

Ludek

2015-12-02 10:46

developer   ~0043486

Last edited: 2015-12-02 10:53

Fixed in MMW 4.1.10.1772

MMA 514+ should be tested with MMW 1772+ so that playlists with empty GUIDs (those added prior to MMA 514 installation) are updated correctly over USB.

marek

2015-12-08 21:33

developer   ~0043562

Other issues were found on Write-limited storages

Fixed in build 517

peke

2015-12-18 03:07

developer   ~0043721

Verified 525