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

#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&gt;
GRASS GIS <https://grass.osgeo.org>

#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
Resolution: | Keywords: query tool
       CPU: x86-64 | Platform: Linux
-------------------------+-------------------------

Comment (by veroandreo):

This is still not working in r68197. A pity because it's a quick way to
check values at the same position in several raster maps.

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

#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
Resolution: | Keywords: query tool
       CPU: x86-64 | Platform: Linux
-------------------------+-------------------------

Comment (by annakrat):

Please try r68246 and test both d.mon and main GUI.

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

#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
Resolution: | Keywords: query tool
       CPU: x86-64 | Platform: Linux
-------------------------+-------------------------

Comment (by veroandreo):

Thanks, Anna! Works fine now both using d.mon and the main map display in
the GUI. However, in both cases, the first time I click over the displayed
map, I still get this message in the terminal:

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

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

#2928: query tool does not work in wx display
-------------------------+-------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.1.0
Component: wxGUI | Version: svn-trunk
Resolution: fixed | Keywords: query tool
       CPU: x86-64 | Platform: Linux
-------------------------+-------------------------
Changes (by annakrat):

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

Comment:

Replying to [comment:3 veroandreo]:
> Thanks, Anna! Works fine now both using d.mon and the main map display
in the GUI. However, in both cases, the first time I click over the
displayed map, I still get this message in the terminal:
>
> {{{
> (main.py:9791): Gtk-CRITICAL **: gtk_widget_set_size_request: assertion
'height >= -1' failed
> }}}

Thanks. The gtk error is unrelated and I think harmless.

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