[ncl-talk] NCL dynamic memory allocation error

Rick Brownrigg brownrig at ucar.edu
Sat Aug 10 08:29:38 MDT 2019


Hi Elizabeth,

errno=12 is indeed an "unable to allocate memory" error on linux/MacOS
systems. Why it manifests in the mapping codes is unclear, but that does
sort of suggests that the memory depletion is happening late in the game;
i.e., it sounds like you've successfully read and processed the data and
are at the final plotting stage. You might try using the NCL delete()
function to free up memory used by variables that are no longer needed for
plotting. Another suggestion would be to shutdown any large
memory-footprint applications that may be running on your system at the
time (e.g., browsers, wordprocessors, etc.)

Hope that helps...
Rick

On Sat, Aug 10, 2019 at 7:49 AM Burakowski, Elizabeth via ncl-talk <
ncl-talk at ucar.edu> wrote:

> Hello,
>
> I keep getting an error while trying to run an NCL script on casper
> (execdav):
>
> fatal:MapV41DHInitialize: dynamic memory allocation error:[errno=12]
> fatal:MapV41DHInitialize: error initializing map outline records
>  ERROR    2 IN MPLNRI/MDLNRI - Can't open the ".names" file
> fatal:MapSetTrans: error initializing map: MAPINT - UNCLEARED PRIOR ERROR
> warning:["SetValues.c":474]:SetValuesChild never occurred on
> map.PlotManager: Error in mapPlotClass
> Segmentation fault (core dumped)
>
> It is a rather memory intensive script (500 m MODIS data), but the
> ".names" file error 2 is throwing me off.  I've successfully plotted other
> MODIS data using a similar script, so I'm not sure whats different about
> this one.
>
> Script is located here:
>
> /glade/u/home/burakows/work/plot/NCL/MODIS_VernalWindow/plotMOD10A1_Year.ncl
>
> Thank you,
>
> liz.
>
>
>
> Dr. Elizabeth A Burakowski
> She/Her/Hers
> Research Assistant Professor
> Earth Systems Research Center &
> Institute for the Study of Earth, Oceans, and Space
> University of New Hampshire
> 8 College Road Durham, NH 03824
> 603-862-1796
> elizabeth.burakowski at unh.edu
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190810/7b15aeb8/attachment.html>


More information about the ncl-talk mailing list