There's something wrong when "A problem occurred..."like following sentences,and I can't closed the window

text: ‘一之以雅六不所收太大只二工上本四九高共用外八句下合同十有名云宜色人其中也作或成州已内而前失去新更夷南自分燕老易多可竹子流家者世空后又因器接武乐定蔡些’ (__NSCFString), length: 74, string: ‘’ (NSConcreteAttributedString), length: 0, range: {75, 0}

NSRangeException

-[__NSCFString replaceCharactersInRange:withString:]: Range or index out of bounds

(
“3 CoreFoundation 0x00007fff30809b2a mutateError + 261”,
“4 Foundation 0x00007fff32a06261 -[NSConcreteMutableAttributedString replaceCharactersInRange:withAttributedString:] + 365”,
“5 Glyphs 3 0x000000010c448f55 ZN7plcrash2MS5async35plcrash_async_dwarf_expression_evalIyxEE15plcrash_error_tP21plcrash_async_mobjectjPK26plcrash_async_thread_statePK25MSplcrash_async_byteorderyxyPT_mSD + 340709”,
“6 AppKit 0x00007fff2e0be191 -[NSTextInputContext(NSInputContext_WithCompletion) insertText:replacementRange:completionHandler:] + 169”,
“7 AppKit 0x00007fff2e783e78 __55-[NSTextInputContext handleTSMEvent:completionHandler:]_block_invoke_2.309 + 102”,
“8 AppKit 0x00007fff2e0be0e2 -[NSTextInputContext do_HandleTSMEvent_insertFixLenTextLoop:whileCondition:dispatchWorkEach:afterEachInsertText:continuation:] + 105”,
“9 AppKit 0x00007fff2e78205b -[NSTextInputContext tryHandleTSMEvent_insertFixLenText_withContext:dispatchCondition:setupForDispatch:nestedWorkaroundCondition:nestedWorkaroundDispatchWork:loopCondition:dispatchWorkEach:afterEachInsertText:continuation:] + 308”
)