UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Music app crashes on last RC (for OTA-7)

    Scheduled Pinned Locked Moved Solved Support
    6 Posts 2 Posters 1.6k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • D Offline
        domubpkm
        last edited by

        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

        arubislanderA 1 Reply Last reply Reply Quote 0
        • arubislanderA Offline
          arubislander @domubpkm
          last edited by

          @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?

          πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
          Happily running Ubuntu Touch
          Google Pixel 3a (20.04 DEV)
          JingPad (24.04 preview)
          Meizu Pro 5 (16.04 DEV)

          D 1 Reply Last reply Reply Quote 1
          • D Offline
            domubpkm @arubislander
            last edited by

            @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 ?

            arubislanderA 1 Reply Last reply Reply Quote 0
            • arubislanderA Offline
              arubislander @domubpkm
              last edited by arubislander

              @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...

              πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
              Happily running Ubuntu Touch
              Google Pixel 3a (20.04 DEV)
              JingPad (24.04 preview)
              Meizu Pro 5 (16.04 DEV)

              D 1 Reply Last reply Reply Quote 1
              • D Offline
                domubpkm @arubislander
                last edited by

                @arubislander ok. I didn't check, but should it be the same for audio files on SD card ?

                arubislanderA 1 Reply Last reply Reply Quote 0
                • arubislanderA Offline
                  arubislander @domubpkm
                  last edited by

                  @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.

                  πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                  Happily running Ubuntu Touch
                  Google Pixel 3a (20.04 DEV)
                  JingPad (24.04 preview)
                  Meizu Pro 5 (16.04 DEV)

                  1 Reply Last reply Reply Quote 0
                  • D domubpkm has marked this topic as solved on
                  • First post
                    Last post