Results 1 to 8 of 8

Thread: 4.2.30: External player causes lockup

  1. #1
    Junior Member
    Join Date
    Sep 2013
    Posts
    19

    4.2.30: External player causes lockup

    Trying to use an external media player from beyondpod on my pixel running O locks the app up without playing anything - I have to force stop it. In my phone's logs I can see that this is due to the N changes to disallow file:/// URIs shared through an intent (https://developer.android.com/about/...ml#permfilesys)

    (filenames redacted, but that's not the issue here):

    04-14 19:59:45.312 8601 8601 D AndroidRuntime: Shutting down VM
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: FATAL EXCEPTION: main
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: Process: mobi.beyondpod, PID: 8601
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: android.os.FileUriExposedException: file:///storage/emulated/0/Android/data/mobi.beyondpod/files/BeyondPod/Podcasts/XXX/YYY.mp4 exposed beyond app through Intent.getData()
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: at android.os.StrictMode.onFileUriExposed(StrictMode. java:1960)
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: at android.net.Uri.checkFileUriExposed(Uri.java:2356)
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: at android.content.Intent.prepareToLeaveProcess(Inten t.java:9881)
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: at android.content.Intent.prepareToLeaveProcess(Inten t.java:9835)
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: at android.app.Instrumentation.execStartActivity(Inst rumentation.java:1610)
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: at android.app.Activity.startActivityForResult(Activi ty.java:4487)
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: at android.app.Activity.startActivityForResult(Activi ty.java:4445)
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: at mobi.beyondpod.ui.dialogs.ExternalPlayerStarterAct ivity$1.run(ExternalPlayerStarterActivity.java:84)
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:790 )
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99 )
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: at android.os.Looper.loop(Looper.java:164)
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.jav a:6494)
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsC aller.run(RuntimeInit.java:438)
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:807)
    04-14 19:59:45.403 8601 8601 V BeyondPod: !!! Unhandled exception !!! reason: [ android.os.FileUriExposedException ] file:///storage/emulated/0/Android/data/mobi.beyondpod/files/BeyondPod/Podcasts/XXX/YYYY.mp4 exposed beyond app through Intent.getData()android.os.FileUriExposedException : file:///storage/emulated/0/Android/data/mobi.beyondpod/files/BeyondPod/Podcasts/XXX/YYY.mp4 exposed beyond app through Intent.getData()
    04-14 19:59:45.403 8601 8601 V BeyondPod: at android.os.StrictMode.onFileUriExposed(StrictMode. java:1960)
    04-14 19:59:45.403 8601 8601 V BeyondPod: at android.net.Uri.checkFileUriExposed(Uri.java:2356)
    04-14 19:59:45.403 8601 8601 V BeyondPod: at android.content.Intent.prepareToLeaveProcess(Inten t.java:9881)
    04-14 19:59:45.403 8601 8601 V BeyondPod: at android.content.Intent.prepareToLeaveProcess(Inten t.java:9835)
    04-14 19:59:45.403 8601 8601 V BeyondPod: at android.app.Instrumentation.execStartActivity(Inst rumentation.java:1610)
    04-14 19:59:45.403 8601 8601 V BeyondPod: at android.app.Activity.startActivityForResult(Activi ty.java:4487)
    04-14 19:59:45.403 8601 8601 V BeyondPod: at android.app.Activity.startActivityForResult(Activi ty.java:4445)
    04-14 19:59:45.403 8601 8601 V BeyondPod: at mobi.beyondpod.ui.dialogs.ExternalPlayerStarterAct ivity$1.run(ExternalPlayerStarterActivity.java:84)
    04-14 19:59:45.403 8601 8601 V BeyondPod: at android.os.Handler.handleCallback(Handler.java:790 )
    04-14 19:59:45.403 8601 8601 V BeyondPod: at android.os.Handler.dispatchMessage(Handler.java:99 )
    04-14 19:59:45.403 8601 8601 V BeyondPod: at android.os.Looper.loop(Looper.java:164)
    04-14 19:59:45.403 8601 8601 V BeyondPod: at android.app.ActivityThread.main(ActivityThread.jav a:6494)
    04-14 19:59:45.403 8601 8601 V BeyondPod: at java.lang.reflect.Method.invoke(Native Method)
    04-14 19:59:45.403 8601 8601 V BeyondPod: at com.android.internal.os.RuntimeInit$MethodAndArgsC aller.run(RuntimeInit.java:438)
    04-14 19:59:45.403 8601 8601 V BeyondPod: at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:807)
    04-14 19:59:45.403 8601 8601 V BeyondPod: (289 ms. since last trace) [BeyondPodApplication]

    The app locks up after this.

  2. #2
    Senior Member
    Join Date
    Aug 2012
    Posts
    242
    I had a similar issue on 8.1 on my nexus, but didn't see any reason to continue using an external player. If more logs are needed, I'm sure I can reproduce this one.

  3. #3
    BeyondPod Team
    Join Date
    Mar 2017
    Location
    US
    Posts
    805
    Quote Originally Posted by BradleyB View Post
    Trying to use an external media player from beyondpod on my pixel running O locks the app up without playing anything - I have to force stop it. In my phone's logs I can see that this is due to the N changes to disallow file:/// URIs shared through an intent (https://developer.android.com/about/...ml#permfilesys)

    (filenames redacted, but that's not the issue here):

    04-14 19:59:45.312 8601 8601 D AndroidRuntime: Shutting down VM
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: FATAL EXCEPTION: main
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: Process: mobi.beyondpod, PID: 8601
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: android.os.FileUriExposedException: file:///storage/emulated/0/Android/data/mobi.beyondpod/files/BeyondPod/Podcasts/XXX/YYY.mp4 exposed beyond app through Intent.getData()
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: at android.os.StrictMode.onFileUriExposed(StrictMode. java:1960)
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: at android.net.Uri.checkFileUriExposed(Uri.java:2356)
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: at android.content.Intent.prepareToLeaveProcess(Inten t.java:9881)
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: at android.content.Intent.prepareToLeaveProcess(Inten t.java:9835)
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: at android.app.Instrumentation.execStartActivity(Inst rumentation.java:1610)
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: at android.app.Activity.startActivityForResult(Activi ty.java:4487)
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: at android.app.Activity.startActivityForResult(Activi ty.java:4445)
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: at mobi.beyondpod.ui.dialogs.ExternalPlayerStarterAct ivity$1.run(ExternalPlayerStarterActivity.java:84)
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:790 )
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99 )
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: at android.os.Looper.loop(Looper.java:164)
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.jav a:6494)
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsC aller.run(RuntimeInit.java:438)
    04-14 19:59:45.313 8601 8601 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:807)
    04-14 19:59:45.403 8601 8601 V BeyondPod: !!! Unhandled exception !!! reason: [ android.os.FileUriExposedException ] file:///storage/emulated/0/Android/data/mobi.beyondpod/files/BeyondPod/Podcasts/XXX/YYYY.mp4 exposed beyond app through Intent.getData()android.os.FileUriExposedException : file:///storage/emulated/0/Android/data/mobi.beyondpod/files/BeyondPod/Podcasts/XXX/YYY.mp4 exposed beyond app through Intent.getData()
    04-14 19:59:45.403 8601 8601 V BeyondPod: at android.os.StrictMode.onFileUriExposed(StrictMode. java:1960)
    04-14 19:59:45.403 8601 8601 V BeyondPod: at android.net.Uri.checkFileUriExposed(Uri.java:2356)
    04-14 19:59:45.403 8601 8601 V BeyondPod: at android.content.Intent.prepareToLeaveProcess(Inten t.java:9881)
    04-14 19:59:45.403 8601 8601 V BeyondPod: at android.content.Intent.prepareToLeaveProcess(Inten t.java:9835)
    04-14 19:59:45.403 8601 8601 V BeyondPod: at android.app.Instrumentation.execStartActivity(Inst rumentation.java:1610)
    04-14 19:59:45.403 8601 8601 V BeyondPod: at android.app.Activity.startActivityForResult(Activi ty.java:4487)
    04-14 19:59:45.403 8601 8601 V BeyondPod: at android.app.Activity.startActivityForResult(Activi ty.java:4445)
    04-14 19:59:45.403 8601 8601 V BeyondPod: at mobi.beyondpod.ui.dialogs.ExternalPlayerStarterAct ivity$1.run(ExternalPlayerStarterActivity.java:84)
    04-14 19:59:45.403 8601 8601 V BeyondPod: at android.os.Handler.handleCallback(Handler.java:790 )
    04-14 19:59:45.403 8601 8601 V BeyondPod: at android.os.Handler.dispatchMessage(Handler.java:99 )
    04-14 19:59:45.403 8601 8601 V BeyondPod: at android.os.Looper.loop(Looper.java:164)
    04-14 19:59:45.403 8601 8601 V BeyondPod: at android.app.ActivityThread.main(ActivityThread.jav a:6494)
    04-14 19:59:45.403 8601 8601 V BeyondPod: at java.lang.reflect.Method.invoke(Native Method)
    04-14 19:59:45.403 8601 8601 V BeyondPod: at com.android.internal.os.RuntimeInit$MethodAndArgsC aller.run(RuntimeInit.java:438)
    04-14 19:59:45.403 8601 8601 V BeyondPod: at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:807)
    04-14 19:59:45.403 8601 8601 V BeyondPod: (289 ms. since last trace) [BeyondPodApplication]

    The app locks up after this.
    Hello,

    What device are you using and what version of Android do you have?

  4. #4
    Junior Member
    Join Date
    Sep 2013
    Posts
    19
    It's a pixel1 running Oreo. This is due to the link I mentioned - after building against N or greater, you can't use a file:/// url directly in an intent

  5. #5
    BeyondPod Team
    Join Date
    Mar 2017
    Location
    US
    Posts
    805
    Quote Originally Posted by BradleyB View Post
    It's a pixel1 running Oreo. This is due to the link I mentioned - after building against N or greater, you can't use a file:/// url directly in an intent
    This has been reported to development. Thank you for your information.

  6. #6
    BeyondPod Team
    Join Date
    Mar 2017
    Location
    US
    Posts
    805
    I just heard from the developers on this issue and they have made a fix for this issue. It will be available with the next release.

  7. #7
    Quote Originally Posted by KimW View Post
    I just heard from the developers on this issue and they have made a fix for this issue. It will be available with the next release.
    When will we see the next release?

  8. #8
    BeyondPod Team
    Join Date
    Mar 2017
    Location
    US
    Posts
    805
    Quote Originally Posted by Sternreisender View Post
    When will we see the next release?
    I do not have that information yet but as soon as I do, I will let you know.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •