View Issue Details

IDProjectCategoryView StatusLast Update
0011298MMAPlaylistspublic2013-12-09 22:01
Reportermarek Assigned To 
PriorityimmediateSeveritymajorReproducibilitysometimes
Status closedResolutionfixed 
Product Version1.0.4 
Target Version1.0.4Fixed in Version1.0.4 
Summary0011298: USB Sync: Playlists are sometimes disappearing
DescriptionSome users have reported that playlists are disappearing. It is probably caused by bug in MediaStore sync.
Additional InformationThis issue was extracted from note http://www.ventismedia.com/mantis/view.php?id=11256#c37581 :

Report in forum with Android 4.1.2 using build 162: http://www.mediamonkey.com/forum/posting.php?mode=reply&f=21&t=73591#pr373986 [^]

Another report with build 165 on Android 2.3.5: http://www.mediamonkey.com/forum/viewtopic.php?f=21&t=73281 [^]
Note that in Heronheart's case, Playlists seem to periodically disappear.

Report in eSupport re. Android 4.1.1 using build 165: ALK-833258
Another report/log: KTS-649104

http://www.mediamonkey.com/forum/viewtopic.php?f=21&t=73546 [^]
TagsNo tags attached.
Attached Files
GS3_profile.mmdc (20,934 bytes)
bug11298_mmw.zip (343,011 bytes)
Fixed in build194

Relationships

related to 0011134 closedmarek MMA Wi-Fi Sync: some playlists don't appear in 3rd party apps 
related to 0011524 closedLudek MMW v4 Playlists sync from Android device (with MMA) unnecessarily (over USB) 
related to 0011440 closedmarek MMA Corrupted playlist synchronization in some cases 
related to 0011530 closedLudek MMW v4 Device profiles default to Generate Device Playlists unnecessarily 
related to 0011591 closedrusty MMA WiFi Sync may sync empty playlist 
related to 0011661 closedmarek MMA On some devices/environments playlists become empty on reboot (regression?) 

Activities

marek

2013-09-19 10:25

developer   ~0037612

Fixed in build 166

I have added checking of playlist compatibility and availability. In the past, playlist was deleted when it was synced with MediaStore and it dissapeared from MediaStore. Now, following is used:

1. When playlist is supported (m3u) and it's file exists -> don't delete
2. When playlist is supported (m3u), it's file doesn't exist and storage, where it is stored, is unmounted -> don't delete
3. Otherwise delete
 - playlist has no filename
 - path is not filename
 - playlist is unsupported playlist
 - playlist is supported and file doesn't exist and storage is mounted

rusty

2013-10-04 20:42

administrator   ~0037766

Users have confirmed that this issue is resolved.

rusty

2013-10-10 05:07

administrator   ~0037834

Re-opening--several users have indicated that it isn't fixed:
http://www.mediamonkey.com/forum/viewtopic.php?f=21&t=73746 [^]

marek

2013-10-10 10:14

developer   ~0037837

Fixed in build 170

It was caused most probably by faulty storing of playlists during Wifi sync. This is related to 11134 . Because playlists were then backward synced as empty.

Playlist m3u files synced over wifi contained only 'null' records instead of full track path.

rusty

2013-10-25 02:16

administrator   ~0038047

Tested 176 on 3 different devices, and I'm unable to replicate:
GS3, Android 4.1.1, external card, plain restart / restart after viewing playlists in Google Music
Nexus 7, Android 4.3, internal card, plain restart / restart after editing playlists in Google Music
Experia Pro, Android 4.0.3, external card, plain restart / restart after editing playlists in Player Pro

Waiting for further user feedback before closing, since a couple of users indicated that it wasn't fixed, but build number tested was unclear.

rusty

2013-11-01 15:20

administrator   ~0038141

Testing further as users are still having problems in build 178.

rusty

2013-11-08 06:41

administrator   ~0038227

In testing 1.0.4.1181, I experienced a problem in which playlists appeared empty in MMA after they were synced after a clean MMA installation (to an existing profile in MMW).

I'm not certain of when the playlist became empty (whether it was upon synchronization, or whether it was after I restarted the device), but events that occurred lead me to believe that the problem is related to which profile is used to sync the playlist. Here's what happened:

1 deleted data in MMA + /MediaMonkey directories (internal/external)
2 installed build 1181
3 ran 1181 and attempted to configure the device to auto-sync
-->external memory location could not be found on the device
4 connected the device to PC, and synced external card
-->several errors re. failed synchronization--presumably because MMW couldn't write to the external card
5 rebooted the device
6 found that config options now showed the external card as an available sync location
7 clicked Playlists
--> All playlists appeared empty

Could it be that somehow this bug occurs when MMA or MMW is writing the existence of the playlist to a location that is accessible (in my case, to internal memory), but the contents of the playlist are written to a location that is not accessible (in my case, external sd card), and so they appear empty?

marek

2013-11-18 12:17

developer   ~0038324

Yes, this is related. If external storage wasn't writable, no tracks nor playlist were written to external storage (playlists are stored there too). But sync DB was successfully transferred to internal storage and it was processed. Tracks were skipped and then playlist sync was done. But playlists' items were not found so they appear to be empty.

I can skip adding of playlist when :
 a) playlist file doesn't exists
 b) playlist shouldn't be empty but no playlist items were found

Is it ok ?

marek

2013-11-18 12:50

developer   ~0038326

Fixed in build 186

I've fixed it this way. Please try to generate log if any similar issues occur.

rusty

2013-11-27 23:01

administrator   ~0038405

I just observed the disappearing playlists bug for the first time using build 187.

1 Synced Wifi
--> everything worked
2 Synced via USB
--> afterwards several extra playlists were synced from MMW to the device (I was able to see them in MMA), and after a few seconds, all playlists except ('recently added') were deleted from the device, several seconds after the sync had completed.

Log ID UIYKX6JY0P

Note that this bug occurs for a GS3, but not for a nexus 5.

rusty

2013-11-28 20:59

administrator   ~0038417

fyi, I believe that the problems (this along with playlist duplication) are related to:
- the default configuration in Device Sync Settings > Playlists (the fact that Artists, Albums, and Playlists are enabled by default (at least for a Nexus 5)
- the fact that WiFi sync seems to ignore the above settings, but USB sync doesn't
- the fact that the sync path used for the playlists is, on some devices, problematic (I have no idea why)

marek

2013-11-28 23:41

developer   ~0038422

Could you please send me your configuration in MMW?

I see that playlist files were not created by MMW during usb sync on MMA's storage. MMA didn't find the file so it deleted the playlist. This can be really related to profile config or it can be also caused by MTP writing issue. So if you are able to replicate it, MMW log will be valuable. Or I can try to replicate it with your config to figure out what is causing that playlist files are not created.

rusty

2013-11-29 18:30

administrator   ~0038427

Created new MMW (attached):
2000 connected device
8000 initiated usb sync
18424 accepted confirmation dialog

Then in MMA, clicked playlists node and observed:
-additional playlists were synced to the device
-after a few seconds all playlists were deleted from the device
Submitted MMA log KIQ8IPA9D1.

GS3 device profile is also attached.

Ludek

2013-11-29 19:59

developer   ~0038431

Last edited: 2013-11-29 20:16

As discussed over IM, it might be related to issue 0011530 where playlists for Albums/Artists were generated by default which shouldn't, fixed in 1673

In the MMW log I see that these playlists were successfully uploaded to device via MTP:
\Playlists\Good stuff.m3u
\Playlists\missing metadata.m3u
\Playlists\Added from Samsung SGH-I747M - External SD Card on 2013-10-11.m3u
\Playlists\plf.m3u
\Playlists\BeeGees-test-list.m3u
\Playlists\Billy Joel-test-list.m3u
\Playlists\mmalist1.m3u
\Playlists\boney list1.m3u

Are these playlists missing in MMA?

marek

2013-11-29 20:34

developer   ~0038434

The playlist files are certainly not created. I see following deleted playlists. Could you please check it, Ludek ?

Playlist:Added from Samsung SGH-I747M - External SD Card on 2013-10-11-/storage/extSdCard/Playlists/Added from Samsung SGH-I747M - External SD Card on 2013-10-11.m3u (id:15,parent:null,ms:39991, guid:null) created/modified/synced:/2013-10-25 14:30:18/ :PlaylistsSync.java.localOnly():212
Playlist:BeeGees-test-list-/storage/extSdCard/Playlists/BeeGees-test-list.m3u (id:8,parent:null,ms:39985, guid:null) created/modified/synced:/2013-10-25 19:14:31/ :PlaylistsSync.java.localOnly():212
Playlist:Billy Joel-test-list-/storage/extSdCard/Playlists/Billy Joel-test-list.m3u (id:9,parent:null,ms:39986, guid:null) created/modified/synced:/2013-11-27 21:16:46/ :PlaylistsSync.java.localOnly():212
Playlist:boney list1-/storage/extSdCard/Playlists/boney list1.m3u (id:10,parent:null,ms:39987, guid:null) created/modified/synced:/2013-11-26 23:03:19/ :PlaylistsSync.java.localOnly():212
Playlist:Good stuff-/storage/extSdCard/Playlists/Good stuff.m3u (id:11,parent:null,ms:39988, guid:null) created/modified/synced:/2013-11-24 03:36:23/ :PlaylistsSync.java.localOnly():212
Playlist:missing metadata-/storage/extSdCard/Playlists/missing metadata.m3u (id:12,parent:null,ms:39989, guid:null) created/modified/synced:/2013-11-08 17:17:45/ :PlaylistsSync.java.localOnly():212
Playlist:mmalist1-/storage/extSdCard/Playlists/mmalist1.m3u (id:13,parent:null,ms:39990, guid:null) created/modified/synced:/2013-11-08 17:30:25/ :PlaylistsSync.java.localOnly():212
Playlist:Added from Samsung SGH-I747M - External SD Card on 2013-10-11-/storage/extSdCard/Playlists/Added from Samsung SGH-I747M - External SD Card on 2013-10-11.m3u (id:14,parent:null,ms:39991, guid:null) created/modified/synced:/2013-10-25 14:30:51/ :PlaylistsSync.java.localOnly():212
Playlist:plf-/storage/extSdCard/Playlists/plf.m3u (id:16,parent:null,ms:40001, guid:null) created/modified/synced:/2013-10-25 13:52:47/ :PlaylistsSync.java.localOnly():212

Ludek

2013-11-29 22:33

developer   ~0038435

Last edited: 2013-11-29 22:39

Based on the MMW log they were copied successfully. So couldn't another app delete them?
Rusty, do you see the m3u files there after sync?

In case they are really not there, try to copy them manually using Windows Explorer to the same location to see what happens.

marek

2013-12-02 14:43

developer   ~0038456

Fixed in build 190

I have found one bug i USB sync that most probably caused this issue.

rusty

2013-12-02 21:23

administrator   ~0038466

Last edited: 2013-12-03 22:36

Note: User at KTS-649104 indicates that the problem occurs in 185, but not in 179 (190 hasn't been published yet). This is likely erroneous, since there are other reports of the problem in build 165.

rusty

2013-12-03 22:28

administrator   ~0038475

Last edited: 2013-12-03 22:35

Also, another user at http://www.mediamonkey.com/forum/viewtopic.php?f=21&t=73746&start=45#p378644 indicates that tracks within a playlist are deleted independently of synchronization--even for playlists created on the device itself.

This is likely a different issue (as the playlists themselves aren't deleted).

rusty

2013-12-06 20:51

administrator   ~0038563

Last edited: 2013-12-06 20:54

This still occurs in MMA 192/MMW 1675 exactly as described at 0011298:0038405.

The only really strange thing is that:
-All but 2 of the playlists got deleted (one of which was the only playlist checked on the bidi sync list, the other which contained several videos).
-Two other playlists got created on the device, both named 'plf' and identical to one another. That playlist does not exist in MMW (it used to exist, but doesn't any longer), so I have no idea how it got there!? Note also that the extSDCard/Playlists directory had only 3 playlists (it only contained 1 plf playlist).

I'll try to generate debug logs of this.

rusty

2013-12-08 03:33

administrator   ~0038591

Last edited: 2013-12-08 03:39

I've generated a full set of logs on both MMW and MMA of this issue. Based on what I've found, I believe that the bug is in MMW, and that the problem is that the sync profile somehow gets corrupted triggering the corruption when a USB sync to the device is performed (see . I'm not sure why it only affects USB synchronization, though.

1 Initial scan of device (which contains music only--no playlists). MMA Log 40DZ3PS5BG

2 Initiated 1st-time sync (WiFi sync)
MMW Log - 12397-43573
MMA Log - HSWXDR6LQ3 - Log after sync completed
-->Verified in MMA that playlists are synced correctly

3 Plugged in device
MMW Log - 43644
-->Verified on MMW that playlists are synced to MMA correctly.

4 Unplugged device
MMW Log - 47637
--> Verified on MMA that playlists still appear correctly.

5 Plugged in device
MMW Log - 0014201:0048000

6 Initiated usb auto-sync
MMW Log - 51836 -
--> 'The Police - Can't stand losing you' and 'The Police - Bring on the night' are converted and synced (not sure why--these should have been synced previously via Wi-Fi Sync)!
--> Several playlists also appear to sync, including one called 'plf' that doesn't even exist in MMW or on the auto-sync list. This leads me to conclude that this issue may be caused by some sort of corruption in the MMW database.

7 Disconnected device
MMW Log 63109

8 Ran MMA
--> Playlists initially appeared ok, but after 10 seconds, they refreshed, and the only ones that remained were 'plf' (a playlist that does not exist in MMW!) and 'videolist2'. All other playlists were deleted.
Generated MMA log 3KUYRV87JR.

9 Ran MMA 2 hours later
--> The 'plf' playlist is no longer visible--the only remaining playlist is 'videolist2'!

MMA Logs have all been submitted.
MMW Log + MMW DB are uploaded to the ftp server

Note that sync was configured for BiDi sync, with ALL tracks not on the sync list to be deleted.

Ludek

2013-12-08 10:13

developer   ~0038592

Last edited: 2013-12-08 10:18

Rusty, I analyzed the log and you are true that 'plf' playlist was created by MMW, it exists in MMW database, but its ParentPlaylist = -1 instead of 0 (root), I will try to find how this could happen (most probably related to 0011547).

Nevertheless believe me that MMW is not the app that is deleting the playlists, thinking about it, have you already found which app creates the .pla playlists for you: 0011550 ?
Couldn't the same app delete the playlists?

Because only you observe this issue and only with this SG3 device then I guess that you had to install a third party app that creates the PLAs and also could delete the playlists, I would start by eliminating the app (this info will be usefull for other users as well to prevent from blaming that MMW creates the PLAs).

rusty

2013-12-08 16:43

administrator   ~0038593

Last edited: 2013-12-08 16:45

1) Re. the plf playlist, I just want to be clear that although it might exist in the DB, it does not appear anywhere in the MMW's track browser, or in the auto-sync list. Moreover, when I do a WiFi sync subsequent to the USB sync that creates the PLF playlist, it (prompts) for deletion of that playlist (in other words, USB sync 'thinks' that it is on the auto-sync list, but WiFi sync 'thinks' that it isn't).

2) Re. the 0B playlists: there is no other media app running either on MMA or MMW; the only media apps installed on the device (besides MMA) are Google Play Music, and the Samsung Music Player--and neither of them is running. Creation of the 0B playlists is triggered by plugging the device into the PC even on a fresh start of MMA/MMW and running MMA--when no apps are running on either system, so I'm fairly certain that this issue is a result of the interaction of the Android System with the windows system.

Keep in mind that the playlists in question are all 0B playlists, and are all copies of the playlists that already exist on the /extSDCard/Playlists directory. Could it be that the Media Scanner on the Samsung sometimes scans the _internal_ memory for playlists instead of the external memory?

3) Re. the Deleted Playlists problem: Keep in mind that the 'deleted playlists' problem is occurring for quite a few users, which would imply that it isn't related to specific apps running on the machine.

To test out the above I did one more test. Between step 7 and 8, I added:

7.5 Prior to running MMA, examine the Internal and External /Playlists directories using a) ES Explorer b) Google Play Music c) Samsung Music
--> ES Explorer shows 0B Playlists on InernalMemory/Playlists for each of the 7 auto-synced playlists; on SDCard/Playlists/ it shows the 7 playlists _plus_ the plf playlist that was synced by MMW usb-sync.
--> Samsung Music Player displays all 7 playlists + the plf playlist
--> Google Play Music displays 6 of the playlists (for some reason it doesn't show the videoplaylist2--possibly because it contains no audio tracks) + the plf playlist
This leads me to conclude that _MMA is the cause of the deleted Playlists bug_.

4) Re. Duplicate Playlists, be aware that when this (set of plf/deleted playlist) bugs occurs, duplicate playlists also occur--videolist2 and plf often both appear in duplicate. But again--this problem is specific to MMA; if I run Samsung Music Player or Google Play Music before MMA (as described above), then only a single copy of the playlists appear on those apps.

5) Re. auto-conversion of tracks by 'The Police' on each USB Sync: any ideas why that's happening?

rusty

2013-12-09 06:05

administrator   ~0038597

Last edited: 2013-12-09 06:27

Note that in MMA build 193, issues 3) Deleted playlists problem and 4) Duplicate playlists 0011559 seems to be resolved. I'm not sure if the fix to 3) was intentional...

Issues 1) and 5) remain.

EDIT: Issue 3) (playlist deletion) is not fixed. It just took a bit longer for the playlists to get removed from the playlists view.

Note new debug logs were automatically uploaded at exactly 1:24am EST at precisely the moment that the playlists were deleted. I also subsequently manually submitted debug logs ID ZUVEE00LV9

Ludek

2013-12-09 10:18

developer   ~0038599

Last edited: 2013-12-09 13:48

1) Yes, this was consequence of regression 0011547. i.e. there playlists from MMA were synced with incorrect parent playlist ID and thus did not appear in MMW interface at all (it could happen between builds 1665 - 1675). This consequence is fixed build 1677.

5) I see that those files are duplicates on your PC:
D:\My Documents\My Downloads\The Police\Message In A Box (Disc 1)\09 The Police - Can't Stand Losing You.flac
D:\My Documents\My Music\The Police\Message In A Box (Disc 1)\9 - The Police - Can't Stand Losing You.mp3
and on device:
/Music/The Police/Message In A Box (Disc 1)/09 Can't Stand Losing You_1.mp3
/Music/The Police/Message In A Box (Disc 1)/09 Can't Stand Losing You.mp3
and then subsequently I see:
'/storage/extSdCard/Music/The Police/Message In A Box (Disc 1)/09 Can't Stand Losing You.mp3' is on sync-list, but was previously synced to another location/target path. It seems that MMW is somehow confused by the duplicates and needlessly auto-convert one of them, tracking separatelly as: 0011562



Assigned back to Marek to fix the original issue (item 3), i.e. deletion of the synced playlists.

marek

2013-12-09 13:26

developer   ~0038603

3) This is probably fixed in MMA 194. It was related to backward sync of playlists with MediaStore. We are not able to set modified time of playlist in MediaStore and one of attempts caused this. Unfortunately now we have to compare the items of playlists item by item each MediaStore sync (only for some playlists). It is slower but it works.

marek

2013-12-09 13:33

developer   ~0038604

2) I have no idea what it can cause. It is certainly not MMA because we don't have any code with PLA playlists.

But it probably caused by some installed app. Please note that Android works with broadcasts. So USB connection change is an event that is broadcast to all apps that are registered for this broadcast. They don't have to be running. But they are started to process the received broadcast and might be terminated immediately.

rusty

2013-12-09 22:01

administrator   ~0038622

Tested MMW 1677 / MMA 194

1) Fixed; the plf playlist now displays in the synclist, and can be disabled. Upon disabling it, and then performing a USB auto-sync, the playlist is deleted as expected.

2) Although the 0B playlists are created, it doesn't appear to have any consequence.

3) Playlist deletion is fixed in build 194.

4) Tracked at 0011559

5) Tracked at 0011562