-
Notifications
You must be signed in to change notification settings - Fork 44
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 when editing text >4096 characters #20
Comments
have you found a solution for this? |
Unfortunately not. I ended up switching over to this: It's been pretty decent so far, but honestly it's a somewhat small part of my app so I really haven't stress tested it much. The only reason I found out about the previous bug was that one of my users pasted in a good sized chunk of text. Good luck |
I'm looking for a markdown highlighter on-the-fly, similar to the Apollo iOS app or iA Writer, which highlights markdown syntax as the user types in. Marklight seems to be exactly what I need, but it seems to have small issues as well. Does Highlightr supports markdown? |
Marklight is nice because it’s written in Swift. However that Highlightr
library uses a JavaScript engine for syntax highlighting. It should work
for your purposes though and it comes with many themes
…On Tue, May 15, 2018 at 8:16 AM Ivan-Cantarino ***@***.***> wrote:
I'm looking for a markdown highlighter on-the-fly, similar to the Apollo
iOS app or iA Writer, which highlights markdown syntax as the user types
in. Marklight seems to be exactly what I need, but it seems to have small
issues as well.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#20 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABFfjTpGWg8GM7R1cZRmskq6Fl7o43gkks5tyscCgaJpZM4QT0go>
.
|
I'm testing Highlightr right now and in their Sample project it supports Thanks for pointing it out ;) |
I can reliably crash my app with the following error if I try to edit a textview containing >4096 characters:
It seems to have a problem processing longer text, the -4097 is suspicious, it makes it look like there is an overflow or something.
In order to achieve this I copied a few paragraphs of text, pasted them into Sublime until I got to 4096 or so, and then pasted them into my text view in the simulator. After pasting things will work fine, but then after typing some more characters or possibly backspacing or dismissing the keyboard the crash will happen. It seems to occur during the processEditing() method
The text was updated successfully, but these errors were encountered: