View Issue Details

IDProjectCategoryView StatusLast Update
0012973MMW v4Synchronizationpublic2015-12-18 03:09
Reporterrusty Assigned To 
PriorityurgentSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.1.10 
Target Version4.1.10Fixed in Version4.1.10 
Summary0012973: Enforce sync mask causes artwork to be lost in MMA
Description1 In the case when an Android device has music stored to a location that is inaccessible to MMA (e.g. /Music on an Android 4 device), the user must initiate a USB sync with 'Enforce sync mask..' enabled in order to move the tracks to a an app-specific folder that has appropriate permissions (SD/Android/Data/ventis...).

Dbgviewlog illustrating USB sync (note that an AV occurred when the device was unplugged): attached.

--> Album art for the moved tracks to get lost.

MMA Debug log after mediastore sync immediately following the USB sync: 6W6DK3RX0U

MMA debug log after visiting a node in which tracks were missing Album art: O6DT4CPANY

Note: On this occasion, only some tracks were missing artwork. e.g.
Ki BeSimcha by Shlomo and Eitan Katz
The Things You can't afford by The Moshav Band

2 The workaround is to resync via wi-fi afterwards.
-->Playlists to go missing again!
- Ari's Bar Mitzvah container (which was selected for auto-sync) appears, but is missing child playlists
- Test Playlists container appears, with the child playlists (that were selected for auto-sync).
- New Pop 2.5+ Playlist is missing.
MMA Debug log: 63F753TECV

3 Initiate a second Wi-Fi sync
-->Missing playlists re-appear.
MMA Debug log: GBD0VEUR31
TagsNo tags attached.
Attached Files
bug_12973.7z (237,667 bytes)
Fixed in build1770

Relationships

related to 0012962 closedLudek MMW v4 MMA fails to update playlists synced via USB 
related to 0012967 closedLudek MMW v4 USB Sync and Wi-Fi sync should copy content to the same location 

Activities

marek

2015-11-25 10:59

developer   ~0043401

It looks like playlist files didn't exist after step 1. They were in DB only.

So the scenario was following
1. USB sync - files are not created or they are deleted - I am not sure. I do not see any delete operation.

Rusty, when and how (via MMA, via Windows explorer, via ES explorer) did you delete the playlists before testing ?

Ludek, do you see uploading of playlists ?

It is possible that the files appears to exist to MMW but they are already deleted.

2. MediaStore sync is not started before between USB sync and Wifi sync, so wifi sync normally sync the playlists (there is no check). After wifi sync, MediaStore sync is always started and non-existing m3u files are deleted.

3. Next wifi sync works with correct data so it fix everything.

What to do?

A) We have to find out why playlist files do not exist after step 1). It might be the MTP issue when MMW thinks that the files exist.

B) I will add MediaStore sync right after USB sync (similarly to wifi sync). So next time, it will be fixed right after step 2 (first wifi sync).

marek

2015-11-25 11:21

developer   ~0043402

A) Ludek told me that upload from MMW looks ok. I do not see whole process in log. Could you please try to repeat the step 1 with build 509 and watch when the files disappears ? Please send logs right after that...

B) fixed in build 509

Ludek

2015-11-25 14:19

developer   ~0043404

Last edited: 2015-11-25 15:35

I have just tested with the latest MMW with MMA 508 and in my case after the USB sync the playlists were added correctly (including hierarchy) in MMA, but are emptied. The tracks are missing in MMA completelly although physically are in the correct (new) locations (including artwork) and also MMW wrote the correct path values into mmstore.db.synced

Maybe MMA is somehow confused that the old same tracks were DELETED at first from the original locations (and mmstoredb) and then INSERTED as new tracks? Is this a problem for MMA?

MMA log 1Z0R5DCYPB


EDIT: The problem in my case was that I don't have a write limited device so I hacked the StorageInfo.xml which resulted in tracks not added in MMA, so it is rather a test error.

Ludek

2015-11-25 16:59

developer   ~0043406

ok, we have found where the empty playlists issue is.

Will be fixed on MMW side.

Ludek

2015-11-25 23:55

developer   ~0043411

Fixed in build 4.1.10.1770

peke

2015-12-18 03:09

developer   ~0043724

Verified 1778