View Issue Details

IDProjectCategoryView StatusLast Update
0012765MMAGeneralpublic2015-07-22 04:06
Reporterrusty Assigned To 
PriorityimmediateSeverityblockReproducibilityalways
Status closedResolutionfixed 
Product Version1.1.3 
Target Version1.1.3Fixed in Version1.1.3 
Summary0012765: Lollipop device crashes on run or on clicking 'Options'
DescriptionOn upgrading to MMA 453 from MMA 419, it generates debug logs and crashes as soon as it is run or when 'Options' is clicked. (on an alcatel device running lollipop)

On a clean install, the crash occurs only when 'Options' is clicked.

log: U5S9SZ1HS2 - crash on start after upgrade from 419 to 453
TagsNo tags attached.
Fixed in build457

Activities

marek

2015-06-18 11:38

developer   ~0042650

Last edited: 2015-06-18 11:41

The cause is that MMA is not able to write to external storage:

com.ventismedia.android.mediamonkey.storage.am(1): java.io.FileNotFoundException: /storage/sdcard1/Android/data/com.ventismedia.android.mediamonkeybeta/files/files/storageInfo.xml: open failed: EACCES (Permission denied)
libcore.io.IoBridge(1): 	at [open:456]
java.io.FileOutputStream(1): 	at [<init>:87]
java.io.FileOutputStream(1): 	at [<init>:72]
com.ventismedia.android.mediamonkey.storage.DirectMediaFile(1): 	at [getOutputStream:51]
com.ventismedia.android.mediamonkey.storage.Storage(1): 	at [writeStorageInfo:584]
com.ventismedia.android.mediamonkey.storage.Storage(1): 	at [getStorages:309]
com.ventismedia.android.mediamonkey.MediaMonkey$1(1): 	at [run:167]
java.lang.Thread(1): 	at [run:818]


It is probably caused by this Android issue:
https://code.google.com/p/android/issues/detail?id=81357

I have created new build 455 and added some logs to find out more.

Could you please try to install this build and send log - we will gain process UID of MMA. Than please get UID of /Android/data/com.ventismedia.android.mediamonkey/files.

(How to do it: http://android.stackexchange.com/questions/28522/how-to-find-out-the-uid-of-a-given-file-folder)

rusty

2015-06-18 19:56

administrator   ~0042652

Tested build 455. Problem occurs as before.
Log: NYSOOD7CJG

UID of both the /cache and /files directory (in /mnt/sdcard/Android/data/com.ventismedia.android.mediamonkeybeta/): u0_a190

marek

2015-06-19 10:04

developer   ~0042656

UID has to be a number. Application's UID is 10196.

rusty

2015-06-19 11:43

administrator   ~0042657

New log: 0IKFH37QQU , TTV5DVW5Z8

ls -n for /storage/sdcard1/Android/data/com.ventismedia.android.mediamonkeybeta/files

UUID: 10190 1028

marek

2015-06-25 10:38

developer   ~0042666

Fixed in build 456

The issue was that application specific folder was created with one PID and application had another PID. Uninstallation or deletion of folder didn't help. It looks like Lollipop issue.

The only solution was to reboot device. Uninstallation of MediaMonkey is probably needed too.

After reboot both application and folder had PID 10190.

I have fixed the application crash on startup and added a dialog that informs user that he has to reboot the device.

rusty

2015-06-25 18:58

administrator   ~0042667

Last edited: 2015-06-25 19:04

The crash now occurs with build 456 on Nexus devices that don't even contain an SD card :-(

Repro steps:
-Upgrade from build 419 to 456 (Optional--the bug occurs on a clean install as well)
-Run MMA build 456
-Click options
-->Crash

Log: 5MI1U2A9UG

marek

2015-06-28 18:34

developer   ~0042673

Fixed in build 457

rusty

2015-07-22 04:06

administrator   ~0042733

Verified 460.