Skip to content

[$250] IOS/Android - App crashed after tap on download in optional menu #9010

Closed

Description

@kbecciv

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Launch the app
  2. Log in with any account
  3. Find the chat where you can download the file
  4. Hold the finger on any type of file (mp4, png., mov)
  5. Tap download

Expected Result:

Able to download the file in optional menu

Actual Result:

App crashed after tap on download in optional menu

Workaround:

Unknown

Platform:

Where is this issue occurring?

  • iOS

Version Number: 1.1.61.2

Reproducible in staging?: Yes

Reproducible in production?: Yes

Email or phone of affected tester (no customers):

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos: Any additional supporting documentation

Image.from.iOS.20.MP4

Expensify/Expensify Issue URL:

Issue reported by: Applause

Slack conversation:

View all open jobs on GitHub

Activity

  1. melvin-bot commented on May 13, 2022

    @melvin-bot

    Triggered auto assignment to @MariaHCD (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

  2. 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
  3. roryabraham commented on May 15, 2022

    @roryabraham
    Contributor

    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.

  4. MariaHCD commented on May 17, 2022

    @MariaHCD
    Contributor

    Thanks, @roryabraham! From those issues, it looks this needs some more investigation:

    • If adding android:requestLegacyExternalStorage="true" to the Android manifest would help solved this and/or;
    • Whether the package rn-fetch-blob has released a fix for this.
  5. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on May 17, 2022
  6. melvin-bot commented on May 17, 2022

    @melvin-bot

    Triggered auto assignment to @arielgreen (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

  7. removed their assignment
    on May 17, 2022
  8. arielgreen commented on May 17, 2022

    @arielgreen
    Contributor
  9. 7 remaining items

  10. melvin-bot commented on May 17, 2022

    @melvin-bot

    Triggered auto assignment to @chiragsalian (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

  11. 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
  12. jayeshmangwani commented on May 18, 2022

    @jayeshmangwani
    Contributor

    Proposal:

    const previewSourceURL = html.match(PREVIEW_SOURCE_REGEX)[1].replace(
    Config.EXPENSIFY.EXPENSIFY_URL,
    Config.EXPENSIFY.URL_API_ROOT,
    );

    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,

    const originalFileName = html.match(ORIGINAL_FILENAME_REGEX)[1];

    and can get filename for anchor tag as we are getting here

    const displayName = lodashGet(props.tnode, 'domNode.children[0].data', '');

  13. mananjadhav commented on May 19, 2022

    @mananjadhav
    Collaborator

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

  14. jayeshmangwani commented on May 19, 2022

    @jayeshmangwani
    Contributor

    @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
  15. jayeshmangwani commented on May 19, 2022

    @jayeshmangwani
    Contributor

    @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

  16. mananjadhav commented on May 20, 2022

    @mananjadhav
    Collaborator

    Thanks for responding @jayeshmangwani. Appreciate your help.

    @arielgreen We can wait for one KI test and then close this one out.

  17. arielgreen commented on May 27, 2022

    @arielgreen
    Contributor

    @mananjadhav are we good to close?

  18. mananjadhav commented on Jun 2, 2022

    @mananjadhav
    Collaborator

    Yeah @arielgreen, good to close.

  19. mvtglobally commented on Jun 7, 2022

    @mvtglobally

    Issue not reproducible during KI retests. (First week)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

EngineeringExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributorsWeeklyKSv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions