Xcode Version 15.2 (15C500b) 崩溃必现的代码

发现 Xcode 有个必现的崩溃,先输入 # ,再在 # 前面输入 . 就会 Crash。
起因是在蓝湖复制了色值 #3D3D3D,粘贴到 Xcode,然后在前面输入 UIColor,再继续输入 . 就崩溃了。

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               Xcode [28362]
Path:                  /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier:            com.apple.dt.Xcode
Version:               15.2 (22503)
Build Info:            IDEApplication-22503000000000000~3 (15C500b)
App Item ID:           497799835
App External ID:       862131722
Code Type:             X86-64 (Native)
Parent Process:        launchd [1]
User ID:               502

Date/Time:             2024-03-12 11:47:03.5177 +0800
OS Version:            macOS 13.6.3 (22G436)
Report Version:        12
Anonymous UUID:        0210AABC-F128-EAB6-93DA-57C853A6EB42


Time Awake Since Boot: 90000 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Termination Reason:    Namespace SIGNAL, Code 6 Abort trap: 6
Terminating Process:   Xcode [28362]

Application Specific Information:
abort() called


Application Specific Signatures:
cursorLocation >= wordStartLocation

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib              0x7ff80114c1e2 __pthread_kill + 10
1   libsystem_pthread.dylib             0x7ff801183ee6 pthread_kill + 263
2   libsystem_c.dylib                   0x7ff8010aab45 abort + 123
3   IDEKit                                 0x1125b3bbb +[IDEAssertionHandler _handleAssertionWithLogString:assertionSignature:assertionReason:extraBacktrace:] + 1178
4   IDEKit                                 0x1125b40b7 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] + 1060
5   DVTFoundation                          0x10ddee527 _DVTAssertionHandler + 463
6   DVTFoundation                          0x10ddee737 _DVTAssertionFailureHandler + 306
7   DVTFoundation                          0x10ddee770 _DVTAssertionFailureHandler + 363
8   DVTKit                                 0x10e66ed98 -[DVTTextCompletionSession initWithTextView:atLocation:cursorLocation:] + 603
9   DVTKit                                 0x10e6c1d2d -[DVTTextCompletionController _showCompletionsAtCursorLocationExplicitly:] + 520
10  DVTKit                                 0x10e6c2779 -[DVTTextCompletionController textViewDidInsertText] + 255
11  IDESourceEditor                        0x122535110 IDESourceEditorView.insertText(_:replacementRange:) + 256
12  IDESourceEditor                        0x122535174 @objc IDESourceEditorView.insertText(_:replacementRange:) + 84
13  AppKit                              0x7ff8044f7b1e -[NSTextInputContext(NSInputContext_WithCompletion) insertText:replacementRange:completionHandler:] + 172
14  AppKit                              0x7ff804d99d02 __55-[NSTextInputContext handleTSMEvent:completionHandler:]_block_invoke_2.352 + 102
15  AppKit                              0x7ff8044f7a61 -[NSTextInputContext do_HandleTSMEvent_insertFixLenTextLoop:whileCondition:dispatchWorkEach:afterEachInsertText:continuation:] + 105
16  AppKit                              0x7ff8044f7928 -[NSTextInputContext tryHandleTSMEvent_insertFixLenText_withContext:dispatchCondition:setupForDispatch:nestedWorkaroundCondition:nestedWorkaroundDispatchWork:loopCondition:dispatchWorkEach:afterEachInsertText:continuation:] + 310
17  AppKit                              0x7ff804d993cf __55-[NSTextInputContext handleTSMEvent:completionHandler:]_block_invoke.308 + 2010
18  AppKit                              0x7ff8044f7570 __55-[NSTextInputContext handleTSMEvent:completionHandler:]_block_invoke_2 + 74
19  AppKit                              0x7ff8044f74f5 -[NSTextInputContext tryHandleTSMEvent_HasMarkedText_withDispatchCondition:dispatchWork:continuation:] + 87
20  AppKit                              0x7ff8044f6b87 -[NSTextInputContext handleTSMEvent:completionHandler:] + 1821
21  AppKit                              0x7ff8044f63f8 _NSTSMEventHandler + 299
22  HIToolbox                           0x7ff80acbad3f DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1381
23  HIToolbox                           0x7ff80acba188 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 333
24  HIToolbox                           0x7ff80acba02f SendEventToEventTargetWithOptions + 45
25  HIToolbox                           0x7ff80ad136f8 SendTSMEvent_WithCompletionHandler + 381
26  HIToolbox                           0x7ff80ad13ba7 __SendUnicodeTextAEToUnicodeDoc_WithCompletionHandler_block_invoke + 393
27  HIToolbox                           0x7ff80ad139f9 __SendFilterTextEvent_WithCompletionHandler_block_invoke + 182
28  HIToolbox                           0x7ff80ad13746 SendTSMEvent_WithCompletionHandler + 459
29  HIToolbox                           0x7ff80ad1354e SendFilterTextEvent_WithCompletionHandler + 219
30  HIToolbox                           0x7ff80ad13228 SendUnicodeTextAEToUnicodeDoc_WithCompletionHandler + 274
31  HIToolbox                           0x7ff80ad12fd1 __utDeliverTSMEvent_WithCompletionHandler_block_invoke_2 + 281
32  HIToolbox                           0x7ff80ad12e2f __utDeliverTSMEvent_WithCompletionHandler_block_invoke + 362
33  HIToolbox                           0x7ff80ad12c7f TSMKeyEvent_WithCompletionHandler + 575
34  HIToolbox                           0x7ff80ad12a25 __TSMProcessRawKeyEventWithOptionsAndCompletionHandler_block_invoke_4 + 250
35  HIToolbox                           0x7ff80ad128a4 __TSMProcessRawKeyEventWithOptionsAndCompletionHandler_block_invoke_3 + 257
36  HIToolbox                           0x7ff80ad12670 __TSMProcessRawKeyEventWithOptionsAndCompletionHandler_block_invoke_2 + 285
37  HIToolbox                           0x7ff80ad12420 __TSMProcessRawKeyEventWithOptionsAndCompletionHandler_block_invoke + 277
38  HIToolbox                           0x7ff80ad00f49 TSMProcessRawKeyEventWithOptionsAndCompletionHandler + 2320
39  AppKit                              0x7ff804d9d6ab __84-[NSTextInputContext _handleEvent:options:allowingSyntheticEvent:completionHandler:]_block_invoke_3.836 + 110
40  AppKit                              0x7ff804d9d3fa __204-[NSTextInputContext tryTSMProcessRawKeyEvent_orSubstitution:dispatchCondition:setupForDispatch:furtherCondition:doubleSpaceSubstitutionCondition:doubleSpaceSubstitutionWork:dispatchTSMWork:continuation:]_block_invoke.797 + 120
41  AppKit                              0x7ff8044f4ef6 -[NSTextInputContext tryTSMProcessRawKeyEvent_orSubstitution:dispatchCondition:setupForDispatch:furtherCondition:doubleSpaceSubstitutionCondition:doubleSpaceSubstitutionWork:dispatchTSMWork:continuation:] + 245
42  AppKit                              0x7ff8044f490d -[NSTextInputContext _handleEvent:options:allowingSyntheticEvent:completionHandler:] + 1419
43  AppKit                              0x7ff8044f4347 -[NSTextInputContext _handleEvent:allowingSyntheticEvent:] + 105
44  SourceEditor                           0x1217162e6 SourceEditorView.keyDown(with:) + 470
45  SourceEditor                           0x12171634f @objc SourceEditorView.keyDown(with:) + 47
46  AppKit                              0x7ff80445f7fb -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 520
47  AppKit                              0x7ff80445f3d7 -[NSWindow(NSEventRouting) sendEvent:] + 345
48  IDEKit                                 0x10fb815fe -[IDEWorkspaceWindow sendEvent:] + 158
49  AppKit                              0x7ff80445ddb1 -[NSApplication(NSEvent) sendEvent:] + 345
50  IDEKit                                 0x10fbc07df -[IDEApplication sendEvent:] + 831
51  AppKit                              0x7ff8047186fe -[NSApplication _handleEvent:] + 65
52  AppKit                              0x7ff8042ed75d -[NSApplication run] + 623
53  DVTKit                                 0x10bbf72ef -[DVTApplication run] + 54
54  AppKit                              0x7ff8042c1951 NSApplicationMain + 817
55  dyld                                0x7ff800e2a41f start + 1903
......

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x00007ff844861780  rcx: 0x00007ff7b257dd98  rdx: 0x0000000000000000
  rdi: 0x0000000000000103  rsi: 0x0000000000000006  rbp: 0x00007ff7b257ddc0  rsp: 0x00007ff7b257dd98
   r8: 0x00007ffffffffff8   r9: 0x0000000112ef99e1  r10: 0x0000000000000000  r11: 0x0000000000000246
  r12: 0x0000000000000103  r13: 0x00007ff820132088  r14: 0x0000000000000006  r15: 0x0000000000000016
  rip: 0x00007ff80114c1e2  rfl: 0x0000000000000246  cr2: 0x0000000000000000
  
Logical CPU:     0
Error Code:      0x02000148 
Trap Number:     133
......
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 217,734评论 6 505
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 92,931评论 3 394
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 164,133评论 0 354
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 58,532评论 1 293
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 67,585评论 6 392
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 51,462评论 1 302
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 40,262评论 3 418
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 39,153评论 0 276
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 45,587评论 1 314
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 37,792评论 3 336
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 39,919评论 1 348
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 35,635评论 5 345
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 41,237评论 3 329
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 31,855评论 0 22
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,983评论 1 269
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 48,048评论 3 370
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 44,864评论 2 354

推荐阅读更多精彩内容