Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Beamanator opened this issue May 13, 2024 · 17 comments
Assignees
Labels
Daily KSv2 External Added to denote the issue can be worked on by a contributor Needs Reproduction Reproducible steps needed

Comments

@Beamanator
Copy link
Contributor

Beamanator commented May 13, 2024

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
@Beamanator Beamanator added External Added to denote the issue can be worked on by a contributor Daily KSv2 labels May 13, 2024
@Beamanator Beamanator self-assigned this May 13, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label May 13, 2024
Copy link

melvin-bot bot commented May 13, 2024

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

@tomekzaw
Copy link
Contributor

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

@Beamanator Beamanator removed the Help Wanted Apply this label when an issue is open to proposals by contributors label May 13, 2024
@Beamanator
Copy link
Contributor Author

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

@tomekzaw
Copy link
Contributor

Please assign me and @maksg

@Beamanator
Copy link
Contributor Author

Beamanator commented May 13, 2024

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

@maksg
Copy link

maksg commented May 13, 2024

Commented!

Copy link

melvin-bot bot commented May 13, 2024

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

Copy link

melvin-bot bot commented May 16, 2024

@mananjadhav, @Beamanator, @maksg, @tomekzaw Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot melvin-bot bot added the Overdue label May 16, 2024
@maksg
Copy link

maksg commented May 16, 2024

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

@mananjadhav
Copy link
Collaborator

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

@melvin-bot melvin-bot bot removed the Overdue label May 16, 2024
@maksg
Copy link

maksg commented May 16, 2024

That would be great. Thanks!

Copy link

melvin-bot bot commented May 20, 2024

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

@melvin-bot melvin-bot bot added the Overdue label May 20, 2024
@Beamanator Beamanator added the Needs Reproduction Reproducible steps needed label May 21, 2024
@MelvinBot
Copy link

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

@Beamanator
Copy link
Contributor Author

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

@mananjadhav
Copy link
Collaborator

I still can't reproduce it reliably.

@melvin-bot melvin-bot bot removed the Overdue label May 21, 2024
@mananjadhav
Copy link
Collaborator

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

@Beamanator
Copy link
Contributor Author

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
Labels
Daily KSv2 External Added to denote the issue can be worked on by a contributor Needs Reproduction Reproducible steps needed
Projects
None yet
Development

No branches or pull requests

5 participants