id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,cpu,platform 1961,wxNVIZ: error if no raster map selected,hamish,grass-dev@…,"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 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",defect,closed,major,6.4.3,wxGUI,svn-develbranch6,fixed,wxnviz,,x86-64,All