View Issue Details

IDProjectCategoryView StatusLast Update
0014167MMADBpublic2017-04-14 06:19
Reporterrusty Assigned To 
PriorityimmediateSeverityblockReproducibilitysometimes
Status closedResolutionfixed 
Product Version1.3.0 
Target Version1.3.0Fixed in Version1.3.0 
Summary0014167: On upgrade to 1.3.0 some users cannot play library content (due to encrypted SD card?)
Description3 users have lost the ability to play content from their MMA library after upgrading to MM 1.3.

Details and logs are posted at:
http://www.mediamonkey.com/forum/viewtopic.php?f=26&t=87433

Note: at least one of the users indicated that his SD card is encrypted, which could mean that his instance of the problem is similar to 0013216 in which there were problems playing content from adopted storage (note that adopted storage |= encrypted SD card. i.e. The user can enable SD Card encryption without using adopted storage).
Additional Information3 other users indicated problems with:
- playback of content from an encrypted SD card after upgrading to MMA 1.3.0
- playback of content with MMA 1.3.0 after encrypting the SD card
See:
http://www.mediamonkey.com/forum/viewtopic.php?f=21&t=87466
http://www.mediamonkey.com/forum/viewtopic.php?f=21&t=84493

Another user with the problem in ticket:
BUQ-483-70216
TagsNo tags attached.
Fixed in build691

Relationships

related to 0013216 assignedmartin Sync to adopted storage fails --> Content migrated to adopted storage fails to play 
related to 0014139 resolvedmartin DB Update: Repaired SDCard can get different ID 

Activities

martin

2017-04-04 23:45

developer   ~0047722

added new option "Use different path for playback" in Developer Options.
The option turns on automatically when bug occurs (for other users with this issue).
Temporary marked as fixed to build 1.3.0.686

rusty

2017-04-05 14:35

administrator   ~0047727

Last edited: 2017-04-05 15:44

Tested 686 with S5 mini, and the fix doesn't seem to work

1 Sync playlist --> Works fine
2 Encrypt SD card --> Debug log auto-sent (9:57am EST) during the encryption process (presumably MMA was still accessing the SD card as encryption process on the SD card began).
3 Run MMA --> Artwork for all tracks is lost. Tracks can't play. Debug log: 8LEA14X94B
4 Upgrade to MMA build 686 and run --> Album Art is still missing, and the tracks within the playlist all appear in duplicate!
5 Play the first track in the playlist --> first track is skipped, but subsequent tracks play. Debug log for 4 and 5 6FQYEK1l8z OR 6FQYEK1I8z.
6 Wi-Fi Sync to fix the missing album art
--> Album art remains missing!
--> Even worse, the tracks duplicate i.e. Playlist: Tracks 1,2,3 becomes Tracks 1,2,3,1,2,3 !
7 Check Dev options --> It shows that 'Use different path for playback' is disabled -- which seems to indicate that the playback problem somehow occurs when MMA run after having been terminated, but that the problem is somehow resolved on its own once a track plays (as at step 5).
8 Terminate MMA, and then run MMA to test this hypothesis. Attempted to play Free Falling by John Meyer
--> MMA skipped it, but then started playing 'Ed Sheeran - Shape of you' (and all subsequent tracks played as expected).
Here's a debug log: E2KY8LZQD6
Note: at step 8, 'Use different path for playback' is still disabled.
9 Enable 'Use different path for playback' and attempt playback --> first track fails to play and playback stops. Attempting to play a second time --> playback works and subsequent tracks all play!
Debug log: G168V6RERH

In other words, whether the 1.3.0 storage paths are used or the 'old' storage paths are used, MMA 1.3.0.686 has a problem playing tracks from an encrypted SD card on the S3 mini. And the problem usually seems to resolve itself once a track plays successfully.

rusty

2017-04-06 02:02

administrator   ~0047738

Build 688 (test build with hardcoded 1.2.0 storage access method for playback): Successfully played 3 tracks (Ma'agalim, Todas Las Palabras, Free Falling, paused in Shape of you).
Debug log: XK37DY6RMY

rusty

2017-04-07 01:35

administrator   ~0047749

Last edited: 2017-04-07 02:10

At Marek's request I retested sync with 685 and:
1 MMA 685 Sync to unencrypted SD card: LQP82STU43. Playback works fine. (MMW Log - 3180)
2 Encrypt SD card
3 Run MMA 685 --> Artwork displays correctly but playback is broken: MK71KLWZF9
4 Initiate sync --> "everything is in sync" message, but Artwork disappears for all but the last track: YRBV54ABG1
5 Initiate sync again --> "everything is in sync" message, and artwork remains missing for all but one track
6 Install 686 and sync --> no change
7 Add 1 track (Bo'ee) to the sync list in MMW and then sync --> Track synced (with artwork) and is playable.
8 Tried playing 'Wanted' --> it failed to play
9 Played 'Let her go' --> it played and then all subsequent tracks played. Debug log EXYDFV4XY5

Summary: it seems that the artwork gets lost after syncing to the encrypted SD card (and not due to the act of encryting the SD card)--though perhaps it's triggered by the mediastore sync that occurs after a wi-fi sync and thus would have occurred anyhow without the wi-fi sync. Also, the double-playlist bug isn't replicable.

martin

2017-04-07 11:53

developer   ~0047753

So, in build 690 absolute paths are used for albumArts and playback when uri is External Storage Document uri.

This is temporary solution until I get Samsung S5 mini for testing (During next week).

rusty

2017-04-07 18:01

administrator   ~0047754

Tested the following as discussed (including build 690):

1 install MMA 1.2
2 sync MMW
--> Artwork matches that of MMW
SEND debug log to have db: 2CRUSVYR5N

3 encrypt SD
4 verify Art and Playback
--> Art displays as expected
--> All tracks play as expected
Debug log: ZSBD4FN72S

5 upgrade to 1.3.685
6 verify art and playback
--> All artwork is missing except for the track 'Wanted'
--> Playback 'skiping inaccessible tracks' (with toast) for all tracks, and it's impossible to get any tracks to play at all! (Unlike previous tests in which tracks would start playing after a few tries. Note: the only difference in this test case was that at step 3 I tested playback of _all_ tracks--could this be related? )
- SEND debug log: 8H7L3ISF7E

7 Wi-Fi sync with MMW
--> Updated 2 tracks (just metadata I think)
--> Artwork re-appeared for 'Ma'agalim' and 'Todas Las Palabras...'
- SEND debug log: HEYB5CZZXJ
8 verify playback (starting with 'Ma'agalim'
--> Screen flashes, but there's no 'skipped tracks' toast
--> On attempting a second time, the NP window appears and 'Skipping inaccessible tracks' toast appears for all tracks
--> On attempting a third time 'Shape of you', the NP window appears and is frozen (no toast)
8.5 Add a track 'Take this Waltz' to the playlist and sync
Note: over the course of testing I had to cancel a sync operation as i experienced bug 0014185 (causing 100 tracks to accidentally get added to the sync list)
--> 'Take this waltz' syncs with Artwork. Other tracks (3) are still missing artwork (except for 'Ma'agalim', 'Todas Las Palabras...', and 'Wanted')
Debug log: Q3H218CJF8
--> On attempt to play tracks, all 'Skiping inaccessible' except that 'Take this waltz' plays
expected: - new artworks are displayed, new tracks are playable?
Debug log: 5DKGP2K4HI

9 upgrade to 1.3.690
10 verify art and playback
--> 'Oh Oh Oh...', 'November was white...', 'Wanted', 'Bo'ee', 'Take this Waltz' have art (i.e. 'Ma'agalim' and 'Todas Las Palabras' are missing art.
--> All tracks are playable
expected: - new tracks are NOT playable?
Debug log: C145BYYWRA

11 sync
--> 'Updated 3 tracks' (metadata)
12 verify art and playback
--> 'Oh Oh Oh...', 'November was white...', 'Bo'ee', 'Take this Waltz' have art (i.e. 'Ma'agalim' and 'Todas Las Palabras', and 'Wanted' are missing art.
--> All tracks can play
- SEND debug log: WASVF7ZGKC

13 Uninstall MMA and delete MediaMonkey folder
14 install 1.3.690
15 Verify Art and Playback
--> 'Take this Waltz' track that was added at step 8.5. is missing from the library (not in the Playlist nor in 'Tracks'!
--> Artwork displays for all tracks
--> All tracks play
Debug log: N9JH7XZZ16
16 Sync again to see if the missing track gets added back
--> MMA prompts to create a new profile (as expected since MMA had been deleted)
--> 4 files resync: Let Her Go, Hold On We're Going Home, Bo'ee, Take this Waltz
--> Artwork missing for Ma'agalim, Todasa Las Palabras, and Wanted are missing
i.e. very similar to what occurred at Step 11
Debug log: 1FHYJMNWG3

martin

2017-04-07 23:51

developer   ~0047757

re 6)
a)Artworks: It means that all artworks on sdcard are missing, track 'Wanted' has stored albumArt on internal storage
NOTE: 'Wanted' has not album, it has albumArt only.

b)Playback: I think that playback start working with build 686, where is auto option, build 685 always use ExternalStorageDocument uri so it's not working for all tracks

re 7)
a)Artworks re-appeared:this is weird, because paths are same in db for 'Ma'agalim' and 'Todas Las Palabras...'

8.5
a)Artworks: so really, new tracks has album art visible with ExternalStorageDocument uri
and also somehow updated tracks(step 7)
b)Playback: wow so really new tracks are also playable with ExternalStorageDocument uri

10) so, old tracks album art work with old paths
'Oh Oh Oh...', 'November was white...', 'Wanted', 'Bo'ee',
and new or updated tracks are working with ExternalStorageDocument uri, but not with old paths
'Ma'agalim' and 'Todas Las Palabras'
 except 'Take this Waltz', I don't know why, maybe cached.


12 after sync, album art is deleted from track "Wanted" without album. (MMA does not support album arts without album, right Marek?)


15
 'Take this Waltz' track is not sync, because duration in MediaStore is 0. In AudioSync is condition "Skip remote media, duration is not set." - added by Marek long time ago in rev. 2629
a)Artworks: all artworks are from internal storage (created/copied by system)
Wanted - has albumArt, because Album is "Unknown"
b)good is that all tracks are playable with old paths


16)
a)Artworks:
Wanted - no artwork, because album was updated to null, correct it has not album

Ma'agalim - s, Todasa Las Palabras
both have updated albumArt path from internal storage to external(its folder)
and are missing, but new track 'Take this Waltz' has also external path and is visible.

martin

2017-04-12 15:00

developer   ~0047779

Fixed in build 1.3.0.691

rusty

2017-04-13 04:00

administrator   ~0047783

Verified 691.

rusty

2017-04-14 06:19

administrator   ~0047788

So far, 2 users confirmed that the fix works.