[GRASS-dev] [GRASS GIS] #2758: i.gensigset error G_calloc: unable to allocate 115671215 * 8 bytes of memory at lib/imagery/sigset.c:24

#2758: i.gensigset error G_calloc: unable to allocate 115671215 * 8 bytes of
memory at lib/imagery/sigset.c:24
--------------------------+-------------------------
Reporter: shobhitpipil | Owner: grass-dev@…
     Type: defect | Status: new
Priority: critical | Milestone: 7.1.0
Component: Raster | Version: 7.0.1
Keywords: | CPU: x86-64
Platform: MSWindows 8 |
--------------------------+-------------------------
G_calloc: unable to allocate 115671215 * 8 bytes of memory at
lib/imagery/sigset.c:24

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2758&gt;
GRASS GIS <https://grass.osgeo.org>

#2758: i.gensigset error G_calloc: unable to allocate 115671215 * 8 bytes of
memory at lib/imagery/sigset.c:24
---------------------------+-------------------------
  Reporter: shobhitpipil | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: critical | Milestone: 7.1.0
Component: Raster | Version: 7.0.1
Resolution: | Keywords:
       CPU: x86-64 | Platform: MSWindows 8
---------------------------+-------------------------
Changes (by shobhitpipil):

* Attachment "Picture1.png" added.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2758&gt;
GRASS GIS <https://grass.osgeo.org>

#2758: i.gensigset error G_calloc: unable to allocate 115671215 * 8 bytes of
memory at lib/imagery/sigset.c:24
---------------------------+-------------------------
  Reporter: shobhitpipil | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: critical | Milestone: 7.1.0
Component: Raster | Version: 7.0.1
Resolution: | Keywords:
       CPU: x86-64 | Platform: MSWindows 8
---------------------------+-------------------------

Comment (by shobhitpipil):

g.region -p
projection: 1 (UTM)
zone: 44
datum: wgs84
ellipsoid: wgs84
north: 2923178.04346713
south: 2890384.89306765
west: 426739.68101223
east: 500845.08464976
nsres: 2.91650217
ewres: 2.91650217
rows: 11244
cols: 25409
cells: 285698796

I am using windows 10 OS with 3.40 GHz 8 core processor and 16 GB RAM

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2758#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>

#2758: i.gensigset error G_calloc: unable to allocate 115671215 * 8 bytes of
memory at lib/imagery/sigset.c:24
---------------------------+-------------------------
  Reporter: shobhitpipil | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: critical | Milestone: 7.1.0
Component: Raster | Version: 7.0.1
Resolution: | Keywords:
       CPU: x86-64 | Platform: MSWindows 8
---------------------------+-------------------------

Comment (by neteler):

Your resolution shows 2.91650217m - is this intentional? Should it be
perhaps 3m or even lower?

Prior to i.gensigset it is recommended to align the computational region
to the input map:

g.region raster=inputmap -p

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2758#comment:2&gt;
GRASS GIS <https://grass.osgeo.org>

#2758: i.gensigset error G_calloc: unable to allocate 115671215 * 8 bytes of
memory at lib/imagery/sigset.c:24
---------------------------+-------------------------
  Reporter: shobhitpipil | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: critical | Milestone: 7.2.0
Component: Raster | Version: 7.0.1
Resolution: | Keywords:
       CPU: x86-64 | Platform: MSWindows 8
---------------------------+-------------------------

Comment (by martinl):

What is status of this ticket?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2758#comment:4&gt;
GRASS GIS <https://grass.osgeo.org>

#2758: i.gensigset error G_calloc: unable to allocate 115671215 * 8 bytes of
memory at lib/imagery/sigset.c:24
---------------------------+-------------------------
  Reporter: shobhitpipil | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: critical | Milestone: 7.2.0
Component: Raster | Version: 7.0.1
Resolution: invalid | Keywords:
       CPU: x86-64 | Platform: MSWindows 8
---------------------------+-------------------------
Changes (by marisn):

* status: new => closed
* resolution: => invalid

Comment:

A quick calculation on a napkin indicates computational region causing
memory demand larger than Windows limits. There's nothing we can do except
rewrite of all signature generation code to not keep all data in memory
(any volunteers?). As this option is not requested in this ticket, I'm
closing it.

Original reporter - reduce size of your computational region and try
again. Second option - compile a 64bit version of GRASS GIS and run it on
a 64bit Windows. More information on memory limits on Windows:
https://msdn.microsoft.com/en-us/library/aa366778.aspx

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2758#comment:5&gt;
GRASS GIS <https://grass.osgeo.org>