limelight
limelight copied to clipboard
Limelight segfaults every time you open a new window
So I have yabai set up with limelight, when I start yabai everything works smoothly. But when a new window is opened (safari, outlook etc.) limelight stops working. Running the limelight binary on its own, the output when it crashes is a segfault: limelight configuration loaded.. [1] 24635 segmentation fault /Users/<myUserName>/limelight/bin/limelight
Saving session...completed.
All I wanted was the round corners and I was fine with limelight, but I am not sure where to go from here. I have a 14" macbook pro 2021 with macos monterey
Same issue here with macos monterey.
I have this issue too, Im on MacOS monterey (12.1)
I'm having the same issue, using yabai-v4.0.0 following the steps here (https://github.com/koekeishiya/yabai/issues/1054) to install yabai. I am on MacOS monterey 12.1, on M1 Silicon, boot-args -arm64e_preview_abi, and SIP disabled.
same here
[1] 10012 segmentation fault ~/software/limelight/bin/limelight -c
-> [139]
macOS 12.1 (21C52) i9 8950HK
Limelight needs to be updated to work on Monterey. I have started doing so, but no ETA for when it is ready.
I actually wrote a simple python script to "fix" this problem. Sort of a workaround, for now. Basically the script just loops the command to start limelight and by relying on the fact that when limelight is running the script hangs, and when limelight crashes the script becomes alive again and executes the command again to, in a way automatically restart limelight when it crashes. Here is the script:
#!/usr/bin/python3
command="/path/to/limelight"
#-------START OF SCRIPT---------
import os
i = 69
def mainModule():
while i > 1:
os.system(command)
mainModule()
Just copy and paste the script into a file and change the path/to/limelight
to your limelight installation location, execute it with python3 and it will forever loop until you..restart your Mac. For me I run the script in screen
so when I want to stop the loop I just do killall screen
or pkill screen
.
Woah! Thanks for this @Wind-Explorer. Here's how I did mine:
#!/bin/bash
command="/path/to/limelight"
while true; do
$command $@
wait $!
done
Update: Nah, I'm not using this script anymore because this causes too much visual disruption on restarts...
- Create
com.me.limelight.plist
file with following content in/Libraty/LaunchAgents
directory (feel free to replacecom.me.limelight
with whatever you want, just something unique):
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.me.limelight</string>
<key>KeepAlive</key>
<true/>
<key>RunAtLoad</key>
<true/>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/limelight</string>
</array>
</dict>
</plist>
- Replace
/usr/local/bin/limelight
in.plist
file with your actual limelight executable location. - Place your limelight config (
limelightrc
file) in~/.config/limelight/
folder. -
chmod +x limelightrc
-
launchd
will take care of restarting limelight when it crashes.
the latest version (master) of yabai (Monterey version) now comes with window borders that do not require SIP to be disabled. limelight will therefore not be updated for Monterey.
intresting enough is that after installing the new master, im back at accessibility access window pops up all the time, and windows rearrange after changing focus
intresting enough is that after installing the new master, im back at accessibility access window pops up all the time, and windows rearrange after changing focus
Make sure you codesign the new binary.
intresting enough is that after installing the new master, im back at accessibility access window pops up all the time, and windows rearrange after changing focus
Make sure you codesign the new binary.
after multiple installs/uninstalls and some reboots after , everything is back to normal. smooth :)
I just stumbled upon this yesterday and have the same issue on Monterey, is best workaround launchd?