[GRASS-user] r.terraflow problem

Hi
I’m trying to run r.terraflow with with a SRTMGL1 dem but I am getting a message that I can’t decipher.
What am I doing wrong?
Thanks for the help
Cheers
F

(Thu Apr 13 10:40:03 2017)
r.terraflow elevation=dem_pt@fct filled=filled direction=direc swatershed=swater accumulation=accum tci=tci
Memory manager registering memory in MM_IGNORE_MEMORY_EXCEEDED mode.
STREAM temporary files in
/media/fd/Dados/FilipeTrabalho/FCT/FCT/fct/.tmp/fd-
XPS/16123.0 (THESE INTERMEDIATE STREAMS WILL NOT BE DELETED
IN CASE OF ABNORMAL TERMINATION OF THE PROGRAM. TO SAVE
SPACE PLEASE DELETE THESE FILES MANUALLY!)
ami_single_temp_name: G_mkstemp() failed: : No such file or
directory
r.terraflow: ami_stream.cpp:93: int
ami_single_temp_name(const string&, char*): Assertion `0’
failed.
(Thu Apr 13 10:40:03 2017) Command finished (0 sec)

Filipe Dias-2 wrote

Hi
I'm trying to run r.terraflow with with a SRTMGL1 dem but I am getting a
message that I can't decipher.
What am I doing wrong?
Thanks for the help
Cheers
F

(Thu Apr 13 10:40:03 2017)

r.terraflow elevation=dem_pt@fct filled=filled direction=direc
swatershed=swater accumulation=accum tci=tci
Memory manager registering memory in MM_IGNORE_MEMORY_EXCEEDED mode.
STREAM temporary files in
/media/fd/Dados/FilipeTrabalho/FCT/FCT/fct/.tmp/fd-
XPS/16123.0 (THESE INTERMEDIATE STREAMS WILL NOT BE DELETED
IN CASE OF ABNORMAL TERMINATION OF THE PROGRAM. TO SAVE
SPACE PLEASE DELETE THESE FILES MANUALLY!)
ami_single_temp_name: G_mkstemp() failed: : No such file or
directory
r.terraflow: ami_stream.cpp:93: int
ami_single_temp_name(const string&, char*): Assertion `0'
failed.
(Thu Apr 13 10:40:03 2017) Command finished (0 sec)

the error comes from:

https://trac.osgeo.org/grass/browser/grass/trunk/lib/iostream/ami_stream.cpp#L71

maybe some disk space issue?

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/r-terraflow-problem-tp5317169p5317174.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Hi,
I don’t think so. The Location/Mapset are located in a disk with 59 GB of free space. The DEM has 144 MB and corresponds to Portugal’s territory.
Is there any other possible cause?

···

On Thu, Apr 13, 2017 at 11:08 AM, Helmut Kudrnovsky <hellik@web.de> wrote:

Filipe Dias-2 wrote

Hi
I’m trying to run r.terraflow with with a SRTMGL1 dem but I am getting a
message that I can’t decipher.
What am I doing wrong?
Thanks for the help
Cheers
F

(Thu Apr 13 10:40:03 2017)

r.terraflow elevation=dem_pt@fct filled=filled direction=direc
swatershed=swater accumulation=accum tci=tci
Memory manager registering memory in MM_IGNORE_MEMORY_EXCEEDED mode.
STREAM temporary files in
/media/fd/Dados/FilipeTrabalho/FCT/FCT/fct/.tmp/fd-
XPS/16123.0 (THESE INTERMEDIATE STREAMS WILL NOT BE DELETED
IN CASE OF ABNORMAL TERMINATION OF THE PROGRAM. TO SAVE
SPACE PLEASE DELETE THESE FILES MANUALLY!)
ami_single_temp_name: G_mkstemp() failed: : No such file or
directory
r.terraflow: ami_stream.cpp:93: int
ami_single_temp_name(const string&, char*): Assertion `0’
failed.
(Thu Apr 13 10:40:03 2017) Command finished (0 sec)

the error comes from:

https://trac.osgeo.org/grass/browser/grass/trunk/lib/iostream/ami_stream.cpp#L71

maybe some disk space issue?


best regards
Helmut

View this message in context: http://osgeo-org.1560.x6.nabble.com/r-terraflow-problem-tp5317169p5317174.html
Sent from the Grass - Users mailing list archive at Nabble.com.


grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Le Thu, 13 Apr 2017 11:18:37 +0100,
Filipe Dias <filipesdias@gmail.com> a écrit :

Hi,
I don't think so. The Location/Mapset are located in a disk with 59
GB of free space. The DEM has 144 MB and corresponds to Portugal's
territory. Is there any other possible cause?

It seems the module cannot find the temporary directory::

/media/fd/Dados/FilipeTrabalho/FCT/FCT/fct/.tmp/fd-XPS/16123.0

Is the path correct ?

Moritz

On Thu, Apr 13, 2017 at 11:08 AM, Helmut Kudrnovsky <hellik@web.de>
wrote:

> Filipe Dias-2 wrote
> > Hi
> > I'm trying to run r.terraflow with with a SRTMGL1 dem but I am
> > getting a message that I can't decipher.
> > What am I doing wrong?
> > Thanks for the help
> > Cheers
> > F
> >
> >
> > (Thu Apr 13 10:40:03 2017)
> >
> > r.terraflow elevation=dem_pt@fct filled=filled direction=direc
> > swatershed=swater accumulation=accum tci=tci
> > Memory manager registering memory in MM_IGNORE_MEMORY_EXCEEDED
> > mode. STREAM temporary files in
> > /media/fd/Dados/FilipeTrabalho/FCT/FCT/fct/.tmp/fd-
> > XPS/16123.0 (THESE INTERMEDIATE STREAMS WILL NOT BE DELETED
> > IN CASE OF ABNORMAL TERMINATION OF THE PROGRAM. TO SAVE
> > SPACE PLEASE DELETE THESE FILES MANUALLY!)
> > ami_single_temp_name: G_mkstemp() failed: : No such file or
> > directory
> > r.terraflow: ami_stream.cpp:93: int
> > ami_single_temp_name(const string&, char*): Assertion `0'
> > failed.
> > (Thu Apr 13 10:40:03 2017) Command finished (0 sec)
>
> the error comes from:
>
> https://trac.osgeo.org/grass/browser/grass/trunk/lib/
> iostream/ami_stream.cpp#L71
>
> maybe some disk space issue?
>
>
>
> -----
> best regards
> Helmut
> --
> View this message in context: http://osgeo-org.1560.x6.
> nabble.com/r-terraflow-problem-tp5317169p5317174.html
> Sent from the Grass - Users mailing list archive at Nabble.com.
> _______________________________________________
> grass-user mailing list
> grass-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user

That directory does not exist. Directing the temporary files to an existing directory allows the tools to run: “directory=/home/fd/Desktop/tmp”.

I am guessing this is a bug? By the default the tool should send the temporary files to /tmp or prompt the user to manually insert a path (currently “directory” is not mandatory)

Thanks a lot for the help

Cheers

···

On Thu, Apr 13, 2017 at 12:33 PM, Moritz Lennert <mlennert@club.worldonline.be> wrote:

Le Thu, 13 Apr 2017 11:18:37 +0100,
Filipe Dias <filipesdias@gmail.com> a écrit :

Hi,
I don’t think so. The Location/Mapset are located in a disk with 59
GB of free space. The DEM has 144 MB and corresponds to Portugal’s
territory. Is there any other possible cause?

It seems the module cannot find the temporary directory::

/media/fd/Dados/FilipeTrabalho/FCT/FCT/fct/.tmp/fd-XPS/16123.0

Is the path correct ?

Moritz

On Thu, Apr 13, 2017 at 11:08 AM, Helmut Kudrnovsky <hellik@web.de>
wrote:

Filipe Dias-2 wrote

Hi
I’m trying to run r.terraflow with with a SRTMGL1 dem but I am
getting a message that I can’t decipher.
What am I doing wrong?
Thanks for the help
Cheers
F

(Thu Apr 13 10:40:03 2017)

r.terraflow elevation=dem_pt@fct filled=filled direction=direc
swatershed=swater accumulation=accum tci=tci
Memory manager registering memory in MM_IGNORE_MEMORY_EXCEEDED
mode. STREAM temporary files in
/media/fd/Dados/FilipeTrabalho/FCT/FCT/fct/.tmp/fd-
XPS/16123.0 (THESE INTERMEDIATE STREAMS WILL NOT BE DELETED
IN CASE OF ABNORMAL TERMINATION OF THE PROGRAM. TO SAVE
SPACE PLEASE DELETE THESE FILES MANUALLY!)
ami_single_temp_name: G_mkstemp() failed: : No such file or
directory
r.terraflow: ami_stream.cpp:93: int
ami_single_temp_name(const string&, char*): Assertion `0’
failed.
(Thu Apr 13 10:40:03 2017) Command finished (0 sec)

the error comes from:

https://trac.osgeo.org/grass/browser/grass/trunk/lib/
iostream/ami_stream.cpp#L71

maybe some disk space issue?


best regards
Helmut

View this message in context: http://osgeo-org.1560.x6.
nabble.com/r-terraflow-problem-tp5317169p5317174.html
Sent from the Grass - Users mailing list archive at Nabble.com.


grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

On 13/04/17 17:05, Filipe Dias wrote:

That directory does not exist. Directing the temporary files to an
existing directory allows the tools to run:
"directory=/home/fd/Desktop/tmp".

I am guessing this is a bug? By the default the tool should send the
temporary files to /tmp or prompt the user to manually insert a path
(currently "directory" is not mandatory)

By default, the module creates creates a directory using G_tempfile() which creates a temp path in the current mapset directory and G_mkdir() which creates a directory using that path.

Looking at you path (/media/fd/Dados...) it looks like you're using an external disk ? Maybe the mount options for this disque do not allow the creation of a directory with this name ?

Try launching 'mkdir /media/fd/Dados/FilipeTrabalho/FCT/FCT/fct/.tmp/fd-XPS/16123.0' and see what happens?

Moritz

Thanks a lot for the help

Cheers

On Thu, Apr 13, 2017 at 12:33 PM, Moritz Lennert
<mlennert@club.worldonline.be <mailto:mlennert@club.worldonline.be>> wrote:

    Le Thu, 13 Apr 2017 11:18:37 +0100,
    Filipe Dias <filipesdias@gmail.com <mailto:filipesdias@gmail.com>> a
    écrit :

    > Hi,
    > I don't think so. The Location/Mapset are located in a disk with 59
    > GB of free space. The DEM has 144 MB and corresponds to Portugal's
    > territory. Is there any other possible cause?

    It seems the module cannot find the temporary directory::

    /media/fd/Dados/FilipeTrabalho/FCT/FCT/fct/.tmp/fd-XPS/16123.0

    Is the path correct ?

    Moritz

    >
    > On Thu, Apr 13, 2017 at 11:08 AM, Helmut Kudrnovsky <hellik@web.de
    <mailto:hellik@web.de>>
    > wrote:
    >
    > > Filipe Dias-2 wrote
    > > > Hi
    > > > I'm trying to run r.terraflow with with a SRTMGL1 dem but I am
    > > > getting a message that I can't decipher.
    > > > What am I doing wrong?
    > > > Thanks for the help
    > > > Cheers
    > > > F
    > > >
    > > > (Thu Apr 13 10:40:03 2017)
    > > >
    > > > r.terraflow elevation=dem_pt@fct filled=filled direction=direc
    > > > swatershed=swater accumulation=accum tci=tci
    > > > Memory manager registering memory in MM_IGNORE_MEMORY_EXCEEDED
    > > > mode. STREAM temporary files in
    > > > /media/fd/Dados/FilipeTrabalho/FCT/FCT/fct/.tmp/fd-
    > > > XPS/16123.0 (THESE INTERMEDIATE STREAMS WILL NOT BE DELETED
    > > > IN CASE OF ABNORMAL TERMINATION OF THE PROGRAM. TO SAVE
    > > > SPACE PLEASE DELETE THESE FILES MANUALLY!)
    > > > ami_single_temp_name: G_mkstemp() failed: : No such file or
    > > > directory
    > > > r.terraflow: ami_stream.cpp:93: int
    > > > ami_single_temp_name(const string&, char*): Assertion `0'
    > > > failed.
    > > > (Thu Apr 13 10:40:03 2017) Command finished (0 sec)
    > >
    > > the error comes from:
    > >
    > > https://trac.osgeo.org/grass/browser/grass/trunk/lib/
    <https://trac.osgeo.org/grass/browser/grass/trunk/lib/&gt;
    > > iostream/ami_stream.cpp#L71
    > >
    > > maybe some disk space issue?
    > >
    > > -----
    > > best regards
    > > Helmut
    > > --
    > > View this message in context: http://osgeo-org.1560.x6.
    > > nabble.com/r-terraflow-problem-tp5317169p5317174.html
    <http://nabble.com/r-terraflow-problem-tp5317169p5317174.html&gt;
    > > Sent from the Grass - Users mailing list archive at Nabble.com.
    > > _______________________________________________
    > > grass-user mailing list
    > > grass-user@lists.osgeo.org <mailto:grass-user@lists.osgeo.org>
    > > https://lists.osgeo.org/mailman/listinfo/grass-user
    <https://lists.osgeo.org/mailman/listinfo/grass-user&gt;

fd@fd-XPS:~$ mkdir /media/fd/Dados/FilipeTrabalho/FCT/FCT/fct/.tmp/fd-XPS/16123.0
mkdir: cannot create directory ‘/media/fd/Dados/FilipeTrabalho/FCT/FCT/fct/.tmp/fd-XPS/16123.0’: No such file or directory

yes, that’s it. Thanks for the help

Cheers
F

···

On Thu, Apr 13, 2017 at 4:37 PM, Moritz Lennert <mlennert@club.worldonline.be> wrote:

On 13/04/17 17:05, Filipe Dias wrote:

That directory does not exist. Directing the temporary files to an
existing directory allows the tools to run:
“directory=/home/fd/Desktop/tmp”.

I am guessing this is a bug? By the default the tool should send the
temporary files to /tmp or prompt the user to manually insert a path
(currently “directory” is not mandatory)

By default, the module creates creates a directory using G_tempfile() which creates a temp path in the current mapset directory and G_mkdir() which creates a directory using that path.

Looking at you path (/media/fd/Dados…) it looks like you’re using an external disk ? Maybe the mount options for this disque do not allow the creation of a directory with this name ?

Try launching ‘mkdir /media/fd/Dados/FilipeTrabalho/FCT/FCT/fct/.tmp/fd-XPS/16123.0’ and see what happens?

Moritz

Thanks a lot for the help

Cheers

On Thu, Apr 13, 2017 at 12:33 PM, Moritz Lennert
<mlennert@club.worldonline.be mailto:[mlennert@club.worldonline.be](mailto:mlennert@club.worldonline.be)> wrote:

Le Thu, 13 Apr 2017 11:18:37 +0100,
Filipe Dias <filipesdias@gmail.com mailto:[filipesdias@gmail.com](mailto:filipesdias@gmail.com)> a
écrit :

Hi,
I don’t think so. The Location/Mapset are located in a disk with 59
GB of free space. The DEM has 144 MB and corresponds to Portugal’s
territory. Is there any other possible cause?

It seems the module cannot find the temporary directory::

/media/fd/Dados/FilipeTrabalho/FCT/FCT/fct/.tmp/fd-XPS/16123.0

Is the path correct ?

Moritz

On Thu, Apr 13, 2017 at 11:08 AM, Helmut Kudrnovsky <hellik@web.de
mailto:[hellik@web.de](mailto:hellik@web.de)>

wrote:

Filipe Dias-2 wrote

Hi
I’m trying to run r.terraflow with with a SRTMGL1 dem but I am
getting a message that I can’t decipher.
What am I doing wrong?
Thanks for the help
Cheers
F

(Thu Apr 13 10:40:03 2017)

r.terraflow elevation=dem_pt@fct filled=filled direction=direc
swatershed=swater accumulation=accum tci=tci
Memory manager registering memory in MM_IGNORE_MEMORY_EXCEEDED
mode. STREAM temporary files in
/media/fd/Dados/FilipeTrabalho/FCT/FCT/fct/.tmp/fd-
XPS/16123.0 (THESE INTERMEDIATE STREAMS WILL NOT BE DELETED
IN CASE OF ABNORMAL TERMINATION OF THE PROGRAM. TO SAVE
SPACE PLEASE DELETE THESE FILES MANUALLY!)
ami_single_temp_name: G_mkstemp() failed: : No such file or
directory
r.terraflow: ami_stream.cpp:93: int
ami_single_temp_name(const string&, char*): Assertion `0’
failed.
(Thu Apr 13 10:40:03 2017) Command finished (0 sec)

the error comes from:

https://trac.osgeo.org/grass/browser/grass/trunk/lib/
<https://trac.osgeo.org/grass/browser/grass/trunk/lib/>
iostream/ami_stream.cpp#L71

maybe some disk space issue?


best regards
Helmut

View this message in context: http://osgeo-org.1560.x6.
nabble.com/r-terraflow-problem-tp5317169p5317174.html

<http://nabble.com/r-terraflow-problem-tp5317169p5317174.html>

Sent from the Grass - Users mailing list archive at Nabble.com.


grass-user mailing list
grass-user@lists.osgeo.org mailto:[grass-user@lists.osgeo.org](mailto:grass-user@lists.osgeo.org)
https://lists.osgeo.org/mailman/listinfo/grass-user
<https://lists.osgeo.org/mailman/listinfo/grass-user>

On Thu, Apr 13, 2017 at 5:37 PM, Moritz Lennert
<mlennert@club.worldonline.be> wrote:

On 13/04/17 17:05, Filipe Dias wrote:

That directory does not exist. Directing the temporary files to an
existing directory allows the tools to run:
"directory=/home/fd/Desktop/tmp".

I am guessing this is a bug? By the default the tool should send the
temporary files to /tmp or prompt the user to manually insert a path
(currently "directory" is not mandatory)

By default, the module creates creates a directory using G_tempfile() which
creates a temp path in the current mapset directory and G_mkdir() which
creates a directory using that path.

BTW: only for vector maps the TMPDIR can be elsewhere, not for raster
so far. See

https://trac.osgeo.org/grass/ticket/2349#comment:36

(and related grass-dev discussion)

Markus

Le Thu, 13 Apr 2017 21:57:21 +0200,
Markus Neteler <neteler@osgeo.org> a écrit :

On Thu, Apr 13, 2017 at 5:37 PM, Moritz Lennert
<mlennert@club.worldonline.be> wrote:
[...]
[...]
[...]

BTW: only for vector maps the TMPDIR can be elsewhere, not for raster
so far.

r.terraflow allows setting a tempdir as a module parameter.

Moritz

On Apr 14, 2017 12:33 PM, “Moritz Lennert” <mlennert@club.worldonline.be> wrote:

Le Thu, 13 Apr 2017 21:57:21 +0200,
Markus Neteler <neteler@osgeo.org> a écrit :

On Thu, Apr 13, 2017 at 5:37 PM, Moritz Lennert
<mlennert@club.worldonline.be> wrote:

r.terraflow allows setting a tempdir as a module parameter.

I’d appreciate to see that generally supported through an environment variable. Maybe we should revisit that for version 7.4.

Markus