[Bug 856779] Re: gvim slow to respond

Rex Tsai 856779 at bugs.launchpad.net
Fri Jan 13 13:55:39 UTC 2012


I have the new patch from upstream vcs. It's not a small change, please review and test it.

  * debian/patches/debian/gtk-fork.patch: 
    - patch from upstream v7-3-315. (LP: #856779)
      Problem:    Opening a window before forking causes problems for GTK.
      Solution:   Fork first, create the window in the child and report back to the
                  parent process whether it worked.  If successful the parent exits, 
                  if unsuccessful the child exits and the parent continues in the
                  terminal. (Tim Starling)


I could not branch oneiric version[1] for propose a merging review. But you can my debdiff which fix the problem. Test build will be available in my ppa[2].

[1] https://code.launchpad.net/~ubuntu-branches/ubuntu/oneiric/vim/oneiric
[2] https://launchpad.net/~chihchun/+archive/experimental 2:7.3.154+hg~74503f6ee649-2ubuntu3.1rex1

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to vim in Ubuntu.
https://bugs.launchpad.net/bugs/856779

Title:
  gvim slow to respond

Status in “vim” package in Ubuntu:
  In Progress
Status in “vim” package in Fedora:
  Unknown

Bug description:
  Opening up GVIM takes long time and edit commands such as moving are
  very slow.

  strace shows lots of waiting:
  poll([{fd=6, events=POLLIN}, {fd=5, events=POLLIN}, {fd=9, events=POLLIN|POLLPRI}, {fd=12, events=POLLIN}, {fd=11, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN}, {fd=18, events=POLLIN}], 7, -1) = 1 ([{fd=5, revents=POLLIN}])
  read(5, "\f\0\f\250E\0\340\5\0\0\25\0a\0\32\0\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 160
  read(5, 0x11fa014, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
  read(5, 0x11fa014, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
  read(5, 0x11fa014, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
  poll([{fd=6, events=POLLIN}, {fd=5, events=POLLIN}, {fd=9, events=POLLIN|POLLPRI}, {fd=12, events=POLLIN}, {fd=11, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN}, {fd=18, events=POLLIN}], 7, 0) = 0 (Timeout)
  poll([{fd=5, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=5, revents=POLLOUT}])
  writev(5, [{"5\30\4\0\226\16\340\5E\0\340\5a\0\24\2\225\4\5\0\227\16\340\5\226\16\340\5*\0\0\0"..., 8180}, {NULL, 0}, {"", 0}], 3) = 8180
  read(5, 0x11fa014, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
  read(5, 0x11fa014, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
  poll([{fd=6, events=POLLIN}, {fd=5, events=POLLIN}, {fd=9, events=POLLIN|POLLPRI}, {fd=12, events=POLLIN}, {fd=11, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN}, {fd=18, events=POLLIN}], 7, -1) = 1 ([{fd=5, revents=POLLIN}])
  read(5, "\f\0i\251E\0\340\5\\\0/\0\5\0\1\0\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 160
  read(5, 0x11fa014, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
  read(5, 0x11fa014, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
  read(5, 0x11fa014, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
  poll([{fd=6, events=POLLIN}, {fd=5, events=POLLIN}, {fd=9, events=POLLIN|POLLPRI}, {fd=12, events=POLLIN}, {fd=11, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN}, {fd=18, events=POLLIN}], 7, 0) = 0 (Timeout)
  poll([{fd=5, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=5, revents=POLLOUT}])
  writev(5, [{"5\30\4\0\230\16\340\5E\0\340\5\t\0\24\2\225\4\5\0\231\16\340\5\230\16\340\5*\0\0\0"..., 4440}, {NULL, 0}, {"", 0}], 3) = 4440
  read(5, 0x11fa014, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
  read(5, 0x11fa014, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
  poll([{fd=6, events=POLLIN}, {fd=5, events=POLLIN}, {fd=9, events=POLLIN|POLLPRI}, {fd=12, events=POLLIN}, {fd=11, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN}, {fd=18, events=POLLIN}], 7, -1^C <unfinished ...>

  fds are here

  
  gvim    6138 maguec    0u   CHR              136,0      0t0        3 /dev/pts/0
  gvim    6138 maguec    1u   CHR              136,0      0t0        3 /dev/pts/0
  gvim    6138 maguec    2u   CHR              136,0      0t0        3 /dev/pts/0
  gvim    6138 maguec    3r  FIFO                0,8      0t0   213734 pipe
  gvim    6138 maguec    4w  FIFO                0,8      0t0   213734 pipe
  gvim    6138 maguec    5u  unix 0x0000000000000000      0t0   213737 socket
  gvim    6138 maguec    6u  0000                0,9        0     5107 anon_inode
  gvim    6138 maguec    7u  unix 0x0000000000000000      0t0   212773 socket
  gvim    6138 maguec    8u  0000                0,9        0     5107 anon_inode
  gvim    6138 maguec    9r  FIFO                0,8      0t0   213743 pipe
  gvim    6138 maguec   10w  FIFO                0,8      0t0   213743 pipe
  gvim    6138 maguec   11u  unix 0x0000000000000000      0t0   213744 socket
  gvim    6138 maguec   12u  unix 0x0000000000000000      0t0   213745 socket
  gvim    6138 maguec   13u  0000                0,9        0     5107 anon_inode
  gvim    6138 maguec   14u  0000                0,9        0     5107 anon_inode
  gvim    6138 maguec   15u  unix 0x0000000000000000      0t0   212774 socket
  gvim    6138 maguec   16u  unix 0x0000000000000000      0t0   213752 socket
  gvim    6138 maguec   17u  0000                0,9        0     5107 anon_inode
  gvim    6138 maguec   18r  0000                0,9        0     5107 anon_inode
  gvim    6138 maguec   20u   REG                8,6    12288     8478 /home/maguec/tmp/vim/%home%maguec%Code%oppy%bin%check_status.swp

  ProblemType: Bug
  DistroRelease: Ubuntu 11.10
  Package: vim-gnome 2:7.3.154+hg~74503f6ee649-2ubuntu2
  ProcVersionSignature: Ubuntu 3.0.0-11.18-generic 3.0.4
  Uname: Linux 3.0.0-11-generic x86_64
  ApportVersion: 1.23-0ubuntu1
  Architecture: amd64
  Date: Thu Sep 22 13:30:21 2011
  ExecutablePath: /usr/bin/vim.gnome
  InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
  ProcEnviron:
   SHELL=/bin/bash
   PATH=(custom, user)
   LANG=en_US.UTF-8
  SourcePackage: vim
  UpgradeStatus: Upgraded to oneiric on 2011-09-02 (19 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vim/+bug/856779/+subscriptions




More information about the foundations-bugs mailing list