View Issue Details

IDProjectCategoryView StatusLast Update
0013125MMASynchronizationpublic2016-02-12 16:08
Reporterrusty Assigned To 
PriorityimmediateSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version1.1.3 
Target Version1.1.3Fixed in Version1.1.3 
Summary0013125: 'Random' Playlists delete on USB sync
DescriptionI'm observing this behavior consistently between MMA 457 and MMW 1783 (tested on Fire 7/CM 12.1 and Huawei Y6 / Android 5.1:

1 Clean install of MMA + delete sync profile in MMW.
2 Run MMA first time, then close it.
3 Create Autoplaylist in MMW consisting of 5 tracks sorted randomly (so that it's 5 different tracks each time)
4 Add the autoplaylist to the sync list, enable 'delete unselected'
5 Initiate USB sync, then disconnect and verify in MMA that playlist/tracks synced correctly
7 Initiate Wi-Fi sync, then verify that playlist/tracks synced correctly
8 Initiate USB sync, then disconnect and verify in MMA that playlist/tracks synced correctly. Do this 3x.

I'm finding that at step 8 (usually after 1x), the playlist is always getting deleted! And that on subsequent iterations of step 8, tracks aren't always deleting correctly.

Debug log: 7BX3FHSTMJ
TagsNo tags attached.
Attached Files
bug_13125.LOG.zip (73,762 bytes)
Fixed in build548

Activities

rusty

2016-02-11 17:56

administrator   ~0044131

Note: on further testing, I'm finding that I can replicate the problem even without doing step 7 (Wi-Fi sync).

rusty

2016-02-11 19:03

administrator   ~0044133

Marek explained that this is indeed a regression:

"It occurs when all tracks are replaced -> old tracks are deleted -> playlist becomes empty -> playlist has to be deleted as empty.

MMW only updates the DB and playlist remains deleted. (It is a regression from the decision to delete empty playlists (due to empty containers with subplaylists)."

This is a serious problem because many people use auto-playlists to sync random subsets of their collection to their devices.

rusty

2016-02-11 20:45

administrator   ~0044134

Note: the issue also occurs on an S5 Min running Android 4.1.

marek

2016-02-11 21:14

developer   ~0044135

Fixed in build 548

peke

2016-02-11 21:35

developer   ~0044136

Not sure that it is exactly the case. Here are the logs per steps sent after the noted step.

Step 5 -> All Auto Playlists are empty Hierarchy is correct
Log ID: I3C8PT5Q7T
Description: auto playlists

Step 7 -> Bad Hierarchy, all playlists were synced into root of playlists. Those playlists in root were not empty and contained correct tracks
Log ID: 4K5ET4JO07
Description: wifi

Step 8/1 -> No root playlists, and all playlists contained correct tracks
Log ID: 5Z9S71NN1N
Description: step8 1

Step 8/2 -> Some playlists contained correct tracks few were empty
Log ID: PZPMCSDFTO
Description: step8 2

Step 8/3 -> same content as in try 8/2
Log ID: OPPSAE1AF7
Description: step8 3

Step 8/2 -> same content as in try 8/2 and 8/3
Log ID: BO1KCKS3YG
Description: step8 4

peke

2016-02-11 21:48

developer   ~0044138

Same behavior as with 547:
Step 5 -> Log ID: 0998SDWTB3 Description: 548 wifi
Step 8 -> Log ID: 4484WUUARW Description: 548 usb

marek

2016-02-12 00:34

developer   ~0044142

I see the problem in playlist "Favorites". It has null path but it has to have the path. So it fails and interrupts USB sync in the middle.

rusty

2016-02-12 04:07

administrator   ~0044143

Last edited: 2016-02-12 04:09

I retested MM 1783 vs MMA 548 on all three devices that originally experienced it (S5 Mini-Android 4.4.2 / Huewei Y6-Android 5.1 / Fire 7-CM12.1) and in all cases the problem seems to be resolved.

I suspect that Peke is observing a different issue (and that it should probably be tracked elsewhere).

peke

2016-02-12 08:55

developer   ~0044144

Last edited: 2016-02-12 08:57

Just to confirm that by redoing tests by clearing both devices (Moto G LTE 2013 and Verizon LG) original release of deleting Playlists do not happen 0013125:0044142 should be handled elsewhere.

Ludek

2016-02-12 09:17

developer   ~0044145

Peke, based on Marek's description that it is "Favorites" playlist it sounds more like 0013082 that we have alredy solved. Default auto-playlist had missing GUID, couldn't you use an older MM.DB by accident together with 4.1.10 ?

In any case, if you can still repro then please send me your MM.DB and re-open 0013082

Closing this one, as this issue is resolved in MMA 548

marek

2016-02-12 10:41

developer   ~0044146

But I see the GUID of Favorites, it doesn't have path! We have there assert for this and USB sync fails.

MMW copies the m3u files there because after USB sync, the playlist Favorites and other playlists are synced from MediaStore -> obviously without hierarchy - MediaStore doesn't use the hierarchy.

Wifi sync then creates duplicates (with _1 suffix) due to different GUIDs and the the playlists without hierarchy remain there. That is correct.

USB sync then repairs the hierarchy of playlists from MediaStore - it works because it is just update, not insert - the path can be null.

So there is one issue that caused everything: NULL path of Favorites:
Favorites
  data:null 
  id:10
  parent:null
  ms:null
  guid:43fcc748-1d25-4613-afee-ff2df8991f08
  tracks: -1
  subplaylists:4
  created/modified/synced/msmodified/mssynced:2016-02-11 20:18:25/2016-02-11 20:18:25/1969-12-31 23:59:59//1969-12-31 23:59:59

Ludek

2016-02-12 10:49

developer   ~0044147

Last edited: 2016-02-12 10:50

Solving this offline, it is still unclear how to replicate and what exactly happened in the Peke's case...

peke

2016-02-12 13:31

developer   ~0044148

Resolving,
Inserting new clean/formatted SDCard to Moto G LTE 2013 make fix from 548 working and I could not replicate duplicates issue again all playlists are synced and consistent

marek

2016-02-12 16:08

developer   ~0044151

Verified in logs - it was cause by old duplicates of playlists