[GRASS-dev] [GRASS GIS] #1846: Query vector map tool does not work

#1846: Query vector map tool does not work
------------------------+---------------------------------------------------
Reporter: pvanbosgeo | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 7.0.0
Component: Default | Version: svn-trunk
Keywords: | Platform: Linux
      Cpu: x86-64 |
------------------------+---------------------------------------------------
The query vector/raster map tool on a vector layer does not work. When
clicking on a layer, the rendering bar in the map display window get's
stuck somewhere on 50-75%. Moreover, the mouse cursor keeps on spinning
when hovering over any GRASS window, also after I close the map display
window (I thought it was related to the rendering of the map).

I am working on GRASS 7 r54557 (but it started in a previous revision), on
Ubuntu 12.10, with Python 2.7.3 and wxPython 2.8.12.1. I marked this as a
major problem as this affects a key functionality i.m.h.o.

The command line output when trying to query a vector layer is:

Traceback (most recent call last):
   File "/usr/local/grass7/grass-7.0.svn/etc/gui/wxpython/map
disp/mapwindow.py", line 969, in MouseActions

self.OnLeftUp(event)
   File "/usr/local/grass7/grass-7.0.svn/etc/gui/wxpython/map
disp/mapwindow.py", line 1164, in OnLeftUp

self.frame.Query(self.mouse['begin'][0],self.mouse['begin'][
1], layers)
   File "/usr/local/grass7/grass-7.0.svn/etc/gui/wxpython/map
disp/frame.py", line 685, in Query

self.QueryVector(east, north, qdist, posWindow, layers[0])
   File "/usr/local/grass7/grass-7.0.svn/etc/gui/wxpython/map
disp/frame.py", line 837, in QueryVector

self.MapWindow.UpdateMap(render = False, renderVector =
False)
   File "/usr/local/grass7/grass-7.0.svn/etc/gui/wxpython/map
disp/mapwindow.py", line 612, in UpdateMap

self.mapfile = self.Map.Render(force = False, mapWindow =
self.frame)
   File "/usr/local/grass7/grass-7.0.svn/etc/gui/wxpython/cor
e/render.py", line 963, in Render

maps, masks, opacities =
self.GetMapsMasksAndOpacities(force, mapWindow, windres)
   File "/usr/local/grass7/grass-7.0.svn/etc/gui/wxpython/cor
e/render.py", line 933, in GetMapsMasksAndOpacities

return self._renderLayers(force, guiFrame)
   File "/usr/local/grass7/grass-7.0.svn/etc/gui/wxpython/cor
e/render.py", line 901, in _renderLayers

if not layer.Render():
   File "/usr/local/grass7/grass-7.0.svn/etc/gui/wxpython/cor
e/render.py", line 148, in Render

ret, msg = self._runCommand(c)
   File "/usr/local/grass7/grass-7.0.svn/etc/gui/wxpython/cor
e/render.py", line 192, in _runCommand

**self.cmd[1])
IndexError
:
list index out of range

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

#1846: Query vector map tool does not work
------------------------+---------------------------------------------------
Reporter: pvanbosgeo | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 7.0.0
Component: Default | Version: svn-trunk
Keywords: | Platform: Linux
      Cpu: x86-64 |
------------------------+---------------------------------------------------

Comment(by pvanbosgeo):

This bug is related to the rendering of the map. If I disable rendering in
the Map display window, the query tool works. Also note that the query
tool works without problems in 6.4.3 (obviously the vector layer has to be
rebuild first).

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

#1846: Query vector map tool does not work
-------------------------+--------------------------------------------------
  Reporter: pvanbosgeo | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: trivial | Milestone: 7.0.0
Component: Default | Version: svn-trunk
Resolution: invalid | Keywords:
  Platform: Linux | Cpu: x86-64
-------------------------+--------------------------------------------------
Changes (by pvanbosgeo):

  * priority: major => trivial
  * status: new => closed
  * resolution: => invalid

Comment:

OK, not sure what has happened, but reinstalled (the same version of)
grass 7.0, and it works correctly again. Marking this as invalid.

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

#1846: Query vector map tool does not work
-------------------------+--------------------------------------------------
  Reporter: pvanbosgeo | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: trivial | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Resolution: invalid | Keywords:
  Platform: Linux | Cpu: x86-64
-------------------------+--------------------------------------------------
Changes (by martinl):

  * component: Default => wxGUI

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

#1846: Query vector map tool does not work
-------------------------+--------------------------------------------------
  Reporter: pvanbosgeo | Owner: grass-dev@…
      Type: defect | Status: reopened
  Priority: major | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords:
  Platform: Linux | Cpu: x86-64
-------------------------+--------------------------------------------------
Changes (by mmetz):

  * priority: trivial => major
  * status: closed => reopened
  * resolution: invalid =>

Comment:

Replying to [comment:2 pvanbosgeo]:
> OK, not sure what has happened, but reinstalled (the same version of)
grass 7.0, and it works correctly again. Marking this as invalid.

Reopening because I get the exact same error with r54582. No changes in my
local copy, a brand new .grass7/wx file.

Markus M

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

#1846: Query vector map tool does not work
-------------------------+--------------------------------------------------
  Reporter: pvanbosgeo | Owner: grass-dev@…
      Type: defect | Status: reopened
  Priority: major | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords:
  Platform: Linux | Cpu: x86-64
-------------------------+--------------------------------------------------

Comment(by mmetz):

Replying to [comment:4 mmetz]:
> Replying to [comment:2 pvanbosgeo]:
> > OK, not sure what has happened, but reinstalled (the same version of)
grass 7.0, and it works correctly again. Marking this as invalid.
>
> Reopening because I get the exact same error with r54582.

Hopefully fixed in r54585, but the change needs review.

Markus M

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

#1846: Query vector map tool does not work
-------------------------+--------------------------------------------------
  Reporter: pvanbosgeo | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: major | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Resolution: fixed | Keywords: query
  Platform: Linux | Cpu: x86-64
-------------------------+--------------------------------------------------
Changes (by annakrat):

  * keywords: => query
  * status: reopened => closed
  * resolution: => fixed

Comment:

Replying to [comment:5 mmetz]:
>
> Hopefully fixed in r54585, but the change needs review.
>

Thanks for the fix, it seems to be only a copy & paste error. I think we
can close this.

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