Details Ticket 2668


Comment | Reply | Take | Open


Serial Number 2668
Subject r.statistics G_calloc: out of memory
Area bug
Queue grass
Requestors tutey@o2.pl
Owner none
Status resolved
Last User Contact Mon Mar 5 20:56:41 2007 (1 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Mon Mar 5 20:56:41 2007 (1 yr ago)
Created Tue Oct 19 22:04:42 2004 (4 yr ago)

Transaction History Ticket 2668


Tue, Oct 19 2004 22:04:42    Request created by guest  
Subject: r.statistics G_calloc: out of memory

Platform: GNU/Linux/i386
grass obtained from: Mirror of Trento site
grass binary for platform: Compiled from Sources
GRASS Version: grass53_exp_2004_08_21

r.statistics base=topo_09780646 cover=topo_09780648 method=sum output=sum
r.stats:  100%
ERROR: G_calloc: out of memory

the region and rasters info (negative values because it's a S-JTSK Krovak East
North projection, epsg <102067>):

GRASS:~ > g.region -p
projection: 0 (x,y)
zone:       0
north:      -977855.55000002
south:      -980104.72000002
west:       -650068.55000007
east:       -645725.15000007
nsres:      1.27
ewres:      1.27
rows:       1771
cols:       3420

GRASS:~ > r.info topo_09780648
 +----------------------------------------------------------------------------+
| Layer:    topo_09780648                  Date: Mon Oct 18 21:00:30 2004   
|
 | Mapset:   PERMANENT                      Login of Creator: ziutek        
|
 | Location: krnap_sjtsk                                                    
|
 | DataBase: /home/grassdata                                                
|
 | Title:     ( topo_09780648 )                                             
|
 |----------------------------------------------------------------------------|
|                                                                           
|
 |   Type of Map:  raster              Number of Categories: 5              
|
 |   Data Type:    CELL                                                     
|
 |   Rows:         1575                                                     
|
 |   Columns:      1575                                                     
|
 |   Total Cells:  2480625                                                  
|
 |        Projection: x,y (zone 0)                                          
|
 |            N: -977999.365    S: -979999.615   Res:  1.27                 
|
 |            E: -648000.385    W: -650000.635   Res:  1.27                 
|
 |   Range of data:    min =  0 max = 5                                     
|
 |                                                                          
|
 |   Data Source:                                                           
|
 |                                                                          
|
 |                                                                          
|
 |                                                                          
|
 |   Data Description:                                                      
|
 |    generated by r.in.gdal                                                
|
 |                                                                          
|
 |                                                                          
|
 +----------------------------------------------------------------------------+
GRASS:~ > r.info topo_09780646
 +----------------------------------------------------------------------------+
| Layer:    topo_09780646                  Date: Mon Oct 18 20:59:46 2004   
|
 | Mapset:   PERMANENT                      Login of Creator: ziutek        
|
 | Location: krnap_sjtsk                                                    
|
 | DataBase: /home/grassdata                                                
|
 | Title:     ( topo_09780646 )                                             
|
 |----------------------------------------------------------------------------|
|                                                                           
|
 |   Type of Map:  raster              Number of Categories: 5              
|
 |   Data Type:    CELL                                                     
|
 |   Rows:         1575                                                     
|
 |   Columns:      1575                                                     
|
 |   Total Cells:  2480625                                                  
|
 |        Projection: x,y (zone 0)                                          
|
 |            N: -977999.365    S: -979999.615   Res:  1.27                 
|
 |            E: -646000.385    W: -648000.635   Res:  1.27                 
|
 |   Range of data:    min =  0 max = 5                                     
|
 |                                                                          
|
 |   Data Source:                                                           
|
 |                                                                          
|
 |                                                                          
|
 |                                                                          
|
 |   Data Description:                                                      
|
 |    generated by r.in.gdal                                                
|
 |                                                                          
|
 |                                                                          
|
 +----------------------------------------------------------------------------
Maciek Sieczka
Fri, Sep 2 2005 18:12:10    User changed to werchowyna@epf.pl by msieczka  
Tue, Nov 8 2005 08:51:09    Mail sent by mneteler  
Hi,

today a bug in r.stats was fixed which is used in r.stats.
Please test again after updating from CVS and report.

Markus
Wed, Jul 26 2006 14:18:39    User changed to tutey@o2.pl by msieczka  
Mon, Mar 5 2007 20:56:41    Status changed to resolved by msieczka  
Mon, Mar 5 2007 20:56:41    Mail sent by msieczka  
mneteler wrote (Tue, Nov 8 2005 08:51:09):

> Hi,
> 
> today a bug in r.stats was fixed which is used in r.stats.
> Please test again after updating from CVS and report.

As to this grand grand bug report, all seems fine in current 6.3 CVS. I don't
have exactly this data but I created 2 new CELL rasters of the same extents
and res as reported, specified the same region and r.statitistics does not
segfault. Cool.

Maciek
Comment | Reply | Take | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request