I can 100% repro this bug by adding the following line into my vimrc. autocmd VimEnter,BufNew,BufEnter,BufWritePost,VimResized * redraw
The repro step: 1. open NERDTree 2. create multiple tabs. 3. switch tabs which contains NERDTree windows to other window. 4. If not crash, switch several times. my environment: windows 7 amd64, my gvim is 32bits. Thanks, -Mike Guo On Mar 9, 10:47 pm, lilydjwg <lilyd...@gmail.com> wrote: > I can't reproduce this on my 32bit Windows XP with my self-compiled vim > version 7.3.444. > > > > > > > > > > On Thu, Mar 08, 2012 at 05:44:01PM -0800, 驼峰 wrote: > > BTW, I tried using the gvim 7.3 without any patches(ftp://ftp.vim.org/ > > pub/vim/pc/gvim73.zip), the problem still happens. > > > I guess that nobody hit this issue before. The scenario is: open > > NERDTree windows and run redraw automatically when enter another tabs. > > > Thanks, > > -Mike Guo > > > On Mar 9, 9:29 am, 驼峰 <guotuof...@gmail.com> wrote: > > > Hi, Bram, > > > > Thanks for your reply. Actually, I am working in Windows and don't > > > have valgrind. > > > > The crash can be easily reproed by using two plugins: NERDTree and > > > buf_it. > > > > Their links > > > are:http://www.vim.org/scripts/script.php?script_id=1658http://www.vim.or... > > > > The repro step is: > > > 1. open a nerdtree window by using NERDTree. > > > 2. in the NERDTree window, hit "t" key to create several tabs. > > > 3. switch to other tabs by using "2gt" or click the tab button. > > > > Then you will hit crash definitely. > > > > After some investigation, I found the crash is hit by the command > > > "redraw" in buf_it.vim. If i comment out the redraw in that file. gvim > > > won't crash. > > > > Here are some clauses related to redraw. > > > > autocmd VimEnter,BufNew,BufEnter,BufWritePost,VimResized * call > > > UpdateStatus() > > > function! UpdateStatus() > > > blablabla > > > blablabla > > > blablabla > > > ... > > > ... > > > > redraw > > > endfunction > > > > Another easy repro step is adding the following line in vimrc > > > configuration file and install NERDTree. > > > autocmd VimEnter,BufNew,BufEnter,BufWritePost,VimResized * > > > redraw > > > > Thanks, > > > -Mike Guo > > > > > Don't see something special here. > > > > > Can you run Vim with valgrind, then we can see what happens with > > > > allocated memory early. See ":help valgrind". > > > > > -- > > > > If you feel lonely, try schizophrenia. > > > > > /// Bram Moolenaar -- b...@moolenaar.net --http://www.Moolenaar.net \\\ > > > > /// sponsor Vim, vote for features > > > > --http://www.Vim.org/sponsor/\\\ > > > > \\\ an exciting new programming language --http://www.Zimbu.org > > > > /// > > > > \\\ help me help AIDS victims --http://ICCF-Holland.org /// > > > -- > > You received this message from the "vim_dev" maillist. > > Do not top-post! Type your reply below the text you are replying to. > > For more information, visithttp://www.vim.org/maillist.php > > -- > Best regards, > lilydjwg > > Linux Vim Python 我的博客:http://lilydjwg.is-programmer.com/ > -- > A: Because it obfuscates the reading. > Q: Why is top posting so bad? -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php