[GRASS-dev] [GRASS GIS] #2928: query tool does not work in wx display

GRASS GIS trac at osgeo.org
Fri Feb 19 17:45:23 PST 2016


#2928: query tool does not work in wx display
------------------------+-------------------------
 Reporter:  veroandreo  |      Owner:  grass-dev@…
     Type:  defect      |     Status:  new
 Priority:  normal      |  Milestone:  7.1.0
Component:  wxGUI       |    Version:  svn-trunk
 Keywords:  query tool  |        CPU:  x86-64
 Platform:  Linux       |
------------------------+-------------------------
 Query tool in grass71 (r67891) does not work with wx display (d.mon wx0),
 neither for raster maps, nor for vector maps. In both cases I get the
 following error:

 {{{
 Traceback (most recent call last):
   File "/home/veroandreo/software/grass-7.1.svn/dist.x86_64-pc-linux-
 gnu/gui/wxpython/mapwin/buffered.py", line 1236, in MouseActions
     self.OnLeftUp(event)
   File "/home/veroandreo/software/grass-7.1.svn/dist.x86_64-pc-linux-
 gnu/gui/wxpython/mapwin/buffered.py", line 1413, in OnLeftUp
     self.mapQueried.emit(x=self.mouse['end'][0], y=self.mouse['end'][1])
   File "/home/veroandreo/software/grass-7.1.svn/dist.x86_64-pc-linux-
 gnu/etc/python/grass/pydispatch/signal.py", line 229, in emit
     dispatcher.send(signal=self, *args, **kwargs)
   File "/home/veroandreo/software/grass-7.1.svn/dist.x86_64-pc-linux-
 gnu/etc/python/grass/pydispatch/dispatcher.py", line 349, in send
     **named
   File "/home/veroandreo/software/grass-7.1.svn/dist.x86_64-pc-linux-
 gnu/etc/python/grass/pydispatch/robustapply.py", line 60, in robustApply
     return receiver(*arguments, **named)
   File "/home/veroandreo/software/grass-7.1.svn/dist.x86_64-pc-linux-
 gnu/gui/wxpython/mapdisp/frame.py", line 870, in Query
     self.QueryMap(east, north, qdist, rast, vect)
   File "/home/veroandreo/software/grass-7.1.svn/dist.x86_64-pc-linux-
 gnu/gui/wxpython/mapdisp/frame.py", line 919, in QueryMap
     self._highlighter_layer.Clear()
   File "/home/veroandreo/software/grass-7.1.svn/dist.x86_64-pc-linux-
 gnu/gui/wxpython/gui_core/vselect.py", line 377, in Clear
     self.mapdisp.RemoveQueryLayer()
 AttributeError: 'NoneType' object has no attribute 'RemoveQueryLayer'
 }}}

 In rel_branch (r67880) it does work both for raster and vector maps, but
 in console I get the following every time I click somewhere in the wx
 display
 {{{

 (main.py:31358): Gtk-CRITICAL **: gtk_widget_set_size_request: assertion
 'height >= -1' failed

 }}}

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



More information about the grass-dev mailing list