Opened 12 years ago
Closed 12 years ago
#1846 closed defect (fixed)
Query vector map tool does not work
Reported by: | pvanbosgeo | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 7.0.0 |
Component: | wxGUI | Version: | svn-trunk |
Keywords: | query | Cc: | |
CPU: | x86-64 | Platform: | Linux |
Description
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.mousebegin[0],self.mousebegin[ 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
Change History (6)
comment:1 by , 12 years ago
follow-up: 4 comment:2 by , 12 years ago
Priority: | major → trivial |
---|---|
Resolution: | → invalid |
Status: | new → closed |
OK, not sure what has happened, but reinstalled (the same version of) grass 7.0, and it works correctly again. Marking this as invalid.
comment:3 by , 12 years ago
Component: | Default → wxGUI |
---|
follow-up: 5 comment:4 by , 12 years ago
Priority: | trivial → major |
---|---|
Resolution: | invalid |
Status: | closed → reopened |
Replying to 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
follow-up: 6 comment:5 by , 12 years ago
Replying to mmetz:
Replying to 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
comment:6 by , 12 years ago
Keywords: | query added |
---|---|
Resolution: | → fixed |
Status: | reopened → closed |
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).