Scripting additions make macos 15.3.2 crash when connected to a sidecar display
- Dominant language
- C
- Stars
- 29.6k
- Forks
- 750
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I use my iPad Pro 13 as an external monitor form my MBP. I am using yabai for years and this setup as a daily basis for months now without any issue.
Last night, my mac book pro upgraded to Sequoia 15.3.2.
This morning I experienced weird behaviour **as soon as I connect my iPad as external display with sidecar** (yabai is working fine without ipad used as external display):
- wallpaper removal on all / some displays / blank screen (only menu bar working)
- no more Dock
- yabai not functional
- crash of WindowServer after some time and go to login screen
I did the following:
- upgade / reinstall yabai from yabai-v7.1.10 to yabai-v7.1.11 > crash
- upgrade the iPad to latest iPad OS (18.3.2) > crash
- try external connection through Wifi or USB-C cable > crash
- **uninstall yabai, reboot, connect iPad as external monitor > working**
- **disable scripting addition load in yabai setup, reboot, connect iPad > working**
- **uninstall yabai, connect ipad, install yabai, enable scripting additions > seems working but didn't try long**
- **reboot with scripting additions disabled, connect ipad, enable scripting additions, restart yabai > seems working but didn't try long**
- **disconnect ipad,reconnect ipad with yabai fully working > continue to work**
- reboot computer, retry iPad connection > crash
So basically, with my setup I need to:
- uninstall yabai / scripting additions the first time I open my session after a reboot
- connect iPad
- install yabai / scripting additions
To have my computer working with scripting additions.
Any idea of what can cause the trouble ?
Are there any quick way to unload scripting additions ? kill Dock ?
My setup is the following:
- MBP M2 Max
- Macos Sequoia 15.3.2
- iPad Pro M4
- iPad OS 18.3.2
- yabai 7.1.11 with SIP disabled and scripting additions
The lines of my yabairc file related to scripting additions are located at the beginning and are:
```
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"
sudo yabai --load-sa
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the scripting-addition commands in the reported yabairc snippet, especially the dock_did_restart signal and sudo yabai --load-sa, and reproduce the crash with Sidecar connected after reboot. Compare behavior with scripting additions disabled and inspect the resulting WindowServer crash information. Done means identifying the triggering interaction or documenting a confirmed workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, macos
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100