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

GRASS GIS trac at osgeo.org
Sun Jan 25 05:21:08 EST 2009


#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 at PERMANENT> fall within current
 region
 Nviz:Error loading vector map <archsites at PERMANENT>
 Nviz:Załadowanie mapy wektorowej 'archsites at 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>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list