macos15 上 iterm2 闪退 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
BruceHong
V2EX    Apple

macos15 上 iterm2 闪退

  •  
  •   BruceHong 2024-09-19 15:47:54 +08:00 1727 次点击
    这是一个创建于 392 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    10 条回复    2024-09-21 00:53:38 +08:00
    kiritoyui
        1
    kiritoyui  
       2024-09-19 16:03:10 +08:00
    无问题,从测试版一直用着的
    quainter
        2
    quainter  
       2024-09-19 16:08:41 +08:00
    我也没有问题,macOS15.0 , iTerm2 Build 3.5.4
    zfyStars
        3
    zfyStars  
       2024-09-19 16:11:07 +08:00
    macos15 intel 芯片 没问题
    t41372
        4
    t41372  
       2024-09-19 16:14:29 +08:00 via Android
    macOS 15.0 m1pro, iTerm Build 3.5.4 无问题
    DDDZZZFFF
        5
    DDDZZZFFF  
       2024-09-19 16:41:11 +08:00
    看看是不是权限没给够
    zhoushuo
        6
    zhoushuo  
       2024-09-19 16:42:30 +08:00
    macOS15 M3Pro 没问题
    BruceHong
        7
    BruceHong  
    OP
       2024-09-19 17:14:07 +08:00
    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
        8
    neiltroyer849  
       2024-09-20 00:02:14 +08:00
    看起来是权限问题,删干净重装一下看看
    BruceHong
        9
    BruceHong  
    OP
       2024-09-21 00:49:26 +08:00
    看代码,找到原因了,你们看下谁能提交给 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
        10
    BruceHong  
    OP
       2024-09-21 00:53:38 +08:00
    error 没有判空
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     1212 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 27ms UTC 23:49 PVG 07:49 LAX 16:49 JFK 19:49
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86