Skip to content

Crash: java.lang.IndexOutOfBoundsException - com.expensify.livemarkdown.MarkdownUtils.removeSpans (MarkdownUtils.java:182) #42037

Closed

Description

@Beamanator

Version 1.4.71-0

https://console.firebase.google.com/u/0/project/expensify-chat/crashlytics/app/android:com.expensify.chat/issues/239b7128dc46892a6cb0a7442698cbd2?time=last-seven-days&types=crash&sessionEventKey=663A240500250001195FC81484893E3D_1944686488960885248

Fatal Exception: java.lang.IndexOutOfBoundsException
charAt: 21 >= length 21

android.text.SpannableStringBuilder.charAt (SpannableStringBuilder.java:126)
...
androidx.emoji2.text.SpannableBuilder.removeSpan (SpannableBuilder.java:179)
com.expensify.livemarkdown.MarkdownUtils.removeSpans (MarkdownUtils.java:182)
com.expensify.livemarkdown.MarkdownUtils.applyMarkdownFormatting (MarkdownUtils.java:76)
com.expensify.livemarkdown.MarkdownTextWatcher.onTextChanged (MarkdownTextWatcher.java:29)
com.facebook.react.views.textinput.ReactEditText$TextWatcherDelegator.onTextChanged (ReactEditText.java:1271)
...
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1067)

Galaxy A32 5G | Android 13

Issue OwnerCurrent Issue Owner: @mananjadhav

Activity

  1. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on May 13, 2024
  2. self-assigned this
    on May 13, 2024
  3. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on May 13, 2024
  4. melvin-bot commented on May 13, 2024

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav (External)

  5. tomekzaw commented on May 13, 2024

    @tomekzaw
    Contributor

    Hi, we'd like to investigate this issue (SWM)

  6. removed
    Help WantedApply this label when an issue is open to proposals by contributors
    on May 13, 2024
  7. Beamanator commented on May 13, 2024

    @Beamanator
    ContributorAuthor

    Sounds great @tomekzaw , should i assign you or another SWM member? :D

  8. tomekzaw commented on May 13, 2024

    @tomekzaw
    Contributor

    Please assign me and @maksg

  9. Beamanator commented on May 13, 2024

    @Beamanator
    ContributorAuthor

    Done, and @maksg will need to comment on this issue for me to assign them 🙏

  10. maksg commented on May 13, 2024

    @maksg

    Commented!

  11. melvin-bot commented on May 13, 2024

    @melvin-bot

    📣 @maksg! 📣
    Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
    Please follow these steps:

    1. Make sure you've read and understood the contributing guidelines.
    2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
    3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
    4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
      Screen Shot 2022-11-16 at 4 42 54 PM
      Format:
    Contributor details
    Your Expensify account email: <REPLACE EMAIL HERE>
    Upwork Profile Link: <REPLACE LINK HERE>
    
  12. 1 remaining item

  13. maksg commented on May 16, 2024

    @maksg

    @mananjadhav @Beamanator Do you know if there is any reliable way to reproduce this crash?

  14. mananjadhav commented on May 16, 2024

    @mananjadhav
    Collaborator

    I haven't tried it myself. I can try and let you know.

  15. maksg commented on May 16, 2024

    @maksg

    That would be great. Thanks!

  16. melvin-bot commented on May 20, 2024

    @melvin-bot

    @mananjadhav, @Beamanator, @maksg, @tomekzaw Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  17. MelvinBot commented on May 21, 2024

    @MelvinBot
    Contributor

    This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989

  18. Beamanator commented on May 21, 2024

    @Beamanator
    ContributorAuthor

    Hoping to get some reproduction steps - if not we might want to close this out

  19. mananjadhav commented on May 21, 2024

    @mananjadhav
    Collaborator

    I still can't reproduce it reliably.

  20. mananjadhav commented on May 26, 2024

    @mananjadhav
    Collaborator

    @Beamanator do we have any new reports on this one? Does it make sense to close this one otherwise?

  21. Beamanator commented on May 27, 2024

    @Beamanator
    ContributorAuthor

    No new crashes from last week, so yeah lets close this for now

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

Metadata

Metadata

Labels

DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorNeeds ReproductionReproducible steps needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions