Possible bug?: msSmallCalloc(): Out of memory allocating -2732555844 bytes.

Alex G. <[email protected]>
Newsgroups gmane.comp.gis.mapserver.user
Message-ID <VI1PR08MB4030B0BBE09BC1571DFA7C0C98420@VI1PR08MB4030.eurprd08.prod.outlook.com>
I am reciving an error when mapserver try to show an *ecw file.

Below I have attached  logs, test, and programs versions:

thank you in advance.

----------------------------------------------------------------------

**Mapserver log :**

[Wed Mar 20 12:34:33 2019].161760 CGI Request 3 on process 930

[Wed Mar 20 12:34:33 2019].165160 msDrawMap(): rendering using outputformat named png (AGG/PNG).

[Wed Mar 20 12:34:33 2019].165209 msDrawMap(): WMS/WFS set-up and query, 0.000s

[Wed Mar 20 12:34:33 2019].165297 msDrawRasterLayerLow(ecw-test): entering.

[Wed Mar 20 12:34:33 2019].166044 msDrawRasterLayerLow(): Unable to access file. Corrupt, empty or missing file '/var/www/apps/ejercito/data/ecwtest/Mosaico_SPOT_2010_Canarias.ecw' for layer 'ecw-test'. `/var/www/apps/ejercito/data/ecwtest/Mosaico_SPOT_2010_Canarias.ecw' not recognized as a supported file format.

[Wed Mar 20 12:34:33 2019].166073 msDrawMap(): Image handling error. Failed to draw layer named 'ecw-test'.

[Wed Mar 20 12:34:33 2019].166125 mapserv request processing time (msLoadMap not incl.): 0.004s

[Wed Mar 20 12:34:33 2019].166142 msFreeMap(): freeing map at 0x5634ec628b60.

--------------------------------------------------------------

**shp2img -m /etc/mapserver/ejercito.map -l cecaf_cnv_1M  -o test.png**

msSmallCalloc(): Out of memory allocating -2732555844 bytes.

----------------------------------------------------------------------------

**gdalinfo /var/www/apps/ejercito/data/ecwtest/Mosaico_SPOT_2010_Canarias.ecw**

Driver: ECW/ERDAS Compressed Wavelets (SDK 3.x)

Files: /var/www/apps/ejercito/data/ecwtest/Mosaico_SPOT_2010_Canarias.ecw

       /var/www/apps/ejercito/data/ecwtest/Mosaico_SPOT_2010_Canarias.ecw.aux.xml

Size is 23262, 9022

Coordinate System is:

PROJCS["NUTM28",

    GEOGCS["WGS 84",

        DATUM["WGS_1984",

            SPHEROID["WGS 84",6378137,298.257223563,

                AUTHORITY["EPSG","7030"]],

            TOWGS84[0,0,0,0,0,0,0],

            AUTHORITY["EPSG","6326"]],

        PRIMEM["Greenwich",0,

            AUTHORITY["EPSG","8901"]],

        UNIT["degree",0.0174532925199433,

            AUTHORITY["EPSG","9108"]],

        AXIS["Lat",NORTH],

        AXIS["Long",EAST],

        AUTHORITY["EPSG","4326"]],

    PROJECTION["Transverse_Mercator"],

    PARAMETER["latitude_of_origin",0],

    PARAMETER["central_meridian",-15],

    PARAMETER["scale_factor",0.9996],

    PARAMETER["false_easting",500000],

    PARAMETER["false_northing",0],

    UNIT["Meter",1]]

Origin = (188288.698917730507674,3241075.270048933103681)

Pixel Size = (20.000000000000000,-20.000000000000000)

Metadata:

  COLORSPACE=RGB

  COMPRESSION_RATE_TARGET=1

  VERSION=2

Corner Coordinates:

Upper Left  (  188288.699, 3241075.270)

Lower Left  (  188288.699, 3060635.270)

Upper Right (  653528.699, 3241075.270)

Lower Right (  653528.699, 3060635.270)

Center      (  420908.699, 3150855.270)

Band 1 Block=256x256 Type=Byte, ColorInterp=Red

  Description = Red

  Overviews: 11631x4511, 5815x2255, 2907x1127, 1453x563, 726x281, 363x140

Band 2 Block=256x256 Type=Byte, ColorInterp=Green

  Description = Green

  Overviews: 11631x4511, 5815x2255, 2907x1127, 1453x563, 726x281, 363x140

Band 3 Block=256x256 Type=Byte, ColorInterp=Blue

  Description = Blue

  Overviews: 11631x4511, 5815x2255, 2907x1127, 1453x563, 726x281, 363x140

---------------------------------------------------------------------------------------

**mapserv -v**

MapServer version 7.0.4 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

----------------------------------------------------------------------------------------

**gdalinfo --version**

GDAL 2.3.3, released 2018/12/14

------------------------------------------------

**libecwj2-3.3**

--------------------------------------

_______________________________________________
mapserver-users mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapserver-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.