You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$250] IOS/Android - App crashed after tap on download in optional menu #9010
changed the title [-]IOS - App crashed after tap on download in optional menu[/-][+]IOS/Android - App crashed after tap on download in optional menu[/+]on May 14, 2022
changed the title [-]IOS/Android - App crashed after tap on download in optional menu[/-][+][$250] IOS/Android - App crashed after tap on download in optional menu[/+]on May 17, 2022
crash is happening because of these lines, anchor tag does not have ATTACHMENT_PREVIEW_ATTRIBUTE = "src", and also we are not using previewSourceURL from the getAttachmentName anywhere, so we can remove these lines,
and anchor tag has no data-name attribute, so we have to remove this line from here,
@kbecciv I've been trying to reproduce this but I am just not able to. I've attempted to download pdf, png, and mp4 files. My installed version is 1.1.62-0 and my local version is 1.1.64-0.
@jayeshmangwani Thank you for the proposal, are you able to reproduce it at your end?
@mananjadhav Yes, I am able to reproduce on my side,
I have tried with zip and mp4 files and both are crashing, latest main branch ( "version": "1.1.62-0")
please check this video for reference
Activity
melvin-bot commentedon May 13, 2022
Triggered auto assignment to @MariaHCD (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.[-]IOS - App crashed after tap on download in optional menu[/-][+]IOS/Android - App crashed after tap on download in optional menu[/+]roryabraham commentedon May 15, 2022
Seems like this crash is relevant. Worth noting that this crash is only reported on Android realme devices, but the bug is reproduced in iOS as well.
roryabraham commentedon May 15, 2022
Found a couple seemingly related issues:
MariaHCD commentedon May 17, 2022
Thanks, @roryabraham! From those issues, it looks this needs some more investigation:
android:requestLegacyExternalStorage="true"to the Android manifest would help solved this and/or;rn-fetch-blobhas released a fix for this.melvin-bot commentedon May 17, 2022
Triggered auto assignment to @arielgreen (
External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.arielgreen commentedon May 17, 2022
https://www.upwork.com/jobs/~015cbb750a025a202d
7 remaining items
melvin-bot commentedon May 17, 2022
Triggered auto assignment to @chiragsalian (
Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.[-]IOS/Android - App crashed after tap on download in optional menu[/-][+][$250] IOS/Android - App crashed after tap on download in optional menu[/+]jayeshmangwani commentedon May 18, 2022
Proposal:
App/src/libs/fileDownload/getAttachmentDetails.js
Lines 21 to 24 in 20c1174
crash is happening because of these lines, anchor tag does not have ATTACHMENT_PREVIEW_ATTRIBUTE = "src", and also we are not using previewSourceURL from the getAttachmentName anywhere, so we can remove these lines,
and anchor tag has no data-name attribute, so we have to remove this line from here,
App/src/libs/fileDownload/getAttachmentDetails.js
Line 29 in 20c1174
and can get filename for anchor tag as we are getting here
App/src/components/HTMLEngineProvider/HTMLRenderers/AnchorRenderer.js
Line 20 in 5096dea
mananjadhav commentedon May 19, 2022
@kbecciv I've been trying to reproduce this but I am just not able to. I've attempted to download pdf, png, and mp4 files. My installed version is 1.1.62-0 and my local version is 1.1.64-0.
@jayeshmangwani Thank you for the proposal, are you able to reproduce it at your end?
jayeshmangwani commentedon May 19, 2022
@mananjadhav Yes, I am able to reproduce on my side,
I have tried with zip and mp4 files and both are crashing, latest main branch ( "version": "1.1.62-0")
please check this video for reference
9010-crash-issue.mov
jayeshmangwani commentedon May 19, 2022
@mananjadhav yes this issue has been handled in "version": "1.1.64-0", it was happening in "version": "1.1.62-0" and now it's fixed
mananjadhav commentedon May 20, 2022
Thanks for responding @jayeshmangwani. Appreciate your help.
@arielgreen We can wait for one KI test and then close this one out.
arielgreen commentedon May 27, 2022
@mananjadhav are we good to close?
mananjadhav commentedon Jun 2, 2022
Yeah @arielgreen, good to close.
mvtglobally commentedon Jun 7, 2022
Issue not reproducible during KI retests. (First week)