Closed knlshh closed 1 year ago
Hi @knlshh,
If the problem does not stem from MarkdownUI and is instead related to the TextOutputFormat
sample code or Splash, I recommend posting about it in a discussion and closing this issue. What do you think?
Closing as the described issue does not stem from MarkdownUI. Feel free to create a discussion on better integrating Splash with MarkdownUI.
Thank you for contributing to MarkdownUI!
Before you submit an issue, please complete the report with all the relevant details for your bug and go through every item in the checklist.
Describe the bug A clear and concise description of what the bug is. Using MarkdownUI with Splash causes a crash on a long-ish markdown on app launch.
Checklist
main
branch of this package.Steps to reproduce Explanation of how to reproduce the incorrect behavior. This could include an attached project, a link to code, or a Markdown-formatted text exhibiting the issue.
@main
inMarkdownScrollViewCrashApp
, but I've narrowed it down toBuilder
'sbuild
method.Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Version information
Additional context Add any other context about the problem here.
If you reduce the size of the sample text, the markdown renders correctly. From my debugging, I've found that
accumulatedText.reduce(Text(""), +)
inTextOutputFormat
is the culprit. I suspect that the memory of the underlying text storage is being released leading to a bad access.Sample project - MarkdownScrollViewCrash.zip