Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#2928 closed defect (fixed)

query tool does not work in wx display

Reported by: veroandreo Owned by: grass-dev@…
Priority: normal Milestone: 7.2.0
Component: wxGUI Version: svn-trunk
Keywords: query tool Cc:
CPU: x86-64 Platform: Linux

Description

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

Change History (5)

comment:1 by veroandreo, 9 years ago

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.

comment:2 by annakrat, 9 years ago

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

comment:3 by veroandreo, 9 years ago

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

in reply to:  3 comment:4 by annakrat, 9 years ago

Resolution: fixed
Status: newclosed

Replying to 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.

comment:5 by neteler, 9 years ago

Milestone: 7.1.07.2.0

Milestone renamed

Note: See TracTickets for help on using tickets.