Automattic / Automattic/simplenote-android
Crash when note reached certain character limit and contained whitespace character toward the end of the note
- Dominant language
- Java
- Stars
- 1.9k
- Forks
- 318
- Avg merge
- 15h 23m
- Merged PRs (30d)
- 5
Description
From 4699943-zen:
> When a note is above a certain character limit (42,686 characters in my case), the Android client crashes when you tap on the note in the notes list and try to edit the note.
When you start editing a note below the character limit, and surpass the character limit while editing, the Android client does not crash.
See if you can reproduce and fix the problem.
I'm using v2.23, installed from the Google Play Store.
> I deleted and retyped some whitespace characters towards the end of the note and the crash no longer occurs. The problematic whitespace characters originally came from a web page copy-and-paste.
So the crash condition is note length, as stated, plus some unusual whitespace characters. Note length alone does not trigger a crash.
> I added a little more text to the same note and the crashes started happening again. Deleting and retyping the whitespace in the most recently added text did not fix the issue. Opening the note and then tapping on or beyond the last line of the note causes a crash. The crashes are associated with note length, somewhere in the high 42Ks.
For reference, I only type or paste UTF-8 characters, almost all ASCII, with a handful of non-ASCII but UTF-8 characters here and there.
### Expected
App is not crashing. Or understand if there's a character limit for a note.
### Observed
App is crashing as described above.
### Reproduced
Unable to reproduce it.
### Device Info
Waiting for some confirmation.
Device Make: -
Device Model: -
Android Version: -
Simplenote Version: 2.23
Contributor guide
Research direction
No files, tests, or entry points are identified. Start by reproducing the crash with a note around the reported 42,686-character range and unusual whitespace, then narrow down the Android note-editing path; done means opening and editing such notes no longer crashes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100