#495 File is too large to edit

release
closed
nobody
Program (402)
5
2005-11-03
2005-11-01
Anonymous
No

When opening a text file that is 542662KB on AIX 5.3
the following error occurs "Error while opening File",
"File is too large to edit".

versions tested:

NEdit 5.5
Sep 30, 2004

Built on: AIX, POWER, IBM xlC
Built at: Sep 30 2004, 18:16:11
With Motif: 2.1.0 [@(#)Motif Version 2.1.0]
Running Motif: 2.1 [unknown]
Server: Sun Microsystems, Inc. 6410
Visual: 24-bit TrueColor (ID 0x28)
Locale: en_US
-----------------------------------------------
NEdit 5.5
Sep 30, 2004

Built on: AIX, POWER, IBM xlC
Built at: Sep 11 2005, 16:02:34
With Motif: 2.1.30 [@(#)Motif Version 2.1.30]
Running Motif: 2.1 [unknown]
Server: Sun Microsystems, Inc. 6410
Visual: 24-bit TrueColor (ID 0x28)
Locale: en_US

http://www.nedit.org/ftp/v5_5/executables/nedit-5.5-AIX.tar.gz
ftp://aixpdslib.seas.ucla.edu/pub/nedit/RISC/5.3/exec/nedit.5.5.tar.Z

NEdit 5.5 has no problem opening the same file in Sun
Solaris 8 and Fedora Core 3.

Discussion

  • Andrew Hood

    Andrew Hood - 2005-11-01

    Logged In: YES
    user_id=36856

    Have you run into some ulimit on AIX that is different to
    the ones on Solaris or FC3?
    Has AIX run out of memory loading the file? It has to all
    fit in memory (counting swap space) at once.
    If you plan on doing lots of replacements you could need
    more than twice as much memory as the file size.

     
  • Nobody/Anonymous

    Logged In: NO

    I have changed the default ulimits to unlimited usage:

    ulimit -a
    core file size (blocks, -c) unlimited
    data seg size (kbytes, -d) unlimited
    file size (blocks, -f) unlimited
    max memory size (kbytes, -m) unlimited
    open files (-n) unlimited
    pipe size (512 bytes, -p) 64
    stack size (kbytes, -s) hard
    cpu time (seconds, -t) unlimited
    max user processes (-u) 128
    virtual memory (kbytes, -v) unlimited

    The AIX machine got about 4GB of free RAM and about 12GB of
    free Paging space. When trying to open the file i see no
    difference in memory usage.

    NEdit doesn't even try to load the file before the error is
    shown.

     
  • Nobody/Anonymous

    Logged In: NO

    Ok, I understand what the problem is. /usr/ccs/bin/ldedit
    -bmaxdata:0x80000000 /path/to/nedit worked great.

    Thank you very much for your help. :)

     
  • Eddy De Greef

    Eddy De Greef - 2005-11-03
    • status: open --> closed
     

Log in to post a comment.