Solvedalacritty Very Slow Window Rearranging After Closing Alacritty

I use yabai, a tiling window manager on macOS. I opened a couple of windows of Alacritty and when I closed the one by one, sometimes rearranging took like 3 seconds or more.

Please take a look at this issue koekeishiya/yabai#368

Thank you very much.


OS: macOS 10.15.3
Version: alacritty 0.4.1 (4d9253b)

19 Answers

βœ”οΈAccepted Answer

Also, these are my configs @yanzhang0219:

  decorations: none
  dynamic_padding: true
    x: 3
    y: 3

  program: zsh
    - --login

  size: 13

    background: '0x1b1b1b'
    foreground: '0x9e9e9e'

    black:   '0x1b1b1b'
    red:     '0xac4142'
    green:   '0x90a959'
    yellow:  '0xf4bf75'
    blue:    '0x6a9fb5'
    magenta: '0xaa759f'
    cyan:    '0x75b5aa'
    white:   '0x616161'

    black:   '0x262626'
    red:     '0x752a2a'
    green:   '0x5d742a'
    yellow:  '0x754e2a'
    blue:    '0x2a4e74'
    magenta: '0x703664'
    cyan:    '0x297366'
    white:   '0x9e9e9e'

  style: Underline

alt_send_esc: false

  - { key: W, mods: Command, action: None }
  - { key: Q, mods: Command, action: Quit }
# open terminal
cmd - return : open -na /Applications/

# close focused window
# cmd - q : yabai -m window --close

# focus window
cmd - h : yabai -m window --focus west || yabai -m display --focus next
cmd - j : yabai -m window --focus south
cmd - k : yabai -m window --focus north
cmd - l : yabai -m window --focus east || yabai -m display --focus prev

# move window
shift + cmd - h : yabai -m window --swap west || yabai -m window --display next
shift + cmd - j : yabai -m window --swap south
shift + cmd - k : yabai -m window --swap north
shift + cmd - l : yabai -m window --swap east || yabai -m window --display prev

# switch workspaces
cmd - 1 : yabai -m space --focus $((2 + ($(yabai -m query --spaces | jq '.[] | select(.focused == 1) | .display') - 1) * 5))
cmd - 2 : yabai -m space --focus $((3 + ($(yabai -m query --spaces | jq '.[] | select(.focused == 1) | .display') - 1) * 5))
cmd - 3 : yabai -m space --focus $((4 + ($(yabai -m query --spaces | jq '.[] | select(.focused == 1) | .display') - 1) * 5))
cmd - 4 : yabai -m space --focus $((5 + ($(yabai -m query --spaces | jq '.[] | select(.focused == 1) | .display') - 1) * 5))
cmd - 5 : yabai -m space --focus $((6 + ($(yabai -m query --spaces | jq '.[] | select(.focused == 1) | .display') - 1) * 5))

# send window to desktop
cmd + shift - 1 : yabai -m window --space $((2 + ($(yabai -m query --spaces | jq '.[] | select(.focused == 1) | .display') - 1) * 5))
cmd + shift - 2 : yabai -m window --space $((3 + ($(yabai -m query --spaces | jq '.[] | select(.focused == 1) | .display') - 1) * 5))
cmd + shift - 3 : yabai -m window --space $((4 + ($(yabai -m query --spaces | jq '.[] | select(.focused == 1) | .display') - 1) * 5))
cmd + shift - 4 : yabai -m window --space $((5 + ($(yabai -m query --spaces | jq '.[] | select(.focused == 1) | .display') - 1) * 5))
cmd + shift - 5 : yabai -m window --space $((6 + ($(yabai -m query --spaces | jq '.[] | select(.focused == 1) | .display') - 1) * 5))

# toggle window fullscreen
cmd + ctrl - f : Yabai -m window --toggle native-fullscreen

# float / unfloat window and center on screen
cmd + shift - space : yabai -m window --toggle float

# open launchpad
cmd - space : open -na /System/Applications/ &
# Tile on all spaces
yabai -m config layout bsp

# Gaps
yabai -m config top_padding 10
yabai -m config right_padding 10
yabai -m config bottom_padding 10
yabai -m config left_padding 10
yabai -m config window_gap 10

# Render floating windows on top
yabai -m config window_topmost on

# Move mouse with focus
yabai -m config mouse_follows_focus on

# Modifier for mouse controls
yabai -m config mouse_modifier cmd

Other Answers:

Note that you'd have to run Alacritty with the options --print-events -vvv to get the Goodbye message. Usually we don't log anything.

Okay. I got Goodbye message. Once I press command-x to close a window of Alacritty, the output is below:

Screen Shot 2020-02-14 at 3 26 53 PM

Is it good enough to consider this issue resolved then? On my system with the latest Alacritty master I don't feel like there's any issues at least.

Yes, I think we can temporarily consider this issue is resolved. But I will continue watching and updating if it gets worse in the future.

Thank you @chrisduerr so much for your help!!!!

Related Issues:

alacritty Tmux austostart?
It should be like this: Which operating system does the issue occur on? MacOS Catalina I understood ...
alacritty Support for Alt+key (option as meta)
With latest alacritty and tmux I finally got forward and backward movement with the following: ...
alacritty Alt-Left/Right and Home/End don't work and prevent alacritty from closing
@spacecowboy I added the following lines to support skipping words via Alt+Left and Alt+Right on mac...
alacritty [Feature] Add setting to hide titlebar
PR #947 has been merged 2 months ago hiding the title-bar is now possible via: Like iTerm2 allows (P...
alacritty Font support for Oh-My-Zsh due to imperfect rendering
@kchibisov thank you for your patience and help It worked! After all it was nothing difficult ...
alacritty w3mimgdisplay not working correctly
I guess that the only non-hacky way to make this working is to incorporate image preview functionali...
alacritty Auto copy
@unphased Can you try on OSX? Just add sav...
alacritty Open new window in same directory
#607 is different; it's focused on having multiple windows within the same process rather than being...
alacritty Linux: copy paste with ctrl-c/v
The two main arguments against this seem to be It would be confusing if set as default It could be c...
alacritty "error: linker cc not found" on Ubuntu 18.04 LTS, using X11
for me it was I didn't have cmake rather than gcc so sudo apt install cmake did the trick ...
alacritty Ubuntu 14.04 - Installation fails with "No package 'freetype2' found" despite setting PKG_CONFIG_PATH
Could you try running apt-get install cmake libfreetype6-dev libfontconfig1-dev xclip before install...
alacritty Mouse interactions do not appear to be working properly on windows
@Neur0toxine that worked Original issue by @dparnell Which operating system does the issue occur on?...
alacritty Cannot use ctrl + / in alacritty
nvm I forgot that macOS doesn't have showkey I've tested macOS and it seems like we're not getting R...
alacritty Blurred alacritty.ico in Large Icon Task Switcher on Linux
And this is still an issue in 2020 Thank you for reminding us what year it is right now keep us upda...
alacritty Very Slow Window Rearranging After Closing Alacritty
Also these are my configs @yanzhang0219: Alacritty SKHD Yabai I use yabai a tiling window manager on...
alacritty Inconsistent locale when running from command line vs from dock
There are some differences but I don't think they're related Which operating system does the issue o...
alacritty #3315 breaks arrow key navigation in Neovim
For everyone pinging that issue This is not really an issue that we broke a config file from a v0.3....
fail2ban postfix-failedauth - new proposed filter
It works pretty well so far was not sure about port etc.. but I hope it did not break anything impor...
nvidia docker OpenCV Docker error "ImportError: cannot open shared object file: No such file or directory"
I fixed this problem on with (using solution above): ...
pytorch I can't import PyTorch, libomp.dylib can't be loaded.
brew install libomp solves the problem. πŸ› Bug I tried to install PyTorch but I can't use it ...
pytorch RuntimeError: cuda runtime error (59) : device-side assert triggered when running transfer_learning_tutorial
@soumith Hi I find the error it is due to my labels contain value -1 which is unacceptable in criter...
nvidia docker docker: Error response from daemon: Unknown runtime specified nvidia.
I've also installed correctly but forgot to restart daemon in ubuntu it may resolve your error. ...
pytorch ModuleNotFoundError: No module named 'torch._C'
Solution the problem is that you have a folder called torch in the same directory which is being pic...
nvidia docker could not select device driver "" with capabilities: [[gpu]].
Hello! If you didn't already make sure you've installed the nvidia-container-toolkit If this doesn't...
pytorch RuntimeError: DataLoader worker is killed by signal: Killed.
I've encountered the same problem recently If you're using the docker to run the PyTorch program wit...
pytorch [PyTorch][Feature Request] Label Smoothing for CrossEntropyLoss
Here is my implement Hi guys The type torch.LongTensor of target will hinder the implementation like...
pytorch optimizer load_state_dict() problem?
@apaszke Ah my bad I forgot to update the line where the optimizer is recreated But otherwise the fo...
nvidia docker docker: Error response from daemon: OCI runtime create failed: unable to retrieve OCI runtime error
sudo apt install nvidia-container-runtime worked for me. The template below is mostly useful for bug...
pytorch RuntimeError: CUDA error: an illegal memory access was encountered
@jzazo Hi I had similar problem If I use device = torch.device(cuda:1) Hi,everyone! I met a strange ...
pytorch can't reproduce results even set all random seeds
Here are some points to check: : Pytorch is no...
pytorch how should I cite PyTorch in the paper?
For now you could cite our NIPS 2017 workshop paper that discusses just the autodiff engine of PyTor...
pytorch RuntimeError: freeze_support()
@shinalone Actually you can remove the freeze_support line but the if __name__ == '__main__:' is nec...
arrayfire NVCC does not support Apple Clang version 8.x
@joseph-zhong it looks like you're using Xcode 8.3 which CUDA (v8.0.61) does not yet support :( Down...
pytorch file_descriptor sharing strategy may be leaking FDs, resulting in DataLoader causing RuntimeError: received 0 items of ancdata
This does seem to be an issue in pytorch as best as we can tell - FDs aren't being released when the...
pytorch Pylint Error torch.tensor is not callable
This error is still popping out even with in the .pylintrc file πŸ› Bug Pylint returns the error torc...
pytorch AssertionError: Torch not compiled with CUDA enabled
I had the same problem (Win10 CUDA installed prior to making conda env) The option to install using ...
pytorch [jit] the torch script and c++ api using
@szupzp indeed concatenation works Otherwise you could do the following to handle multiple outputs: ...
pytorch Could not find a version that satisfies the requirement torch==0.4.1.post2
Solution: conda install pytorch=0.4.1 -c pytorch Try this It worked for me Issue description In a fr...
pytorch conda install fails - HTTP 000 CONNECTION FAILED
Hi That is the problem of your firewall Just add --insecure flag (the same -k) I'm trying to get set...
pytorch RuntimeError: CUDA error: no kernel image is available for execution on the driver, when use pytorch 1.7 on linux with RTX 3090
@Dingseewhole πŸ› Bug RuntimeError: CUDA error: no kernel image is available for execution on the dri...
pytorch Inplace error if DistributedDataParallel module that contains a buffer is called twice
The cause here is that by default DDP modules broadcast the contents of the root process module's bu...
pytorch upsample_bilinear2d issue when exporting to onnx
I solved above problem by just passing opset version torch.onnx.export(... opset_version=11 ...) . ...
pytorch add exception handler for DataLoader when reading a damaged image file
Follow these steps in order to handle corrupted images: Return None in the __getitem__() if the imag...
Open3D ImportError: /lib64/ version 'GLIBC_2.27' not found
I met the same question after pip install and I solved it by specifying a version python -m pip inst...
pytorch [Feature Request] Layer Normalization
I use this: See #1601 for previous discussion on layer normalization. ...
pytorch Errors on jupyter
Hi all! I had the same problem For ubuntu the solution is I install pytorch 0.2 through pip when I t...
pytorch ImportError: DLL load failed: The operating system cannot run %1.
Guys thanks to @lchen23 I found the root cause of this issue It's about intel-openmp If you installe...
pytorch FileNotFoundError - caffe2_detectron_ops.dll on Windows source build if Python 3.8 used
If adding vcruntime related dlls does not fix this for you consider deleting caffe2_detectron_ops.dl...