mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[BUG]: Insufficient buffer space #196
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @AlexRumak on GitHub (Apr 17, 2023).
Describe the bug
I am not sure how to reproduce, but see the image. I cannot stop komorebic via
komorebic stopcommand as I get the following error:Error: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full. (os error 10055)
To Reproduce
Unfortunately, I do not know how to reproduce yet.
Expected behavior
komorebic should terminate. I am guessing a deadlock potentially?
Screenshots and Videos

Operating System
OS Name: Microsoft Windows 11 Pro
OS Version: 10.0.22621 N/A Build 22621
Additional context
The window tiling was acting really weird. I am not sure if that contributed to the error. I will try and reproduce and follow up in this ticket when I get more information. In the meantime, please let me know how I can get more telemetry for this issue in a PII safe way?
@AlexRumak commented on GitHub (Apr 17, 2023):
This was the type of weird tiling that prompted me to try and restart the program:

@AlexRumak commented on GitHub (Apr 17, 2023):
The red is edited for privacy
@LGUG2Z commented on GitHub (Apr 17, 2023):
As far as I can tell, all of the UDS sockets being opened by
komorebicare being shutdown correctly via theDroptrait implementation.There is a suggestion in this MSDN article to increase the max number of ephemeral TCP ports (I'm not sure if the UDS implementation on Windows is backed by TCP ports?).
I think this will be quite tough to diagnose as there are a finite number of ephemeral ports available on a given system which can be used by any number of applications at any given time.
@AlexRumak commented on GitHub (Apr 18, 2023):
Yeah - anything I can do to gather more telemetry for when this happens?
I believe it might have something to do with microsoft teams. When you are in a teams call and you minimize a call, a small window comes up and it interacts very weirdly with komorebi - so I might face it again soon.
@LGUG2Z commented on GitHub (Apr 26, 2023):
Unfortunately I don't think there is anything we can do on the
komorebi, because while the UDS socket path can be reserved, if the underlying UDS implementation on Windows is backed by ephemeral TCP ports, there is no way to reserve a port for use bykomorebithat will be available even with other applications (Teams etc.) are making heavy use of ephemeral TCP ports and reducing their availability.I think the best way forward for now would be to increase the system ephemeral TCP port limit and see if the same behaviour still persists. If increasing the limit does indeed resolve this, we can add the guidance to the readme.
@AlexRumak commented on GitHub (Apr 27, 2023):
No worries! I will attempt to reproduce sometime this week or next, and if I do reproduce I will try and increase the system ephemeral TCP port limit and try to reproduce again.
Perhaps removing Teams for komorebi management would also work - or modifying teams to not produce the mini windows it does on minimization which were causing issues as well I think.
@symplrdudley commented on GitHub (May 31, 2023):
Related Issue: https://github.com/LGUG2Z/komorebi/issues/277 from Oct 2022
@LGUG2Z commented on GitHub (Jun 13, 2023):
6df91d7d40Could any of you try running this build?@AlexRumak commented on GitHub (Jun 13, 2023):
Hi I will try soon. Thanks!
@LGUG2Z commented on GitHub (Jul 3, 2023):
I have received a few reports on Discord from people using this build and above that they haven't seen the error since updating. Hopefully someone in this thread can also confirm. 🤞
@symplrdudley commented on GitHub (Jul 6, 2023):
To upgrade, simply install a newer version? Or do we need to uninstall and reinstall?
@LGUG2Z commented on GitHub (Jul 6, 2023):
You can go to the latest Actions job (https://github.com/LGUG2Z/komorebi/actions/runs/5432501944) and download the artifacts, then either replace your current
komorebiandkomorebicexes with the ones in thereleasesubfolder, or run thewixinstaller; I think the latter makes more sense if you installed with WinGet, and the former makes more sense if you installed withscoop.@symplrdudley commented on GitHub (Jul 6, 2023):
I used the WinGet install method. Just double-click on the
komorebi-x86_64-pc-windows-msvc.zip/wix/komorebi-x.x.x-x86_64.msi?@symplrdudley commented on GitHub (Jul 6, 2023):
Ah, nevermind. I already have 0.1.16 installed.
I won't be much help.
@LGUG2Z commented on GitHub (Jul 7, 2023):
This build is actually a prerelease of 0.1.17, it's just not tagged yet ^
@LGUG2Z commented on GitHub (Jul 15, 2023):
@AlexRumak @symplrdudley The changes I referenced earlier in this thread were released in
v0.1.17; let me know how it goes. 🤞@AlexRumak commented on GitHub (Jul 15, 2023):
Hi,
Been a bit too busy and haven't been using it since the bug kept occurring
but ill definitely give it a go when I get a chance!
Great news and thanks
On Sat, Jul 15, 2023 at 4:33 PM جاد @.***> wrote:
@LGUG2Z commented on GitHub (May 12, 2024):
I believe this has been fixed, please re-open if the issue still persists
@xidsyed commented on GitHub (Sep 1, 2024):
Version Info:
Intel(R) Core(TM) i5-8250U CPU
Windows 23H2 Build 22631.4037
komorebi 0.1.28
tag:v0.1.28
commit_hash:0cdce8fc
build_time:2024-07-15 16:06:31 +00:00
build_env:rustc 1.79.0 (129f3b996 2024-06-10),stable-x86_64-pc-windows-msvc
Hi 👋
My first day using komorebi .I have been tinkering the whole day now. It's lovely. But im its crashed un-expectedly atleast 10 or so times today, I'd just be navigating around and suddenly hotkeys wont work until i stop and start komorebic.
At first it was windows virtual desktop that it wasnt playing nicely with, but then after disabling that, it still crashed a bunch. i ensured it was never the
whkddaemon. In fact, i went ahead trying to reproduce the crash, and noted down exact cause, and troublehooting steps. Leaving it here for anyone who'd find it useful.Event 1
komorebic stack-alletc.alt + lfocus right command, prints and works. then everything works. first time not restarting komorebic!Event 2
alt + pandalt + (1-4)works againEvent 3
alt [andalt ]really fast in successionstack / focus upmost other commands give the same error 👆. even
followed instructions here to edit registry and change
MaxUserPortto DWORD Value data:65534. (didnt restart. no change).Will restart pc after registry change, and update experience tomorrow.
Cheers!
@LGUG2Z commented on GitHub (Sep 2, 2024):
The detailed report and repro is appreciated! As you can probably tell from the lack of activity on this issue this is the first time we've seen a recurrence of these errors for quite a while now 🤔
@xidsyed commented on GitHub (Sep 2, 2024):
thanks 😊.
I was trying to track down the issue for myself. I'll update if the registry change fixed it for me.
btw love what you're doing. the tool, the videos and the support for children's relief in palestine. I came for a tiling wm but stayed for the community and the vibes.
@xidsyed commented on GitHub (Sep 2, 2024):
Steps to Reproduce Crash
Intrestingly, komorebi still tiles new windows, and focuses clicked windows, and displays containers properly and logs them etc. ONLY thing that doesnt work as expected are the commands/hotkeys
I have attached the video below showing steps to reproduce the error. I noticed that when recording my screen komorebi became unresponsive fairly quickly, whereas normally it tends to take longer than that. CPU Load might be a factor in all this.
https://github.com/user-attachments/assets/06f02ab2-2346-4294-bd4d-9e0cb88de530
@LGUG2Z commented on GitHub (Sep 2, 2024):
Did a quick search to see how others might be handling this issue and came up with these two links:
https://github.com/firezone/firezone/issues/6454
3008866484/implants/lib/eldritch/src/pivot/port_scan_impl.rs (L234)@xidsyed commented on GitHub (Sep 2, 2024):
Disclaimer
Not a rust dev, nor do i know much about IPCs on OSes. Both mentions seem to not really have a fix for the issue. they just throw errors, and judging by the state of those issues, their systems seem to recover.
Im assuming that komorebic uses UDS to communicate with komerobi. And when there are other programs also making use of these ephemeral sockets or (we're spamming requests), they can get exhausted quite quickly. I don't understand however, is why would komorebic not recover after a short while, and how does a restart fix it all of a sudden. maybe during load it doesnt fully let go of the resources, and only when its restarted does that get taken care of.
Why Restarts Work:
Idk if we are using connection pooling, maybe we should. and if we are, maybe we're not recycling resources properly, or maybe
Potential Fixes:
Implement a "soft reset" feature for connections. that doesnt require having to restart the program
Better connection pooling??
Queing? Rate Limiting? Exponential Backoff? 🤷♂️
(excuse the stupidity, im not any good at this 🥲)
@xidsyed commented on GitHub (Sep 2, 2024):
I guess that implementation could be stress tested manually
@LGUG2Z commented on GitHub (Sep 2, 2024):
Just as a sanity check can you also try running the latest nightly release? https://github.com/LGUG2Z/komorebi/releases/tag/nightly
@xidsyed commented on GitHub (Nov 11, 2024):
I'm running
this is the most frustrating bug in komorebi unfortunately,
Every once in a while i will minimize a window, or shift it accross workspaces, and things break a little or need to be retiled or komorebi needs to be restarted and windows need to be sent to their correct workspaces. but this only happens a few times a week honestly. and is no big issue for all the convenience that komrebi offers.
But komorebi randomly becoming unresponsive, not responding to keybindings or terminal commands, happens approx 10 times a day. every singel day. for me. this happens while:
it just S TOPS responing to
komorebiccommands from the terminal AND shortcuts from whkd.im honestly astounded that I'm the only one facing this issue. i've come so close to calling it sometimes 😭. when it stops responding and i realize ill have to restart komorebi causing all the (15 or so) windows to shift workspace 1, and others need to be unminimzed with the
alt+taband sent to their correct workspaces.2 alternative fixes that would improve this experience
despite all this komorebi continues to make life easy for me. but man does this bug ruin the experience.
@LGUG2Z commented on GitHub (Nov 11, 2024):
Please test #1112
@xidsyed commented on GitHub (Nov 12, 2024):
Will update in a day
@xidsyed commented on GitHub (Nov 13, 2024):
No Crashes for a whole day 🙌🙌🙌🙌.
I love this frkn program 🎉🎉🎉🎉.
I spammed it to test it and it is barely noticeable when it goes unresponsive for 1 sec but man is this a huge relief. its almost perfect 🥹.
Thanks guys!