Skip to content
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

Gvim hangs indefinitely on shutdown #371

Closed
feynmanliang opened this issue Mar 29, 2013 · 11 comments
Closed

Gvim hangs indefinitely on shutdown #371

feynmanliang opened this issue Mar 29, 2013 · 11 comments

Comments

@feynmanliang
Copy link

After pulling commit 80e55b0, exiting vim with ":q" or sending SIGTERM causes indefinite hanging with no error messages reported (even when running verbose logging "gvim -V10"). Gvim has to be terminated with xkill.

The prior commit (07c2ea1) does not exhibit this bug.

Running gvim 7.3.875-1 with gtk2 (https://www.archlinux.org/packages/extra/x86_64/gvim/)

@ZyX-I
Copy link
Contributor

ZyX-I commented Mar 30, 2013

Do you have VimLeave events somehow disabled?

@ranjanashish
Copy link

I, too, am having this problem since yesterday. Everything was running fine but after updating powerline, gvim now hangs after trying to quit with ":q"

For me, as far as I know, I don't have VimLeave event disabled anywhere.

System: Debian Wheezy
gvim version: 7.3.547-7

@feynmanliang
Copy link
Author

AFAIK I haven't explicitly disabled it in my vimrc. How can I check?

@ZyX-I
Copy link
Contributor

ZyX-I commented Mar 30, 2013

@feynmanliang Something like

autocmd VimLeave * :redir >> /tmp/at_VimLeave | exe 'autocmd Powerline' | redir END

, then check whether /tmp/at_VimLeave file exists and contains description of the event in question. Be sure that it did not exist before the test.

@feynmanliang
Copy link
Author

From /tmp/at_VimLeave

--- Auto-Commands ---
Powerline  ColorScheme
    *         :exec s:powerline_pycmd 'powerline.renderer.reset_highlight()'
Powerline  VimEnter
    *         :redrawstatus!
Powerline  VimLeave
    *         :exec s:powerline_pycmd 'powerline.renderer.shutdown()'

Interestingly, I see Powerline VimLeave displayed in GVim but do not see the final line * :exec s:powerline_pycmd 'powerline.renderer.shutdown()'

gvim

@ZyX-I
Copy link
Contributor

ZyX-I commented Mar 31, 2013

Not seeing the line should be OK. Not working with existing event is not. Does it work if you change VimLeave to VimLeavePre?

@feynmanliang
Copy link
Author

Changed line 87 of /usr/share/vim/vimfiles/plugin/powerline.vim to autocmd! VimLeavePre * :exec s:powerline_pycmd 'powerline.renderer.shutdown()'.

Exiting Gvim still hangs, /tmp/at_VimLeave now reads:

--- Auto-Commands ---
Powerline  ColorScheme
    *         :exec s:powerline_pycmd 'powerline.renderer.reset_highlight()'
Powerline  VimEnter
    *         :redrawstatus!
Powerline  VimLeavePre
    *         :exec s:powerline_pycmd 'powerline.renderer.shutdown()'

Maybe this has something to do with Arch linux defaulting /usr/bin/python to python3?

@vogre
Copy link

vogre commented Apr 1, 2013

Happens also on with gvim 7.3.1-429 and (/usr/bin/python) Python 2.7.3. Does not happen when running gvim in foreground(gvim -f).

@vogre
Copy link

vogre commented Apr 2, 2013

The issue happens even after pulling 6555494.

@feynmanliang
Copy link
Author

@Lokaltog Still broken even after 6555494, gvim -f does fix the issue.

@Lokaltog Lokaltog reopened this Apr 3, 2013
@ZyX-I
Copy link
Contributor

ZyX-I commented Aug 16, 2014

This issue should be fixed now as powerline does not use threads for Vim in default theme.

@ZyX-I ZyX-I closed this as completed Aug 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants