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

GRASS GIS trac at osgeo.org
Sat May 4 02:51:11 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  |  
--------------------+-------------------------------------------------------
 Hi,

 testing wxNVIZ in latest 6.5svn, I get an error and 100% CPU use if I
 select '3D view' in the map display window with just a vector map
 selected. (also tried with a 3D vector map, same thing) happens both on my
 linux and Wingrass-VM. It's recoverable once you switch back to '2D view'
 mode.

 one possible solution is in the case of no raster tell nviz to create a
 new constant surface at z=0 with 50% transparency. (or at least that's the
 trick with tcl/tk nviz + no raster to drape things on)

 traceback from wxgui module output window:
 {{{
 Starting 3D view mode...
 Vector map <roads at PERMANENT> loaded (746 features)
 Traceback (most recent call last):
   File "/home/hamish/src/grass/svn/grass65/dist.x86_64
 -unknown-linux-gnu/etc/wxpython/nviz/mapwindow.py", line
 366, in OnPaint

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

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

 hmin,hmax)
   File "/usr/lib64/python2.6/dist-
 packages/wx-2.8-gtk2-unicode/wx/_controls.py", line 2692, in
 SetRange

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

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

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

 hmin,hmax)
   File "/usr/lib64/python2.6/dist-
 packages/wx-2.8-gtk2-unicode/wx/_controls.py", line 2692, in
 SetRange

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

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

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

 hmin,hmax)
   File "/usr/lib64/python2.6/dist-
 packages/wx-2.8-gtk2-unicode/wx/_controls.py", line 2692, in
 SetRange

 return _controls_.Slider_SetRange(*args, **kwargs)
 OverflowError
 :
 cannot convert float infinity to integer
 Traceback (most recent call last):
   File "/home/hamish/src/grass/svn/grass65/dist.x86_64
 -unknown-linux-gnu/etc/wxpython/nviz/mapwindow.py", line
 366, in OnPaint

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

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

 hmin,hmax)
   File "/usr/lib64/python2.6/dist-
 packages/wx-2.8-gtk2-unicode/wx/_controls.py", line 2692, in
 SetRange

 return _controls_.Slider_SetRange(*args, **kwargs)
 OverflowError
 :
 cannot convert float infinity to integer
 Traceback (most recent call last):
   File "/home/hamish/src/grass/svn/grass65/dist.x86_64
 -unknown-linux-gnu/etc/wxpython/nviz/mapwindow.py", line
 366, in OnPaint

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

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

 hmin,hmax)
   File "/usr/lib64/python2.6/dist-
 packages/wx-2.8-gtk2-unicode/wx/_controls.py", line 2692, in
 SetRange

 return _controls_.Slider_SetRange(*args, **kwargs)
 OverflowError
 :
 cannot convert float infinity to integer
 }}}

 thanks,
 Hamish

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



More information about the grass-dev mailing list