[GRASS-dev] [GRASS GIS] #445: grass_nviz.LoadSurface not returning id when called a 2nd time

#445: grass_nviz.LoadSurface not returning id when called a 2nd time
-----------------------+----------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Keywords: | Platform: MacOSX
      Cpu: OSX/Intel |
-----------------------+----------------------------------------------------
This item may fix a number of things.

If you start wxnviz and display a map, close wxnviz, restart nviz...

The 2nd time you start wxnnviz...

id = self.nvizClass.LoadSurface(str(layer.name), None, None)

in nviz_mapdisplay.py is not returning the id of the map. It returns only
-1. It's got the name right in both cases. But it returns an id value the
first time it is run, but not subsequently.

This is at line 477 of nviz_mapdisp.py. I'm not sure, but it looks like a
SWIG call in grass_nviz.py.

Because this does not return an id value, a lot of other things begin to
bomb.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/445&gt;
GRASS GIS <http://grass.osgeo.org>

#445: grass_nviz.LoadSurface not returning id when called a 2nd time
-----------------------+----------------------------------------------------
  Reporter: cmbarton | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords:
  Platform: MacOSX | Cpu: OSX/Intel
-----------------------+----------------------------------------------------
Changes (by martinl):

  * status: new => assigned
  * owner: grass-dev@lists.osgeo.org => martinl
* cc: grass-dev@lists.osgeo.org (added)

Comment:

I am unable to reproduce it, probably I am doing something.

  1. add raster layer elev_state_500m
  1. display in 2D mode
  1. display in 3D mode -> id 110658
  1. quit 3D mode
  1. switch back to 3D mode -> id 110658

Martin

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/445#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#445: grass_nviz.LoadSurface not returning id when called a 2nd time
-----------------------+----------------------------------------------------
  Reporter: cmbarton | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 7.0.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords:
  Platform: MacOSX | Cpu: OSX/Intel
-----------------------+----------------------------------------------------
Changes (by cmbarton):

  * milestone: 6.4.0 => 7.0.0

Comment:

This is fixed in 6.4 and 6.5, but still broken in 7. I'm changing the
milestone so that it is no longer a problem for the GRASS 6 series. We
probably just need to port the fix (I don't remember what it was) from 6.5
to 7.

Michael

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/445#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#445: grass_nviz.LoadSurface not returning id when called a 2nd time
-----------------------+----------------------------------------------------
  Reporter: cmbarton | Owner: martinl
      Type: defect | Status: closed
  Priority: major | Milestone: 7.0.0
Component: wxGUI | Version: svn-develbranch6
Resolution: fixed | Keywords:
  Platform: MacOSX | Cpu: OSX/Intel
-----------------------+----------------------------------------------------
Changes (by cmbarton):

  * status: assigned => closed
  * resolution: => fixed

Comment:

This now seems completely fixed in 7.0 too. No one else has talked about
it and it works for me. I'm closing it.

Michael

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/445#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>