Either Gvim dies or at least stays idle (not consuming 100% CPU, as reported by top).
9.0 (included patches: 1-242)
OS: Ubuntu 22.10.
Shell: Bash.
No response
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Make sure that $DISPLAY is correct and then use the :xrestore command to re-initialize the X11 connection. Does that work?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Can you see where Vim is busy-looping?
I'll do that and report back.
Make sure that $DISPLAY is correct and then use the :xrestore command to re-initialize the X11 connection. Does that work?
Nope.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
If I try gvim --nofork in Gdb in Tmux, Gvim does die when the server is killed. Any idea how to proceed?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Perhaps it never got a signal to exit. Or tmux is somehow keeping it
alive until the X server comes back.
It certainly looks like that by keeping the calling shell alive, Gvim also survives.
But I just tested and this doesn't happen with GTK Gvim, which does die.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Well… I've also encountered something similar with terminal Vim:
Sometimes, when I look into htop, I find an abandoned vim process whose shell should already be closed.
I at least cannot find the shell anymore.
However, this vim process idles with 100% CPU usage on one core, and is even quite resilient to dying:
A normal SIGTERM does not do anything, even with root permissions.
Only a SIGKILL helps.
To me, it sounds a bit as if Vim is trapped inside an endless busy-waiting loop whenever this happens.
However, I have no idea how I even manage to produce such a zombie-Vim (but it is probably not killing the x server as described above as I encounter this problem far more often than the amount of times I kill my x server).
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
it sounds a bit as if Vim is trapped inside an endless busy-waiting loop whenever this happens.
and is ignoring signals!?
I wonder if you could attach the process with gdb and get a stack trace or some other useful info?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Oh, I just looked, neither of the signals you mention produces a Core. I wonder if SIGSEGV, SIGBUS, SIGQUIT, or who knows what, might produce a core file? The system may need to be configured to produce a core (I vaguely recall having to do that when I finally moved to linux).
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
I'll try to create a core file the next time I encounter this problem.
After all, it only occurs stochastically maybe once a week (for me, and I use vim already regularly)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()