-
-
Notifications
You must be signed in to change notification settings - Fork 314
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
Intermittent IndexOutOfBoundsException on render #157
Comments
Hello @damianw ! Can you please share the configuration that you use for Markwon (plugins) and approximate markdown that is used? I haven't seen such crashes myself, but from the stacktrace it seems that underlying text and spans-list are out of sync (text is removed but spans are present, or spans are set but text that is never added). But we need more info to pin-point the issue |
@noties Thanks for looking into it! I was able to figure out the problem: we're using a It would be nice to support such use cases or at least document that an instance cannot be used from multiple threads concurrently. Thanks for your help, though! |
Hello @damianw ! You are bringing attention to an important issue actually. Why exactly a (mutable) Visitor is reused for a |
Pushed new |
* `markwon-ext-tables`: fix padding between subsequent table blocks ([#159]) * `markwon-images`: print a single warning instead full stacktrace in case when SVG or GIF are not present in the classpath ([#160]) * Make `Markwon` instance thread-safe by using a single `MarkwonVisitor` for each `render` call ([#157]) * Add `CoreProps.CODE_BLOCK_INFO` with code-block info (language) [#159]: #159 [#160]: #160 [#157]: #157
Thanks! |
I'm not really sure how to reproduce the issue, but am seeing occasional crash reports from Crashlytics like this:
I've not been able to reproduce the problem, nor does it seem specific to any device/API level/manufacturer. Perhaps some kind of race condition?
The text was updated successfully, but these errors were encountered: