[GRASS-user] GRASS window timing question

Markus Neteler neteler at osgeo.org
Wed Aug 27 14:13:21 PDT 2014


Hi Zoltan,

On Wed, Aug 27, 2014 at 10:42 PM, Zoltan <zoltan at sonic.net> wrote:
> Hi,
>
> I'm new to GRASS and am running on a 64-bit Windows-7 OS. The app is working
> quite well for me overall but I'm having one issue with timing on the GRASS
> window. I kind of suspect there's no fix for this but I'll ask anyway.
>
> I am launching GRASS from a batch file with the GRASS_BATCH_JOB variable
> set. The batch job just calls g.parser on a text file, like this:
>
>     "C:\ProgramFiles\GRASS\bin\g.parser.exe" cmds.txt
>
> The cmds.txt file looks roughly like this:
>
>     g.region ... parms ...
>     d.mon start=wx0 width=1700 height=1000

... here you (still) need a "sleep" command.
We need to implement a queuing mechanism for the command line monitor.

>     ...some v.proj commands...
>     d.vect map=...one of the maps...
>     d.vect ...a few more d.vect commands...
>
> The problem I'm having is this: If the actual display window is not visible
> when the d.vect commands run, the graphics fail to draw properly and I also
> get errors in some cases.

Yes, because the current implementation of wx0 has a kind of race condition.

We hope that we can address this soon, will keep you posted. It also
affects us :-)

Markus


More information about the grass-user mailing list