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

macos15 上 iterm2 闪退

  •  
  •   BruceHong · 64 天前 · 1087 次点击
    这是一个创建于 64 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    10 条回复    2024-09-21 00:53:38 +08:00
    kiritoyui
        1
    kiritoyui  
       64 天前
    无问题,从测试版一直用着的
    quainter
        2
    quainter  
       64 天前
    我也没有问题,macOS15.0 , iTerm2 Build 3.5.4
    zfyStars
        3
    zfyStars  
       64 天前
    macos15 intel 芯片 没问题
    t41372
        4
    t41372  
       64 天前 via Android
    macOS 15.0 m1pro, iTerm Build 3.5.4 无问题
    DDDZZZFFF
        5
    DDDZZZFFF  
       64 天前
    看看是不是权限没给够
    zhoushuo
        6
    zhoushuo  
       64 天前
    macOS15 M3Pro 没问题
    BruceHong
        7
    BruceHong  
    OP
       64 天前
    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  
       64 天前
    看起来是权限问题,删干净重装一下看看
    BruceHong
        9
    BruceHong  
    OP
       63 天前
    看代码,找到原因了,你们看下谁能提交给 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
       63 天前
    error 没有判空
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1195 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 20ms · UTC 18:14 · PVG 02:14 · LAX 10:14 · JFK 13:14
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.