[GRASS-dev] [GRASS GIS] #427: wxNVIZ: crash when only vector map present

#427: wxNVIZ: crash when only vector map present
----------------------+-----------------------------------------------------
Reporter: msieczka | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: critical | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Keywords: | Platform: All
      Cpu: All |
----------------------+-----------------------------------------------------
1. add a vector map

2. choose "3D view" in Map Display window - crash:

{{{
Traceback (most recent call last):
   File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/to
olbars.py", line 254, in OnSelectTool

self.mapdisplay.AddToolbar("nviz")
   File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/ma
pdisp.py", line 372, in AddToolbar

self.MapWindow3D.OnPaint(None) # -> LoadData
   File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/nv
iz_mapdisp.py", line 158, in OnPaint

self.LoadDataLayers()
   File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/nv
iz_mapdisp.py", line 368, in LoadDataLayers

self.LoadVector(item, vecType)
   File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/nv
iz_mapdisp.py", line 628, in LoadVector

toolWin.UpdatePage('vector')
   File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/nv
iz_tools.py", line 2336, in UpdatePage

self.UpdateVectorPage(layer, data['vector'])
   File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/nv
iz_tools.py", line 2468, in UpdateVectorPage

{ 'primitives' : nprimitives, 'points' : npoints }
TypeError
:
an integer is required
Nviz:No features from vector map <pomiar@pomiary> fall within current
region
Nviz:Error loading vector map <pomiar@pomiary>
Nviz:Załadowanie mapy wektorowej 'pomiar@pomiary' lines nie
powiodło się
Traceback (most recent call last):
   File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/nv
iz_mapdisp.py", line 158, in OnPaint

self.LoadDataLayers()
   File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/nv
iz_mapdisp.py", line 368, in LoadDataLayers

self.LoadVector(item, vecType)
   File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/nv
iz_mapdisp.py", line 628, in LoadVector

toolWin.UpdatePage('vector')
   File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/nv
iz_tools.py", line 2336, in UpdatePage

self.UpdateVectorPage(layer, data['vector'])
   File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/nv
iz_tools.py", line 2468, in UpdateVectorPage

{ 'primitives' : nprimitives, 'points' : npoints }
TypeError
:
an integer is required
}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/427&gt;
GRASS GIS <http://grass.osgeo.org>

#427: wxNVIZ: crash when only vector map present
-----------------------+----------------------------------------------------
  Reporter: msieczka | Owner: martinl
      Type: defect | Status: assigned
  Priority: critical | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords:
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Changes (by martinl):

  * status: new => assigned
  * owner: grass-dev@lists.osgeo.org => martinl
* cc: grass-dev@lists.osgeo.org (added)

Comment:

Can you send me sample vector data?

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/427#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#427: wxNVIZ: crash when only vector map present
-----------------------+----------------------------------------------------
  Reporter: msieczka | Owner: martinl
      Type: defect | Status: assigned
  Priority: critical | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords:
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Comment (by msieczka):

Replying to [comment:1 martinl]:
> Can you send me sample vector data?

Any will do. Say 'archsites' from spearfish60.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/427#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#427: wxNVIZ: crash when only vector map present
-----------------------+----------------------------------------------------
  Reporter: msieczka | Owner: martinl
      Type: defect | Status: assigned
  Priority: critical | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords:
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Comment (by martinl):

Replying to [comment:2 msieczka]:
> Replying to [comment:1 martinl]:
> > Can you send me sample vector data?
>
> Any will do. Say 'archsites' from spearfish60.

Here:

  1. Add vector layer 'archsites' & zoom
  2. switch to 3d view
  3. enable points in Layer properties

Works. Martin

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/427#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#427: wxNVIZ: crash when only vector map present
-----------------------+----------------------------------------------------
  Reporter: msieczka | Owner: martinl
      Type: defect | Status: assigned
  Priority: critical | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords:
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Comment (by msieczka):

Replying to [comment:3 martinl]:

> 1. Add vector layer 'archsites' & zoom
> 2. switch to 3d view
> 3. enable points in Layer properties
>
> Works.

Hmm. For me exactly the same procedure rusults in a following error
(develbranch6 r35570):

{{{
Traceback (most recent call last):
   File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/to
olbars.py", line 254, in OnSelectTool

self.mapdisplay.AddToolbar("nviz")
   File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp.py", line 382, in AddToolbar

self.MapWindow3D.OnPaint(None) # -> LoadData
   File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/nv
iz_mapdisp.py", line 163, in OnPaint

self.LoadDataLayers()
   File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/nv
iz_mapdisp.py", line 375, in LoadDataLayers

self.LoadVector(item, vecType)
   File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/nv
iz_mapdisp.py", line 635, in LoadVector

toolWin.UpdatePage('vector')
   File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/nv
iz_tools.py", line 2336, in UpdatePage

self.UpdateVectorPage(layer, data['vector'])
   File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/nv
iz_tools.py", line 2468, in UpdateVectorPage

{ 'primitives' : nprimitives, 'points' : npoints }
TypeError
:
an integer is required
Nviz:No features from vector map <archsites@PERMANENT> fall within current
region
Nviz:Error loading vector map <archsites@PERMANENT>
Nviz:Załadowanie mapy wektorowej 'archsites@PERMANENT' lines
nie powiodło się
Traceback (most recent call last):
   File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/nv
iz_mapdisp.py", line 163, in OnPaint

self.LoadDataLayers()
   File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/nv
iz_mapdisp.py", line 375, in LoadDataLayers

self.LoadVector(item, vecType)
   File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/nv
iz_mapdisp.py", line 635, in LoadVector

toolWin.UpdatePage('vector')
   File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/nv
iz_tools.py", line 2336, in UpdatePage

self.UpdateVectorPage(layer, data['vector'])
   File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/nv
iz_tools.py", line 2468, in UpdateVectorPage

{ 'primitives' : nprimitives, 'points' : npoints }
TypeError
:
an integer is required
}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/427#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#427: wxNVIZ: crash when only vector map present
-----------------------+----------------------------------------------------
  Reporter: msieczka | Owner: martinl
      Type: defect | Status: closed
  Priority: critical | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Resolution: fixed | Keywords:
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Changes (by martinl):

  * status: assigned => closed
  * resolution: => fixed

Comment:

Well, wxNviz crashed because of broken Polish translation, fixed in trunk
(r36204), devbr6 (r36205) and relbr64 (r36205).

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/427#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>