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

App crashes when trying to open a specific note #1147

Open
gabrieleiro opened this issue Apr 17, 2024 · 3 comments
Open

App crashes when trying to open a specific note #1147

gabrieleiro opened this issue Apr 17, 2024 · 3 comments
Labels
bug Something isn't working.

Comments

@gabrieleiro
Copy link

Expected

The app shows the note when clicking on it from the side list

Observed

The app crashes when I try to open this specific note

Reproduced

  1. Open the app
  2. Create a note with these exact contents:

payouts states

Create external payee -> Distribute $10 to them -> It shows up on Pay-outs page -> You click the Pay out button and it moves the money without any fees
Create external payee which is also a Charity -> Distribute

  1. Open another note, or close/reopen the app
  2. Click the note, or reach it with the up/down arrow keys
  3. The app crashes

The note opens up fine in the iOS app

Make Model macOS Version App Version
Mac Macbook Pro M1 13.1 2.19
@gabrieleiro gabrieleiro added the bug Something isn't working. label Apr 17, 2024
@dangermattic
Copy link
Collaborator

Thanks for reporting! 👍

@gabrieleiro
Copy link
Author

It took me some long hours of debugging, but I tracked down the cause of the crash.

I've set my machine's text replacement to swap -> with . Because of that, this call of checkTextInDocument crashes the app whenever I open a note with -> in it.

Typing out -> won't trigger this. It only works by pasting it or opening a note with that sequence of characters.

Pasting or opening a note with works fine.

@charliescheer
Copy link
Contributor

Thanks for reporting.

  1. How are you setting up the text replacement to occur?
  2. If you disable the text replacement, in your notes do you see -> or ?
  3. If you disable the text replacement does the crash occur?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

3 participants