[GRASS-dev] Are the recursive calls a problem in Grass?

`I always start my application from command line and the a GUI window`
`opens so I can write the input and press the RUN button. But I don't`
`see any kind of message error inside that window.`

`Roberto`

`Roberto,`

`please try it on command line. Maybe then the error becomes`
`visible (GUI may catch it silently).`

`Markus`

`On Tue, May 6, 2008 at 1:59 PM, roberto caselli`
`<roberto.caselli@yahoo.it> wrote:`
`>`
`> Does anyone have an idea or an advice for this problem? GRASS doens't`
` give`
`> me any kind of error message so I don't undestand where the bug is.`
` It just`
`> stop the execution! I hope in your experience.`
`> Regards,`
`> Roberto`
`> roberto caselli <roberto.caselli@yahoo.it> ha scritto:`
`>  Hello everyone,`
`> I have a question for you. I'm working on a module that uses a`
` recursive`
`> call to flow water from a cell to its neighbours. I tested it with`
` some`
`> sample raster map but I didn't see any kind of output on the screen.`
` I saw`
`> GRASS started running (i saw the green dressed runner above on the`
` right)`
`> and then it stopped with the RUN button available to be pushed again.`
`>`
`> I tried to comment the recursive call and everything went well.  (I`
` saw the`
`> partial results of the execution of my module on the screen).`
`>`
`> So I think the problem is due to this recursive call and I'd like to`
` know if`
`> there is a way to fix this problem.`
`>`
`> Regards,`
`>
 Roberto`
`>`
`> ________________________________`
`>  Tante idee per la salvaguardia del pianeta su`
`>  Yahoo! for good.`
`>`
`>`
`>`
`>  ________________________________`
`>  Tante idee per la salvaguardia del pianeta su`
`>  Yahoo! for good.`
`> _______________________________________________`
`>  grass-dev mailing list`
`>  grass-dev@lists.osgeo.org`
`>  [http://lists.osgeo.org/mailman/listinfo/grass-dev](http://lists.osgeo.org/mailman/listinfo/grass-dev)`
`>`

Tante idee per la salvaguardia del pianeta su
Yahoo! for good.

Hello Roberto,

On Dienstag, 6. Mai 2008 20:45:46 roberto caselli wrote:

I always start my application from command line and the a GUI window
opens so I can write the input and press the RUN button. But I don't
see any kind of message error inside that window.

I don't have your module command currently hence an example with a common
command:

if you do e.g.

d.rast

the GUI will pop up, if you do

d.rast --help

you will see syntax

d.rast [-oix] map=string [catlist=cat[-cat][,cat[-cat],...]]
   [vallist=val[-val][,val[-val],...]] [bg=color] [--verbose] [--quiet]

the parts in brackets are optional hence you just have to to enter

d.rast map=your_raster

to plot the raster.

If you do the same with your command you will get an error message (or not).

You can change the message output with

g.gisenv set=debug=5 (not too sure about that)

hope this helps, cheers, Martin

Roberto

Roberto,

please try it on command line. Maybe then the error becomes
visible (GUI may catch it silently).

Markus

On Tue, May 6, 2008 at 1:59 PM, roberto caselli

<roberto.caselli@yahoo.it> wrote:
> Does anyone have an idea or an advice for this problem? GRASS doens't

give

> me any kind of error message so I don't undestand where the bug is.

It just

> stop the execution! I hope in your experience.
> Regards,
> Roberto
> roberto caselli <roberto.caselli@yahoo.it> ha scritto:
> Hello everyone,
> I have a question for you. I'm working on a module that uses a

recursive

> call to flow water from a cell to its neighbours. I tested it with

some

> sample raster map but I didn't see any kind of output on the screen.

I saw

> GRASS started running (i saw the green dressed runner above on the

right)

> and then it stopped with the RUN button available to be pushed again.
>
> I tried to comment the recursive call and everything went well. (I

saw the

> partial results of the execution of my module on the screen).
>
> So I think the problem is due to this recursive call and I'd like to

know if

> there is a way to fix this problem.
>
> Regards,
> Roberto
>
> ________________________________
> Tante idee per la salvaguardia del pianeta su
> Yahoo! for good.
>
>
>
> ________________________________
> Tante idee per la salvaguardia del pianeta su
> Yahoo! for good.
> _______________________________________________
> grass-dev mailing list
> grass-dev@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev

---------------------------------
Tante idee per la salvaguardia del pianeta su
Yahoo! for good.

Thak you very much! Now I can see the message error:
the message is the follow:
Segmentation fault (core dumped)

Martin Wegmann wegmann@biozentrum.uni-wuerzburg.de ha scritto:

Hello Roberto,

On Dienstag, 6. Mai 2008 20:45:46 roberto caselli wrote:

I always start my application from command line and the a GUI window
opens so I can write the input and press the RUN button. But I don’t
see any kind of message error inside that window.

I don’t have your module command currently hence an example with a common
command:

if you do e.g.

d.rast

the GUI will pop up, if you do

d.rast --help

you will see syntax

d.rast [-oix] map=string [catlist=cat[-cat][,cat[-cat],…]]
[vallist=val[-val][,val[-val],…]] [bg=color] [–verbose] [–quiet]

the parts in brackets are optional hence you just have to to enter

d.rast map=your_raster

to plot the raster.

If you do the same with your command you will get an error message (or not).

You can change the message output with

g.gisenv set=debug=5 (not too sure about that)

hope this helps, cheers, Martin

Roberto

Roberto,

please try it on command line. Maybe then the error becomes
visible (GUI may catch it silently).

Markus

On Tue, May 6, 2008 at 1:59 PM, roberto caselli


Do You Yahoo!?
Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi
http://mail.yahoo.it

roberto caselli wrote:

Thak you very much! Now I can see the message error:
the message is the follow:
Segmentation fault (core dumped)

was that with 'g.gisenv set="DEBUG=5"'?
can you try with gdb?

instructions here:
  http://grass.osgeo.org/wiki/GRASS_Debugging

Hamish

      ____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ