[GRASSLIST:5653] NVIZ segfault

On a fresh debian sarge install this time,
using GRASS 6.0.0 compiled on this system.
This same segfault has occurred on this system with all of the following GRASS
versions:
5.0.3 deb package from debian stable
5.3 built from source
5.7 built from source
6.0 built from source
The problem has now occurred using two different video cards and xservers.
It is always the same: NVIZ starts, and runs through it's initialization
routines. It opens the display window which contains an image. Then when it
should be opening the "toplevel" window, all nviz windows silently disappear,
leaving no trace of any error in any logfile that I have been able to find.
Formerly, there would be a "segmentation violation" returned if nviz was
launched from the commandline.

I recently received an email from someone who has this same problem on two
different systems, one laptop and one desktop.

That the problem can be reproduced from the debian _stable_ package should
rule out OpenGL/Mesa problems, among other things, unless the dependencies in
the package are wrong, which seems unlikely.

Any suggestions or wild guesses would be greatly appreciated.

--
Carl Brown
Whitefield, NH USA

On Sat, 5 Feb 2005 17:38:46 -0500
Carl Brown <cbsled@verizon.net> wrote:

On a fresh debian sarge install this time,
using GRASS 6.0.0 compiled on this system.
This same segfault has occurred on this system with all of the following GRASS
versions:
5.0.3 deb package from debian stable
5.3 built from source
5.7 built from source
6.0 built from source
The problem has now occurred using two different video cards and xservers.
It is always the same: NVIZ starts, and runs through it's initialization
routines. It opens the display window which contains an image. Then when it
should be opening the "toplevel" window, all nviz windows silently disappear,
leaving no trace of any error in any logfile that I have been able to find.
Formerly, there would be a "segmentation violation" returned if nviz was
launched from the commandline.

I recently received an email from someone who has this same problem on two
different systems, one laptop and one desktop.

That the problem can be reproduced from the debian _stable_ package should
rule out OpenGL/Mesa problems, among other things, unless the dependencies in
the package are wrong, which seems unlikely.

Any suggestions or wild guesses would be greatly appreciated.

On debian you need to compile against Tcl/Tk 8.3 not 8.4.

The debian packages are tcl8.3-dev and tk8.3-dev.

Suspected threading problem, if you figure out a fix you get a gold star.

Hamish

On Monday 07 February 2005 8:55 pm, Hamish wrote:

On debian you need to compile against Tcl/Tk 8.3 not 8.4.

The 5.0.3 package information currently specifies 8.4.
http://packages.debian.org/unstable/science/grass
tcl8.4 (>= 8.4.5)
tk8.4 (>= 8.4.5)

But those are only runtimes, not *dev.
Is the package built against the 8.4 libs?
--
Carl Brown
Whitefield, NH USA

> On debian you need to compile against Tcl/Tk 8.3 not 8.4.

The 5.0.3 package information currently specifies 8.4.
http://packages.debian.org/unstable/science/grass
tcl8.4 (>= 8.4.5)
tk8.4 (>= 8.4.5)

But those are only runtimes, not *dev.
Is the package built against the 8.4 libs?

see the [dsc] link at the bottom of the package page and have a look for
"Build-Depends":
  http://ftp.debian.org/debian/pool/main/g/grass/grass_5.0.3-5.1.dsc

The 5.0.3 Debian package is built against 8.4; this is wrong.
see Debian bug 206844.
  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=206844

It works fine at runtime with TclTk 8.4's "wish", but it needs to be
built with 8.3-dev packages for NVIZ to work. (threading problem?)

Your best bet is to try the GRASS 6 packages which are being prepared by
the DebianGIS project, they work well and will hopefully be uploaded
into the main Debian system soon.

see
http://pkg-grass.alioth.debian.org/cgi-bin/wiki.pl?DebianGisRepository
http://lists.debian.org/debian-devel-announce/2004/10/msg00007.html
http://pkg-grass.alioth.debian.org/cgi-bin/wiki.pl

Hamish

On Sunday 13 February 2005 7:53 pm, Hamish wrote:

It works fine at runtime with TclTk 8.4's "wish", but it needs to be
built with 8.3-dev packages for NVIZ to work.

I rebuilt 6.0.0 against the TclTk 8.3-dev packages.
NVIZ now works.

--
Carl Brown
Whitefield, NH USA