← Back to team overview

registry team mailing list archive

[Bug 620764] Re: gedit crashes when manipulating 2.8GB text file

 

comment from upstream

"It would not be possible to open a 2.8GB file in a 32 bits system, whatever the
application is, if it reads it completely as gedit does.

The reason for that is simple: on a 32bits architecture, a process can only map
3 GB of memory. If you consider 2.8GB of content, with all the required
bookkeeping information (like the btree used for storing the files lines), the
libraries and so on would be much over the 3GB limit.

Hence the error message here:
    0x89689c "%s: failed to allocate %u bytes", args1=0xbfffeb0c "pi\211")

Which itself cannot be displayed (the "NULL" you see) because the final message
cannot be allocated...

I suggest either you split your file or you use another adapted text reader
(which won't need to allocate the entirety of the file, as opposed to a
full-fledged editor) to read it properly..."

** Changed in: gedit (Ubuntu)
       Status: Triaged => Won't Fix

-- 
gedit crashes when manipulating 2.8GB text file
https://bugs.launchpad.net/bugs/620764
You received this bug notification because you are a member of Registry
Administrators, which is the registrant for gedit.