Gvim hangs with blank window if not maximized

Bug #886450 reported by Soumitra Pal
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
vim (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

If gvim is opened not maximized, it simply hangs without showing any content of the file (or the standard content ~s for new file). However, if it is maximized, it works. Again if gvim is unmaximized, it freezes the window content. I tried with removing .vimrc file and .vim directory. Same behavior persists. I tried with removing .gnome2/Vim file and calling /usr/bin/gvim -f. But same problem.

However, I think it may not be a problem in Gvim because the same frozen window behavior happens for emacs. However, this problem is not there with gedit.

I did not know how to file bug with the window management software, so i invoked "ubuntu-bug vim" from command window.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: vim (not installed)
ProcVersionSignature: Ubuntu 3.0.0-13.22-generic 3.0.6
Uname: Linux 3.0.0-13-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Sat Nov 5 11:18:16 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
ProcEnviron:
 LANGUAGE=en
 PATH=(custom, user)
 LANG=en_US.UTF-8
 LC_MESSAGES=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: vim
UpgradeStatus: Upgraded to oneiric on 2011-10-18 (18 days ago)

Revision history for this message
Soumitra Pal (soumitrakp) wrote :
Revision history for this message
Soumitra Pal (soumitrakp) wrote :
Revision history for this message
Soumitra Pal (soumitrakp) wrote :
Revision history for this message
Soumitra Pal (soumitrakp) wrote :
Revision history for this message
Soumitra Pal (soumitrakp) wrote :
Revision history for this message
Soumitra Pal (soumitrakp) wrote :
Revision history for this message
Soumitra Pal (soumitrakp) wrote :
Revision history for this message
Ankit Saini (ankit28595) wrote :

Just to be sure it is indeed a problem with the window manager, have you tried opening gvim or emacs not-maximized in Unity-2d.
You can do this by logging out and choosing Unity-2d from the menu located at top right of the password field.

Since Unity-2d uses Metacity and Unity-3d requires Compiz, the same problem should not repeat with Metacity.

If Gvim still freeze, then we can be sure it is problem with Compiz.

Revision history for this message
Soumitra Pal (soumitrakp) wrote :

Hi Ankit,

Thanks for the quick reply.

I have tried both Ubuntu (3D) and Ubuntu 2D. The problem persists on both. I even installed Gnome 3 package and even there the problem persists.

Revision history for this message
Soumitra Pal (soumitrakp) wrote :

All the screen-shots attached are on Ubuntu 2D.

Revision history for this message
Ankit Saini (ankit28595) wrote :

So at least window manager isn't the culprit here. Gvim opens nicely for me so it's difficult to detect what exactly is the cause of the problem.

Revision history for this message
Ankit Saini (ankit28595) wrote :

Dear Soumitra

Since the bug appears to be effecting only you at the moment and hence we are not able to reproduce it, it will be a great help to upload the backtrace of how gvim hangs.

For this you would need `vim-dbg` and `gdb`. The exact sequence of commands should be:

sudo apt-get install vim-dbg gdb
gdb gvim 2>&1 | tee ~/gdb-gvim.txt
         (After starting gdb)
run
<CTRL-C > (As the program hangs)
backtrace full
<CTRL-D>

Now upload the file gdb-vim.txt present in your home directory.

Revision history for this message
Soumitra Pal (soumitrakp) wrote :
Download full text (4.5 KiB)

Anikt, here is the output as you asked:

GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /usr/bin/gvim...Reading symbols from /usr/lib/debug/usr/bin/vim.gnome...done.
done.
"/home/mitra/test.txt" is not a core dump: File format not recognized
(gdb) run test.txt
Starting program: /usr/bin/gvim test.txt
[Thread debugging using libthread_db enabled]
[New Thread 0x7fffea0f9700 (LWP 6198)]
[New Thread 0x7fffe7dff700 (LWP 6199)]
[New Thread 0x7fffe75fe700 (LWP 6200)]
^C
Program received signal SIGINT, Interrupt.
0x00007ffff37e2773 in __GI___poll (fds=<optimized out>, nfds=<optimized out>,
    timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
87 ../sysdeps/unix/sysv/linux/poll.c: No such file or directory.
 in ../sysdeps/unix/sysv/linux/poll.c
(gdb) backtrace full
#0 0x00007ffff37e2773 in __GI___poll (fds=<optimized out>,
    nfds=<optimized out>, timeout=<optimized out>)
    at ../sysdeps/unix/sysv/linux/poll.c:87
        resultvar = <optimized out>
        oldtype = 0
        result = <optimized out>
#1 0x00007fffeebaa4f2 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
No symbol table info available.
#2 0x00007fffeebaaa3f in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
No symbol table info available.
#3 0x00007fffeebaaac4 in xcb_writev ()
   from /usr/lib/x86_64-linux-gnu/libxcb.so.1
No symbol table info available.
#4 0x00007ffff5a9f597 in _XSend () from /usr/lib/x86_64-linux-gnu/libX11.so.6
No symbol table info available.
#5 0x00007ffff5a9f930 in _XFlush () from /usr/lib/x86_64-linux-gnu/libX11.so.6
No symbol table info available.
#6 0x00007ffff5a7f04a in XFlush () from /usr/lib/x86_64-linux-gnu/libX11.so.6
No symbol table info available.
#7 0x00007ffff752e788 in gdk_window_process_all_updates ()
   from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
No symbol table info available.
#8 0x00007ffff752e839 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
No symbol table info available.
#9 0x00007ffff750bd26 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
No symbol table info available.
#10 0x00007ffff6b82a5d in g_main_context_dispatch ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#11 0x00007ffff6b83258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#12 0x00007ffff6b83429 in g_main_context_iteration ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#13 0x000000000059eb75 in gui_mch_update () at gui_gtk_x11.c:5332
No locals.
#14 0x0000000000592f2c in gui_init () at gui.c:563
        wp = 0x0
        recursive = 0
#15 0x000000000057a00f in set_termname (term=<optimized out>) at term.c:1845
        termp = <optimized out>
        builtin...

Read more...

Revision history for this message
Soumitra Pal (soumitrakp) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in vim (Ubuntu):
status: New → Confirmed
Revision history for this message
David Paul (hi-my-name-is-dave) wrote :

I have this problem too, but discovered it's only an issue with particular gtk themes in my .gtkrc-2.0 file. The only themes I've found which exhibit this problem are "New Wave" and "New Wave Dark Menus". Other themes all appear to work fine. I can provide any files from the theme you think would help.

Revision history for this message
Paul White (paulw2u) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. We are sorry that we do not always have the capacity to review all reported bugs in a timely manner.

Ubuntu 11.10 (oneiric) reached end-of-life on May 9, 2013.

The bug description implies that this isn't a vim bug as emacs is also affected and and comment #16 implies the issue is theme related.

As almost 12 years have passed without any comment I'll close this as 'Invalid'.

Changed in vim (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.