Details Ticket 4140


Comment | Reply | Take | Open


Serial Number 4140
Subject Nviz doesn't start either from GUI or command line in 6.1cvs generic binary snapshot
Area grass6
Queue grass
Requestors epatton@nrcan.gc.ca
Owner none
Status resolved
Last User Contact Fri Jun 23 20:39:05 2006 (2 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Fri Jun 23 22:10:46 2006 (2 yr ago)
Created Mon Mar 6 13:08:36 2006 (2 yr ago)

Transaction History Ticket 4140


Mon, Mar 6 2006 13:08:36    Request created by guest  
Subject: Nviz doesn't start either from GUI or command line in 6.1cvs generic
binary snapshot

Platform: GNU/Linux/x86
grass obtained from: Trento Italy site
grass binary for platform: Downloaded precompiled Binaries
GRASS Version: 6.1cvs binary 2006-03-04

Upon typing nviz on command line and selecting an elevation raster in the nviz
GUI, the green status bar builds to 100% but nothing happens afterward. The message
box area of the nviz GUI reads:

Update elev null mask
Loading Data
translating colors from fp

but no other errors are indicated. The exact same behavior is observed if nviz
is run from the display manager GUI.

~ Eric Patton
Mon, Mar 6 2006 15:09:25    Comments added by guest  
I'm experiencing the same thing in cvs binary 2006-03-01. Nviz runs fine in 6.0.2.
Mon, Mar 6 2006 15:19:20    Mail sent by neteler@itc.it  
Return-Path <neteler@itc.it>
Delivered-To grass-bugs@lists.intevation.de
Date Mon, 6 Mar 2006 15:18:49 +0100
From Markus Neteler <neteler@itc.it>
To Request Tracker <grass-bugs@intevation.de>
Cc grass5@grass.itc.it
Subject Re: [GRASS5] [bug #4140] (grass) Nviz doesn't start either from GUI or command line in 6.1cvs generic binary snapshot
Message-ID <20060306141849.GX26756@bartok.itc.it>
Mail-Followup-To Request Tracker <grass-bugs@intevation.de>, grass5@grass.itc.it
References <20060306120836.A910D1006AF@lists.intevation.de>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
In-Reply-To <20060306120836.A910D1006AF@lists.intevation.de>
X-PGP-Key http://www.gdf-hannover.de/neteler/markus_gpgkey.asc
X-PGP-Fingerprint D4D5 2F80 120E AD60 E2F6 2297 21B3 D02B E1E7 E789
User-Agent Mutt/1.5.11
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
On Mon, Mar 06, 2006 at 01:08:36PM +0100, Request Tracker wrote:
> this bug's URL: http://intevation.de/rt/webrt?serial_num=4140
> -------------------------------------------------------------------------
> 
> Subject: Nviz doesn't start either from GUI or command line in 6.1cvs generic
binary snapshot
> 
> Platform: GNU/Linux/x86
> grass obtained from: Trento Italy site
> grass binary for platform: Downloaded precompiled Binaries
> GRASS Version: 6.1cvs binary 2006-03-04
> 
> Upon typing nviz on command line and selecting an elevation raster in the nviz
GUI, the green status bar builds to 100% but nothing happens afterward. The message
box area of the nviz GUI reads:
> 
> Update elev null mask
> Loading Data
> translating colors from fp
> 
> but no other errors are indicated. The exact same behavior is observed if nviz
is run from the display manager GUI.
 
Eric,

can you please post the related
g.region -p
?

(some people tried to load the world at 2cm resolution in the past :-)

Just to be sure, because the numbers of rows/cols matters.
Since "Loading Data" seems to be complete, it could also be a color
table issue (not sure).

Markus


Mon, Mar 6 2006 17:54:33    Mail sent by werchowyna@epf.pl  
Return-Path <werchowyna@epf.pl>
Delivered-To grass-bugs@lists.intevation.de
Date Mon, 6 Mar 2006 17:54:22 +0100
From Maciek Sieczka <werchowyna@epf.pl>
To Markus Neteler <neteler@itc.it>
Cc grass-bugs@intevation.de, grass5@grass.itc.it
Subject Re: [GRASS5] [bug #4140] (grass) Nviz doesn't start either from GUI or command line in 6.1cvs generic binary snapshot
Message-Id <20060306175422.f2c4a9dd.werchowyna@epf.pl>
In-Reply-To <20060306141849.GX26756@bartok.itc.it>
References <20060306120836.A910D1006AF@lists.intevation.de> <20060306141849.GX26756@bartok.itc.it>
X-Mailer Sylpheed version 2.1.1 (GTK+ 2.8.6; i486-pc-linux-gnu)
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
On Mon, 6 Mar 2006 15:18:49 +0100
Markus Neteler <neteler@itc.it> wrote:

> On Mon, Mar 06, 2006 at 01:08:36PM +0100, Request Tracker wrote:
> > this bug's URL: http://intevation.de/rt/webrt?serial_num=4140
> > -------------------------------------------------------------------------
> > 
> > Subject: Nviz doesn't start either from GUI or command line in
> > 6.1cvs generic binary snapshot
> > 
> > Platform: GNU/Linux/x86
> > grass obtained from: Trento Italy site
> > grass binary for platform: Downloaded precompiled Binaries
> > GRASS Version: 6.1cvs binary 2006-03-04
> > 
> > Upon typing nviz on command line and selecting an elevation raster
> > in the nviz GUI, the green status bar builds to 100% but nothing
> > happens afterward. The message box area of the nviz GUI reads:
> > 
> > Update elev null mask
> > Loading Data
> > translating colors from fp
> > 
> > but no other errors are indicated. The exact same behavior is
> > observed if nviz is run from the display manager GUI.
>  
> Eric,
> 
> can you please post the related
> g.region -p
> ?

Also please try running your NVIZ command from the CLI and see what
happens. I just suppose there might be a segfault, which will be not
visible in the GUI output.

Maciek

---------------------
http://www.visanen.pl/  - Zapakujemy wszystko!
Produkcja i dystrybucja torby foliowe, papierowe, reklam?wki, opakowania kartonowe,
ekskluzywne pude?ka


Mon, Mar 6 2006 18:57:30    Mail sent by epatton@nrcan.gc.ca  
Return-Path <epatton@nrcan.gc.ca>
Delivered-To grass-bugs@lists.intevation.de
Message-ID <0E5A77B55A57D511BB3F0002A537C2620641108A@s5-dar-r1.nrn.nrcan.gc.ca>
From "Patton, Eric" <epatton@nrcan.gc.ca>
To 'Markus Neteler via RT ' <grass-bugs@intevation.de>
Subject RE: [bug #4140] (grass) Nviz doesn't start either from GUI or com mand line in 6.1cvs generic binary snapshot
Date Mon, 6 Mar 2006 13:57:26 -0400
MIME-Version 1.0
X-Mailer Internet Mail Service (5.5.2657.72)
X-Envelope-From rt@intevation.de
X-Envelope-To rt@intevation.de
X-Sender rt@intevation.de
Content-Type text/plain; charset="iso-8859-1"
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
Sure, here it is:

GRASS 6.1.cvs (Cheticamp):~ > g.region -p
projection: 1 (UTM)
zone:       20
datum:      ** unknown (default: WGS84) **
ellipsoid:  wgs84
north:      5176119.54768
south:      5166572.33329
west:       628593.997416
east:       652873.00618
nsres:      9.92433928
ewres:      10.10362412
rows:       962
cols:       2403

Nothing overly taxing, it seems.

~ Eric.

========================================


 
Eric,

can you please post the related
g.region -p
?

(some people tried to load the world at 2cm resolution in the past :-)

Just to be sure, because the numbers of rows/cols matters.
Since "Loading Data" seems to be complete, it could also be a color
table issue (not sure).

Markus


Mon, Mar 6 2006 19:06:54    Mail sent by epatton@nrcan.gc.ca  
Return-Path <epatton@nrcan.gc.ca>
Delivered-To grass-bugs@lists.intevation.de
Message-ID <0E5A77B55A57D511BB3F0002A537C2620641108C@s5-dar-r1.nrn.nrcan.gc.ca>
From "Patton, Eric" <epatton@nrcan.gc.ca>
To 'Maciek Sieczka via RT ' <grass-bugs@intevation.de>
Cc "'grass5@grass.itc.it'" <grass5@grass.itc.it>
Subject RE: [bug #4140] (grass) Nviz doesn't start either from GUI or CLI
Date Mon, 6 Mar 2006 14:06:45 -0400
MIME-Version 1.0
X-Mailer Internet Mail Service (5.5.2657.72)
X-Envelope-From rt@intevation.de
X-Envelope-To rt@intevation.de
X-Sender rt@intevation.de
Content-Type text/plain; charset="iso-8859-1"
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
Maciek,

Perhaps there's another clue here; when I run nviz from CLI, I get:

GRASS 6.1.cvs (Cheticamp):~ > nviz elevation=Cheticamp98.5.ave.fill
Loading Data
Update elev null mask
Loading Data
translating colors from fp
*Segmentation fault*
(my emphasis)

Same error occurs with different rasters.

Hmmm....g.region -p gives:

GRASS 6.1.cvs (Cheticamp):~ > g.region -p
projection: 1 (UTM)
zone:       20
datum:      ** unknown (default: WGS84) **
ellipsoid:  wgs84
north:      5176119.54768
south:      5166572.33329
west:       628593.997416
east:       652873.00618
nsres:      9.92433928
ewres:      10.10362412
rows:       962
cols:       2403

Nothing too unusual here?

~ Eric.
 

-----Original Message-----
From: Maciek Sieczka via RT
To: epatton@nrcan.gc.ca
Sent: 3/6/2006 11:54 AM
Subject: [bug #4140] (grass) Nviz doesn't start either from GUI

On Mon, 6 Mar 2006 15:18:49 +0100
Markus Neteler <neteler@itc.it> wrote:

> On Mon, Mar 06, 2006 at 01:08:36PM +0100, Request Tracker wrote:
> > this bug's URL: http://intevation.de/rt/webrt?serial_num=4140
> >
------------------------------------------------------------------------
-
> > 
> > Subject: Nviz doesn't start either from GUI or command line in
> > 6.1cvs generic binary snapshot
> > 
> > Platform: GNU/Linux/x86
> > grass obtained from: Trento Italy site
> > grass binary for platform: Downloaded precompiled Binaries
> > GRASS Version: 6.1cvs binary 2006-03-04
> > 
> > Upon typing nviz on command line and selecting an elevation raster
> > in the nviz GUI, the green status bar builds to 100% but nothing
> > happens afterward. The message box area of the nviz GUI reads:
> > 
> > Update elev null mask
> > Loading Data
> > translating colors from fp
> > 
> > but no other errors are indicated. The exact same behavior is
> > observed if nviz is run from the display manager GUI.
>  
> Eric,
> 
> can you please post the related
> g.region -p
> ?

Also please try running your NVIZ command from the CLI and see what
happens. I just suppose there might be a segfault, which will be not
visible in the GUI output.

Maciek

---------------------


Mon, Mar 6 2006 21:45:22    Mail sent by werchowyna@epf.pl  
Return-Path <werchowyna@epf.pl>
Delivered-To grass-bugs@lists.intevation.de
Date Mon, 6 Mar 2006 21:45:14 +0100
From Maciek Sieczka <werchowyna@epf.pl>
To "Patton, Eric" <epatton@nrcan.gc.ca>
Cc grass-bugs@intevation.de, grass5@grass.itc.it
Subject Re: [GRASS5] RE: [bug #4140] (grass) Nviz doesn't start either from GUI or CLI
Message-Id <20060306214514.15da3b51.werchowyna@epf.pl>
In-Reply-To <0E5A77B55A57D511BB3F0002A537C2620641108C@s5-dar-r1.nrn.nrcan.gc.ca>
References <0E5A77B55A57D511BB3F0002A537C2620641108C@s5-dar-r1.nrn.nrcan.gc.ca>
X-Mailer Sylpheed version 2.1.1 (GTK+ 2.8.6; i486-pc-linux-gnu)
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
On Mon, 6 Mar 2006 14:06:45 -0400
"Patton, Eric" <epatton@nrcan.gc.ca> wrote:

> Maciek,
> 
> Perhaps there's another clue here; when I run nviz from CLI, I get:
> 
> GRASS 6.1.cvs (Cheticamp):~ > nviz elevation=Cheticamp98.5.ave.fill
> Loading Data
> Update elev null mask
> Loading Data
> translating colors from fp
> *Segmentation fault*
> (my emphasis)

A segfault. I suppose devs would not mind it if you could provide a
stacktrace. See here for guiding if you don't mind doing this (for this
purpose, it would be good if your Grass was not built with any
optimisations nor stripping).
http://www.qgis.org/index.php?option=com_content&task=view&id=74&Itemid=58

> Same error occurs with different rasters.
> 
> Hmmm....g.region -p gives:
> 
> GRASS 6.1.cvs (Cheticamp):~ > g.region -p
> projection: 1 (UTM)
> zone:       20
> datum:      ** unknown (default: WGS84) **
> ellipsoid:  wgs84
> north:      5176119.54768
> south:      5166572.33329
> west:       628593.997416
> east:       652873.00618
> nsres:      9.92433928
> ewres:      10.10362412
> rows:       962
> cols:       2403
> 
> Nothing too unusual here?

Right. What if you set your region extent and res to integer values?
Maight be a silly idea, though try it. And what does g.region -3 say?

Maciek


---------------------
http://www.visanen.pl/  - Zapakujemy wszystko!
Produkcja i dystrybucja torby foliowe, papierowe, reklam?wki, opakowania kartonowe,
ekskluzywne pude?ka


Tue, Mar 7 2006 05:04:38    Mail sent by michael.barton@asu.edu  
Return-Path <Michael.Barton@asu.edu>
Delivered-To grass-bugs@lists.intevation.de
Date Mon, 06 Mar 2006 21:04:29 -0700
From Michael Barton <michael.barton@asu.edu>
Subject Re: [GRASS5] [bug #4140] (grass) Nviz doesn't start either from GUI or command line in 6.1cvs generic binary snapshot
In-reply-to <20060306175422.f2c4a9dd.werchowyna@epf.pl>
To Maciek Sieczka <werchowyna@epf.pl>, Markus Neteler <neteler@itc.it>
Cc Paolo Cavallini via RT <grass-bugs@intevation.de>, grass5@grass.itc.it, Isaac Ullah <isaac.ullah@asu.edu>
Message-id <C032545D.9BF3%michael.barton@asu.edu>
MIME-version 1.0
Content-type text/plain; charset=US-ASCII
Content-transfer-encoding 7bit
User-Agent Microsoft-Entourage/11.2.1.051004
Thread-Topic [GRASS5] [bug #4140] (grass) Nviz doesn't start either from GUI or command line in 6.1cvs generic binary snapshot
Thread-Index AcZBnDsqeYVLh62PEdqBpwAKlW/i4A==
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
A research assistant in my lab reported an identical issue and solved it
today with a symlink to a newer version of libtif I believe. I don't KNOW
that this is the problem, but is sounds suspiciously similar. Of course I
can't remember the details of the symlink or which version of libtif. So I'm
copying him here. 

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton



> From: Maciek Sieczka <werchowyna@epf.pl>
> Date: Mon, 6 Mar 2006 17:54:22 +0100
> To: Markus Neteler <neteler@itc.it>
> Cc: <grass-bugs@intevation.de>, <grass5@grass.itc.it>
> Subject: Re: [GRASS5] [bug #4140] (grass) Nviz doesn't start either from GUI
> or command line in 6.1cvs generic binary snapshot
> 
> On Mon, 6 Mar 2006 15:18:49 +0100
> Markus Neteler <neteler@itc.it> wrote:
> 
>> On Mon, Mar 06, 2006 at 01:08:36PM +0100, Request Tracker wrote:
>>> this bug's URL: http://intevation.de/rt/webrt?serial_num=4140
>>> -------------------------------------------------------------------------
>>> 
>>> Subject: Nviz doesn't start either from GUI or command line in
>>> 6.1cvs generic binary snapshot
>>> 
>>> Platform: GNU/Linux/x86
>>> grass obtained from: Trento Italy site
>>> grass binary for platform: Downloaded precompiled Binaries
>>> GRASS Version: 6.1cvs binary 2006-03-04
>>> 
>>> Upon typing nviz on command line and selecting an elevation raster
>>> in the nviz GUI, the green status bar builds to 100% but nothing
>>> happens afterward. The message box area of the nviz GUI reads:
>>> 
>>> Update elev null mask
>>> Loading Data
>>> translating colors from fp
>>> 
>>> but no other errors are indicated. The exact same behavior is
>>> observed if nviz is run from the display manager GUI.
>>  
>> Eric,
>> 
>> can you please post the related
>> g.region -p
>> ?
> 
> Also please try running your NVIZ command from the CLI and see what
> happens. I just suppose there might be a segfault, which will be not
> visible in the GUI output.
> 
> Maciek
> 
> ---------------------
> http://www.visanen.pl/  - Zapakujemy wszystko!
> Produkcja i dystrybucja torby foliowe, papierowe, reklam?wki, opakowania
> kartonowe, ekskluzywne pude?ka
> 
> 


Tue, Mar 7 2006 18:30:11    Mail sent by isaac.ullah@asu.edu  
Return-Path <isaac.ullah@asu.edu>
Delivered-To grass-bugs@lists.intevation.de
Message-ID <440DC321.5050702@asu.edu>
Date Tue, 07 Mar 2006 10:30:09 -0700
From Isaac Ullah <isaac.ullah@asu.edu>
User-Agent Mozilla Thunderbird 1.0.7 (Windows/20050923)
X-Accept-Language en-us, en
MIME-Version 1.0
To Michael Barton <michael.barton@asu.edu>
Cc Maciek Sieczka <werchowyna@epf.pl>, Markus Neteler <neteler@itc.it>, Paolo Cavallini via RT <grass-bugs@intevation.de>, grass5@grass.itc.it
Subject Re: [GRASS5] [bug #4140] (grass) Nviz doesn't start either from GUI or command line in 6.1cvs generic binary snapshot
References <C032545D.9BF3%michael.barton@asu.edu>
In-Reply-To <C032545D.9BF3%michael.barton@asu.edu>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Virus-Scanned by amavisd-new
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
Michael is right, I had a very similar problem, but was able to solve it...

At first I thought the problem was with the new versions of tcl/tk 
(8.4), so I installed tcl/tk 8.3 as per the instructions on the 6.1 cvs 
snapshot install page... However, this did not work... It turns out that 
NVIS looks for "libtiff.so.3" but the latest library is 
"libtiff.so.4"... I just made a symlink to this new libtiff file, and 
called it libtiff.so.3... After running "ldconfig", NVIS started working 
again...

I hope this helps...

Cheers,

Isaac


Michael Barton wrote:

>A research assistant in my lab reported an identical issue and solved it
>today with a symlink to a newer version of libtif I believe. I don't KNOW
>that this is the problem, but is sounds suspiciously similar. Of course I
>can't remember the details of the symlink or which version of libtif. So I'm
>copying him here. 
>
>Michael
>__________________________________________
>Michael Barton, Professor of Anthropology
>School of Human Evolution and Social Change
>Arizona State University
>Tempe, AZ 85287-2402
>
>phone: 480-965-6213
>fax: 480-965-7671
>www: http://www.public.asu.edu/~cmbarton
>
>
>
>  
>
>>From: Maciek Sieczka <werchowyna@epf.pl>
>>Date: Mon, 6 Mar 2006 17:54:22 +0100
>>To: Markus Neteler <neteler@itc.it>
>>Cc: <grass-bugs@intevation.de>, <grass5@grass.itc.it>
>>Subject: Re: [GRASS5] [bug #4140] (grass) Nviz doesn't start either from GUI
>>or command line in 6.1cvs generic binary snapshot
>>
>>On Mon, 6 Mar 2006 15:18:49 +0100
>>Markus Neteler <neteler@itc.it> wrote:
>>
>>    
>>
>>>On Mon, Mar 06, 2006 at 01:08:36PM +0100, Request Tracker wrote:
>>>      
>>>
>>>>this bug's URL: http://intevation.de/rt/webrt?serial_num=4140
>>>>-------------------------------------------------------------------------
>>>>
>>>>Subject: Nviz doesn't start either from GUI or command line in
>>>>6.1cvs generic binary snapshot
>>>>
>>>>Platform: GNU/Linux/x86
>>>>grass obtained from: Trento Italy site
>>>>grass binary for platform: Downloaded precompiled Binaries
>>>>GRASS Version: 6.1cvs binary 2006-03-04
>>>>
>>>>Upon typing nviz on command line and selecting an elevation raster
>>>>in the nviz GUI, the green status bar builds to 100% but nothing
>>>>happens afterward. The message box area of the nviz GUI reads:
>>>>
>>>>Update elev null mask
>>>>Loading Data
>>>>translating colors from fp
>>>>
>>>>but no other errors are indicated. The exact same behavior is
>>>>observed if nviz is run from the display manager GUI.
>>>>        
>>>>
>>> 
>>>Eric,
>>>
>>>can you please post the related
>>>g.region -p
>>>?
>>>      
>>>
>>Also please try running your NVIZ command from the CLI and see what
>>happens. I just suppose there might be a segfault, which will be not
>>visible in the GUI output.
>>
>>Maciek
>>
>>---------------------
>>http://www.visanen.pl/  - Zapakujemy wszystko!
>>Produkcja i dystrybucja torby foliowe, papierowe, reklam?wki, opakowania
>>kartonowe, ekskluzywne pude?ka
>>
>>
>>    
>>
>
>  
>


-- 
___________________________________________________________
-----------------------------------------------------------
Isaac Ullah, M.A.
Ph.D. Student, Archaeology
Graduate Assistant, Mediterranean Landuse Dynamics Project
ASU School of Human Evolution and Social Change
Tempe, AZ  85287-2402
 
isaac.ullah@asu.edu
ullah@archaeologist.com
 
http://www.public.asu.edu/~iullah
 
------------------------------------------------------------
____________________________________________________________


Wed, Mar 8 2006 08:55:49    Mail sent by hamish_nospam@yahoo.com  
Return-Path <hamish_nospam@yahoo.com>
Delivered-To grass-bugs@lists.intevation.de
Date Wed, 8 Mar 2006 20:55:15 +1300
From Hamish <hamish_nospam@yahoo.com>
To Maciek Sieczka <werchowyna@epf.pl>
Cc epatton@nrcan.gc.ca, grass-bugs@intevation.de, grass5@grass.itc.it, glynn@gclements.plus.com
Subject Re: [GRASS5] RE: [bug #4140] (grass) Nviz doesn't start either from GUI or CLI
Message-Id <20060308205515.7b390602.hamish_nospam@yahoo.com>
In-Reply-To <20060306214514.15da3b51.werchowyna@epf.pl>
References <0E5A77B55A57D511BB3F0002A537C2620641108C@s5-dar-r1.nrn.nrcan.gc.ca> <20060306214514.15da3b51.werchowyna@epf.pl>
X-Mailer Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-pc-linux-gnu)
X-Face M<EoB)"*Z~u!,vFhXmw}R_KbdBta*P_=T|rbBL'e1/CQ9;/1g\BU3&!=y8ria$2Uk!HT&BB 8i?|X_+7~1jsy}F~g$2va%3fV`*=L(*cem[@3\yg,G,@rg6/QMJ
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Spam-Status No, hits=-4.0 tagged_above=-999.0 required=3.0 tests=BAYES_00, FORGED_YAHOO_RCVD
X-Spam-Level
> > Perhaps there's another clue here; when I run nviz from CLI, I get:
> > 
> > GRASS 6.1.cvs (Cheticamp):~ > nviz elevation=Cheticamp98.5.ave.fill
> > Loading Data
> > Update elev null mask
> > Loading Data
> > translating colors from fp
> > *Segmentation fault*
> > (my emphasis)
> 
> A segfault. I suppose devs would not mind it if you could provide a
> stacktrace. See here for guiding if you don't mind doing this (for
> this purpose, it would be good if your Grass was not built with any
> optimisations nor stripping).
> http://www.qgis.org/index.php?option=com_content&task=view&id=74&Itemid=58
This is not so easy for NVIZ. Or at least it wasn't -- nviz used to be a
script which called a C binary which ran a hybrid TclTk module. Getting
it to run in the debugger was a real chore of setting up the correct
environment. When this bug first cropped up I spent a fair bit of time
trying to track it down without any luck.

My best guess to the cause was a threading issue somewhere in the code
(debian tcl8.4 uses threading while 8.3 doesn't).  ???

Bob has since changed things a bit and `which nviz` now calls the binary
directly. Maybe it is time to try again....

configure with: 
CFLAGS="-ggdb -Wall" ./configure

.. and recompile using tcl8.4-dev and tk8.4-dev.

I use kdbg as a gdb frontend. Others use ddd, etc

G61 > kdbg `which nviz`

Execution->Arguments
Run with these arguments: elev=elevation

"Program received signal SIGFPE, Arithmetic exception."

Not much use, just tells me it fails somewhere in the Tk_main() call.


Let's try gdb directly:

G61> gdb `which nviz`
GNU gdb 6.3-debian
[...]
This GDB was configured as "i386-linux"...Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run elev=elevation.dem
Starting program: /usr/local/src/grass/grass61/dist.i686-pc-linux-gnu/bin/nviz
elevation.dem
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 7550)]
[New Thread 32769 (LWP 7551)]
[New Thread 16386 (LWP 7552)]
Loading Data
Update elev null mask
Loading Data
translating colors
  99%
Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread 16384 (LWP 7550)]
0x42126ae0 in __driUtilCreateScreen () from /usr/X11R6/lib/modules/dri/r200_dri.so
(gdb) l
29       *----------------------------------------------------------------------
30       */
31
32      int main(int argc,              /* Number of command-line arguments.
*/
33               char **argv            /* Values of command-line arguments.
*/
34          )
35      {
36              int i;
37
38              Tcl_FindExecutable(argv[0]);

### HB: this is visualization/nviz/src/nvizMain.c

(gdb) bt
#0  0x42126ae0 in __driUtilCreateScreen () from /usr/X11R6/lib/modules/dri/r200_dri.so
#1  0x4212667b in __driUtilCreateScreen () from /usr/X11R6/lib/modules/dri/r200_dri.so
#2  0x421267bf in __driUtilCreateScreen () from /usr/X11R6/lib/modules/dri/r200_dri.so
#3  0x420942b2 in __driUtilCreateScreen () from /usr/X11R6/lib/modules/dri/r200_dri.so
#4  0x420942d9 in __driUtilCreateScreen () from /usr/X11R6/lib/modules/dri/r200_dri.so
#5  0x42011c5a in __driUtilCreateScreen () from /usr/X11R6/lib/modules/dri/r200_dri.so
#6  0x42013d7c in __driUtilCreateScreen () from /usr/X11R6/lib/modules/dri/r200_dri.so
#7  0x420141e8 in __driUtilCreateScreen () from /usr/X11R6/lib/modules/dri/r200_dri.so
#8  0x4212b1bc in __driUtilCreateScreen () from /usr/X11R6/lib/modules/dri/r200_dri.so
#9  0x41ffd35d in __driUtilUpdateDrawableInfo () from /usr/X11R6/lib/modules/dri/r200_dri.so
#10 0x40853195 in _glthread_SetTSD () from /usr/X11R6/lib/libGL.so.1
#11 0x408532ec in glXCreateContext () from /usr/X11R6/lib/libGL.so.1
#12 0x080628d7 in Togl_MakeWindowExist (togl=0x81b1898) at togl.c:1451
#13 0x0806172f in Togl_Configure (interp=0x807bfb0, togl=0x81b1898, argc=6, argv=0xbfffe778,
flags=0)
    at togl.c:905
#14 0x08061e7f in Togl_Cmd (clientData=0x808c6e0, interp=0x807bfb0, argc=8, argv=0xbfffe770)
at togl.c:1103
#15 0x406fc66f in TclInvokeStringCommand () from /usr/lib/libtcl8.4.so.0
#16 0x406fd6a4 in TclEvalObjvInternal () from /usr/lib/libtcl8.4.so.0
#17 0x407249c8 in TclCompEvalObj () from /usr/lib/libtcl8.4.so.0
#18 0x40723f0b in TclCompEvalObj () from /usr/lib/libtcl8.4.so.0
#19 0x40757147 in TclObjInterpProc () from /usr/lib/libtcl8.4.so.0
#20 0x406fd6a4 in TclEvalObjvInternal () from /usr/lib/libtcl8.4.so.0
#21 0x406fe254 in Tcl_EvalEx () from /usr/lib/libtcl8.4.so.0
#22 0x40740a24 in Tcl_FSEvalFile () from /usr/lib/libtcl8.4.so.0
#23 0x4070b5ff in Tcl_SourceObjCmd () from /usr/lib/libtcl8.4.so.0
#24 0x406fd6a4 in TclEvalObjvInternal () from /usr/lib/libtcl8.4.so.0
#25 0x406fe254 in Tcl_EvalEx () from /usr/lib/libtcl8.4.so.0
#26 0x406fe6eb in Tcl_Eval () from /usr/lib/libtcl8.4.so.0
#27 0x0805bfac in Ninit (interp=0x807bfb0, w=0x0) at nviz_init.c:459
#28 0x08051884 in NVIZ_AppInit (interp=0x807bfb0) at nvizAppInit.c:130
#29 0x40633f94 in Tk_MainEx () from /usr/lib/libtk8.4.so.0
#30 0x08060f66 in main (argc=3, argv=0xbffff6f4) at nvizMain.c:50

(it failed last year before I was using the radeon card & had dri going...)

still not telling me much. Peppering the C code with printf() and the 
Tcl code with puts, I see that it segfaults while in 
visualization/nviz/scripts/nviz2.2_script

it helped to turn on debug messages (at the top of nviz2.2_script)
set DEBUG 1


  segfaults in
proc Nv_force_panel
  on this line:
set Nv_($path) [mk$name\Panel $path]

debug output:
 $path=.middle.panelarea.panels.surf
 $name=surf

This is called from the Nv_mkPanelMenu proc, "surf" is the first $i
of $Nv_(panels).


changing that line to
set Nv_($path) {mk$name\Panel $path}

gets past that SegFault, but then crashes later on. No idea if {that's}
a correct approach, but it got past the segfault..

Next one: (still in nviz2.2_script)
it gets to
 proc Nv_mapPanel

and segfaults on this line:
    #insert update to fix KDE wm problem
    update

If I comment out "update", it gets past it, but then segaults again a
few lines later on "pack $name -side top -fill x -expand no -anchor n",
or at least a puts after that line never gets displayed.

But on it runs. A window flashes up, I get the "%" prompt on the 
terminal, I get past Ninit() and NVIZ_AppInit(), but lose the 
scent after nviz2.2_script's init_graphics and Nv_expose procs 
finish successfully. (not sure what calls Nv_expose, as it's a bind)


further than I got last time anyway.



Hamish


Wed, Apr 5 2006 09:58:56    Mail sent by hbowman  
Do you still see this bug using the latest CVS version? (ie with Cedric's fixes)
Hamish
Fri, Jun 23 2006 20:39:05    Mail sent by msieczka  
Eric, are you there? Please reply whether the bug still applies.

Maciek
Fri, Jun 23 2006 21:23:39    Mail sent by epatton@nrcan.gc.ca  
Return-Path <epatton@nrcan.gc.ca>
Delivered-To grass-bugs@lists.intevation.de
Message-ID <0E5A77B55A57D511BB3F0002A537C262064111EF@s5-dar-r1.nrn.nrcan.gc.ca>
From "Patton, Eric" <epatton@nrcan.gc.ca>
To 'Maciek Sieczka via RT ' <grass-bugs@intevation.de>
Subject RE: [bug #4140] (grass) Nviz doesn't start either from GUI or com mand line in 6.1cvs generic binary snapshot
Date Fri, 23 Jun 2006 16:23:33 -0300
MIME-Version 1.0
X-Mailer Internet Mail Service (5.5.2657.72)
x-originalarrivaltime <rt@intevation.de>
x-warning <rt@intevation.de>
x-whitelist <rt@intevation.de>
x-envelope-from <rt@intevation.de>
x-envelope-to <rt@intevation.de>
x-sender <rt@intevation.de>
x-request-id <rt@intevation.de>
x-rt-loop-prevention <rt@intevation.de>
x-managed-by <rt@intevation.de>
Content-Type text/plain; charset="iso-8859-1"
X-Virus-Scanned by amavisd-new at intevation.de
X-Spam-Status No, hits=-3.315 tagged_above=-999 required=4 tests=[AWL=1.685, BAYES_00=-5]
X-Spam-Level
Maciek,

I can't check the generic linux binaries because they've been compiled for
64-bit machines, and mine is 32-bit. I notified Markus of this here:
http://article.gmane.org/gmane.comp.gis.grass.user/13634/match=binary

I believe Markus mentioned that he was having problems getting the new
hardware configured properly. 

~ Eric.

-----Original Message-----
From: Maciek Sieczka via RT
To: Patton, Eric
Cc: Patton, Eric
Sent: 6/23/2006 2:39 PM
Subject: [bug #4140] (grass) Nviz doesn't start either from GUI or command
line in 6.1cvs generic binary snapshot

Eric, are you there? Please reply whether the bug still applies.

Maciek


-------------------------------------------- Managed by Request Tracker


Fri, Jun 23 2006 22:10:46    Status changed to resolved by mbarton  
Comment | Reply | Take | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request