[GRASS-dev] [GRASS GIS] #3652: Map display exception when switching to vector digitizer mode
GRASS GIS
trac at osgeo.org
Fri Sep 21 07:48:00 PDT 2018
#3652: Map display exception when switching to vector digitizer mode
-----------------------+-------------------------
Reporter: balagates | Owner: grass-dev@…
Type: defect | Status: new
Priority: minor | Milestone:
Component: wxGUI | Version: 7.4.0
Keywords: | CPU: OSX/Intel
Platform: MacOSX |
-----------------------+-------------------------
If you have a vector drawn in the map window the first time you change the
mode from "2D View" to "Vector digitizer" it clears the map window and in
the console I see an exception:
{{{
Traceback (most recent call last):
File
"/opt/local/share/grass-7.4.0/gui/wxpython/core/gthread.py",
line 117, in OnDone
event.ondone(event)
File
"/opt/local/share/grass-7.4.0/gui/wxpython/core/render.py",
line 442, in OnRenderDone
self.updateProgress.emit(layer=self.layer)
File "/opt/local/share/grass-7.4.0/etc/python/grass/pydisp
atch/signal.py", line 229, in emit
dispatcher.send(signal=self, *args, **kwargs)
File "/opt/local/share/grass-7.4.0/etc/python/grass/pydisp
atch/dispatcher.py", line 349, in send
**named
File "/opt/local/share/grass-7.4.0/etc/python/grass/pydisp
atch/robustapply.py", line 60, in robustApply
return receiver(*arguments, **named)
File
"/opt/local/share/grass-7.4.0/gui/wxpython/core/render.py",
line 717, in ReportProgress
self.renderDone.emit()
File "/opt/local/share/grass-7.4.0/etc/python/grass/pydisp
atch/signal.py", line 229, in emit
dispatcher.send(signal=self, *args, **kwargs)
File "/opt/local/share/grass-7.4.0/etc/python/grass/pydisp
atch/dispatcher.py", line 349, in send
**named
File "/opt/local/share/grass-7.4.0/etc/python/grass/pydisp
atch/robustapply.py", line 60, in robustApply
return receiver(*arguments, **named)
File
"/opt/local/share/grass-7.4.0/gui/wxpython/core/render.py",
line 623, in OnRenderDone
raise GException(_("Rendering failed: %s" % msg))
core.gcmd
.
GException
:
Rendering failed: Expecting 825x586 image but got 825x622
image.
}}}
One workaround after the exception is to click on the "Render Map" icon.
I suspect the problem is that the switch to "Vector digitizer" mode adds a
row of toolbar icons reducing the area to draw the image but the size
change has not propogated to everything that needs it. Interestingly
switching modes back to "2D View" and then to "Vector digitizer" a second
time does not produce the error even though the vector digitizer toolbar
disappears and then is re-added.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3652>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list