app crashes when attaching a file from external sd card to mail on gmail app by kodeblacc

View this thread on steempeak.com
· @kodeblacc · (edited)
$42.04
app crashes when attaching a file from external sd card to mail on gmail app
#### Expected behavior
I expected I'll be able to attach files to gmail using the amaze file manager.

#### Actual behavior
When i attach a file from my device storage, it works but from my external sd card crashes the app.
#### How to reproduce
- download the app
- launch the app and allow all permissions
- launch the gmail app
- compose a mail
- attach a file and select amaze file manager as the file picker
- pick a file from external sd card and the app crashes. <hr>

* Device: Tecno Camon CM 
* Operating system: Android 7.0
* Software Version: 3.2.1

#### Recording Of The Bug
https://youtu.be/_AdtySNTSt0


#### Logcat report of the crash

FATAL EXCEPTION: main
Process: com.amaze.filemanager, PID: 4797
java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/6530-6433/DCIM/Camera/IMG_20180418_093049.jpg
	at android.support.v4.content.FileProvider$SimplePathStrategy.getUriForFile(FileProvider.java:711)
	at android.support.v4.content.FileProvider.getUriForFile(FileProvider.java:400)
	at com.amaze.filemanager.fragments.MainFragment.getUriForBaseFile(MainFragment.java:1022)
	at com.amaze.filemanager.fragments.MainFragment.returnIntentResults(MainFragment.java:997)
	at com.amaze.filemanager.fragments.MainFragment.onListItemClicked(MainFragment.java:908)
	at com.amaze.filemanager.adapters.RecyclerAdapter$1.onClick(RecyclerAdapter.java:401)
	at android.view.View.performClick(View.java:6076)
	at android.view.View$PerformClick.run(View.java:23138)
	at android.os.Handler.handleCallback(Handler.java:836)
	at android.os.Handler.dispatchMessage(Handler.java:103)
	at android.os.Looper.loop(Looper.java:203)
	at android.app.ActivityThread.main(ActivityThread.java:6292)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1094)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:955)

<br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@kodeblacc/app-crashes-when-attaching-a-file-from-external-sd-card-to-mail-on-gmail-app">Utopian.io -  Rewarding Open Source Contributors</a></em><hr/>
👍  , , , , , , , , , , , , ,
properties (23)
post_id45,415,853
authorkodeblacc
permlinkapp-crashes-when-attaching-a-file-from-external-sd-card-to-mail-on-gmail-app
categoryutopian-io
json_metadata"{"platform": "github", "config": {"questions": [{"question": "What was the severity level of the bug?", "answers": [{"answer": "Critical", "value": 45, "answer_id": "bug-1-a-1"}, {"answer": "Major", "value": 38.5, "answer_id": "bug-1-a-2"}, {"answer": "Minor", "value": 29, "answer_id": "bug-1-a-3"}, {"answer": "Trivial", "value": 0, "answer_id": "bug-1-a-4"}], "question_id": "bug-1"}, {"question": "Were the steps to reproduce the bug easy to understand and follow?", "answers": [{"answer": "Yes, the steps were clearly understandable and easy to follow.", "value": 7.5, "answer_id": "bug-2-a-1"}, {"answer": "The steps were easy to follow, but were not described with sufficient clarity.", "value": 5.25, "answer_id": "bug-2-a-2"}, {"answer": "The description of the steps severely lacked in clarity, but it is possible to reproduce.", "value": 2.25, "answer_id": "bug-2-a-3"}, {"answer": "The steps are badly explained and nearly impossible to follow.", "value": 0, "answer_id": "bug-2-a-4"}], "question_id": "bug-2"}, {"question": "Was the bug a technical issue or a user experience (UX) issue?", "answers": [{"answer": "It was largely technical but also had significant impact on the user experience.", "value": 10, "answer_id": "bug-3-a-1"}, {"answer": "It was purely technical.", "value": 9, "answer_id": "bug-3-a-2"}, {"answer": "It described a UX issue caused by a technical error.", "value": 5, "answer_id": "bug-3-a-3"}, {"answer": "It described a UX issue alone.", "value": 0, "answer_id": "bug-3-a-4"}], "question_id": "bug-3"}, {"question": "How common and easy to discover was the bug reported?", "answers": [{"answer": "The bug was a very common occurrence and impacted the end user experience significantly.", "value": 10, "answer_id": "bug-4-a-1"}, {"answer": "The bug was relatively common, but avoidable.", "value": 9, "answer_id": "bug-4-a-2"}, {"answer": "The bug was very rare but impactful.", "value": 5, "answer_id": "bug-4-a-3"}, {"answer": "The bug was nearly impossible to encounter without actively looking for it.", "value": 0, "answer_id": "bug-4-a-4"}], "question_id": "bug-4"}, {"question": "Has the contributor reported the issue to the project owner prior to submitting it to Utopian?", "answers": [{"answer": "Yes, it was reported by this contributor and acknowledged by the project owner. Utopian was never mentioned in the process.", "value": 5, "answer_id": "bug-5-a-1"}, {"answer": "Yes, it was reported by this contributor but has to yet be acknowledged by the project owner.", "value": 4, "answer_id": "bug-5-a-2"}, {"answer": "No, it was not reported, but an effort to alert the project owner has been made.", "value": 1.25, "answer_id": "bug-5-a-3"}, {"answer": "No, it was not reported OR there is evidence the user contacted the project owner on behalf of Utopian without permission.", "value": 0, "answer_id": "bug-5-a-4"}], "question_id": "bug-5"}, {"question": "How would you describe the formatting, language and overall presentation of the post?", "answers": [{"answer": "The quality of the post is fantastic.", "value": 10, "answer_id": "c-1-a-1"}, {"answer": "The post is of very good quality.", "value": 7, "answer_id": "c-1-a-2"}, {"answer": "The post is poorly written and/or formatted, but readable.", "value": 3, "answer_id": "c-1-a-3"}, {"answer": "The post is really hard to read and the content is barely understandable.", "value": 0, "answer_id": "c-1-a-4"}], "question_id": "c-1"}, {"question": "How would you rate the overall value of this contribution on the open source community and ecosystem?", "answers": [{"answer": "This contribution brings great and impactful value, and can be used for applications outside the specific project.", "value": 20, "answer_id": "c-2-a-1"}, {"answer": "This contribution adds significant value to the open source community and ecosystem, or is of critical importance to the specific project.", "value": 18, "answer_id": "c-2-a-2"}, {"answer": "This contribution adds some value to the open source community and ecosystem or is only valuable to the specific project.", "value": 11, "answer_id": "c-2-a-3"}, {"answer": "This contribution adds no value to the open source community and ecosystem or the specific project.", "value": 0, "answer_id": "c-2-a-4"}], "question_id": "c-2"}]}, "pullRequests": [], "staff_pick_by": null, "questions": null, "app": "utopian/1.0.0", "score": null, "type": "bug-hunting", "staff_pick": null, "moderator": {"time": "2018-04-28T04:20:33.811Z", "pending": false, "reviewed": true, "flagged": false, "account": "cha0s0000"}, "community": "utopian", "tags": ["utopian-io", "stach", "mail", "bug", "opensource"], "total_influence": null, "repository": {"full_name": "TeamAmaze/AmazeFileManager", "owner": {"login": "TeamAmaze"}, "id": 21833183, "fork": false, "html_url": "https://github.com/TeamAmaze/AmazeFileManager", "name": "AmazeFileManager"}, "format": "markdown"}"
created2018-04-25 22:47:51
last_update2018-04-28 04:20:36
depth0
children2
net_rshares7,467,991,194,517
last_payout2018-05-02 22:47:51
cashout_time1969-12-31 23:59:59
total_payout_value30.388 SBD
curator_payout_value11.656 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length2,136
author_reputation13,663,298,473,304
root_title"app crashes when attaching a file from external sd card to mail on gmail app"
beneficiaries
0.
weight1,500
accountutopian.pay
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (14)
@cha0s0000 ·
thanks for the contribution ,it has been approved 

----------------------------------------------------------------------
Need help? Write a ticket on https://support.utopian.io.
Chat with us on [Discord](https://discord.gg/uTyJkNm).

**[[utopian-moderator]](https://utopian.io/moderators)**
properties (22)
post_id45,790,236
authorcha0s0000
permlinkre-kodeblacc-app-crashes-when-attaching-a-file-from-external-sd-card-to-mail-on-gmail-app-20180428t042143018z
categoryutopian-io
json_metadata"{"app": "utopian/1.0.0", "community": "utopian", "tags": ["utopian-io"]}"
created2018-04-28 04:21:42
last_update2018-04-28 04:21:42
depth1
children0
net_rshares0
last_payout2018-05-05 04:21:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length292
author_reputation30,982,118,529,863
root_title"app crashes when attaching a file from external sd card to mail on gmail app"
beneficiaries
0.
weight1,500
accountutopian.pay
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@utopian-io ·
### Hey @kodeblacc! Thank you for the great work you've done!
We're already looking forward to your next contribution!
#### Fully Decentralized Rewards
We hope you will take the time to share your expertise and knowledge by rating contributions made by others on Utopian.io to help us reward the best contributions together.
#### Utopian Witness!
<a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1">Vote for Utopian Witness!</a> We are made of developers, system administrators, entrepreneurs, artists, content creators, thinkers. We embrace every nationality, mindset and belief.

**Want to chat? Join us on Discord https://discord.me/utopian-io**
properties (22)
post_id45,794,478
authorutopian-io
permlinkre-kodeblacc-app-crashes-when-attaching-a-file-from-external-sd-card-to-mail-on-gmail-app-20180428t050042619z
categoryutopian-io
json_metadata"{"app": "utopian/1.0.0", "community": "utopian", "tags": ["utopian-io"]}"
created2018-04-28 05:00:42
last_update2018-04-28 05:00:42
depth1
children0
net_rshares0
last_payout2018-05-05 05:00:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length689
author_reputation152,913,012,544,965
root_title"app crashes when attaching a file from external sd card to mail on gmail app"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000