Music app crashes on last RC (for OTA-7)
-
Hello again @peat_psuwit
Sorry i have this week-end only my Volla 22 with UT and morph not working well : gitlab doesn't work currently, that's why i put a log here.I did the second command line to see music app. Only seen after a restart.
Now it crashes on start.
Log : https://dpaste.com/G54SJ7CWB -
@domubpkm Why would the Music app be trying to access your /home/phablet/Videos folder? Do you by any chance have any audio files stored there?
-
@arubislander You are absolutely right! I had an mp3 file in the videos directory (I had to do something) and deleting it solved the problem, music app no ββlonger crashes. Honestly, I would never have thought of that and I don't understand / I would like to know why music app crashes because of that !! Because why not have audio files in other directories than audio directory ?
-
@domubpkm It has to do with confinement. The Music app simply does not have the permissions to access the Videos folder, or any other folder in your /home/phablet directory. Most of the time this does not cause a problem, because the Media scanner does not scan those other folders. But it does scan the Video folder. Adding those to the list of files for the Music app. Then when the Music app reads that list and tries to gather metadata from those files it gets denied acces by AppArmor.
Not sure what is the best way to solve this. Just skip those files? Might work the best, as you could argue that they were misplaced in the first place. But users might be confused that they don't get picked up. But at least the app wouldn't crash...
-
@arubislander ok. I didn't check, but should it be the same for audio files on SD card ?
-
@domubpkm No, because the app has access to the whole SD card. And also a few more directories in your home folder. You can check which those are by examining the permissions of the Music app as listed in the Open Store.
-