🐞 macOS Ventura crash at startup

未关闭
#2,091 11 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
macos, swift

调研方向

首先在 macOS 13.7.6 上复现启动失败,并检查 dyld 报告,查找 /Applications/CodeEdit.app/Contents/MacOS/CodeEdit 中 CodeEdit 缺失的 asyncAndWait 符号。检查捆绑的 CodeEditKit 和 Sparkle 框架,以及预期的 libswiftDispatch.dylib。当 CodeEdit 0.3.5 能在 macOS Ventura 上成功启动时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

bug Waiting for information
Description

CodeEdit crashes at startup when run on macOS Ventura

To Reproduce

Click on icon
and wait for the crash during startup

Expected Behavior

Clicking on icon the app should not crash

Version Information

CodeEdit: [0.3.5 (46)]
macOS: [13.7.6]
Xcode: [e.g. 15.2]

Additional Context
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               CodeEdit [2359]
Path:                  /Applications/CodeEdit.app/Contents/MacOS/CodeEdit
Identifier:            app.codeedit.CodeEdit
Version:               0.3.5 (46)
Code Type:             X86-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2025-07-18 09:17:25.7405 +0200
OS Version:            macOS 13.7.6 (22H625)
Report Version:        12
Anonymous UUID:        B1F8FDF3-1CA3-DAA3-DFDB-EF6B2EF2DDDC


Time Awake Since Boot: 2300 seconds

System Integrity Protection: enabled

Crashed Thread:        0

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

Termination Reason:    Namespace DYLD, Code 4 Symbol missing
Symbol not found: _$sSo17OS_dispatch_queueC8DispatchE12asyncAndWait7executexxyKXE_tKlF
Referenced from: <648AE085-04CC-388E-9E76-8E71DB0E5983> /Applications/CodeEdit.app/Contents/MacOS/CodeEdit
Expected in:     <5A5DE507-6097-34D5-87E4-D26F412BB8B2> /usr/lib/swift/libswiftDispatch.dylib
(terminated at launch; ignore backtrace)

Thread 0 Crashed:
0   dyld                          	    0x7ff806a21c46 __abort_with_payload + 10
1   dyld                          	    0x7ff806a3bf27 abort_with_payload_wrapper_internal + 82
2   dyld                          	    0x7ff806a3bf59 abort_with_payload + 9
3   dyld                          	    0x7ff8069c083e dyld4::halt(char const*) + 375
4   dyld                          	    0x7ff8069bdb66 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 4526
5   dyld                          	    0x7ff8069bc3b3 start + 1795


Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000002000209  rbx: 0x0000000000000000  rcx: 0x00007ff7b41c6ef8  rdx: 0x00007ff7b41c7360
  rdi: 0x0000000000000006  rsi: 0x0000000000000004  rbp: 0x00007ff7b41c6f40  rsp: 0x00007ff7b41c6ef8
   r8: 0x00007ff7b41c6f60   r9: 0x0000000000000000  r10: 0x00000000000000b2  r11: 0x0000000000000246
  r12: 0x00000000000000b2  r13: 0x00007ff7b41c7360  r14: 0x0000000000000004  r15: 0x0000000000000006
  rip: 0x00007ff806a21c46  rfl: 0x0000000000000246  cr2: 0x0000000000000000
  
Logical CPU:     0
Error Code:      0x02000209 
Trap Number:     133


Binary Images:
       0x10bd35000 -        0x112509fff app.codeedit.CodeEdit (0.3.5) <648ae085-04cc-388e-9e76-8e71db0e5983> /Applications/CodeEdit.app/Contents/MacOS/CodeEdit
       0x1129cb000 -        0x1129fbfff codeeditkit.CodeEditKit (1.0) <c8c88e37-6a1e-355a-8b5a-cab60dbb7d0c> /Applications/CodeEdit.app/Contents/Frameworks/CodeEditKit.framework/Versions/A/CodeEditKit
       0x112919000 -        0x11296cfff org.sparkle-project.Sparkle (2.3.0) <2aa76c72-900c-3629-b58d-a6297fe94a1e> /Applications/CodeEdit.app/Contents/Frameworks/Sparkle.framework/Versions/B/Sparkle
    0x7ff8069b6000 -     0x7ff806a4e62f dyld (*) <d4fdfb7a-666b-3be3-969d-5728d56e85fd> /usr/lib/dyld

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=926.9M resident=0K(0%) swapped_out_or_unallocated=926.9M(100%)
Writable regions: Total=9116K written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=9116K(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
STACK GUARD                       56.0M        1 
Stack                             8192K        1 
VM_ALLOCATE                          8K        2 
__CTF                               824        1 
__DATA                            33.6M      575 
__DATA_CONST                      40.2M      373 
__DATA_DIRTY                      2083K      220 
__FONT_DATA                        2352        1 
__INFO_FILTER                         8        1 
__LINKEDIT                       173.6M        4 
__OBJC_RO                         66.3M        1 
__OBJC_RW                         2011K        2 
__TEXT                           753.3M      601 
dyld private memory                260K        2 
shared memory                        4K        1 
===========                     =======  ======= 
TOTAL                              1.1G     1786 



-----------
Full Report
-----------

{"app_name":"CodeEdit","timestamp":"2025-07-18 09:17:26.00 +0200","app_version":"0.3.5","slice_uuid":"648ae085-04cc-388e-9e76-8e71db0e5983","build_version":"46","platform":1,"bundleID":"app.codeedit.CodeEdit","share_with_app_devs":1,"is_first_party":0,"bug_type":"309","os_version":"macOS 13.7.6 (22H625)","roots_installed":0,"name":"CodeEdit","incident_id":"834C408B-E438-4606-A196-E8E18CC66059"}
{
  "uptime" : 2300,
  "procRole" : "Default",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "MacPro6,1",
  "coalitionID" : 1439,
  "osVersion" : {
    "train" : "macOS 13.7.6",
    "build" : "22H625",
    "releaseType" : "User"
  },
  "captureTime" : "2025-07-18 09:17:25.7405 +0200",
  "incident" : "834C408B-E438-4606-A196-E8E18CC66059",
  "pid" : 2359,
  "cpuType" : "X86-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2025-07-18 09:17:25.7003 +0200",
  "procStartAbsTime" : 2385953202546,
  "procExitAbsTime" : 2385992893054,
  "procName" : "CodeEdit",
  "procPath" : "\/Applications\/CodeEdit.app\/Contents\/MacOS\/CodeEdit",
  "bundleInfo" : {"CFBundleShortVersionString":"0.3.5","CFBundleVersion":"46","CFBundleIdentifier":"app.codeedit.CodeEdit"},
  "storeInfo" : {"deviceIdentifierForVendor":"973AEFDF-210E-57C5-93D8-24B289F9C158","thirdParty":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "app.codeedit.CodeEdit",
  "crashReporterKey" : "B1F8FDF3-1CA3-DAA3-DFDB-EF6B2EF2DDDC",
  "codeSigningID" : "app.codeedit.CodeEdit",
  "codeSigningTeamID" : "9VS2VKC5LQ",
  "codeSigningFlags" : 570490881,
  "codeSigningValidationCategory" : 6,
  "codeSigningTrustLevel" : 0,
  "sip" : "enabled",
  "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
  "termination" : {"code":4,"flags":518,"namespace":"DYLD","indicator":"Symbol missing","details":["(terminated at launch; ignore backtrace)"],"reasons":["Symbol not found: _$sSo17OS_dispatch_queueC8DispatchE12asyncAndWait7executexxyKXE_tKlF","Referenced from: <648AE085-04CC-388E-9E76-8E71DB0E5983> \/Applications\/CodeEdit.app\/Contents\/MacOS\/CodeEdit","Expected in:     <5A5DE507-6097-34D5-87E4-D26F412BB8B2> \/usr\/lib\/swift\/libswiftDispatch.dylib"]},
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":48868,"threadState":{"r13":{"value":140701855413088},"rax":{"value":33554953},"rflags":{"value":582},"cpu":{"value":0},"r14":{"value":4},"rsi":{"value":4},"r8":{"value":140701855412064},"cr2":{"value":0},"rdx":{"value":140701855413088},"r10":{"value":178},"r9":{"value":0},"r15":{"value":6},"rbx":{"value":0},"trap":{"value":133},"err":{"value":33554953},"r11":{"value":582},"rip":{"value":140703239904326,"matchesCrashFrame":1},"rbp":{"value":140701855412032},"rsp":{"value":140701855411960},"r12":{"value":178},"rcx":{"value":140701855411960},"flavor":"x86_THREAD_STATE","rdi":{"value":6}},"frames":[{"imageOffset":441414,"symbol":"__abort_with_payload","symbolLocation":10,"imageIndex":3},{"imageOffset":548647,"symbol":"abort_with_payload_wrapper_internal","symbolLocation":82,"imageIndex":3},{"imageOffset":548697,"symbol":"abort_with_payload","symbolLocation":9,"imageIndex":3},{"imageOffset":43070,"symbol":"dyld4::halt(char const*)","symbolLocation":375,"imageIndex":3},{"imageOffset":31590,"symbol":"dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*)","symbolLocation":4526,"imageIndex":3},{"imageOffset":25523,"symbol":"start","symbolLocation":1795,"imageIndex":3}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4493365248,
    "CFBundleShortVersionString" : "0.3.5",
    "CFBundleIdentifier" : "app.codeedit.CodeEdit",
    "size" : 108875776,
    "uuid" : "648ae085-04cc-388e-9e76-8e71db0e5983",
    "path" : "\/Applications\/CodeEdit.app\/Contents\/MacOS\/CodeEdit",
    "name" : "CodeEdit",
    "CFBundleVersion" : "46"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4607225856,
    "CFBundleShortVersionString" : "1.0",
    "CFBundleIdentifier" : "codeeditkit.CodeEditKit",
    "size" : 200704,
    "uuid" : "c8c88e37-6a1e-355a-8b5a-cab60dbb7d0c",
    "path" : "\/Applications\/CodeEdit.app\/Contents\/Frameworks\/CodeEditKit.framework\/Versions\/A\/CodeEditKit",
    "name" : "CodeEditKit",
    "CFBundleVersion" : "1"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4606496768,
    "CFBundleShortVersionString" : "2.3.0",
    "CFBundleIdentifier" : "org.sparkle-project.Sparkle",
    "size" : 344064,
    "uuid" : "2aa76c72-900c-3629-b58d-a6297fe94a1e",
    "path" : "\/Applications\/CodeEdit.app\/Contents\/Frameworks\/Sparkle.framework\/Versions\/B\/Sparkle",
    "name" : "Sparkle",
    "CFBundleVersion" : "2021"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703239462912,
    "size" : 624176,
    "uuid" : "d4fdfb7a-666b-3be3-969d-5728d56e85fd",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  }
],
  "sharedCache" : {
  "base" : 140703238844416,
  "size" : 21474836480,
  "uuid" : "74607eeb-6532-392a-8743-f14de5cd5ef8"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=926.9M resident=0K(0%) swapped_out_or_unallocated=926.9M(100%)\nWritable regions: Total=9116K written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=9116K(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nSTACK GUARD                       56.0M        1 \nStack                             8192K        1 \nVM_ALLOCATE                          8K        2 \n__CTF                               824        1 \n__DATA                            33.6M      575 \n__DATA_CONST                      40.2M      373 \n__DATA_DIRTY                      2083K      220 \n__FONT_DATA                        2352        1 \n__INFO_FILTER                         8        1 \n__LINKEDIT                       173.6M        4 \n__OBJC_RO                         66.3M        1 \n__OBJC_RW                         2011K        2 \n__TEXT                           753.3M      601 \ndyld private memory                260K        2 \nshared memory                        4K        1 \n===========                     =======  ======= \nTOTAL                              1.1G     1786 \n",
  "legacyInfo" : {
  "threadTriggered" : {

  }
},
  "logWritingSignature" : "f524e4aef886e461be84a3b22522f6b67fd47db4",
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "62fe74515312cd4599bd3c80",
      "factorPackIds" : {
        "MYRIAD_BOOSTS" : "62fe74805312cd4599bd3c81"
      },
      "deploymentId" : 240000006
    },
    {
      "rolloutId" : "60da5e84ab0ca017dace9abf",
      "factorPackIds" : {

      },
      "deploymentId" : 240000008
    }
  ],
  "experiments" : [

  ]
}
}

Model: MacPro6,1, BootROM 481.0.0.0.0, 6 processors, 6-Core Intel Xeon E5, 3,5 GHz, 64 GB, SMC 2.20f18
Graphics: AMD FirePro D500, AMD FirePro D500, PCIe, 3 GB
Graphics: AMD FirePro D500, AMD FirePro D500, PCIe, 3 GB
Display: Thunderbolt Display, 2560 x 1440 (QHD/WQHD - Wide Quad High Definition), Main, MirrorOff, Online
Display: Thunderbolt Display, 2560 x 1440 (QHD/WQHD - Wide Quad High Definition), MirrorOff, Online
Memory Module: DIMM1, 16 GB, DDR3 ECC, 1866 MHz, 0x80CE, 0x4D33393342324737304442302D434D412020
Memory Module: DIMM2, 16 GB, DDR3 ECC, 1866 MHz, 0x80CE, 0x4D33393342324737304442302D434D412020
Memory Module: DIMM3, 16 GB, DDR3 ECC, 1866 MHz, 0x80CE, 0x4D33393342324737304442302D434D412020
Memory Module: DIMM4, 16 GB, DDR3 ECC, 1866 MHz, 0x80CE, 0x4D33393342324737304442302D434D412020
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x135), Broadcom BCM43xx 1.0 (7.77.111.1 AirPortDriverBrcmNIC-1772.1)
AirPort: 
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Ethernet 1, Ethernet, en0
Network Service: Wi-Fi, AirPort, en2
PCI Card: AMD FirePro D500, Display Controller, Slot-1
PCI Card: AMD FirePro D500, Display Controller, Slot-2
PCI Card: pci11c1,5901, IEEE 1394 Open HCI, Thunderbolt@155,0,0
PCI Card: Apple 57761-B0, Ethernet Controller, Thunderbolt@156,0,0
PCI Card: pci12d8,400e, USB Open Host Controller, Thunderbolt@159,0,0
PCI Card: pci12d8,400e, USB Open Host Controller, Thunderbolt@159,0,1
PCI Card: pci12d8,400f, USB Enhanced Host Controller, Thunderbolt@159,0,2
PCI Card: pci1b73,1100, USB eXtensible Host Controller, Thunderbolt@81,0,0
PCI Card: pci1b73,1100, USB eXtensible Host Controller, Thunderbolt@80,0,0
PCI Card: ethernet, Ethernet Controller, Thunderbolt@78,0,0
PCI Card: pci1b21,1242, USB eXtensible Host Controller, Thunderbolt@79,0,0
PCI Card: pci11c1,5901, IEEE 1394 Open HCI, Thunderbolt@164,0,0
PCI Card: Apple 57761-B0, Ethernet Controller, Thunderbolt@165,0,0
PCI Card: pci12d8,400e, USB Open Host Controller, Thunderbolt@168,0,0
PCI Card: pci12d8,400e, USB Open Host Controller, Thunderbolt@168,0,1
PCI Card: pci12d8,400f, USB Enhanced Host Controller, Thunderbolt@168,0,2
Serial ATA Device: APPLE SSD SM0512G, 500,28 GB
USB Device: USB20Bus
USB Device: hub_device
USB Device: BRCM20702 Hub
USB Device: Bluetooth USB Host Controller
USB Device: USB20Bus
USB Device: hub_device
USB Device: Apple Thunderbolt Display
USB Device: FaceTime HD Camera (Display)
USB Device: Display Audio
USB Device: USB20Bus
USB Device: hub_device
USB Device: Apple Thunderbolt Display
USB Device: FaceTime HD Camera (Display)
USB Device: Display Audio
USB Device: USB30Bus
USB Device: Inateck  Generic USB Device
USB Device: composite_device
USB Device: USB Receiver
USB Device: USB30Bus
USB Device: CalDigit Thunderbolt 3 Audio
USB Device: Keyboard Hub
USB Device: Apple Keyboard
USB Device: USB30Bus
USB Device: Card Reader
USB Device: USB31Bus
Thunderbolt Bus: Mac Pro, Apple Inc., 19.2
Thunderbolt Device: TS3 Plus, CalDigit, Inc., 3, 35.1
Thunderbolt Bus: Mac Pro, Apple Inc., 19.2
Thunderbolt Device: Thunderbolt Display, Apple Inc., 1, 26.2
Thunderbolt Bus: Mac Pro, Apple Inc., 19.2

Screenshots

No response

主要语言
Swift
星标
23k
派生
1.2k
PR 合并指标
30 天内没有已合并 PR

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CodeEditApp/CodeEdit 的其他 Issue

查看 CodeEditApp/CodeEdit 的全部 Issue

相似的 Issue

更多 Swift Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。