A problem occurred 2

text: ‘&’ (__NSCFString), length: 1, string: ‘’ (NSConcreteAttributedString), length: 0, range: {2, 0}

NSRangeException

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

(
“3 CoreFoundation 0x00007fff2ad15b65 mutateError + 261”,
“4 Foundation 0x00007fff2cd2462a -[NSConcreteMutableAttributedString replaceCharactersInRange:withAttributedString:] + 365”,
“5 Glyphs 0x000000010b3b4128 Glyphs + 323880”,
“6 AppKit 0x00007fff283ebbcb -[NSTextInputContext(NSInputContext_WithCompletion) insertText:replacementRange:completionHandler:] + 75”,
“7 AppKit 0x00007fff28c7c10d __55-[NSTextInputContext handleTSMEvent:completionHandler:]_block_invoke_2.385 + 109”,
“8 AppKit 0x00007fff283ebb77 -[NSTextInputContext do_HandleTSMEvent_insertFixLenTextLoop:whileCondition:dispatchWorkEach:afterEachInsertText:continuation:] + 110”,
“9 AppKit 0x00007fff28c7a084 -[NSTextInputContext tryHandleTSMEvent_insertFixLenText_withContext:dispatchCondition:setupForDispatch:nestedWorkaroundCondition:nestedWorkaroundDispatchWork:loopCondition:dispatchWorkEach:afterEachInsertText:continuation:] + 320”
)

What version of Glyphs do you have?

Version 2.5.1 (1140)

And what did you do when that happened?

Please read this:
https://glyphsapp.com/tutorials/crashes

I was selecting some text and this message just showed up.

Did you have features on?

Can you try in the latest version 2.5.1, build number 1141?

Another one. after I updated.
It happened when I selected some text. (It was in korean)

Can you copy the text rather than an image, please?
Tip: paste it between triple-backticks ```

Here you go:

Please help us to fix it by copying the following text and pasting it into a new post on https://forum.glyphsapp.com. Thanks!

text: '설ᅩᄆ몸물말ᄋ음ᅳ을ᅮ울여자대학몸교' (__NSCFString), length: 19, string: '곪{
}' (NSConcreteAttributedString), length: 1, range: {20, 0}

NSRangeException

NSMutableRLEArray insertObject:range:: Out of bounds

(
    "3   Foundation                          0x00007fff41e23a33 -[NSMutableRLEArray insertObject:range:] + 151",
    "4   Foundation                          0x00007fff41e245af -[NSConcreteMutableAttributedString replaceCharactersInRange:withAttributedString:] + 242",
    "5   Glyphs                              0x0000000100151dcc Glyphs + 323020",
    "6   AppKit                              0x00007fff3d4ebbcb -[NSTextInputContext(NSInputContext_WithCompletion) insertText:replacementRange:completionHandler:] + 75",
    "7   AppKit                              0x00007fff3dd7c10d __55-[NSTextInputContext handleTSMEvent:completionHandler:]_block_invoke_2.385 + 109",
    "8   AppKit                              0x00007fff3d4ebb77 -[NSTextInputContext do_HandleTSMEvent_insertFixLenTextLoop:whileCondition:dispatchWorkEach:afterEachInsertText:continuation:] + 110",
    "9   AppKit                              0x00007fff3dd7a084 -[NSTextInputContext tryHandleTSMEvent_insertFixLenText_withContext:dispatchCondition:setupForDispatch:nestedWorkaroundCondition:nestedWorkaroundDispatchWork:loopCondition:dispatchWorkEach:afterEachInsertText:continuation:] + 320"
)
2 Likes

Just curious: looks like the range always starts at one index too late?

That should be fixed in the latest cutting edge version.

It is still happening… :frowning:

Please help us to fix it by copying the following text and pasting it into a new post on https://forum.glyphsapp.com. Thanks!

text: '공궁긍흥훙' (__NSCFString), length: 10, string: 'ㅅ{
}' (NSConcreteAttributedString), length: 1, range: {11, 0}

NSRangeException

NSMutableRLEArray insertObject:range:: Out of bounds

(
    "3   Foundation                          0x00007fff41e23a33 -[NSMutableRLEArray insertObject:range:] + 151",
    "4   Foundation                          0x00007fff41e245af -[NSConcreteMutableAttributedString replaceCharactersInRange:withAttributedString:] + 242",
    "5   Glyphs                              0x0000000101391dcc Glyphs + 323020",
    "6   AppKit                              0x00007fff3d4ebbcb -[NSTextInputContext(NSInputContext_WithCompletion) insertText:replacementRange:completionHandler:] + 75",
    "7   AppKit                              0x00007fff3dd7c10d __55-[NSTextInputContext handleTSMEvent:completionHandler:]_block_invoke_2.385 + 109",
    "8   AppKit                              0x00007fff3d4ebb77 -[NSTextInputContext do_HandleTSMEvent_insertFixLenTextLoop:whileCondition:dispatchWorkEach:afterEachInsertText:continuation:] + 110",
    "9   AppKit                              0x00007fff3dd7a084 -[NSTextInputContext tryHandleTSMEvent_insertFixLenText_withContext:dispatchCondition:setupForDispatch:nestedWorkaroundCondition:nestedWorkaroundDispatchWork:loopCondition:dispatchWorkEach:afterEachInsertText:continuation:] + 320"
)

What are you doing exactly?