[GRASS-dev] [GRASS GIS] #3652: Map display exception when switching to vector digitizer mode

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

#3652: Map display exception when switching to vector digitizer mode
------------------------+-------------------------
  Reporter: balagates | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: minor | Milestone: 7.8.3
Component: wxGUI | Version: 7.4.0
Resolution: | Keywords:
       CPU: OSX/Intel | Platform: MacOSX
------------------------+-------------------------

Comment (by nila):

A fix for this issue has been proposed with
[https://github.com/OSGeo/grass/pull/456 ​PR456].

See also #3487.

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

#3652: Map display exception when switching to vector digitizer mode
------------------------+-------------------------
  Reporter: balagates | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: minor | Milestone: 7.8.3
Component: wxGUI | Version: 7.4.0
Resolution: | Keywords:
       CPU: OSX/Intel | Platform: MacOSX
------------------------+-------------------------

Comment (by nila):

This issue is with 7.8.2dev and master (7.9dev) not reproducible, seem to
have been fixed at some stage (independent of
[https://github.com/OSGeo/grass/pull/456 PR456]. The ticket may be closed.

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

#3652: Map display exception when switching to vector digitizer mode
------------------------+-------------------------
  Reporter: balagates | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: minor | Milestone: 7.8.3
Component: wxGUI | Version: 7.4.0
Resolution: fixed | Keywords:
       CPU: OSX/Intel | Platform: MacOSX
------------------------+-------------------------
Changes (by annakrat):

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

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