edenzik / macvim

Automatically exported from code.google.com/p/macvim
0 stars 0 forks source link

Tabs stop working, followed by lots of redraw errors requiring me to quit vim #193

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I've seen this a couple of times. I use MacVim all the time with multiple 
windows each with multiple tabs open. The bug starts with the title for a tab 
failing to draw, - it's just a flat dark gray (like that of a background tab) 
without a close button. After that, clicking on other tabs doesn't change 
update any of the tab headers, and the actual text doesn't update cleanly - 
only sections of the redraw area are updated. This doesn't crash MacVim, if 
I press command-w repeatedly I can close all tabs/windows. I saw the following 
output from the console:

2009-07-08 10:23:57.437 MacVim[735:903] *** -[NSCFArray 
replaceObjectAtIndex:withObject:]: index (2147483647 (or possibly larger)) 
beyond 
bounds (13)
2009-07-08 10:24:00.871 MacVim[735:903] Exception caught whilst processing 
command queue: *** -[NSCFArray insertObject:atIndex:]: attempt to 
insert nil
2009-07-08 10:24:00.871 MacVim[735:903] Exception caught whilst processing 
command queue: *** -[NSCFArray insertObject:atIndex:]: attempt to 
insert nil
2009-07-08 10:24:00.872 MacVim[735:903] Exception caught whilst processing 
command queue: *** -[NSCFArray insertObject:atIndex:]: attempt to 
insert nil
2009-07-08 10:24:00.872 MacVim[735:903] Exception caught whilst processing 
command queue: *** -[NSCFArray insertObject:atIndex:]: attempt to 
insert nil
2009-07-08 10:24:00.872 MacVim[735:903] Exception caught whilst processing 
command queue: *** -[NSCFArray insertObject:atIndex:]: attempt to 
insert nil
2009-07-08 10:24:00.898 MacVim[735:903] Exception caught whilst processing 
command queue: *** -[NSCFArray insertObject:atIndex:]: attempt to 
insert nil
2009-07-08 10:24:00.933 MacVim[735:903] Exception caught whilst processing 
command queue: *** -[NSCFArray insertObject:atIndex:]: attempt to 
insert nil
2009-07-08 10:24:03.595 MacVim[735:903] Exception caught whilst processing 
command queue: *** -[NSCFArray insertObject:atIndex:]: attempt to 
insert nil
2009-07-08 10:24:04.079 MacVim[735:903] Exception caught whilst processing 
command queue: *** -[NSCFArray insertObject:atIndex:]: attempt to 
insert nil
2009-07-08 10:24:04.154 MacVim[735:903] Exception caught whilst processing 
command queue: *** -[NSCFArray insertObject:atIndex:]: attempt to 
insert nil
2009-07-08 10:24:04.253 MacVim[735:903] Exception caught whilst processing 
command queue: *** -[NSCFArray insertObject:atIndex:]: attempt to 
insert nil
2009-07-08 10:24:04.376 MacVim[735:903] Exception caught whilst processing 
command queue: *** -[NSCFArray insertObject:atIndex:]: attempt to 
insert nil
2009-07-08 10:24:04.534 MacVim[735:903] Exception caught whilst processing 
command queue: *** -[NSCFArray insertObject:atIndex:]: attempt to 
insert nil
2009-07-08 10:24:04.602 MacVim[735:903] Exception caught whilst processing 
command queue: *** -[NSCFArray insertObject:atIndex:]: attempt to 
insert nil
2009-07-08 10:24:04.684 MacVim[735:903] Exception caught whilst processing 
command queue: *** -[NSCFArray insertObject:atIndex:]: attempt to 
insert nil
2009-07-08 10:24:04.752 MacVim[735:903] Exception caught whilst processing 
command queue: *** -[NSCFArray insertObject:atIndex:]: attempt to 
insert nil
2009-07-08 10:24:04.850 MacVim[735:903] Exception caught whilst processing 
command queue: *** -[NSCFArray insertObject:atIndex:]: attempt to 
insert nil
2009-07-08 10:24:05.101 MacVim[735:903] *** -[NSMachPort handlePortMessage:]: 
dropping incoming DO message because the connection or ports 
are invalid

Original issue reported on code.google.com by fro...@gmail.com on 8 Jul 2009 at 5:40

GoogleCodeExporter commented 9 years ago
Are you editing text which contains characters which aren't latin1 (e.g. are 
you editing files that aren't in 
English)?

Which version of MacVim are you using (see the menu MacVim -> About MacVim)?

Original comment by bjorn.winckler@gmail.com on 8 Jul 2009 at 5:49

GoogleCodeExporter commented 9 years ago
Version 7.2 stable 1.2 (33.3)

I'm only editing ASCII text files (C,C++ and assembly). I use cscope, and the 
code I edit 
is on an AFP share. I'm running SnowLeopard10A402 right now but I've seen this 
on 
earlier versions (I work at Apple). It seems to happen after I've left the 
system for a long 
time, i.e. giving it time to go go into display sleep (I don't let my machines 
actually 
sleep). Anything else you want to know?

Original comment by fro...@gmail.com on 8 Jul 2009 at 5:54

GoogleCodeExporter commented 9 years ago
That is somewhat surprising (this problem is usually the result of editing 
non-latin1 text).

I think this problem has something to do with the default renderer so it would 
be best if you could try using the 
ATSUI renderer and see if the problem persists.  However, in order to do so you 
will have to upgrade to the latest 
snapshot (the ATSUI support in the stable build is too flakey).  As far as 
stability goes the snapshot and the 
stable build are pretty much on the same level so don't let the name "snapshot" 
scare you.  Once you have it, 
open the Preferences and enable ATSUI there (be sure to disable it if you go 
back to using the stable build 
afterwards though!).

Original comment by bjorn.winckler@gmail.com on 8 Jul 2009 at 6:05