Opened 2 years ago

Last modified 10 months ago

#3376 new defect

Rendering failed: Expecting image 390x240 but got 10x10

Reported by: wenzeslaus Owned by: grass-dev@…
Priority: minor Milestone: 7.4.5
Component: wxGUI Version: svn-trunk
Keywords: mapdisp, rendering, display, size Cc:
CPU: Unspecified Platform: Unspecified

Description

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.

Change History (5)

comment:1 Changed 22 months ago by neteler

Milestone: 7.4.07.4.1

Ticket retargeted after milestone closed

comment:2 Changed 17 months ago by neteler

Milestone: 7.4.17.4.2

comment:3 Changed 13 months ago by neteler

Milestone: 7.4.27.4.3

Ticket retargeted after milestone closed

comment:4 Changed 11 months ago by martinl

Milestone: 7.4.37.4.4

Bump milestone to 7.4.4

comment:5 Changed 10 months ago by neteler

Milestone: 7.4.47.4.5

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.