koekeishiya / yabai

A tiling window manager for macOS based on binary space partitioning
MIT License
24.23k stars 645 forks source link

When destroying multiple windows at once using cmd+q, all defined signals are automatically removed #1965

Closed I-Want-ToBelieve closed 1 year ago

I-Want-ToBelieve commented 1 year ago
~ took 9s 
❯ , neofetch
                    c.'          i.want.to.believe@k99-lite-darwin 
                 ,xNMM.          --------------------------------- 
               .OMMMMo           OS: macOS 14.1 23B74 x86_64 
               lMM"              Host: Hackintosh (SMBIOS: iMacPro1,1) 
     .;loddo:.  .olloddol;.      Kernel: 23.1.0 
   cKMMMMMMMMMMNWMMMMMMMMMM0:    Uptime: 6 mins 
 .KMMMMMMMMMMMMMMMMMMMMMMMWd.    Packages: 29 (brew), 175 (nix-system), 482 (nix-user) 
 XMMMMMMMMMMMMMMMMMMMMMMMX.      Shell: fish 3.6.1 
;MMMMMMMMMMMMMMMMMMMMMMMM:       Resolution: 2560x1440 @ -Hz 
:MMMMMMMMMMMMMMMMMMMMMMMM:       DE: Aqua 
.MMMMMMMMMMMMMMMMMMMMMMMMX.      WM: yabai 
 kMMMMMMMMMMMMMMMMMMMMMMMMWd.    Terminal: /dev/ttys000 
 'XMMMMMMMMMMMMMMMMMMMMMMMMMMk   CPU: Intel i7-7700K (8) @ 4.20GHz 
  'XMMMMMMMMMMMMMMMMMMMMMMMMK.   GPU: AMD Radeon RX 6750 XT 
    kMMMMMMMMMMMMMMMMMMMMMMd     Memory: 7862MiB / 32768MiB 
     ;KMMMMMMMWXXWMMMMMMMk.
       "cooc*"    "*coo'"                                

~ took 7s 
❯ 

Defined signals for window_destroyed events

Opened a 20+ kitty(new window) windows

Used cmd+q on one of the kitty windows

All windows were destroyed, but the window_destroyed was only triggered 9 times

And all defined signals were deleted by yabai -m signal --list checking

❯ yabai -m signal --add event=window_destroyed action='echo close >> /tmp/close-kitty.log'

~ 
❯ yabai -m signal --list                                                                  
[{
    "index":0,
    "label":"",
    "app":"",
    "title":"",
    "active":null,
    "event":"window_destroyed",
    "action":"echo close >> /tmp/close-kitty.log"
}]

~ 
❯ for i in {1..20}; do kitty --single-instance &; done                                    
[2] 38584
[3] 38585
[4] 38586
[5] 38587
[6] 38588
[7] 38589
[8] 38590
[9] 38591
[10] 38592
[11] 38593
[12] 38594
[13] 38595
[14] 38596
[15] 38597
[16] 38598
[17] 38599
[18] 38600
[19] 38601
[20] 38602
[21] 38603

# cmd+q

~ 
✦20 ❯ yabai -m signal --list                              
[]

~ 
❯ cat /tmp/close-kitty.log 
close
close
close
close
close
close
close
close
close

~ 
❯ 
koekeishiya commented 1 year ago

Sounds like a crash. Check Console.app for a log.

I-Want-ToBelieve commented 1 year ago

yabai-v6.0.0

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               yabai [540]
Path:                  /Volumes/VOLUME/*/yabai
Identifier:            yabai
Version:               ???
Code Type:             X86-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2023-11-11 13:36:16.9887 +0800
OS Version:            macOS 14.1 (23B74)
Report Version:        12
Anonymous UUID:        CCBD164C-14A5-CDF8-F815-356A61B39788

Time Awake Since Boot: 910 seconds

System Integrity Protection: disabled

Crashed Thread:        1

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       UNKNOWN_0xD at 0x0000000000000000
Exception Codes:       0x000000000000000d, 0x0000000000000000

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

VM Region Info: 0 is not in any region.  Bytes before following region: 4403404800
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                      10676a000-1067a4000    [  232K] r-x/r-x SM=COW  ...OLUME/*/yabai

Thread 0::  Dispatch queue: com.apple.main-thread
0   CoreFoundation                      0x7ff80f225131 __CFBasicHashRemoveValue + 13
1   CoreFoundation                      0x7ff80f1569da CFBasicHashRemoveValue + 370
2   CoreFoundation                      0x7ff80f16e757 CFDictionaryRemoveValue + 155
3   HIServices                          0x7ff8154db075 ___AXObserverRemoveNotificationAndCheckRemote_block_invoke + 79
4   libdispatch.dylib                   0x7ff80ef0f2e6 _dispatch_call_block_and_release + 12
5   libdispatch.dylib                   0x7ff80ef1059a _dispatch_client_callout + 8
6   libdispatch.dylib                   0x7ff80ef1c8e1 _dispatch_main_queue_drain + 993
7   libdispatch.dylib                   0x7ff80ef1c4f2 _dispatch_main_queue_callback_4CF + 31
8   CoreFoundation                      0x7ff80f1d3056 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
9   CoreFoundation                      0x7ff80f1922b5 __CFRunLoopRun + 2459
10  CoreFoundation                      0x7ff80f191352 CFRunLoopRunSpecific + 557
11  ???                                    0x106792e61 main + 769
12  dyld                                0x7ff80ed2f3a6 start + 1942

Thread 1 Crashed:
0   ???                                    0x10679555e EVENT_HANDLER_WINDOW_DESTROYED + 30
1   ???                                    0x10676e9b7 event_loop_run + 535
2   libsystem_pthread.dylib             0x7ff80f0b8202 _pthread_start + 99
3   libsystem_pthread.dylib             0x7ff80f0b3bab thread_start + 15

Thread 2:
0   libsystem_kernel.dylib              0x7ff80f07f85e __accept + 10
1   ???                                    0x10677ba8e message_loop_run + 46
2   libsystem_pthread.dylib             0x7ff80f0b8202 _pthread_start + 99
3   libsystem_pthread.dylib             0x7ff80f0b3bab thread_start + 15

Thread 3:
0   libsystem_pthread.dylib             0x7ff80f0b3b88 start_wqthread + 0

Thread 4::  Dispatch queue: com.apple.CFMachPort
0   libsystem_kernel.dylib              0x7ff80f07a222 __ulock_wait + 10
1   libsystem_platform.dylib            0x7ff80f0e3868 _os_unfair_lock_lock_slow + 163
2   libobjc.A.dylib                     0x7ff80ed11cd6 _object_remove_associations + 60
3   libobjc.A.dylib                     0x7ff80ecefcef objc_destructInstance + 115
4   libsystem_blocks.dylib              0x7ff80edc755e _Block_release + 241
5   libdispatch.dylib                   0x7ff80ef244b2 _dispatch_source_handler_dispose + 23
6   libdispatch.dylib                   0x7ff80ef23f7a _dispatch_source_cancel_callout + 77
7   libdispatch.dylib                   0x7ff80ef2338b _dispatch_source_invoke + 1199
8   libdispatch.dylib                   0x7ff80ef164bb _dispatch_lane_serial_drain + 387
9   libdispatch.dylib                   0x7ff80ef17100 _dispatch_lane_invoke + 377
10  libdispatch.dylib                   0x7ff80ef20aee _dispatch_root_queue_drain_deferred_wlh + 271
11  libdispatch.dylib                   0x7ff80ef203fd _dispatch_workloop_worker_thread + 451
12  libsystem_pthread.dylib             0x7ff80f0b4c47 _pthread_wqthread + 327
13  libsystem_pthread.dylib             0x7ff80f0b3b97 start_wqthread + 15

Thread 5::  Dispatch queue: com.apple.root.utility-qos.overcommit
0   libsystem_malloc.dylib              0x7ff80eef2033 _nanov2_free + 739
1   libdispatch.dylib                   0x7ff80ef0f93a _dispatch_dispose + 113
2   libdispatch.dylib                   0x7ff80ef23b5c _dispatch_source_invoke + 3200
3   libdispatch.dylib                   0x7ff80ef1f776 _dispatch_root_queue_drain + 328
4   libdispatch.dylib                   0x7ff80ef1ff22 _dispatch_worker_thread2 + 152
5   libsystem_pthread.dylib             0x7ff80f0b4c06 _pthread_wqthread + 262
6   libsystem_pthread.dylib             0x7ff80f0b3b97 start_wqthread + 15

Thread 6:
0   libsystem_pthread.dylib             0x7ff80f0b3b88 start_wqthread + 0

Thread 7:
0   libsystem_pthread.dylib             0x7ff80f0b3b88 start_wqthread + 0

Thread 1 crashed with X86 Thread State (64-bit):
  rax: 0x00006000027dcbe0  rbx: 0x0000700006b41000  rcx: 0x00009805120ecbe0  rdx: 0x000000010676e989
  rdi: 0x00006000027dcbe0  rsi: 0x0000000000000000  rbp: 0x0000700006b40cd0  rsp: 0x0000700006b40ca0
   r8: 0x00000d4b00000000   r9: 0x0000af0f00000001  r10: 0x0000000000000000  r11: 0x0000000000000246
  r12: 0x0000000000000000  r13: 0x0000000000000000  r14: 0x0000000000000000  r15: 0x0000000000000000
  rip: 0x000000010679555e  rfl: 0x0000000000010206  cr2: 0x0000000000000000

Logical CPU:     4
Error Code:      0x00000000 
Trap Number:     13

Thread 1 instruction stream:
  8d 3d 04 3d 05 00 e8 87-16 ff ff 48 89 45 c0 48  .=.=.......H.E.H
  8b 75 d0 48 8b 55 c0 48-8d 3d 4c 3b 05 00 e8 bf  .u.H.U.H.=L;....
  51 ff ff 48 8b 45 d0 bf-06 00 00 00 48 89 c6 e8  Q..H.E......H...
  8e a3 fd ff 48 83 c4 40-5d c3 0f 1f 84 00 00 00  ....H..@].......
  00 00 55 48 89 e5 48 83-ec 30 48 89 7d f8 89 75  ..UH..H..0H.}..u
  f4 48 8b 45 f8 48 89 45-e8 48 8b 45 e8 48 8b 08  .H.E.H.E.H.E.H..
 [48]8b 51 18 8b 48 10 48-8d 3d f1 a8 00 00 48 8d  H.Q..H.H.=....H. <==
  35 f5 a8 00 00 45 31 c0-44 88 c0 e8 22 9e fd ff  5....E1.D..."...
  48 8b 55 e8 48 8b 52 18-48 89 55 e0 48 83 7d e0  H.U.H.R.H.U.H.}.
  00 0f 95 c0 34 ff 34 ff-24 01 0f b6 c8 48 63 d1  ....4.4.$....Hc.
  48 83 fa 00 0f 84 1f 00-00 00 48 8d 3d b9 a8 00  H.........H.=...
  00 48 8d 35 d1 a8 00 00-48 8d 0d db a8 00 00 ba  .H.5....H.......

Binary Images:
    0x7ff80f117000 -     0x7ff80f5b1fec com.apple.CoreFoundation (6.9) <d148cf66-0478-3100-a9d6-0571b6f769e3> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7ff8154b5000 -     0x7ff815510ff8 com.apple.HIServices (1.22) <1580d0a3-c0ae-3e43-a31d-8877fa398b1d> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
    0x7ff80ef0d000 -     0x7ff80ef53ffd libdispatch.dylib (*) <4472f1a5-1d47-3665-ac8d-7adb0e9d2d87> /usr/lib/system/libdispatch.dylib
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
    0x7ff80ed29000 -     0x7ff80edc53df dyld (*) <d5406f23-6967-39c4-beb5-6ae3293c7753> /usr/lib/dyld
    0x7ff80f0b2000 -     0x7ff80f0bdfff libsystem_pthread.dylib (*) <c64722b0-e96a-3fa5-96c3-b4beaf0c494a> /usr/lib/system/libsystem_pthread.dylib
    0x7ff80f077000 -     0x7ff80f0b1ff7 libsystem_kernel.dylib (*) <4df0d732-7fc4-3200-8176-f1804c63f2c8> /usr/lib/system/libsystem_kernel.dylib
    0x7ff80f0e2000 -     0x7ff80f0ebfff libsystem_platform.dylib (*) <c94f952c-2787-30d2-ab77-ee474abd88d6> /usr/lib/system/libsystem_platform.dylib
    0x7ff80ece7000 -     0x7ff80ed28fc0 libobjc.A.dylib (*) <a58a8749-bfb0-31e7-bb38-c14e6a17406b> /usr/lib/libobjc.A.dylib
    0x7ff80edc6000 -     0x7ff80edc9ff8 libsystem_blocks.dylib (*) <790d1a1c-799d-3b1c-abe8-0c82be9f2131> /usr/lib/system/libsystem_blocks.dylib
    0x7ff80eed4000 -     0x7ff80ef0cff7 libsystem_malloc.dylib (*) <400f0381-15d2-38eb-a5cd-cdc7a8053a18> /usr/lib/system/libsystem_malloc.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: 1
    thread_create: 1
    thread_set_state: 0

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

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Activity Tracing                   256K        1 
ColorSync                          144K       22 
Kernel Alloc Once                    8K        1 
MALLOC                             1.2G       36 
MALLOC guard page                   48K       12 
STACK GUARD                       56.0M        8 
Stack                             11.6M        8 
VM_ALLOCATE                       4840K       10 
__CTF                               824        1 
__DATA                            18.4M      346 
__DATA_CONST                      18.1M      215 
__DATA_DIRTY                       798K      110 
__FONT_DATA                        2352        1 
__LINKEDIT                       180.5M        2 
__OBJC_RO                         70.8M        1 
__OBJC_RW                         2157K        2 
__TEXT                           291.5M      367 
dyld private memory                260K        2 
mapped file                       45.6M        8 
shared memory                      780K       15 
===========                     =======  ======= 
TOTAL                              1.9G     1168 

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

{"app_name":"yabai","timestamp":"2023-11-11 13:36:21.00 +0800","app_version":"","slice_uuid":"00000000-0000-0000-0000-000000000000","build_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 14.1 (23B74)","roots_installed":0,"incident_id":"0FF8EB79-847C-4002-A023-0B0E791425ED","name":"yabai"}
{
  "uptime" : 910,
  "procRole" : "Unspecified",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "iMacPro1,1",
  "coalitionID" : 600,
  "osVersion" : {
    "train" : "macOS 14.1",
    "build" : "23B74",
    "releaseType" : "User"
  },
  "captureTime" : "2023-11-11 13:36:16.9887 +0800",
  "codeSigningMonitor" : 0,
  "incident" : "0FF8EB79-847C-4002-A023-0B0E791425ED",
  "pid" : 540,
  "cpuType" : "X86-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2023-11-11 13:21:28.9864 +0800",
  "procStartAbsTime" : 23384690587,
  "procExitAbsTime" : 911377475092,
  "procName" : "yabai",
  "procPath" : "\/Volumes\/VOLUME\/*\/yabai",
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "org.nixos.yabai",
  "crashReporterKey" : "CCBD164C-14A5-CDF8-F815-356A61B39788",
  "throttleTimeout" : 10,
  "codeSigningID" : "",
  "codeSigningTeamID" : "",
  "codeSigningValidationCategory" : 0,
  "codeSigningTrustLevel" : 4294967295,
  "sip" : "disabled",
  "vmRegionInfo" : "0 is not in any region.  Bytes before following region: 4403404800\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  \n      __TEXT                      10676a000-1067a4000    [  232K] r-x\/r-x SM=COW  ...OLUME\/*\/yabai",
  "exception" : {"codes":"0x000000000000000d, 0x0000000000000000","rawCodes":[13,0],"type":"EXC_BAD_ACCESS","signal":"SIGSEGV","subtype":"UNKNOWN_0xD at 0x0000000000000000"},
  "termination" : {"flags":0,"code":11,"namespace":"SIGNAL","indicator":"Segmentation fault: 11","byProc":"exc handler","byPid":540},
  "vmregioninfo" : "0 is not in any region.  Bytes before following region: 4403404800\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  \n      __TEXT                      10676a000-1067a4000    [  232K] r-x\/r-x SM=COW  ...OLUME\/*\/yabai",
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":1,"thread_set_state":0,"task_for_pid":1},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 1,
  "threads" : [{"id":3622,"threadState":{"r13":{"value":105553134949632},"rax":{"value":140701945383200},"rflags":{"value":66118},"cpu":{"value":7},"r14":{"value":5},"rsi":{"value":5},"r8":{"value":4403644552},"cr2":{"value":105553134917904},"rdx":{"value":105553127648224},"r10":{"value":3},"r9":{"value":0},"r15":{"value":0},"rbx":{"value":105553134917888},"trap":{"value":14,"description":"(invalid protections for user data write)"},"err":{"value":7},"r11":{"value":105553135031488},"rip":{"value":140703382524209},"rbp":{"value":140701945383184},"rsp":{"value":140701945383168},"r12":{"value":0},"rcx":{"value":1},"flavor":"x86_THREAD_STATE","rdi":{"value":105553134917888}},"queue":"com.apple.main-thread","frames":[{"imageOffset":1106225,"symbol":"__CFBasicHashRemoveValue","symbolLocation":13,"imageIndex":0},{"imageOffset":260570,"symbol":"CFBasicHashRemoveValue","symbolLocation":370,"imageIndex":0},{"imageOffset":358231,"symbol":"CFDictionaryRemoveValue","symbolLocation":155,"imageIndex":0},{"imageOffset":155765,"symbol":"___AXObserverRemoveNotificationAndCheckRemote_block_invoke","symbolLocation":79,"imageIndex":1},{"imageOffset":8934,"symbol":"_dispatch_call_block_and_release","symbolLocation":12,"imageIndex":2},{"imageOffset":13722,"symbol":"_dispatch_client_callout","symbolLocation":8,"imageIndex":2},{"imageOffset":63713,"symbol":"_dispatch_main_queue_drain","symbolLocation":993,"imageIndex":2},{"imageOffset":62706,"symbol":"_dispatch_main_queue_callback_4CF","symbolLocation":31,"imageIndex":2},{"imageOffset":770134,"symbol":"__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__","symbolLocation":9,"imageIndex":0},{"imageOffset":504501,"symbol":"__CFRunLoopRun","symbolLocation":2459,"imageIndex":0},{"imageOffset":500562,"symbol":"CFRunLoopRunSpecific","symbolLocation":557,"imageIndex":0},{"imageOffset":4403572321,"symbol":"main","symbolLocation":769,"imageIndex":3},{"imageOffset":25510,"symbol":"start","symbolLocation":1942,"imageIndex":4}]},{"triggered":true,"id":4963,"instructionState":{"instructionStream":{"bytes":[141,61,4,61,5,0,232,135,22,255,255,72,137,69,192,72,139,117,208,72,139,85,192,72,141,61,76,59,5,0,232,191,81,255,255,72,139,69,208,191,6,0,0,0,72,137,198,232,142,163,253,255,72,131,196,64,93,195,15,31,132,0,0,0,0,0,85,72,137,229,72,131,236,48,72,137,125,248,137,117,244,72,139,69,248,72,137,69,232,72,139,69,232,72,139,8,72,139,81,24,139,72,16,72,141,61,241,168,0,0,72,141,53,245,168,0,0,69,49,192,68,136,192,232,34,158,253,255,72,139,85,232,72,139,82,24,72,137,85,224,72,131,125,224,0,15,149,192,52,255,52,255,36,1,15,182,200,72,99,209,72,131,250,0,15,132,31,0,0,0,72,141,61,185,168,0,0,72,141,53,209,168,0,0,72,141,13,219,168,0,0,186],"offset":96}},"threadState":{"r13":{"value":0},"rax":{"value":105553158065120},"rflags":{"value":66054},"cpu":{"value":4},"r14":{"value":0},"rsi":{"value":0},"r8":{"value":14615773708288},"cr2":{"value":0},"rdx":{"value":4403423625,"symbolLocation":489,"symbol":"event_loop_run"},"r10":{"value":0},"r9":{"value":192478959370241},"r15":{"value":0},"rbx":{"value":123145414774784},"trap":{"value":13},"err":{"value":0},"r11":{"value":582},"rip":{"value":4403582302,"matchesCrashFrame":1},"rbp":{"value":123145414773968},"rsp":{"value":123145414773920},"r12":{"value":0},"rcx":{"value":167147545218016},"flavor":"x86_THREAD_STATE","rdi":{"value":105553158065120}},"frames":[{"imageOffset":4403582302,"symbol":"EVENT_HANDLER_WINDOW_DESTROYED","symbolLocation":30,"imageIndex":3},{"imageOffset":4403423671,"symbol":"event_loop_run","symbolLocation":535,"imageIndex":3},{"imageOffset":25090,"symbol":"_pthread_start","symbolLocation":99,"imageIndex":5},{"imageOffset":7083,"symbol":"thread_start","symbolLocation":15,"imageIndex":5}]},{"id":6267,"frames":[{"imageOffset":34910,"symbol":"__accept","symbolLocation":10,"imageIndex":6},{"imageOffset":4403477134,"symbol":"message_loop_run","symbolLocation":46,"imageIndex":3},{"imageOffset":25090,"symbol":"_pthread_start","symbolLocation":99,"imageIndex":5},{"imageOffset":7083,"symbol":"thread_start","symbolLocation":15,"imageIndex":5}],"threadState":{"r13":{"value":0},"rax":{"value":4},"rflags":{"value":583},"cpu":{"value":0},"r14":{"value":0},"rsi":{"value":0},"r8":{"value":123145413165056},"cr2":{"value":0},"rdx":{"value":0},"r10":{"value":0},"r9":{"value":419432703},"r15":{"value":0},"rbx":{"value":123145413165056},"trap":{"value":133},"err":{"value":33554462},"r11":{"value":582},"rip":{"value":140703380797534},"rbp":{"value":123145413164976},"rsp":{"value":123145413164952},"r12":{"value":0},"rcx":{"value":123145413164952},"flavor":"x86_THREAD_STATE","rdi":{"value":5}}},{"id":27679,"frames":[{"imageOffset":7048,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":5}],"threadState":{"r13":{"value":0},"rax":{"value":33554800},"rflags":{"value":512},"cpu":{"value":0},"r14":{"value":0},"rsi":{"value":30011},"r8":{"value":409603},"cr2":{"value":0},"rdx":{"value":123145413713920},"r10":{"value":0},"r9":{"value":18446744073709551615},"r15":{"value":0},"rbx":{"value":123145414238208},"trap":{"value":133},"err":{"value":33554800},"r11":{"value":582},"rip":{"value":140703381011336},"rbp":{"value":0},"rsp":{"value":123145414238208},"r12":{"value":0},"rcx":{"value":0},"flavor":"x86_THREAD_STATE","rdi":{"value":123145414238208}}},{"id":31539,"threadState":{"r13":{"value":43526},"rax":{"value":0},"rflags":{"value":582},"cpu":{"value":0},"r14":{"value":1},"rsi":{"value":140704480175424,"symbolLocation":0,"symbol":"AssociationsManagerLock"},"r8":{"value":0},"cr2":{"value":0},"rdx":{"value":0},"r10":{"value":0},"r9":{"value":140704511416192,"symbolLocation":0,"symbol":"_dispatch_mgr_q"},"r15":{"value":140704480175424,"symbolLocation":0,"symbol":"AssociationsManagerLock"},"rbx":{"value":327680},"trap":{"value":133},"err":{"value":33554947},"r11":{"value":582},"rip":{"value":140703380775458},"rbp":{"value":123145412626192},"rsp":{"value":123145412626136},"r12":{"value":17104898},"rcx":{"value":123145412626136},"flavor":"x86_THREAD_STATE","rdi":{"value":17104898}},"queue":"com.apple.CFMachPort","frames":[{"imageOffset":12834,"symbol":"__ulock_wait","symbolLocation":10,"imageIndex":6},{"imageOffset":6248,"symbol":"_os_unfair_lock_lock_slow","symbolLocation":163,"imageIndex":7},{"imageOffset":175318,"symbol":"_object_remove_associations","symbolLocation":60,"imageIndex":8},{"imageOffset":36079,"symbol":"objc_destructInstance","symbolLocation":115,"imageIndex":8},{"imageOffset":5470,"symbol":"_Block_release","symbolLocation":241,"imageIndex":9},{"imageOffset":95410,"symbol":"_dispatch_source_handler_dispose","symbolLocation":23,"imageIndex":2},{"imageOffset":94074,"symbol":"_dispatch_source_cancel_callout","symbolLocation":77,"imageIndex":2},{"imageOffset":91019,"symbol":"_dispatch_source_invoke","symbolLocation":1199,"imageIndex":2},{"imageOffset":38075,"symbol":"_dispatch_lane_serial_drain","symbolLocation":387,"imageIndex":2},{"imageOffset":41216,"symbol":"_dispatch_lane_invoke","symbolLocation":377,"imageIndex":2},{"imageOffset":80622,"symbol":"_dispatch_root_queue_drain_deferred_wlh","symbolLocation":271,"imageIndex":2},{"imageOffset":78845,"symbol":"_dispatch_workloop_worker_thread","symbolLocation":451,"imageIndex":2},{"imageOffset":11335,"symbol":"_pthread_wqthread","symbolLocation":327,"imageIndex":5},{"imageOffset":7063,"symbol":"start_wqthread","symbolLocation":15,"imageIndex":5}]},{"id":31672,"threadState":{"r13":{"value":128},"rax":{"value":3322017817},"rflags":{"value":582},"cpu":{"value":0},"r14":{"value":105553161159680},"rsi":{"value":1024},"r8":{"value":127},"cr2":{"value":0},"rdx":{"value":9},"r10":{"value":64},"r9":{"value":3324117001},"r15":{"value":7},"rbx":{"value":4408336384},"trap":{"value":222},"err":{"value":0},"r11":{"value":25},"rip":{"value":140703379169331},"rbp":{"value":123145413701136},"rsp":{"value":123145413701088},"r12":{"value":105553123357864},"rcx":{"value":3322017817},"flavor":"x86_THREAD_STATE","rdi":{"value":128}},"queue":"com.apple.root.utility-qos.overcommit","frames":[{"imageOffset":122931,"symbol":"_nanov2_free","symbolLocation":739,"imageIndex":10},{"imageOffset":10554,"symbol":"_dispatch_dispose","symbolLocation":113,"imageIndex":2},{"imageOffset":93020,"symbol":"_dispatch_source_invoke","symbolLocation":3200,"imageIndex":2},{"imageOffset":75638,"symbol":"_dispatch_root_queue_drain","symbolLocation":328,"imageIndex":2},{"imageOffset":77602,"symbol":"_dispatch_worker_thread2","symbolLocation":152,"imageIndex":2},{"imageOffset":11270,"symbol":"_pthread_wqthread","symbolLocation":262,"imageIndex":5},{"imageOffset":7063,"symbol":"start_wqthread","symbolLocation":15,"imageIndex":5}]},{"id":31678,"frames":[{"imageOffset":7048,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":5}],"threadState":{"r13":{"value":0},"rax":{"value":33554800},"rflags":{"value":512},"cpu":{"value":0},"r14":{"value":1},"rsi":{"value":45575},"r8":{"value":409604},"cr2":{"value":0},"rdx":{"value":123145414787072},"r10":{"value":0},"r9":{"value":18446744073709551615},"r15":{"value":123145415310208},"rbx":{"value":123145415311360},"trap":{"value":133},"err":{"value":33554800},"r11":{"value":582},"rip":{"value":140703381011336},"rbp":{"value":0},"rsp":{"value":123145415311360},"r12":{"value":1982472},"rcx":{"value":0},"flavor":"x86_THREAD_STATE","rdi":{"value":123145415311360}}},{"id":31767,"frames":[{"imageOffset":7048,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":5}],"threadState":{"r13":{"value":0},"rax":{"value":0},"rflags":{"value":512},"cpu":{"value":0},"r14":{"value":0},"rsi":{"value":0},"r8":{"value":278531},"cr2":{"value":0},"rdx":{"value":123145415323648},"r10":{"value":0},"r9":{"value":18446744073709551615},"r15":{"value":0},"rbx":{"value":0},"trap":{"value":0},"err":{"value":0},"r11":{"value":0},"rip":{"value":140703381011336},"rbp":{"value":0},"rsp":{"value":123145415847936},"r12":{"value":0},"rcx":{"value":0},"flavor":"x86_THREAD_STATE","rdi":{"value":123145415847936}}}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "x86_64h",
    "base" : 140703381417984,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.CoreFoundation",
    "size" : 4829165,
    "uuid" : "d148cf66-0478-3100-a9d6-0571b6f769e3",
    "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation",
    "name" : "CoreFoundation",
    "CFBundleVersion" : "2106"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703485874176,
    "CFBundleShortVersionString" : "1.22",
    "CFBundleIdentifier" : "com.apple.HIServices",
    "size" : 376825,
    "uuid" : "1580d0a3-c0ae-3e43-a31d-8877fa398b1d",
    "path" : "\/System\/Library\/Frameworks\/ApplicationServices.framework\/Versions\/A\/Frameworks\/HIServices.framework\/Versions\/A\/HIServices",
    "name" : "HIServices"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703379279872,
    "size" : 290814,
    "uuid" : "4472f1a5-1d47-3665-ac8d-7adb0e9d2d87",
    "path" : "\/usr\/lib\/system\/libdispatch.dylib",
    "name" : "libdispatch.dylib"
  },
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703377297408,
    "size" : 639968,
    "uuid" : "d5406f23-6967-39c4-beb5-6ae3293c7753",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703381004288,
    "size" : 49152,
    "uuid" : "c64722b0-e96a-3fa5-96c3-b4beaf0c494a",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703380762624,
    "size" : 241656,
    "uuid" : "4df0d732-7fc4-3200-8176-f1804c63f2c8",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703381200896,
    "size" : 40960,
    "uuid" : "c94f952c-2787-30d2-ab77-ee474abd88d6",
    "path" : "\/usr\/lib\/system\/libsystem_platform.dylib",
    "name" : "libsystem_platform.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64h",
    "base" : 140703377027072,
    "size" : 270273,
    "uuid" : "a58a8749-bfb0-31e7-bb38-c14e6a17406b",
    "path" : "\/usr\/lib\/libobjc.A.dylib",
    "name" : "libobjc.A.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703377940480,
    "size" : 16377,
    "uuid" : "790d1a1c-799d-3b1c-abe8-0c82be9f2131",
    "path" : "\/usr\/lib\/system\/libsystem_blocks.dylib",
    "name" : "libsystem_blocks.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703379046400,
    "size" : 233464,
    "uuid" : "400f0381-15d2-38eb-a5cd-cdc7a8053a18",
    "path" : "\/usr\/lib\/system\/libsystem_malloc.dylib",
    "name" : "libsystem_malloc.dylib"
  }
],
  "sharedCache" : {
  "base" : 140703376601088,
  "size" : 25769803776,
  "uuid" : "4412bf92-ed40-306d-9758-c8dc85ba325f"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=471.9M resident=0K(0%) swapped_out_or_unallocated=471.9M(100%)\nWritable regions: Total=1.2G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.2G(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nActivity Tracing                   256K        1 \nColorSync                          144K       22 \nKernel Alloc Once                    8K        1 \nMALLOC                             1.2G       36 \nMALLOC guard page                   48K       12 \nSTACK GUARD                       56.0M        8 \nStack                             11.6M        8 \nVM_ALLOCATE                       4840K       10 \n__CTF                               824        1 \n__DATA                            18.4M      346 \n__DATA_CONST                      18.1M      215 \n__DATA_DIRTY                       798K      110 \n__FONT_DATA                        2352        1 \n__LINKEDIT                       180.5M        2 \n__OBJC_RO                         70.8M        1 \n__OBJC_RW                         2157K        2 \n__TEXT                           291.5M      367 \ndyld private memory                260K        2 \nmapped file                       45.6M        8 \nshared memory                      780K       15 \n===========                     =======  ======= \nTOTAL                              1.9G     1168 \n",
  "legacyInfo" : {
  "threadTriggered" : {

  }
},
  "logWritingSignature" : "9e97cab2bbf833ea2aded57c0c58a3ad31b4b30e",
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "5fb4245a1bbfe8005e33a1e1",
      "factorPackIds" : {

      },
      "deploymentId" : 240000021
    },
    {
      "rolloutId" : "60356660bbe37970735c5624",
      "factorPackIds" : {

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

  ]
}
}
koekeishiya commented 1 year ago

Right I see what the issue is. Need to think a bit to decide how to solve this.

Nvm, it is not the issue I thought it was. Unable to reproduce as well in both debug and release mode.

koekeishiya commented 1 year ago

I believe this should be fixed on master, but as I cannot reproduce the original problem I am unable to verify the fix.

I-Want-ToBelieve commented 1 year ago

I'll try the master branch and report back here

I-Want-ToBelieve commented 1 year ago

I tried to open 50 kitty, but kitty couldn’t hold it anymore and reported an error, hahaha

Yabai is performing very well.

I can confirm that the master branch has fixed this issue.

❯ wc -l /tmp/close-kitty.log                          
      50 /tmp/close-kitty.log

Thank you for your quick fix!