VIM now crashes when opening large file:

218 views
Skip to first unread message

Josh G

unread,
Sep 9, 2015, 7:10:24 AM9/9/15
to vim_dev
I keep getting crashes now when opening large file (4GB, 9GB).

here was the last crash message details:
Problem signature:
Problem Event Name: APPCRASH
Application Name: gvim.exe
Application Version: 7.4.280.0
Application Timestamp: 5206345a
Fault Module Name: libintl.dll
Fault Module Version: 2001.4.1.10
Fault Module Timestamp: 3ad46f30
Exception Code: c0000005
Exception Offset: 00001608
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 1033
Additional Information 1: 3170
Additional Information 2: 31701ebd1d2f170e3484a58ac5c10e7b
Additional Information 3: 269a
Additional Information 4: 269ae3e1d0497610c0910b9f81df5ecd

------

When I did have the 9gb file open, it kept moving really slow. I couldn't really highlight anything quickly.

Tony Mechelynck

unread,
Sep 9, 2015, 7:32:28 AM9/9/15
to vim_dev, Josh G
You're on a 64-bit system, I suppose?
It may be due to too little live RAM (and the need for a lot of disk
swapping) but in general Vim does get sluggish when editing large
files. Disabling undo and/or swap may alleviate the problem if you're
willing to sacrifice those safeties.

Bram (or someone) might perhaps be able to help better than me if you
can get a stack trace at the time of the crash. Preferably with
symbols, which might mean compiling the executable yourself and
avoiding whatever corresponds on Windows to the "strip" step which, on
my Linux system, is part of "make install".

See:
:h E41
:h 'undolevels'
:h 'undoreload'
:h 'backup'
:h swap-file
:h 'swapfile'
:h 'swapsync'
:h limits

Best regards,
Tony.

Ben Fritz

unread,
Sep 9, 2015, 10:26:55 AM9/9/15
to vim_dev
On Wednesday, September 9, 2015 at 6:10:24 AM UTC-5, Josh G wrote:
> I keep getting crashes now when opening large file (4GB, 9GB).
>
> here was the last crash message details:
> Problem signature:
> Problem Event Name: APPCRASH
> Application Name: gvim.exe
> Application Version: 7.4.280.0

The most recent Vim version is now 7.4.861. There have been multiple crash fixes in the nearly 600 updates that have occurred since your version was created. You might have better luck with the latest version. No guarantees, though.

Charles Campbell

unread,
Sep 9, 2015, 3:19:36 PM9/9/15
to vim...@googlegroups.com
You might find the LargeFile.vim plugin of assistance in dealing with
large files, at least insofar as vim sluggishness is concerned. You can
get it from http://www.drchip.org/astronaut/vim/index.html#LARGEFILE.

Regards,
Chip Campbell

John Little

unread,
Sep 9, 2015, 7:29:31 PM9/9/15
to vim_dev, Charles.E...@nasa.gov
On Wednesday, September 9, 2015 at 6:10:24 AM UTC-5, Josh G wrote:
> I keep getting crashes now when opening large file (4GB, 9GB).

+1 for the LargeFile plugin. Though, vim does everything in memory, if you have less RAM than the size of the file it will be swapping and so slow.

> it kept moving really slow. I couldn't really highlight anything quickly

Some syntax highlighting can get very slow; what syntax was being used?
Also, vim can get slow if lines are very long, say kilobytes. I've had usable performance looking at largeish log files with syntax highlighting by using drastically simple highlighting.

Reply all
Reply to author
Forward
0 new messages