-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kitty hangs randomly running a remote control command #5890
Comments
Doesnt repro for me with that script file running it approx 20 times. Try running kitty with --dump-commands that should show you all the remote control commands coming in (assuming you arent using a socket for remote control). |
I have added this to my instrumentation and will paste the output of |
Update: I am attempting to write an automation script to launch kitty in a loop and let it run overnight till this bug reproduces. However, I am running into another issue, which I will file as a separate ticket shortly. |
I can now reproduce this issue fairly easily by invoking kitty in a loop. I had this bug reproduce 3 times within minutes. Here is the Instance 1In this instance, the
Instance 2In this instance, the
Reproduction
|
If you have a reproducer feel free to attach it and I will try it. |
I think we nailed it! I just ran my reproducer script with more than 125 iterations without being able to reproduce this bug. |
glad to hear it. |
Describe the bug
While running a remote control command, or perhaps a specific remote control command, kitty randomly (and rarely) hangs.
To Reproduce
workrc
:.desktop
launcher file.)kitty bash --rcfile /path/to/workrc
Observed Behavior
The user indefinitely stares at the tab with the wrench emoji title. kitty never gets to launching the new tabs.
But here is something interesting: if I simply hit SPACE or ENTER on the keyboard, then kitty resumes and creates the specified set of tabs in the
workrc
file.I hypothesize that there might be a race condition where it may be the
@ close-tab
command that might be hanging. In the stated scenario, since there are are no tabs other than the single one with the wrench emoji title, the@ close-tab
command might be hanging as there are no other tabs to close.However, data I collected from my machine seems to contradict my hypothesis. Lets download:
kitty-hang.txt
At Line 4, you can see that it is actually the
kitty @ set-tab-title 🔧
that was hung. I then attachedstrace
using the-p
option and after hitting ENTER on the keyboard, kitty resumed, andstrace
logged what was being executed at the kernel level starting at Line 18.Environment details
Additional context
0.26.5
does not exhibit this issue.@ close-tab
in this scenario to help narrow down whether the culprit is@ set-tab-title
or@ close-tab
.The text was updated successfully, but these errors were encountered: