Skip to content

[$250] iOS - App crashes when pasting large text to the composer and backgrounding the app #51059

Closed

Description

@IuliiaHerets

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


Version Number: 9.0.50-5
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y
Issue was found when executing this PR: #50487
Issue reported by: Applause Internal Team

Action Performed:

  1. Navigate to https://www.lipsum.com/
  2. Generate text with 10 000 words
  3. Copy the generated text and the title and quotes under in at the top of the page
  4. Open the app
  5. Log in with a Gmail account
  6. Open any 1:1 DM
  7. Long tap inside the composer
  8. Tap on "Paste"
  9. Background the app
  10. Foreground the app
  11. Try to interact with the app
  12. Repeat steps 9-11 until it crashes

Expected Result:

If the pasted text is longer than 10,000 characters, we should trim the text to 10,000 characters.

We can use a similar pattern to how we indicate the character limit in the Workspace name input field (but it would say Character limit reached (10,000/10,000) instead, or something similar)

Actual Result:

When pasting large text to the composer and backgrounding the app a few times, we attempt to paste the full text string, and the app crashes.

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6638032_1729189609126.Pmqw0322.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021859632203774875578
  • Upwork Job ID: 1859632203774875578
  • Last Price Increase: 2024-12-05
  • Automatic offers:
    • wildan-m | Contributor | 105221106

Activity

  1. added
    Daily
    Bug
    on Oct 17, 2024
  2. melvin-bot commented on Oct 17, 2024

    @melvin-bot

    Triggered auto assignment to @sakluger (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  3. IuliiaHerets commented on Oct 17, 2024

    @IuliiaHerets
    Author

    @sakluger FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

  4. sakluger commented on Oct 17, 2024

    @sakluger
    Contributor

    Is this a separate bug from #48888? Or is it a regression from that issue's PR?

    If we don't allow users to send messages over 10k characters, why would we allow them to paste over 10k characters in the composer? Why don't we just cut off everything over 10k?

  5. sakluger commented on Oct 17, 2024

    @sakluger
    Contributor

    cc @anmurali @jasperhuangg @Pujan92 curious for your thoughts on the expected behavior here since you all were involved in #48888.

  6. melvin-bot commented on Oct 21, 2024

    @melvin-bot

    @sakluger Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  7. sakluger commented on Oct 22, 2024

    @sakluger
    Contributor

    I posted to Slack (https://expensify.slack.com/archives/C05LX9D6E07/p1729615084337139) asking for feedback on the expected behavior.

  8. Pujan92 commented on Oct 22, 2024

    @Pujan92
    Contributor

    @sakluger I can't reproduce the crash. Also, this isn't a regression from the other issue.

    Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-10-22.at.22.33.43.mp4
  9. sakluger commented on Oct 22, 2024

    @sakluger
    Contributor

    This feels like a major edge case, especially given that @Pujan92 can't reproduce at all.

    I'm going to close the issue for now. @IuliiaHerets - if you're still able to reproduce it, feel free to reopen. At that point, if we can consistently reproduce, then we'll likely change the behavior to auto-clip the text to 10k max characters.

  10. 70 remaining items

  11. sakluger commented on Jan 2, 2025

    @sakluger
    Contributor
  12. mvtglobally commented on Jan 2, 2025

    @mvtglobally

    Issue is not reproducible

    0-02-01-91e21b572656558f6e2bc4dbff02176716bd247045ad7f3b71e8e53e7e0b7790_277892e65c8b7f2.mp4
  13. sakluger commented on Jan 2, 2025

    @sakluger
    Contributor

    Nice, sounds like this is fixed! I'm a little unclear on how much work was completed for this issue before we discovered that another PR fixed it already. @allroundexperts is any payment due for this issue?

  14. sakluger commented on Jan 3, 2025

    @sakluger
    Contributor

    I am pretty sure no payment is due, so I'm going to close the issue. @allroundexperts - if you disagree, please raise in Slack (since I may not see comments on this GH issue after it is closed).

  15. sakluger commented on Jan 8, 2025

    @sakluger
    Contributor

    @allroundexperts raised this in Slack and it turns out that both @allroundexperts and @wildan-m are due 50% payment since the proposal was accepted and the Contributor hired before the issue was closed.

  16. sakluger commented on Jan 8, 2025

    @sakluger
    Contributor

    Summarizing payment on this issue:

    Contributor: @wildan-m $125, sent offer via Upwork (https://www.upwork.com/nx/wm/offer/105614874)
    Contributor+: @allroundexperts $125, please request on Newdot

  17. sakluger commented on Jan 8, 2025

    @sakluger
    Contributor

    @wildan-m please let me know once you've accepted the Upwork offer.

  18. wildan-m commented on Jan 8, 2025

    @wildan-m
    Contributor

    @sakluger accepted the offer. Thanks!

  19. sakluger commented on Jan 8, 2025

    @sakluger
    Contributor

    Thank you! I completed the contract, we're all done here. Closing again.

  20. JmillsExpensify commented on Jun 13, 2025

    @JmillsExpensify
    Contributor

    $125 approved for @allroundexperts

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

Metadata

Metadata

Labels

BugDailyExternalretest-weekly

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions