[GRASS-user] r.terraflow error for ASTER DEM.

Markus Neteler neteler at osgeo.org
Sun Jul 5 04:34:07 EDT 2009


On Sun, Jul 5, 2009 at 10:16 AM, Markus Neteler<neteler at osgeo.org> wrote:
> On Sun, Jul 5, 2009 at 8:07 AM, Milton Cezar Ribeiro wrote:
...
>> STREAM temporary files in /var/tmp  (THESE INTERMEDIATE STREAMS WILL NOT BE
>> DELETED IN CASE OF ABNORMAL TERMINATION OF THE PROGRAM. TO SAVE SPACE PLEASE
>> DELETE THESE FILES MANUALLY!)
>> file stats.out exists - renaming.
>> ami_single_temp_name: mkstemp failed: : No such file or directory
>> Assertion failed: 0, file ami_stream.cc, line 75
>> This application has requested the Runtime to terminate it in an unusual
>> way.
>> Please contact the application's support team for more information.
>> By the way, I am running grass 64R4 under Vista 64 bits.

Glynn:
>> 1. The error message is inaccurate; it doesn't actually call mkstemp()
>> on Windows, but mktemp().

I have submitted a patch, now the error is reported correctly
on Windows.

Glynn:
>> 2. The directory used for temporary files is controlled by the
>> STREAM_DIR= option (renamed to stream_dir= in 7.0). /var/tmp is just
>> the default setting.

@Milton: please try this parameter to define a different directory.

Glynn:
>> 3. The default value of /var/tmp is inappropriate for Windows. It
>> should probably use the TMP or TEMP environment variables. There
>> probably won't be a specific directory which will be writable by all
>> users.

Ok, but the current default fails for sure. Personally I still think that
the current mapset is a more appropriate default.
We should change on Windows at least to a "more likely" directory.
Which?

Markus


More information about the grass-user mailing list