[GRASS-dev] [GRASS GIS] #1961: wxNVIZ: error if no raster map selected

GRASS GIS trac at osgeo.org
Sat Jun 1 00:35:06 PDT 2013


#1961: wxNVIZ: error if no raster map selected
--------------------+-------------------------------------------------------
 Reporter:  hamish  |       Owner:  grass-dev@…              
     Type:  defect  |      Status:  new                      
 Priority:  major   |   Milestone:  6.4.3                    
Component:  wxGUI   |     Version:  svn-develbranch6         
 Keywords:  wxnviz  |    Platform:  All                      
      Cpu:  x86-64  |  
--------------------+-------------------------------------------------------

Comment(by hamish):

 Replying to [comment:7 annakrat]:
 > Replying to [comment:6 hamish]:
 > > restarting the GUI in devbr6 and adding Spearfish's roads did not go
 well,
 > > nothing rendered, lots of this repeating in the terminal:
 > >  (.:25449): Gtk-CRITICAL **: gtk_range_set_range: assertion `min <
 max' failed
 > >
 > > and endless repeating tracebacks:
 >
 > please test r56500


 still happens.

 grass7, start g.gui, add roads vector map, go to 3d mode:


 {{{
 Starting 3D view mode...
 Vector map <roads7 at grass7> loaded (746 features)
 Traceback (most recent call last):
   File "/home/hamish/src/grass/svn/trunk/dist.x86_64
 -unknown-linux-gnu/etc/gui/wxpython/nviz/mapwindow.py", line
 376, in OnPaint

 self.DoPaint()
   File "/home/hamish/src/grass/svn/trunk/dist.x86_64
 -unknown-linux-gnu/etc/gui/wxpython/nviz/mapwindow.py", line
 398, in DoPaint

 self.lmgr.nviz.UpdatePage('cplane')
   File "/home/hamish/src/grass/svn/trunk/dist.x86_64
 -unknown-linux-gnu/etc/gui/wxpython/nviz/tools.py", line
 4570, in UpdatePage

 self.FindWindowById(self.win['cplane']['position']['z']['sli
 der']).SetValue(zRange[0])
   File "/usr/lib64/python2.6/dist-
 packages/wx-2.8-gtk2-unicode/wx/_controls.py", line 2672, in
 SetValue

 return _controls_.Slider_SetValue(*args, **kwargs)
 OverflowError
 :
 long int too large to convert to int
 Traceback (most recent call last):
   File "/home/hamish/src/grass/svn/trunk/dist.x86_64
 -unknown-linux-gnu/etc/gui/wxpython/nviz/mapwindow.py", line
 376, in OnPaint

 self.DoPaint()
   File "/home/hamish/src/grass/svn/trunk/dist.x86_64
 -unknown-linux-gnu/etc/gui/wxpython/nviz/mapwindow.py", line
 398, in DoPaint

 [...]

 packages/wx-2.8-gtk2-unicode/wx/_controls.py", line 2672, in
 SetValue

 return _controls_.Slider_SetValue(*args, **kwargs)
 OverflowError
 :
 long int too large to convert to int


 Switching back to 2D view mode...


 Vector map <roads7 at grass7> (lines) unloaded successfully
 Vector map <roads7 at grass7> loaded (746 features)
 Traceback (most recent call last):
   File "/home/hamish/src/grass/svn/trunk/dist.x86_64
 -unknown-linux-gnu/etc/gui/wxpython/nviz/mapwindow.py", line
 376, in OnPaint

 self.DoPaint()
   File "/home/hamish/src/grass/svn/trunk/dist.x86_64
 -unknown-linux-gnu/etc/gui/wxpython/nviz/mapwindow.py", line
 389, in DoPaint

 self.LoadDataLayers()
   File "/home/hamish/src/grass/svn/trunk/dist.x86_64
 -unknown-linux-gnu/etc/gui/wxpython/nviz/mapwindow.py", line
 1327, in LoadDataLayers

 self.LoadVector(item, points = False)
   File "/home/hamish/src/grass/svn/trunk/dist.x86_64
 -unknown-linux-gnu/etc/gui/wxpython/nviz/mapwindow.py", line
 1734, in LoadVector

 toolWin.UpdatePage('vector')
   File "/usr/lib64/python2.6/dist-
 packages/wx-2.8-gtk2-unicode/wx/_core.py", line 14564, in
 __getattr__

 raise PyDeadObjectError(self.attrStr % self._name)
 wx._core
 .
 PyDeadObjectError
 :
 The C++ part of the NvizToolWindow object has been deleted,
 attribute access no longer allowed.
 }}}


 thanks,
 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/1961#comment:11>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list