Skip to content

Conversation

@victorlunam
Copy link

This PR updates swizzle() to prevent crashes on macOS 26+ by skipping the swizzle entirely. A minor UI issue is accepted as a tradeoff to ensure stability.

Changes:

  • Added #available(macOS 26, *) check.
  • Disabled swizzling on macOS 26+, preserving behavior on earlier versions.

@jordanbaird
Copy link
Owner

I agree that this would be an acceptable tradeoff to ensure stability. Although, where are you seeing that swizzle() is causing a crash? Can you provide a backtrace? As far as I've seen, most known crashes in macOS 26 are caused by NSWindow.windowNumber returning a larger value than what CGWindowID (aka UInt32) can contain, which wasn't the case in prior macOS versions.

Do you still get crashes when using the latest beta build? https://github.com/jordanbaird/Ice/releases/tag/0.11.13-dev.2

@victorlunam
Copy link
Author

I agree that this would be an acceptable tradeoff to ensure stability. Although, where are you seeing that swizzle() is causing a crash? Can you provide a backtrace? As far as I've seen, most known crashes in macOS 26 are caused by NSWindow.windowNumber returning a larger value than what CGWindowID (aka UInt32) can contain, which wasn't the case in prior macOS versions.

Do you still get crashes when using the latest beta build? https://github.com/jordanbaird/Ice/releases/tag/0.11.13-dev.2

Regarding point 2.
I just tried the latest beta version and it works fine.

Regarding point 1.
I'm sharing the error message with you.

Full Report on crash (click to expand)
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process:             Ice [1289]
Path:                /Applications/Ice.app/Contents/MacOS/Ice
Identifier:          com.jordanbaird.Ice
Version:             0.11.12 (1117)
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           com.jordanbaird.Ice [839]
User ID:             501

Date/Time:           2025-09-28 08:07:41.6337 -0500
Launch Time:         2025-09-28 08:07:01.7394 -0500
Hardware Model:      Mac15,6
OS Version:          macOS 26.0 (25A354)
Release Type:        User

Crash Reporter Key:  4957A7C6-FA0B-9382-DFC0-9CA399EFCDB3
Incident Identifier: 5E61D346-056E-4D5F-A425-073393474D03

Sleep/Wake UUID:       1A51E81D-ED06-4AFB-9D66-8CCA559EA18D

Time Awake Since Boot: 170 seconds
Time Since Wake:       148 seconds

System Integrity Protection: enabled

Triggered by Thread: 0

Exception Type:    EXC_BREAKPOINT (SIGTRAP)
Exception Codes:   0x0000000000000001, 0x0000000100e38934

Termination Reason:  Namespace SIGNAL, Code 5, Trace/BPT trap: 5
Terminating Process: exc handler [1289]


Thread 0 Crashed:
0   Ice                           	       0x100e38934 0x100e2c000 + 51508
1   Ice                           	       0x100eeeb18 0x100e2c000 + 797464
2   Ice                           	       0x100eeeaa0 0x100e2c000 + 797344
3   Ice                           	       0x100eed5e0 0x100e2c000 + 792032
4   Ice                           	       0x100eac7e1 0x100e2c000 + 526305
5   Ice                           	       0x100e4c151 0x100e2c000 + 131409
6   Ice                           	       0x100e4ffb9 0x100e2c000 + 147385
7   Ice                           	       0x100e3e319 0x100e2c000 + 74521
8   libswift_Concurrency.dylib    	       0x27ac18dfd completeTaskWithClosure(swift::AsyncContext*, swift::SwiftError*) + 1

Thread 1:

Thread 2:

Thread 3:

Thread 4:: com.apple.NSEventThread
0   libsystem_kernel.dylib        	       0x1824d1c34 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x1824e4028 mach_msg2_internal + 76
2   libsystem_kernel.dylib        	       0x1824da98c mach_msg_overwrite + 484
3   libsystem_kernel.dylib        	       0x1824d1fb4 mach_msg + 24
4   CoreFoundation                	       0x1825b3c80 __CFRunLoopServiceMachPort + 160
5   CoreFoundation                	       0x1825b25d8 __CFRunLoopRun + 1188
6   CoreFoundation                	       0x182670898 _CFRunLoopRunSpecificWithOptions + 532
7   AppKit                        	       0x186a30a68 _NSEventThread + 184
8   libsystem_pthread.dylib       	       0x182514c08 _pthread_start + 136
9   libsystem_pthread.dylib       	       0x18250fba8 thread_start + 8

Thread 5:

Thread 6:

Thread 7:

Thread 8:

Thread 9:


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x000000074406a800   x1: 0x21000001eef137bf   x2: 0x00000001eef137b8   x3: 0x0000000000000001
    x4: 0x0000001000000003   x5: 0x0000000000000007   x6: 0x0000001000000003   x7: 0x0000000000000007
    x8: 0x0000000000000001   x9: 0x00000001fdca4ebb  x10: 0x00000007563e7903  x11: 0x00000000000003ff
  x12: 0x0000000000000226  x13: 0x0000000745052250  x14: 0x21000001eef137bf  x15: 0x00000001eef137b8
  x16: 0x21000001eef137bf  x17: 0x0000000000000040  x18: 0x0000000000000000  x19: 0x0000000100000000
  x20: 0x000000074406a800  x21: 0x0000000744838b40  x22: 0x0000000744088640  x23: 0x0000000000000002
  x24: 0x0000000100fd5000  x25: 0x0000000744bf4900  x26: 0x000000074634e550  x27: 0x00000007467de4c0
  x28: 0xffffffff76ffffff   fp: 0x000000016efcf8b0   lr: 0x0000000100e38928
    sp: 0x000000016efcf890   pc: 0x0000000100e38934 cpsr: 0x60001000
  far: 0x0000000000000000  esr: 0xf2000001 (Breakpoint) brk 1

Binary Images:
      0x100e2c000 -        0x100fbbfff com.jordanbaird.Ice (0.11.12) <438423db-718a-3fc0-9935-2a5721737382> /Applications/Ice.app/Contents/MacOS/Ice
      0x101114000 -        0x101157fff org.sparkle-project.Sparkle (2.6.4) <0e273e3e-459c-3fa6-9a86-4754c5cc30ff> /Applications/Ice.app/Contents/Frameworks/Sparkle.framework/Versions/B/Sparkle
      0x1013c8000 -        0x1013d3fff libobjc-trampolines.dylib (*) <580e4b29-8304-342d-a21c-2a869364dc35> /usr/lib/libobjc-trampolines.dylib
      0x115294000 -        0x115ab7fff com.apple.AGXMetalG15X-M1 (340.26.3) <034c331a-3023-3000-8004-26d3a9da5ef1> /System/Library/Extensions/AGXMetalG15X_M1.bundle/Contents/MacOS/AGXMetalG15X_M1
      0x27abab000 -        0x27ac35317 libswift_Concurrency.dylib (*) <55c416d8-c572-3449-9302-a64cc8a57360> /usr/lib/swift/libswift_Concurrency.dylib
              0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
      0x1824d1000 -        0x18250d45f libsystem_kernel.dylib (*) <2eb73bf1-8c71-3e1f-a160-6da83dc82606> /usr/lib/system/libsystem_kernel.dylib
      0x182554000 -        0x182aa0f7f com.apple.CoreFoundation (6.9) <edb39786-80b1-3bff-b6c3-e33f2e3ca867> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
      0x186981000 -        0x18807cd9f com.apple.AppKit (6.9) <6d84c7a3-ee98-3daf-ac66-cd95a902ba84> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
      0x18250e000 -        0x18251aabb libsystem_pthread.dylib (*) <5d31d65c-2ecf-36da-84f5-ba4caab06adb> /usr/lib/system/libsystem_pthread.dylib

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=1.8G resident=0K(0%) swapped_out_or_unallocated=1.8G(100%)
Writable regions: Total=164.5M written=577K(0%) resident=577K(0%) swapped_out=0K(0%) unallocated=164.0M(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Accelerate framework               128K        1 
Activity Tracing                   256K        1 
AttributeGraph Data               1024K        1 
CG image                           128K        8 
ColorSync                          624K       29 
CoreAnimation                     4816K       77 
CoreGraphics                        48K        3 
CoreGraphics (reserved)             16K        1         reserved VM address space (unallocated)
CoreUI image data                 2368K       18 
Foundation                          16K        1 
Kernel Alloc Once                   32K        1 
MALLOC                           141.5M       30 
MALLOC guard page                 3440K        4 
STACK GUARD                       56.2M       10 
Stack                             12.8M       10 
VM_ALLOCATE                       3216K       10 
__AUTH                            5805K      649 
__AUTH_CONST                      88.5M     1034 
__CTF                               824        1 
__DATA                            29.7M      984 
__DATA_CONST                      32.9M     1043 
__DATA_DIRTY                      8873K      895 
__FONT_DATA                        2352        1 
__INFO_FILTER                         8        1 
__LINKEDIT                       596.0M        5 
__OBJC_RO                         78.1M        1 
__OBJC_RW                         2561K        1 
__TEXT                             1.2G     1066 
__TPRO_CONST                       128K        2 
mapped file                      299.1M       44 
page table in kernel               577K        1 
shared memory                     1968K       19 
===========                     =======  ======= 
TOTAL                              2.5G     5952 
TOTAL, minus reserved VM space     2.5G     5952 


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

{"app_name":"Ice","timestamp":"2025-09-28 08:07:42.00 -0500","app_version":"0.11.12","slice_uuid":"438423db-718a-3fc0-9935-2a5721737382","build_version":"1117","platform":1,"bundleID":"com.jordanbaird.Ice","share_with_app_devs":1,"is_first_party":0,"bug_type":"309","os_version":"macOS 26.0 (25A354)","roots_installed":0,"name":"Ice","incident_id":"5E61D346-056E-4D5F-A425-073393474D03"}
{
  "uptime" : 170,
  "procRole" : "Foreground",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "Mac15,6",
  "coalitionID" : 839,
  "osVersion" : {
    "train" : "macOS 26.0",
    "build" : "25A354",
    "releaseType" : "User"
  },
  "captureTime" : "2025-09-28 08:07:41.6337 -0500",
  "codeSigningMonitor" : 2,
  "incident" : "5E61D346-056E-4D5F-A425-073393474D03",
  "pid" : 1289,
  "translated" : false,
  "cpuType" : "ARM-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2025-09-28 08:07:01.7394 -0500",
  "procStartAbsTime" : 3285579876,
  "procExitAbsTime" : 4243066350,
  "procName" : "Ice",
  "procPath" : "\/Applications\/Ice.app\/Contents\/MacOS\/Ice",
  "bundleInfo" : {"CFBundleShortVersionString":"0.11.12","CFBundleVersion":"1117","CFBundleIdentifier":"com.jordanbaird.Ice"},
  "storeInfo" : {"deviceIdentifierForVendor":"56449518-9F6D-5979-A8D0-C384DC29EDAE","thirdParty":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "com.jordanbaird.Ice",
  "crashReporterKey" : "4957A7C6-FA0B-9382-DFC0-9CA399EFCDB3",
  "developerMode" : 1,
  "codeSigningID" : "com.jordanbaird.Ice",
  "codeSigningTeamID" : "K2ATHQPJDP",
  "codeSigningFlags" : 570503953,
  "codeSigningValidationCategory" : 6,
  "codeSigningTrustLevel" : 4294967295,
  "codeSigningAuxiliaryInfo" : 0,
  "instructionByteStream" : {"beforePC":"6AwAsAGpQPngAxSqvucElPMDAKrgAxSqxOcElLMB+Ldo\/mDTiAAAtA==","atPC":"IAAg1BMAgNIoAIBS6DMAOQgdABJgggiq\/XtCqfRPQan\/wwCRwANf1g=="},
  "bootSessionUUID" : "5C576A41-5FC5-4169-9402-40BD2EAE8679",
  "wakeTime" : 148,
  "sleepWakeUUID" : "1A51E81D-ED06-4AFB-9D66-8CCA559EA18D",
  "sip" : "enabled",
  "exception" : {"codes":"0x0000000000000001, 0x0000000100e38934","rawCodes":[1,4309879092],"type":"EXC_BREAKPOINT","signal":"SIGTRAP"},
  "termination" : {"flags":0,"code":5,"namespace":"SIGNAL","indicator":"Trace\/BPT trap: 5","byProc":"exc handler","byPid":1289},
  "os_fault" : {"process":"Ice"},
  "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":15690,"threadState":{"x":[{"value":31206057984},{"value":2377900611555375039,"symbolLocation":2377900603251621895,"symbol":"OBJC_CLASS_$_NSStatusBarWindow"},{"value":8303753144,"symbolLocation":0,"symbol":"OBJC_CLASS_$_NSStatusBarWindow"},{"value":1},{"value":68719476739},{"value":7},{"value":68719476739},{"value":7},{"value":1},{"value":8552861371,"objc-selector":"windowNumber"},{"value":31511705859},{"value":1023},{"value":550},{"value":31222735440},{"value":2377900611555375039,"symbolLocation":2377900603251621895,"symbol":"OBJC_CLASS_$_NSStatusBarWindow"},{"value":8303753144,"symbolLocation":0,"symbol":"OBJC_CLASS_$_NSStatusBarWindow"},{"value":2377900611555375039,"symbolLocation":2377900603251621895,"symbol":"OBJC_CLASS_$_NSStatusBarWindow"},{"value":64},{"value":0},{"value":4294967296},{"value":31206057984},{"value":31214242624},{"value":31206180416},{"value":2},{"value":4311568384},{"value":31218157824},{"value":31242642768},{"value":31247426752},{"value":18446744071411073023}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4309879080},"cpsr":{"value":1610616832},"fp":{"value":6157039792},"sp":{"value":6157039760},"esr":{"value":4060086273,"description":"(Breakpoint) brk 1"},"pc":{"value":4309879092,"matchesCrashFrame":1},"far":{"value":0}},"frames":[{"imageOffset":51508,"imageIndex":0},{"imageOffset":797464,"imageIndex":0},{"imageOffset":797344,"imageIndex":0},{"imageOffset":792032,"imageIndex":0},{"imageOffset":526305,"imageIndex":0},{"imageOffset":131409,"imageIndex":0},{"imageOffset":147385,"imageIndex":0},{"imageOffset":74521,"imageIndex":0},{"imageOffset":450045,"symbol":"completeTaskWithClosure(swift::AsyncContext*, swift::SwiftError*)","symbolLocation":1,"imageIndex":4}]},{"id":15691,"frames":[],"threadState":{"x":[{"value":6157611008},{"value":3843},{"value":6157074432},{"value":0},{"value":409604},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6157611008},"esr":{"value":1442840704,"description":"(Syscall)"},"pc":{"value":6481312660},"far":{"value":0}}},{"id":15692,"frames":[],"threadState":{"x":[{"value":6158184448},{"value":5379},{"value":6157647872},{"value":0},{"value":409604},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6158184448},"esr":{"value":1442840704,"description":"(Syscall)"},"pc":{"value":6481312660},"far":{"value":0}}},{"id":15694,"frames":[],"threadState":{"x":[{"value":6159331328},{"value":46851},{"value":6158794752},{"value":0},{"value":409604},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6159331328},"esr":{"value":1442840704,"description":"(Syscall)"},"pc":{"value":6481312660},"far":{"value":0}}},{"id":15695,"name":"com.apple.NSEventThread","threadState":{"x":[{"value":268451845},{"value":21592279046},{"value":8589934592,"objc-selector":"ngProvider"},{"value":96769908146176},{"value":0},{"value":96769908146176},{"value":2},{"value":4294967295},{"value":0},{"value":17179869184},{"value":0},{"value":2},{"value":0},{"value":0},{"value":22531},{"value":0},{"value":18446744073709551569},{"value":8326702864},{"value":0},{"value":4294967295},{"value":2},{"value":96769908146176},{"value":0},{"value":96769908146176},{"value":6159900808},{"value":8589934592,"objc-selector":"ngProvider"},{"value":21592279046},{"value":18446744073709550527},{"value":4412409862}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6481133608},"cpsr":{"value":4096},"fp":{"value":6159900656},"sp":{"value":6159900576},"esr":{"value":1442840704,"description":"(Syscall)"},"pc":{"value":6481058868},"far":{"value":0}},"frames":[{"imageOffset":3124,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":6},{"imageOffset":77864,"symbol":"mach_msg2_internal","symbolLocation":76,"imageIndex":6},{"imageOffset":39308,"symbol":"mach_msg_overwrite","symbolLocation":484,"imageIndex":6},{"imageOffset":4020,"symbol":"mach_msg","symbolLocation":24,"imageIndex":6},{"imageOffset":392320,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":160,"imageIndex":7},{"imageOffset":386520,"symbol":"__CFRunLoopRun","symbolLocation":1188,"imageIndex":7},{"imageOffset":1165464,"symbol":"_CFRunLoopRunSpecificWithOptions","symbolLocation":532,"imageIndex":7},{"imageOffset":719464,"symbol":"_NSEventThread","symbolLocation":184,"imageIndex":8},{"imageOffset":27656,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":9},{"imageOffset":7080,"symbol":"thread_start","symbolLocation":8,"imageIndex":9}]},{"id":15711,"frames":[],"threadState":{"x":[{"value":6161051648},{"value":53771},{"value":6160515072},{"value":0},{"value":409604},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6161051648},"esr":{"value":1442840704,"description":"(Syscall)"},"pc":{"value":6481312660},"far":{"value":0}}},{"id":16889,"frames":[],"threadState":{"x":[{"value":6158757888},{"value":76403},{"value":6158221312},{"value":0},{"value":409604},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6158757888},"esr":{"value":1442840704,"description":"(Syscall)"},"pc":{"value":6481312660},"far":{"value":0}}},{"id":16890,"frames":[],"threadState":{"x":[{"value":6160478208},{"value":67539},{"value":6159941632},{"value":0},{"value":409604},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6160478208},"esr":{"value":1442840704,"description":"(Syscall)"},"pc":{"value":6481312660},"far":{"value":0}}},{"id":16891,"frames":[],"threadState":{"x":[{"value":6161625088},{"value":75963},{"value":6161088512},{"value":0},{"value":409603},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6161625088},"esr":{"value":1442840704,"description":"(Syscall)"},"pc":{"value":6481312660},"far":{"value":0}}},{"id":16892,"frames":[],"threadState":{"x":[{"value":6162198528},{"value":0},{"value":6161661952},{"value":0},{"value":278532},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6162198528},"esr":{"value":0},"pc":{"value":6481312660},"far":{"value":0}}}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4309827584,
    "CFBundleShortVersionString" : "0.11.12",
    "CFBundleIdentifier" : "com.jordanbaird.Ice",
    "size" : 1638400,
    "uuid" : "438423db-718a-3fc0-9935-2a5721737382",
    "path" : "\/Applications\/Ice.app\/Contents\/MacOS\/Ice",
    "name" : "Ice",
    "CFBundleVersion" : "1117"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4312875008,
    "CFBundleShortVersionString" : "2.6.4",
    "CFBundleIdentifier" : "org.sparkle-project.Sparkle",
    "size" : 278528,
    "uuid" : "0e273e3e-459c-3fa6-9a86-4754c5cc30ff",
    "path" : "\/Applications\/Ice.app\/Contents\/Frameworks\/Sparkle.framework\/Versions\/B\/Sparkle",
    "name" : "Sparkle",
    "CFBundleVersion" : "2039.1"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 4315709440,
    "size" : 49152,
    "uuid" : "580e4b29-8304-342d-a21c-2a869364dc35",
    "path" : "\/usr\/lib\/libobjc-trampolines.dylib",
    "name" : "libobjc-trampolines.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 4649992192,
    "CFBundleShortVersionString" : "340.26.3",
    "CFBundleIdentifier" : "com.apple.AGXMetalG15X-M1",
    "size" : 8536064,
    "uuid" : "034c331a-3023-3000-8004-26d3a9da5ef1",
    "path" : "\/System\/Library\/Extensions\/AGXMetalG15X_M1.bundle\/Contents\/MacOS\/AGXMetalG15X_M1",
    "name" : "AGXMetalG15X_M1",
    "CFBundleVersion" : "340.26.3"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 10648989696,
    "size" : 566040,
    "uuid" : "55c416d8-c572-3449-9302-a64cc8a57360",
    "path" : "\/usr\/lib\/swift\/libswift_Concurrency.dylib",
    "name" : "libswift_Concurrency.dylib"
  },
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6481055744,
    "size" : 246880,
    "uuid" : "2eb73bf1-8c71-3e1f-a160-6da83dc82606",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6481592320,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.CoreFoundation",
    "size" : 5558144,
    "uuid" : "edb39786-80b1-3bff-b6c3-e33f2e3ca867",
    "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation",
    "name" : "CoreFoundation",
    "CFBundleVersion" : "4040.1.401"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6553079808,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.AppKit",
    "size" : 24100256,
    "uuid" : "6d84c7a3-ee98-3daf-ac66-cd95a902ba84",
    "path" : "\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit",
    "name" : "AppKit",
    "CFBundleVersion" : "2685.10.108"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6481305600,
    "size" : 51900,
    "uuid" : "5d31d65c-2ecf-36da-84f5-ba4caab06adb",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  }
],
  "sharedCache" : {
  "base" : 6476300288,
  "size" : 5557583872,
  "uuid" : "52e4eec0-379e-31c7-ac62-bfed14d90f52"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=1.8G resident=0K(0%) swapped_out_or_unallocated=1.8G(100%)\nWritable regions: Total=164.5M written=577K(0%) resident=577K(0%) swapped_out=0K(0%) unallocated=164.0M(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nAccelerate framework               128K        1 \nActivity Tracing                   256K        1 \nAttributeGraph Data               1024K        1 \nCG image                           128K        8 \nColorSync                          624K       29 \nCoreAnimation                     4816K       77 \nCoreGraphics                        48K        3 \nCoreGraphics (reserved)             16K        1         reserved VM address space (unallocated)\nCoreUI image data                 2368K       18 \nFoundation                          16K        1 \nKernel Alloc Once                   32K        1 \nMALLOC                           141.5M       30 \nMALLOC guard page                 3440K        4 \nSTACK GUARD                       56.2M       10 \nStack                             12.8M       10 \nVM_ALLOCATE                       3216K       10 \n__AUTH                            5805K      649 \n__AUTH_CONST                      88.5M     1034 \n__CTF                               824        1 \n__DATA                            29.7M      984 \n__DATA_CONST                      32.9M     1043 \n__DATA_DIRTY                      8873K      895 \n__FONT_DATA                        2352        1 \n__INFO_FILTER                         8        1 \n__LINKEDIT                       596.0M        5 \n__OBJC_RO                         78.1M        1 \n__OBJC_RW                         2561K        1 \n__TEXT                             1.2G     1066 \n__TPRO_CONST                       128K        2 \nmapped file                      299.1M       44 \npage table in kernel               577K        1 \nshared memory                     1968K       19 \n===========                     =======  ======= \nTOTAL                              2.5G     5952 \nTOTAL, minus reserved VM space     2.5G     5952 \n",
  "legacyInfo" : {
  "threadTriggered" : {

  }
},
  "logWritingSignature" : "e36d274b7b5f881736642eb12d9730678e901c4a",
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "63f9578e238e7b23a1f3030a",
      "factorPackIds" : [

      ],
      "deploymentId" : 240000005
    },
    {
      "rolloutId" : "642da32dea3b2418c750f848",
      "factorPackIds" : [
        "66d8b2f77cd4b62688efd2cf"
      ],
      "deploymentId" : 240000011
    }
  ],
  "experiments" : [

  ]
}
}

Model: Mac15,6, BootROM 13822.1.2, proc 11:5:6 processors, 18 GB, SMC 
Graphics: Apple M3 Pro, Apple M3 Pro, Built-In
Display: Color LCD, 3024 x 1964 Retina, Main, MirrorOff, Online
Memory Module: LPDDR5, Micron
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x4388), wl0: Jul 23 2025 02:15:12 version 23.41.4.0.41.51.197 FWID 01-673dce38
IO80211_driverkit-1525.88 "IO80211_driverkit-1525.88" Aug  6 2025 21:19:03
AirPort: 
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.

@jordanbaird
Copy link
Owner

Looks like this is indeed the window number issue I described above. Here's the important part of the crash report (emphasis mine):

{"value":8303753144,"symbolLocation":0,"symbol":"OBJC_CLASS_$_NSStatusBarWindow"},{"value":1},{"value":68719476739},{"value":7},{"value":68719476739},{"value":7},{"value":1},{"value":8552861371,"objc-selector":"windowNumber"}

If disabling swizzling happens to prevent a crash on your machine, it's likely coincidental, and could come down to something as simple as an order-of-execution issue. Since this technically falls under the category of "undefined behavior", it might not even prevent a crash 100% of the time.

As stated, this has been fixed in the latest beta. Work for this is being done on the macos-26 branch, and will be merged into main once a few final things are worked out. I don't think there's anything to do here, but thanks for the contribution regardless!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants