Opened 16 years ago

Closed 16 years ago

#427 closed defect (fixed)

wxNVIZ: crash when only vector map present

Reported by: msieczka Owned by: martinl
Priority: critical Milestone: 6.4.0
Component: wxGUI Version: svn-develbranch6
Keywords: Cc: grass-dev@…
CPU: All Platform: All

Description

  1. add a vector map
  1. 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

Change History (5)

comment:1 by martinl, 16 years ago

Cc: grass-dev@… added
Owner: changed from grass-dev@… to martinl
Status: newassigned

Can you send me sample vector data?

in reply to:  1 ; comment:2 by msieczka, 16 years ago

Replying to martinl:

Can you send me sample vector data?

Any will do. Say 'archsites' from spearfish60.

in reply to:  2 ; comment:3 by martinl, 16 years ago

Replying to msieczka:

Replying to 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

in reply to:  3 comment:4 by msieczka, 16 years ago

Replying to 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

comment:5 by martinl, 16 years ago

Resolution: fixed
Status: assignedclosed

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

Note: See TracTickets for help on using tickets.