[GRASS-dev] trunk r47474 breaks OGSF rendering of points on surface

After r47474 in trunk OGSF incorrectly renders points on surface with
any symbol except X. Z values of points seem to be messed up.

Steps to reproduce:
1) nviz elev=elevation.dem point=bugsites
2) Visualize->Vector points->Icon type and change from sphere to X and back.

martinl, please fix this.

Also consider to add some more comments to gpd.c, as to casual reader
it reads like magic spell :wink:

Maris.

Hi,

2011/8/16 Maris Nartiss <maris.gis@gmail.com>:

After r47474 in trunk OGSF incorrectly renders points on surface with
any symbol except X. Z values of points seem to be messed up.

this commit affect mostly lines, not points.

Steps to reproduce:
1) nviz elev=elevation.dem point=bugsites
2) Visualize->Vector points->Icon type and change from sphere to X and back.

martinl, please fix this.

it works for me (speaking about trunk). Can anyone reproduce this
behaviour. Also note that nviz is going to be removed from trunk when
wxNviz will be completed (I hope soon).

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Hello,
comments inline.

2011/8/17 Martin Landa <landa.martin@gmail.com>:

Hi,

2011/8/16 Maris Nartiss <maris.gis@gmail.com>:

After r47474 in trunk OGSF incorrectly renders points on surface with
any symbol except X. Z values of points seem to be messed up.

this commit affect mostly lines, not points.

gpd.c

Steps to reproduce:
1) nviz elev=elevation.dem point=bugsites
2) Visualize->Vector points->Icon type and change from sphere to X and back.

martinl, please fix this.

it works for me (speaking about trunk). Can anyone reproduce this
behaviour. Also note that nviz is going to be removed from trunk when
wxNviz will be completed (I hope soon).

If You can give me some info how to test it without nviz, I will do that.

I tested with nviz_cmd too and it shows similar issue, still it's not
that easy to get good angle to make issue good to observe.

nviz_cmd elevation_map=,elevation.dem@PERMANENT
vpoint=,archsites@PERMANENT position=0.24,0.2 height=484
perspective=25 output=tests format=ppm size=640,480

Interesting bit - when changing height parameter some points "jump
around" on Z axis, still not when run under valgrind. (Is it OK to
call gpd_obj before viewcell_tri_interp?)

Martin

Maris.

Hi,

2011/8/17 Maris Nartiss <maris.gis@gmail.com>:

this commit affect mostly lines, not points.

gpd.c

I said mostly, moreover noted changes are more or less cosmetic.

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Hi,

2011/8/17 Maris Nartiss <maris.gis@gmail.com>:

If You can give me some info how to test it without nviz, I will do that.

try out also wxNviz [1].

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Hi

2011/8/16 Maris Nartiss <maris.gis@gmail.com>:

After r47474 in trunk OGSF incorrectly renders points on surface with
any symbol except X. Z values of points seem to be messed up.

it works for me (speaking about trunk). Can anyone reproduce this
behaviour. Also note that nviz is going to be removed from trunk when
wxNviz will be completed (I hope soon).

Martin

I can confirm it. I noticed it a few days ago but I couldn't find the problem.

Anna

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Hi,

2011/8/17 Anna Kratochvílová <kratochanna@gmail.com>:

it works for me (speaking about trunk). Can anyone reproduce this
behaviour. Also note that nviz is going to be removed from trunk when
wxNviz will be completed (I hope soon).

[...]

I can confirm it. I noticed it a few days ago but I couldn't find the problem.

try r47716.

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

2011/8/17 Martin Landa <landa.martin@gmail.com>:

[...]

I can confirm it. I noticed it a few days ago but I couldn't find the problem.

try r47716.

ops, it didn't really help. Sorry for the noise.

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Hi,

2011/8/17 Martin Landa <landa.martin@gmail.com>:

I can confirm it. I noticed it a few days ago but I couldn't find the problem.

try r47716.

ops, it didn't really help. Sorry for the noise.

ops^2, probably too many workspaces on my PC;-) Can you try noted
revision? It's seems to be fixed.

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

2011/8/17 Martin Landa <landa.martin@gmail.com>:

Hi,

2011/8/17 Martin Landa <landa.martin@gmail.com>:

I can confirm it. I noticed it a few days ago but I couldn't find the problem.

try r47716.

ops, it didn't really help. Sorry for the noise.

ops^2, probably too many workspaces on my PC;-) Can you try noted
revision? It's seems to be fixed.

It's OK now

Anna

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Martin wrote:

Also note that nviz is going to be removed from trunk when
wxNviz will be completed (I hope soon).

well, no. there's no reason to remove it in the short term, even
as the wx version matures nicely. an optional tcl/tk dependency in
the source code costs very little, and is useful to some folks.

thanks,
Hamish

Thanks for fixing.

So - where's the wxNviz code and how to compile it? I'm not following
that closely to all new experimental GUI things and add-ons. It
doesn't seem to be compiled by default on trunk, as wxgui's search
also can not find it:

File "/home/maris/soft/grass_trunk/dist.x86_64-unknown-
linux-gnu/etc/gui/wxpython/gui_modules/ghelp.py", line 164,
in OnSearchModule

if self.cmdPrompt.CheckKey(text, data['keywords']):
AttributeError
:
'GPromptSTC' object has no attribute 'CheckKey'

Maris.

2011/8/17 Martin Landa <landa.martin@gmail.com>:

Hi,

2011/8/17 Maris Nartiss <maris.gis@gmail.com>:

If You can give me some info how to test it without nviz, I will do that.

try out also wxNviz [1].

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Hi,

On Thu, Aug 18, 2011 at 8:58 AM, Maris Nartiss <maris.gis@gmail.com> wrote:

Thanks for fixing.

So - where's the wxNviz code and how to compile it? I'm not following
that closely to all new experimental GUI things and add-ons. It
doesn't seem to be compiled by default on trunk, as wxgui's search
also can not find it:

It's in G7 in main repository, you can switch from 2D view to 3D view
mode in Map Display combo box (on the right side of it).

Some videos (a little bit outdated):
http://grass.osgeo.org/wiki/WxNviz#HowTo

Man page:
http://grass.osgeo.org/grass70/manuals/html70_user/wxGUI.Nviz.html

You can be interested in nviz_cmd too:
http://grass.osgeo.org/grass70/manuals/html70_user/nviz_cmd.html

Anna

File "/home/maris/soft/grass_trunk/dist.x86_64-unknown-
linux-gnu/etc/gui/wxpython/gui_modules/ghelp.py", line 164,
in OnSearchModule

if self.cmdPrompt.CheckKey(text, data['keywords']):
AttributeError
:
'GPromptSTC' object has no attribute 'CheckKey'

Maris.

2011/8/17 Martin Landa <landa.martin@gmail.com>:

Hi,

2011/8/17 Maris Nartiss <maris.gis@gmail.com>:

If You can give me some info how to test it without nviz, I will do that.

try out also wxNviz [1].

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Hello,
hm. OK. As switching to 3D in map display window just closes wxgui
without any messages, I was under impression that it's the same old
non-working code and new code is developed somewhere else.

Bad news for You - it doesn't work at all.

gdb just says: Inferior 1 (process 32514) exited with code 01

valgrind --trace-children=yes reports:
==418== Stack overflow in thread 1: can't grow stack to 0x7fe05fff8
==418==
==418== Process terminating with default action of signal 11 (SIGSEGV)
==418== Access not within mapped region at address 0x7FE05FFF8
==418== at 0xAF49CA7: wxMBConv::WC2MB(char*, wchar_t const*,
unsigned long) const (in /usr/lib64/libwx_baseu-2.8.so.0.8.0)

Good luck.
Maris.

2011/8/18 Anna Kratochvílová <kratochanna@gmail.com>:

Hi,

It's in G7 in main repository, you can switch from 2D view to 3D view
mode in Map Display combo box (on the right side of it).

Some videos (a little bit outdated):
http://grass.osgeo.org/wiki/WxNviz#HowTo

Man page:
http://grass.osgeo.org/grass70/manuals/html70_user/wxGUI.Nviz.html

You can be interested in nviz_cmd too:
http://grass.osgeo.org/grass70/manuals/html70_user/nviz_cmd.html

Anna

Hi,

2011/8/18 Hamish <hamish_b@yahoo.com>:

Martin wrote:

Also note that nviz is going to be removed from trunk when
wxNviz will be completed (I hope soon).

well, no. there's no reason to remove it in the short term, even
as the wx version matures nicely. an optional tcl/tk dependency in
the source code costs very little, and is useful to some folks.

AFAIK there was consensus about droping TCL/TK dependency in GRASS 7.
There is no reason to keep TCL/TK dependency, as we droped TCL/Tk GUI
we should drop also Nviz. That's my opinion, there could be voting
about that, anyway nobody can say just "no".

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Hi,

2011/8/18 Maris Nartiss <maris.gis@gmail.com>:

valgrind --trace-children=yes reports:
==418== Stack overflow in thread 1: can't grow stack to 0x7fe05fff8
==418==
==418== Process terminating with default action of signal 11 (SIGSEGV)
==418== Access not within mapped region at address 0x7FE05FFF8
==418== at 0xAF49CA7: wxMBConv::WC2MB(char*, wchar_t const*,
unsigned long) const (in /usr/lib64/libwx_baseu-2.8.so.0.8.0)

try to enable debug messages

g.gisenv set=DEBUG=5
g.gisenv set=WX_DEBUG=5

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

2011/8/18 Hamish <hamish_b@yahoo.com>:

well, no. there's no reason to remove it in the short term, even

moreover nobody was speaking about short term, well it also depends
what you mean by short term;-) The goal is to drop TCL/Tk dependency
before releasing GRASS 7.0.0.

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Clean compile of r47738

GRASS 7.0.svn (Latvija_LKS):~/soft/grass_trunk > g.gisenv set=DEBUG=5
GRASS 7.0.svn (Latvija_LKS):~/soft/grass_trunk > g.gisenv set=WX_DEBUG=5
GRASS 7.0.svn (Latvija_LKS):~/soft/grass_trunk > g.gui
Launching 'wxpython' GUI in the background, please wait...
GRASS 7.0.svn (Latvija_LKS):~/soft/grass_trunk > D1/5:
grass.script.core.start_command(): g.gisenv -n
D1/5: grass.script.core.start_command(): g.gisenv -n
D1/5: grass.script.core.start_command(): g.version -rg
D1/5: grass.script.core.start_command(): g.version -rg
D1/5: grass.script.core.start_command(): g.mapsets --q -p fs=newline
D1/5: grass.script.core.start_command(): g.list type=rast
D1/5: grass.script.core.start_command(): g.mapsets --q -p fs=newline
D1/5: grass.script.core.start_command(): g.list type=vect
D1/5: grass.script.core.start_command(): g.gisenv -n
GUI D3/5: CreateTool(): tool=605, label=newdisplay
bitmap=<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at
0x36335b0> >
GUI D3/5: CreateTool(): tool=606, label=newdisplay
bitmap=<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at
0x3633670> >
GUI D3/5: CreateTool(): tool=607, label=workspaceNew
bitmap=<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at
0x36336e0> >
GUI D3/5: CreateTool(): tool=608, label=workspaceOpen
bitmap=<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at
0x3634bb0> >
GUI D3/5: CreateTool(): tool=609, label=workspaceSave
bitmap=<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at
0x3633620> >
GUI D3/5: CreateTool(): tool=610, label=addMulti
bitmap=<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at
0x41ac3e0> >
GUI D3/5: CreateTool(): tool=611, label=addrast
bitmap=<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at
0x41aaa30> >
GUI D3/5: CreateTool(): tool=612, label=rastmisc
bitmap=<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at
0x41aaa50> >
GUI D3/5: CreateTool(): tool=613, label=addvect
bitmap=<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at
0x41abc70> >
GUI D3/5: CreateTool(): tool=614, label=vectmisc
bitmap=<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at
0x41ac450> >
GUI D3/5: CreateTool(): tool=615, label=addgrp bitmap=<wx._gdi.Bitmap;
proxy of <Swig Object of type 'wxBitmap *' at 0x41ac160> >
GUI D3/5: CreateTool(): tool=616, label=addovl bitmap=<wx._gdi.Bitmap;
proxy of <Swig Object of type 'wxBitmap *' at 0x41ad8b0> >
GUI D3/5: CreateTool(): tool=617, label=delcmd bitmap=<wx._gdi.Bitmap;
proxy of <Swig Object of type 'wxBitmap *' at 0x41ad8d0> >
GUI D3/5: CreateTool(): tool=618, label=importMap
bitmap=<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at
0x41b90d0> >
GUI D3/5: CreateTool(): tool=619, label=mapCalc
bitmap=<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at
0x41b90f0> >
GUI D3/5: CreateTool(): tool=620, label=georect
bitmap=<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at
0x41b9910> >
GUI D3/5: CreateTool(): tool=621, label=modeler
bitmap=<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at
0x41b83d0> >
GUI D3/5: CreateTool(): tool=622, label=mapOutput
bitmap=<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at
0x41b9a30> >
GUI D3/5: CreateTool(): tool=623, label=settings
bitmap=<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at
0x41c2db0> >
GUI D3/5: CreateTool(): tool=624, label=help bitmap=<wx._gdi.Bitmap;
proxy of <Swig Object of type 'wxBitmap *' at 0x41c2d70> >
GUI D3/5: CreateTool(): tool=625, label=vdigit bitmap=<wx._gdi.Bitmap;
proxy of <Swig Object of type 'wxBitmap *' at 0x41c8430> >
GUI D3/5: CreateTool(): tool=626, label=attribute
bitmap=<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at
0x41c84c0> >
GUI D1/5: GMFrame.NewDisplay(): idx=0
D1/5: grass.script.core.start_command(): g.tempfile -d pid=18676
D1/5: grass.script.core.start_command(): g.gisenv -n
GUI D1/5: gcmd.RunCommand(): g.proj -p
D1/5: grass.script.core.start_command(): g.proj -p
GUI D2/5: gcmd.RunCommand(): command started
GUI D3/5: gcmd.RunCommand(): decoding string
GUI D5/5: DecodeString(): enc=UTF-8
GUI D5/5: DecodeString(): enc=UTF-8
GUI D1/5: gcmd.RunCommand(): get return code 0
GUI D3/5: gcmd.RunCommand(): print error
GUI D3/5: gcmd.RunCommand(): print read error
GUI D2/5: gcmd.RunCommand(): return stdout
'-PROJ_INFO-------------------------------------------------
name : Transverse Mercator
proj : tmerc
ellps : grs80
lat_0 : 0
lon_0 : 24
k : 0.9996
x_0 : 500000
y_0 : -6000000
towgs84 : 0,0,0,0,0,0,0
no_defs : defined
-PROJ_UNITS------------------------------------------------
unit : metre
units : metres
meters : 1
'
GUI D3/5: CreateTool(): tool=627, label=displaymap
bitmap=<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at
0x4200410> >
GUI D3/5: CreateTool(): tool=628, label=rendermap
bitmap=<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at
0x42009b0> >
GUI D3/5: CreateTool(): tool=629, label=erase bitmap=<wx._gdi.Bitmap;
proxy of <Swig Object of type 'wxBitmap *' at 0x41ff7a0> >
GUI D3/5: CreateTool(): tool=630, label=pointer
bitmap=<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at
0x42009d0> >
GUI D3/5: CreateTool(): tool=631, label=query bitmap=<wx._gdi.Bitmap;
proxy of <Swig Object of type 'wxBitmap *' at 0x42009f0> >
GUI D3/5: CreateTool(): tool=632, label=pan bitmap=<wx._gdi.Bitmap;
proxy of <Swig Object of type 'wxBitmap *' at 0x42059e0> >
GUI D3/5: CreateTool(): tool=633, label=zoomin bitmap=<wx._gdi.Bitmap;
proxy of <Swig Object of type 'wxBitmap *' at 0x4205a00> >
GUI D3/5: CreateTool(): tool=634, label=zoomout
bitmap=<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at
0x4206d60> >
GUI D3/5: CreateTool(): tool=635, label=zoomextent
bitmap=<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at
0x4205950> >
GUI D3/5: CreateTool(): tool=636, label=zoomback
bitmap=<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at
0x4205970> >
GUI D3/5: CreateTool(): tool=637, label=zoommenu
bitmap=<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at
0x42084b0> >
GUI D3/5: CreateTool(): tool=638, label=analyze
bitmap=<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at
0x420a250> >
GUI D3/5: CreateTool(): tool=639, label=dec bitmap=<wx._gdi.Bitmap;
proxy of <Swig Object of type 'wxBitmap *' at 0x420b1c0> >
GUI D3/5: CreateTool(): tool=640, label=savefile
bitmap=<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at
0x4208370> >
GUI D3/5: CreateTool(): tool=641, label=printmap
bitmap=<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at
0x4208350> >
GUI D2/5: MapFrame._initDisplay():
GUI D2/5: Map.ChangeMapSize(): width=700, height=575
GUI D1/5: gcmd.RunCommand(): g.region -ugpc
D1/5: grass.script.core.start_command(): g.region -ugpc
GUI D2/5: gcmd.RunCommand(): command started
GUI D3/5: gcmd.RunCommand(): decoding string
GUI D5/5: DecodeString(): enc=UTF-8
GUI D5/5: DecodeString(): enc=UTF-8
GUI D1/5: gcmd.RunCommand(): get return code 0
GUI D3/5: gcmd.RunCommand(): print error
GUI D3/5: gcmd.RunCommand(): print read error
GUI D2/5: gcmd.RunCommand(): return stdout
'n=338440
s=327896
w=547764
e=558776
nsres=4
ewres=4
rows=2636
cols=2753
cells=7256908
center_easting=553270.000000
center_northing=333168.000000
'
GUI D2/5: gcmd.RunCommand(): return ret, stdout
GUI D3/5: Map.GetRegion(): {u'rows': 2636.0, u'e': 558776.0, u'cells':
7256908.0, u'cols': 2753.0, u'center_northing': 333168.0, u'n':
338440.0, u'center_easting': 553270.0, u's': 327896.0, u'w': 547764.0,
u'ewres': 4.0, u'nsres': 4.0}
GUI D3/5: BufferedWindow.OnSize():
GUI D2/5: Map.ChangeMapSize(): width=698, height=533
GUI D4/5: BufferedWindow.ZoomHistory(): hist=[(338440.0, 327896.0,
558776.0, 547764.0)]
D1/5: grass.script.core.start_command(): g.gisenv -n
GUI D3/5: BufferedWindow.OnSize():
GUI D2/5: Map.ChangeMapSize(): width=698, height=533
GUI D3/5: BufferedWindow.OnSize():
GUI D2/5: Map.ChangeMapSize(): width=698, height=533
GUI D3/5: BufferedWindow.OnSize():
GUI D2/5: Map.ChangeMapSize(): width=698, height=533
GUI D4/5: BufferedWindow.OnPaint(): redrawAll=True
GUI D2/5: Map.ChangeMapSize(): width=698, height=533
GUI D3/5: Map.AdjustRegion(): {u'rows': 533.0, u'e': 558776.0,
u'cells': 372034.0, u'cols': 698.0, u'center_northing': 333168.0,
u'n': 338440.0, u'center_easting': 553270.0, u's': 327896.0, u'w':
547764.0, u'ewres': 15.776504297994268, u'nsres': 19.78236397748593}
GUI D3/5: Map.SetRegion(): n-s resol: 19.782364; n-s resol3: 4; rows:
533; north: 338440.0; t-b resol: 1; zone: 0; bottom: 0; rows3: 2636;
west: 547764.0; top: 1; cols: 698; cols3: 2753; depths: 1; e-w resol:
15.776504; proj: 99; e-w resol3: 4; east: 558776.0; south: 327896.0;
GUI D3/5: Map.Render() force=True
file=/home/maris/grass_data/Latvija_LKS/test_wms/.tmp/glacier/18676.0.ppm
GUI D5/5: BufferedWindow.Draw(): id=None, pdctype = clear, coord=[0, 0, 0, 0]
GUI D3/5: Map.GetListOfLayers(): numberof=0
D1/5: grass.script.core.start_command(): g.findfile -n file=MASK element=cell
GUI D1/5: BufferedWindow.UpdateMap(): render=True, renderVector=True -> time=0
GUI D4/5: BufferedWindow.OnPaint(): redrawAll=True
GUI D3/5: CreateTool(): tool=642, label=view bitmap=<wx._gdi.Bitmap;
proxy of <Swig Object of type 'wxBitmap *' at 0x3659b70> >
GUI D3/5: CreateTool(): tool=643, label=surface
bitmap=<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at
0x39c2bb0> >
GUI D3/5: CreateTool(): tool=644, label=vector bitmap=<wx._gdi.Bitmap;
proxy of <Swig Object of type 'wxBitmap *' at 0x3b69350> >
GUI D3/5: CreateTool(): tool=645, label=volume bitmap=<wx._gdi.Bitmap;
proxy of <Swig Object of type 'wxBitmap *' at 0x39c2b60> >
GUI D3/5: CreateTool(): tool=646, label=light bitmap=<wx._gdi.Bitmap;
proxy of <Swig Object of type 'wxBitmap *' at 0x359dcc0> >
GUI D3/5: CreateTool(): tool=647, label=fringe bitmap=<wx._gdi.Bitmap;
proxy of <Swig Object of type 'wxBitmap *' at 0x357e710> >
GUI D3/5: CreateTool(): tool=648, label=nviz_cmd
bitmap=<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at
0x35a66f0> >
GUI D3/5: CreateTool(): tool=649, label=settings
bitmap=<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at
0x3a43420> >
GUI D3/5: CreateTool(): tool=650, label=help bitmap=<wx._gdi.Bitmap;
proxy of <Swig Object of type 'wxBitmap *' at 0x3594b90> >
GUI D3/5: CreateTool(): tool=651, label=quit bitmap=<wx._gdi.Bitmap;
proxy of <Swig Object of type 'wxBitmap *' at 0x3983ed0> >
GUI D5/5: BufferedWindow.Draw(): id=None, pdctype = clear, coord=[0, 0, 0, 0]
GUI D5/5: BufferedWindow.Draw(): id=None, pdctype = clear, coord=[0, 0, 0, 0]
GUI D5/5: BufferedWindow.Draw(): id=None, pdctype = clear, coord=[0, 0, 0, 0]
GUI D4/5: BufferedWindow.OnPaint(): redrawAll=True
GUI D1/5: gcmd.RunCommand(): g.region -ugpc
D1/5: grass.script.core.start_command(): g.region -ugpc
GUI D2/5: gcmd.RunCommand(): command started
GUI D3/5: gcmd.RunCommand(): decoding string
GUI D5/5: DecodeString(): enc=UTF-8
GUI D5/5: DecodeString(): enc=UTF-8
GUI D1/5: gcmd.RunCommand(): get return code 0
GUI D3/5: gcmd.RunCommand(): print error
GUI D3/5: gcmd.RunCommand(): print read error
GUI D2/5: gcmd.RunCommand(): return stdout
'n=338440
s=327896
w=547764
e=558776
nsres=4
ewres=4
rows=2636
cols=2753
cells=7256908
center_easting=553270.000000
center_northing=333168.000000
'
GUI D2/5: gcmd.RunCommand(): return ret, stdout
GUI D3/5: Map.GetRegion(): {u'rows': 2636.0, u'e': 558776.0, u'cells':
7256908.0, u'cols': 2753.0, u'center_northing': 333168.0, u'n':
338440.0, u'center_easting': 553270.0, u's': 327896.0, u'w': 547764.0,
u'ewres': 4.0, u'nsres': 4.0}
GUI D3/5: Map.SetRegion(): n-s resol: 4.000000; n-s resol3: 4; rows:
2636; north: 338440.0; t-b resol: 1; zone: 0; bottom: 0; rows3: 2636;
west: 547764.0; top: 1; cols: 2753; cols3: 2753; depths: 1; e-w resol:
4.000000; proj: 99; e-w resol3: 4; east: 558776.0; south: 327896.0;
GUI D5/5: NvizThread.__init__():
D4/5: Rast_unset_window()
D2/5: G__read_Cell_head_array
D3/5: region item: n-s resol: 4.000000

Maris.

2011/8/18 Martin Landa <landa.martin@gmail.com>:

Hi,

2011/8/18 Maris Nartiss <maris.gis@gmail.com>:

valgrind --trace-children=yes reports:
==418== Stack overflow in thread 1: can't grow stack to 0x7fe05fff8
==418==
==418== Process terminating with default action of signal 11 (SIGSEGV)
==418== Access not within mapped region at address 0x7FE05FFF8
==418== at 0xAF49CA7: wxMBConv::WC2MB(char*, wchar_t const*,
unsigned long) const (in /usr/lib64/libwx_baseu-2.8.so.0.8.0)

try to enable debug messages

g.gisenv set=DEBUG=5
g.gisenv set=WX_DEBUG=5

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

> Martin wrote:
>> Also note that nviz is going to be removed from trunk when
>> wxNviz will be completed (I hope soon).

Hamish:

> well, no. there's no reason to remove it in the short term,
> even as the wx version matures nicely. an optional tcl/tk
> dependency in the source code costs very little, and is
> useful to some folks.

perhaps to phrase my words better: I would rather appreciate it
if you didn't remove code which I'm actively using.

by "short term" I mean just for now, when we are near to being
ready for 7.0 to be released of course we can evaluate the
situation and see if we are ready to drop tcl/tk nviz from the
code base. but until then there is no reason why we can't have
more than one way to do something. I'm certainly not asking
anyone to take on the burden of maintaining anything more than
what interests them. until then, this is pretty hard to beat for
a fast typist:
GRASS> nviz dem color=ortho points=stations

Martin:

AFAIK there was consensus about droping TCL/TK dependency
in GRASS 7.
There is no reason to keep TCL/TK dependency,

mainly what I request is the way we go about doing that, and how
we communicate important changes to the group before they happen.

Thus when we are ready to call wxNVIZ feature complete, only then
that --with-tcltk in ./configure default to "no", but no code be
removed, and importantly do not drop tcl/tk support from the
build system just because the main GUI items don't use it any
more. Others are very likely to have 3rd party tcl/tk code for
grass they have written over the years and have no interest in
porting over to wxPy. Similarly we have --with-blas and
--with-lapack which AFAIK are mostly unused by us, but cost
little to keep there and probably help some people out a lot.

Asking for a go-slow approach costs others much less than asking
folks to revert the deletion of some source code they need/want,
& it doesn't hold anyone back.

cheers,
Hamish

Hamish wrote:

perhaps to phrase my words better: I would rather
appreciate it if you didn't remove code which I'm actively
using.

well, I know I can phrase my words better-- s/you didn't/we didn't/

cheers,
Hamish