View Issue Details

IDProjectCategoryView StatusLast Update
0011458MMASynchronizationpublic2013-12-20 07:46
Reporterrusty Assigned To 
PriorityimmediateSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.0.4 
Target Version1.0.4Fixed in Version1.0.4 
Summary0011458: Error after initial sync in Kit Kat
DescriptionI've observed this a couple of times with build 179: after doing a clean install and syncing a single playlist to a new profile, debug logs are uploaded (even though the sync appears to be successful).

Tested on Nexus 5
Initial log sent at 5:02pm
Manual log submitted 3 minutes later: WCGCMMKQHQ
TagsNo tags attached.
Fixed in build205

Relationships

related to 0011630 closedmarek Android Media Store isn't immediately updated when tracks are deleted in MMA (USB Sync: content fails to sync to a Nexus 5) 
related to 0011627 closedmarek Wi-Fi sync: deleted playlists aren't removed from other players 
related to 0011624 closedmarek USB Sync: Playlists don't delete from MMA 
related to 0011638 closedmarek Deleting playlists triggers crash (regression) 

Activities

marek

2013-11-07 20:52

developer   ~0038222

Last edited: 2013-11-07 21:03

Partly fixed in build 181

Google have changed permissions for intent that updates MediaStore after wifi sync. We don't have permission to update it now. Don't know why. I have disabled it for KitKat. So it won't crash but we have to find an alternative approach.

Comment from Marek added by Rusty: Impact is that new files synced during wifi sync won't be visible in other apps till restart of device or till some other app forces the MediaStore refresh.

marek

2013-12-17 23:38

developer   ~0038809

Partly fixed in build 203

I have implemented new way how to refresh and commit new files to MediaStore. It looks like much more reliable way but it has to be tested on other devices and APIs. Since MediaStore DB is used for MTP, this fix might be very helpful in USB sync where it can solve some MTP issues.

Please note that it has to be optimized in the future. I suggest to postpone it to 1.0.5. Now, often whole SD card is scanned even it is not necessary. Now you have to keep in mind, that files that are synced over wifi occurs in MTP after some time (30 seconds for me but it can be much longer time). So if you start USB sync before it occurs in MTP, MMW won't see these files. It can also cause some delays/freezes in USB sync (only when you do USB sync after another sync).

rusty

2013-12-18 03:07

administrator   ~0038810

Last edited: 2013-12-18 07:29

Tested 203 and there seem to be regressions.
a) On kitkat, playlists/artists that are synced do not appear correctly when attempting to view them in Google Play. Playlists show up, but contain 0 tracks. And none of the tracks (whether selected via Playlists or Artists) show up.

b) On ics/experia Pro, playlists that are synced exhibit the same problem as above (regression?)

c) On JB/SG3, all playlists that are synced (to the external sd card) appear in MMA as 'Empty'! 3 playlists are: Jogging, PLF, Missing Metadata. Debug log ID: SF86X9LHSD

EDIT: item c) appears to be the same as 0011591, so we can track it there.

marek

2013-12-18 11:11

developer   ~0038818

Last edited: 2013-12-18 17:15

a) b) did you wait ? As I said it can take some time. Could you send logs ? It works for me.

c) this is something in MMW. In wifi sync I see empty playlists. 0011591 assigned to Ludek.

marek

2013-12-18 19:07

developer   ~0038827

Last edited: 2013-12-18 19:18

In build 204:

I have optimized refreshing of MediaStore for wifi sync ... downloads of tracks are refreshed immediately.

I have fixed refreshing of deletions of files that controls the USB sync.

Deletions of tracks during wifi sync or from app remains unoptimized and it takes some time till change is visible over MTP. More sophisticated algorithm has to be implemented later.

rusty

2013-12-18 21:06

administrator   ~0038833

a)b) retested with 203 on ICS/Experia Pro. Added 'Artwork Order Test' playlist to sync list, and then synced.

After sync: Log ID 6PF588HKJR
Waited 2-3 minutes after sync and submitted new log UQJDBDNVZA

This time the artwork displayed in Google Play Music. Perhaps I didn't wait long enough the first time.

Questions:
-Is the new mechanism re. MediaStore implemented across all android APIs/devices?

marek

2013-12-19 21:21

developer   ~0038884

Yes it is. But the previously used mechanism wasn't faster. And it didn't work for all file types, so it wasn't reliable. And it wasn't optimizable.

marek

2013-12-19 23:55

developer   ~0038895

Fixed in build 205

rusty

2013-12-20 07:46

administrator   ~0038904

The issues orginally raised in this bug have been resolved (verified in 205):

Wi-Fi Sync playlist to new profile --> debug logs uploaded
-Verified.

- Synced playlists show up in Google Play with 0 tracks.
Confirmed as fixed in 0011627 for Wi-Fi sync.
Confirmed as fixed in 0011624 for Wired sync (aside from several issues remaining there)

- Synced files (selected via Artists) don't show up
Confirmed that this is working as well.

Various related issues are still open, but tracked separately.