Project Information
- Title: Opening an mp4 or mp3 file import from sdcard within openarchive crashes the app.
Expected behavior
It is possible to open .wav
files and .jpg
files without errors, hence I expected the same behavior when attempting to open .mp3
and .mp4
files that were imported from sdcard.
Actual behavior
Openarchive crashes and quits the upload page when attempting to open .mp3
or .mp4
extension files which were imported from sdcard.
Reading from the log shows that the app fails to find the root where the files are contained.
How to reproduce
Launch OpenArchive.
Click on the floating action button, to reveal the import media icon.
Click the
import media
icon and importmp4
ormp3
extension files from your sdcard.After importing, the files should be enlisted on the home page.
Click on any of the imported files from the home page to access it.
Then click on the thumbnail within the upload page.
The app should crash and quit the upload page.
TESTING ENVIRONMENT
Browser/App version: v0.0.17 beta 5
Operating system: Android v6.0 marshmallow
Device: Itel p12
Recording Of The Bug
Proof of work done
Log
05-27 15:32:20.282 E/AndroidRuntime(17376): java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/sdcard1/bluetooth/Sia - Freeze You Out.mp3
05-27 15:32:20.282 E/AndroidRuntime(17376): at android.support.v4.content.FileProvider$SimplePathStrategy.getUriForFile(FileProvider.java:738)
05-27 15:32:20.282 E/AndroidRuntime(17376): at android.support.v4.content.FileProvider.getUriForFile(FileProvider.java:417)
05-27 15:32:20.282 E/AndroidRuntime(17376): at net.opendasharchive.openarchive.ReviewMediaActivity.showMedia(ReviewMediaActivity.java:403)
05-27 15:32:20.282 E/AndroidRuntime(17376): at net.opendasharchive.openarchive.ReviewMediaActivity.access$100(ReviewMediaActivity.java:55)
05-27 15:32:20.282 E/AndroidRuntime(17376): at net.opendasharchive.openarchive.ReviewMediaActivity$4.onClick(ReviewMediaActivity.java:366)
05-27 15:32:20.282 E/AndroidRuntime(17376): at android.view.View.performClick(View.java:4222)
05-27 15:32:20.282 E/AndroidRuntime(17376): at android.view.View$PerformClick.run(View.java:17628)
05-27 15:32:20.282 E/AndroidRuntime(17376): at android.os.Handler.handleCallback(Handler.java:800)
05-27 15:32:20.282 E/AndroidRuntime(17376): at android.os.Handler.dispatchMessage(Handler.java:100)
05-27 15:32:20.282 E/AndroidRuntime(17376): at android.os.Looper.loop(Looper.java:194)
05-27 15:32:20.282 E/AndroidRuntime(17376): at android.app.ActivityThread.main(ActivityThread.java:5370)
05-27 15:32:20.282 E/AndroidRuntime(17376): at java.lang.reflect.Method.invokeNative(Native Method)
05-27 15:32:20.282 E/AndroidRuntime(17376): at java.lang.reflect.Method.invoke(Method.java:525)
05-27 15:32:20.282 E/AndroidRuntime(17376): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
05-27 15:32:20.282 E/AndroidRuntime(17376): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
05-27 15:32:20.282 E/AndroidRuntime(17376): at dalvik.system.NativeStart.main(Native Method)`
Hello @organik, thank you for the contribution.
However, I was unable to replicate the bug on Android 6.0 and 7.0.
I noticed that you posted a similar report here.
On reviewing this post, I spoke with the moderator that reviewed the previous post if the video imported was from sdcard and he replied YES.
This is to be very sure about my inability to replicate the bug following your steps.
Need help? Write a ticket on https://support.utopian.io. Chat with us on Discord. [utopian-moderator]
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
@zoneboy I was able to replicate this on another device. If it doesn't exist, then where did the log come from??
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hello @organik,
With the help of @achiron I was able to confirm this bug.
Here
Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.
To view those questions and the relevant answers related to your post, click here.
Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hey @organik
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!
Contributing on Utopian
Learn how to contribute on our website or by watching this tutorial on Youtube.
Want to chat? Join us on Discord https://discord.gg/h52nFrV.
Vote for Utopian Witness!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit