Loading a "reasonably long" Markdown file and then attempting to click to place the cursor crashes reliably on Mac Catalyst in DEBUG mode. I've seen this on iOS too but have not figured out a way to reliably reproduce.
Runestone/RedBlackTree.swift:39: Fatal error: 5295 is out of bounds. Valid range is 0 - 5291. This issue is under investigation. Please open an issue at https://github.com/simonbs/Runestone/issues and include this stack trace and a sample text file if possible. This fatal error is only thrown in debug builds.
Here is the fatalError in the code and a full stack trace:
What happened?
Loading a "reasonably long" Markdown file and then attempting to click to place the cursor crashes reliably on Mac Catalyst in DEBUG mode. I've seen this on iOS too but have not figured out a way to reliably reproduce.
Here is the
fatalError
in the code and a full stack trace:https://github.com/simonbs/Runestone/blob/7cd1833a17ccd81719c69d9b134a35939eb267cb/Sources/Runestone/RedBlackTree/RedBlackTree.swift#L39
What are the steps to reproduce?
Step 1: Add the Markdown language frameworks to the Example project.
Step 2: Create "reasonably long" text and load it as Markdown:
Step 3: Run the app in Mac Catalyst. Once the text loads, scroll down a few lines and then click to place the cursor.
What is the expected behavior?
I expect TextView to become first responder and place the cursor at the location clicked.