macos15 上 iterm2 闪退

94 天前
 BruceHong

目前好像没有办法,只能等官方更新修复了。

1149 次点击
所在节点    Apple
10 条回复
kiritoyui
94 天前
无问题,从测试版一直用着的
quainter
94 天前
我也没有问题,macOS15.0 , iTerm2 Build 3.5.4
zfyStars
94 天前
macos15 intel 芯片 没问题
t41372
94 天前
macOS 15.0 m1pro, iTerm Build 3.5.4 无问题
DDDZZZFFF
94 天前
看看是不是权限没给够
zhoushuo
94 天前
macOS15 M3Pro 没问题
BruceHong
94 天前
Process: iTerm2 [2999]
Path: /Applications/iTerm.app/Contents/MacOS/iTerm2
Identifier: com.googlecode.iterm2
Version: 3.5.4 (3.5.4)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
User ID: 501

Date/Time: 2024-09-19 17:10:16.7540 +0800
OS Version: macOS 15.0 (24A335)
Report Version: 12
Anonymous UUID: CFAF19D7-2B0D-ADFD-3160-C2C4C6EC746C


Time Awake Since Boot: 250 seconds

System Integrity Protection: enabled

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

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000066ebea78
Exception Codes: 0x0000000000000001, 0x0000000066ebea78

Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process: exc handler [2999]

VM Region Info: 0x66ebea78 is not in any region. Bytes before following region: 2651149704
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 104f14000-105a4c000 [ 11.2M] r-x/r-x SM=COW /Applications/iTerm.app/Contents/MacOS/iTerm2

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 CoreFoundation 0x185a28558 __CFStringAppendFormatCore + 10068
1 CoreFoundation 0x185b5df30 _CFStringCreateWithFormatAndArgumentsReturningMetadata + 184
2 CoreFoundation 0x185a25df8 _CFStringCreateWithFormatAndArgumentsAux2 + 44
3 iTerm2 0x105488280 AppendPinnedDebugLogMessage + 92
4 iTerm2 0x105488aa0 LogForNextCrash + 1044
5 iTerm2 0x10529c1cc -[NSFileManager(iTerm) legacyApplicationSupportDirectory] + 232
6 iTerm2 0x10548af90 +[iTermMigrationHelper migrateApplicationSupportDirectoryIfNeeded] + 104
7 iTerm2 0x105072e4c -[iTermApplicationDelegate applicationWillFinishLaunching:] + 636
8 CoreFoundation 0x185a6ef80 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 148
9 CoreFoundation 0x185b00274 ___CFXRegistrationPost_block_invoke + 88
10 CoreFoundation 0x185b001bc _CFXRegistrationPost + 436
11 CoreFoundation 0x185a3d634 _CFXNotificationPost + 732
12 Foundation 0x186be5924 -[NSNotificationCenter postNotificationName:object:userInfo:] + 88
13 AppKit 0x1895aedcc -[NSApplication finishLaunching] + 248
14 AppKit 0x1895aea98 -[NSApplication run] + 252
15 AppKit 0x18958544c NSApplicationMain + 888
16 iTerm2 0x104f17e44 main + 132
17 dyld 0x185610274 start + 2840
neiltroyer849
93 天前
看起来是权限问题,删干净重装一下看看
BruceHong
92 天前
看代码,找到原因了,你们看下谁能提交给 iterm2 官方修复下。
原因是:legacyApplicationSupportDirectory 函数 ELog 没有判空

- (NSString *)legacyApplicationSupportDirectory {
NSError *error;
NSString *result = [self findOrCreateDirectory:NSApplicationSupportDirectory
inDomain:NSUserDomainMask
appendPathComponent:@"iTerm"
error:&error];
if (!result) {
ELog(@"Unable to find or create application support directory:\n%@", error);
}
return result;
}


删除 ~/Library/Application Support/iTerm 即可。
BruceHong
92 天前
error 没有判空

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1074086

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX