[GRASS-user] i.pr memory error

hello,

I compiled i.pr from svn and when executing this command:

i.pr.training map=in_elev,in_land vis_map=in_elev training=ipr_training_test
rows=11 cols=11 class=2
Speicherzugriffsfehler

I get "memory access error".

I had a similar message using g.copy a while ago but it was solved with

make -C general/manage clean
make -C general/manage CFLAGS1='-g'

from the ML.

I did:

make distclean
export CVSROOT=:ext:martin@grasscvs:/grassrepository
export CVS_RSH=ssh
cvs update -dP grass6
cd grass6
sudo ./configure --with-tcltk-includes=/usr/include/tcl8.4 --with-postgres-includes=/usr/include/postgresql --with-gdal=/usr/local/bin/gdal-config --enable-largefile
make
-> errors for i.pr appear
# for i.pr:
make MODULE_TOPDIR=/home/wegmann/software/grass/grass6/
sudo make install

any idea where the error might be? TIA Martin

hi Martin,

I have updated the old GRASS 5 sites API to legacy GRASS 6 sites API for
i.pr.training. Not sure if that helps.
Check that you don't have an empty file ipr_training_test in the current
directory.

If it still fails, please
- post a gdb backtrace
- replicate it with Spearfish or the new North Carolina data set

Markus

Martin Wegmann wrote:

hello,

I compiled i.pr from svn and when executing this command:

i.pr.training map=in_elev,in_land vis_map=in_elev
training=ipr_training_test
rows=11 cols=11 class=2
Speicherzugriffsfehler

I get "memory access error".

I had a similar message using g.copy a while ago but it was solved with

make -C general/manage clean
make -C general/manage CFLAGS1='-g'

from the ML.

I did:

make distclean
export CVSROOT=:ext:martin@grasscvs:/grassrepository
export CVS_RSH=ssh
cvs update -dP grass6
cd grass6
sudo ./configure --with-tcltk-includes=/usr/include/tcl8.4
--with-postgres-includes=/usr/include/postgresql
--with-gdal=/usr/local/bin/gdal-config --enable-largefile
make
-> errors for i.pr appear
# for i.pr:
make MODULE_TOPDIR=/home/wegmann/software/grass/grass6/
sudo make install

any idea where the error might be? TIA Martin

--
View this message in context: http://www.nabble.com/i.pr-memory-error-tf4297941.html#a12235867
Sent from the Grass - Users mailing list archive at Nabble.com.

On Monday 20 August 2007 15:21:25 Markus Neteler wrote:

hi Martin,

I have updated the old GRASS 5 sites API to legacy GRASS 6 sites API for
i.pr.training. Not sure if that helps.
Check that you don't have an empty file ipr_training_test in the current
directory.

that was the problem

If it still fails, please
- post a gdb backtrace
- replicate it with Spearfish or the new North Carolina data set

thanks - it is working now - but I have still to figure out how, because I
don't understand Italian.

cheers, Martin

Martin Wegmann wrote:
> hello,
>
> I compiled i.pr from svn and when executing this command:
>
> i.pr.training map=in_elev,in_land vis_map=in_elev
> training=ipr_training_test
> rows=11 cols=11 class=2
> Speicherzugriffsfehler
>
> I get "memory access error".
>
> I had a similar message using g.copy a while ago but it was solved with
>
> make -C general/manage clean
> make -C general/manage CFLAGS1='-g'
>
> from the ML.
>
> I did:
>
> make distclean
> export CVSROOT=:ext:martin@grasscvs:/grassrepository
> export CVS_RSH=ssh
> cvs update -dP grass6
> cd grass6
> sudo ./configure --with-tcltk-includes=/usr/include/tcl8.4
> --with-postgres-includes=/usr/include/postgresql
> --with-gdal=/usr/local/bin/gdal-config --enable-largefile
> make
> -> errors for i.pr appear
> # for i.pr:
> make MODULE_TOPDIR=/home/wegmann/software/grass/grass6/
> sudo make install
>
> any idea where the error might be? TIA Martin

Martin Wegmann wrote on 08/20/2007 05:24 PM:

On Monday 20 August 2007 15:21:25 Markus Neteler wrote:
  

hi Martin,

I have updated the old GRASS 5 sites API to legacy GRASS 6 sites API for
i.pr.training. Not sure if that helps.
Check that you don't have an empty file ipr_training_test in the current
directory.
    
that was the problem
  

I have added a test to catch this problem (please try).

Markus

------------------
ITC -> dall'1 marzo 2007 Fondazione Bruno Kessler
ITC -> since 1 March 2007 Fondazione Bruno Kessler
------------------

On Wednesday 22 August 2007 18:32:28 Markus Neteler wrote:

Martin Wegmann wrote on 08/20/2007 05:24 PM:
> On Monday 20 August 2007 15:21:25 Markus Neteler wrote:
>> hi Martin,
>>
>> I have updated the old GRASS 5 sites API to legacy GRASS 6 sites API for
>> i.pr.training. Not sure if that helps.
>> Check that you don't have an empty file ipr_training_test in the current
>> directory.
>
> that was the problem

I have added a test to catch this problem (please try).

sorry, took a while to recompile the whole stuff.

Now I get this error message:

first run:
i.pr.training map=in_elev,in_land training=AAA3 rows=11 cols=11 class=1
vis_map=in_elev

second run:
i.pr.training map=in_elev,in_land training=AAA3 rows=11 cols=11 class=1
vis_map=in_elev
ERROR: read_training-> Format not recognized

perhaps 'training="name" cannot be overwritten' otherwise i would thing that
something is wrong with AAA3 format.

BTW doing d.mon x0 and run i.pr.training shows a black monitor with some
explanation but without any raster file - hence vis_map= does not work but
the raster exists. Any idea how to solve that?

TIA, Martin