You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you replace the specific content "X-X\n" with "XX\n" using "self.contentView.textView.text", you can always reproduce the error:
Runestone/RedBlackTree.swift:39: Fatal error: 2 is out of bounds. Valid range is 0 - 0. 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.
Reproducible with
iPhone 15 Pro with iOS 26.1
Xcode 26.1 (17B55)
Please see attached video
What are the steps to reproduce?
Add code to execute self.contentView.textView.text = "XX\n"
Type in the UI "X-X\n". Note that you need to type or paste this text.
Tap on More > Find to trigger the code self.contentView.textView.text = "XX\n"
Result:
"**** WILL CHANGE!"
Runestone/RedBlackTree.swift:39: Fatal error: 2 is out of bounds. Valid range is 0 - 0. 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.
What happened?
When you replace the specific content "X-X\n" with "XX\n" using "self.contentView.textView.text", you can always reproduce the error:
Reproducible with
Please see attached video
What are the steps to reproduce?
Add code to execute
self.contentView.textView.text = "XX\n"For example:
to
Compile and run the Example app
Type in the UI "X-X\n". Note that you need to type or paste this text.
Tap on More > Find to trigger the code
self.contentView.textView.text = "XX\n"Result:
video.mov
What is the expected behavior?
Such an error should not occur.