[GRASS-dev] [GRASS GIS] #3376: Rendering failed: Expecting image 390x240 but got 10x10

GRASS GIS trac at osgeo.org
Sat Jul 22 09:45:53 PDT 2017


#3376: Rendering failed: Expecting image 390x240 but got 10x10
-----------------------------------------------+-------------------------
 Reporter:  wenzeslaus                         |      Owner:  grass-dev@…
     Type:  defect                             |     Status:  new
 Priority:  minor                              |  Milestone:  7.4.0
Component:  wxGUI                              |    Version:  svn-trunk
 Keywords:  mapdisp, rendering, display, size  |        CPU:  Unspecified
 Platform:  Unspecified                        |
-----------------------------------------------+-------------------------
 Sometimes in GUI (wxGUI Map Display) I get ''Rendering failed: Expecting
 image [of certain size] but got [different size].'' For example:

 {{{
 core.gcmd.GException: Rendering failed: Expecting 390x240 image but got
 10x10 image.
 }}}

 I'm not sure how to reproduce it in GUI, but get it quite often (50% of
 cases) with `gui/wxpython/mapdisp/test_mapdisp.py`:

 {{{
 test_mapdisp.py test=apitest vector=streets
 }}}

 The traceback:

 {{{
 GRASS 7.3.svn (nc_basic_spm_grass7):.../gui/wxpython > python
 mapdisp/test_mapdisp.py test=apitest vector=streets
 Traceback (most recent call last):
   File ".../gui/wxpython/core/gthread.py", line 117, in OnDone
     event.ondone(event)
   File ".../gui/wxpython/core/render.py", line 442, in OnRenderDone
     self.updateProgress.emit(layer=self.layer)
   File ".../etc/python/grass/pydispatch/signal.py", line 229, in emit
     dispatcher.send(signal=self, *args, **kwargs)
   File ".../etc/python/grass/pydispatch/dispatcher.py", line 349, in send
     **named
   File ".../etc/python/grass/pydispatch/robustapply.py", line 60, in
 robustApply
     return receiver(*arguments, **named)
   File ".../gui/wxpython/core/render.py", line 717, in ReportProgress
     self.renderDone.emit()
   File ".../etc/python/grass/pydispatch/signal.py", line 229, in emit
     dispatcher.send(signal=self, *args, **kwargs)
   File ".../etc/python/grass/pydispatch/dispatcher.py", line 349, in send
     **named
   File ".../etc/python/grass/pydispatch/robustapply.py", line 60, in
 robustApply
     return receiver(*arguments, **named)
   File ".../gui/wxpython/core/render.py", line 623, in OnRenderDone
     raise GException(_("Rendering failed: %s" % msg))
 core.gcmd.GException: Rendering failed: Expecting 390x240 image but got
 10x10 image.
 }}}

 In that case, it seems that it happens when the window is being set up
 from some initial small size, so it is not necessarily the same case in
 GUI.

 In both cases, GUI continues to work. Setting as minor defect for the next
 release.

 This was also mentioned in #2677 and #2710.

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



More information about the grass-dev mailing list