[GRASS-dev] [GRASS GIS] #1547: wxGUI Cartographic Composer: division by zero

#1547: wxGUI Cartographic Composer: division by zero
------------------------------------------+---------------------------------
Reporter: martinl | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 6.4.2
Component: wxGUI | Version: unspecified
Keywords: cartographic composer, psmap | Platform: MSWindows XP
      Cpu: Unspecified |
------------------------------------------+---------------------------------
When starting Cartographic Composer in winGRASS (ie. without preview
functionality) I am getting this error

{{{
raceback (most recent call last):
   File "C:\Program Files (x86)\GRASS
6.4.2svn\etc\wxpython\gui_modules\psmap.py", line 1679, in
OnSize

self.ZoomAll()
   File "C:\Program Files (x86)\GRASS
6.4.2svn\etc\wxpython\gui_modules\psmap.py", line 1492, in
ZoomAll

zoomFactor, view = self.ComputeZoom(zoomP)
   File "C:\Program Files (x86)\GRASS
6.4.2svn\etc\wxpython\gui_modules\psmap.py", line 1409, in
ComputeZoom

zoomFactor = 1/max(rW/cW, rH/cH)
ZeroDivisionError
:
float division by zero
}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1547&gt;
GRASS GIS <http://grass.osgeo.org>

#1547: wxGUI Cartographic Composer: division by zero
----------------------------------------------------+-----------------------
Reporter: martinl | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 6.4.2
Component: wxGUI | Version: unspecified
Keywords: cartographic composer, psmap, wingrass | Platform: MSWindows XP
      Cpu: Unspecified |
----------------------------------------------------+-----------------------
Changes (by martinl):

  * keywords: cartographic composer, psmap => cartographic composer,
               psmap, wingrass

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1547#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#1547: wxGUI Cartographic Composer: division by zero
----------------------------------------------------+-----------------------
Reporter: martinl | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 6.4.2
Component: wxGUI | Version: unspecified
Keywords: cartographic composer, psmap, wingrass | Platform: MSWindows XP
      Cpu: Unspecified |
----------------------------------------------------+-----------------------

Comment(by annakrat):

Please try r50474 (6.4), I am not able to test it on windows.

Anna

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

#1547: wxGUI Cartographic Composer: division by zero
----------------------------------------------------+-----------------------
Reporter: martinl | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 6.4.2
Component: wxGUI | Version: unspecified
Keywords: cartographic composer, psmap, wingrass | Platform: MSWindows XP
      Cpu: Unspecified |
----------------------------------------------------+-----------------------
Changes (by martinl):

* cc: martinl (added)

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

#1547: wxGUI Cartographic Composer: division by zero
----------------------------------------------------+-----------------------
Reporter: martinl | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 6.5.0
Component: wxGUI | Version: unspecified
Keywords: cartographic composer, psmap, wingrass | Platform: MSWindows XP
      Cpu: Unspecified |
----------------------------------------------------+-----------------------
Changes (by martinl):

  * milestone: 6.4.2 => 6.5.0

Comment:

Replying to [comment:2 annakrat]:
> Please try r50474 (6.4), I am not able to test it on windows.

seems to work. Before closing this ticket, please backport fix to other
active branches.

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

#1547: wxGUI Cartographic Composer: division by zero
---------------------------+------------------------------------------------
  Reporter: martinl | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: major | Milestone: 6.5.0
Component: wxGUI | Version: unspecified
Resolution: fixed | Keywords: cartographic composer, psmap, wingrass
  Platform: MSWindows XP | Cpu: Unspecified
---------------------------+------------------------------------------------
Changes (by annakrat):

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

Comment:

backported in r50475, r50476

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1547#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>

#1547: wxGUI Cartographic Composer: division by zero
---------------------------+------------------------------------------------
  Reporter: martinl | Owner: grass-dev@…
      Type: defect | Status: reopened
  Priority: major | Milestone: 6.4.2
Component: wxGUI | Version: unspecified
Resolution: | Keywords: cartographic composer, psmap, wingrass
  Platform: MSWindows XP | Cpu: Unspecified
---------------------------+------------------------------------------------
Changes (by martinl):

  * status: closed => reopened
  * resolution: fixed =>
  * milestone: 6.5.0 => 6.4.2

Comment:

Similar error
{{{
Traceback (most recent call last):
   File "C:\OSGeo4W_dev\apps\grass\grass-6.4.2svn\etc\wxpytho
n\gui_modules\psmap.py", line 1682, in OnSize

self.ZoomAll()
   File "C:\OSGeo4W_dev\apps\grass\grass-6.4.2svn\etc\wxpytho
n\gui_modules\psmap.py", line 1495, in ZoomAll

zoomFactor, view = self.ComputeZoom(zoomP)
   File "C:\OSGeo4W_dev\apps\grass\grass-6.4.2svn\etc\wxpytho
n\gui_modules\psmap.py", line 1422, in ComputeZoom

if rW/rH > cW/cH:
ZeroDivisionError
:
float division by zero
}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1547#comment:6&gt;
GRASS GIS <http://grass.osgeo.org>

#1547: wxGUI Cartographic Composer: division by zero
---------------------------+------------------------------------------------
  Reporter: martinl | Owner: annakrat
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.2
Component: wxGUI | Version: unspecified
Resolution: | Keywords: cartographic composer, psmap, wingrass
  Platform: MSWindows XP | Cpu: Unspecified
---------------------------+------------------------------------------------
Changes (by martinl):

* cc: martinl (removed)
* cc: grass-dev@… (added)
  * owner: grass-dev@… => annakrat
  * status: reopened => new

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1547#comment:7&gt;
GRASS GIS <http://grass.osgeo.org>

#1547: wxGUI Cartographic Composer: division by zero
---------------------------+------------------------------------------------
  Reporter: martinl | Owner: annakrat
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.2
Component: wxGUI | Version: unspecified
Resolution: | Keywords: cartographic composer, psmap, wingrass
  Platform: MSWindows XP | Cpu: Unspecified
---------------------------+------------------------------------------------

Comment(by annakrat):

r50508, could you confirm it before backport?

Thanks,
Anna

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1547#comment:8&gt;
GRASS GIS <http://grass.osgeo.org>

#1547: wxGUI Cartographic Composer: division by zero
---------------------------+------------------------------------------------
  Reporter: martinl | Owner: annakrat
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.2
Component: wxGUI | Version: unspecified
Resolution: | Keywords: cartographic composer, psmap, wingrass
  Platform: MSWindows XP | Cpu: Unspecified
---------------------------+------------------------------------------------

Comment(by martinl):

Replying to [comment:8 annakrat]:
> r50508, could you confirm it before backport?

seems to work.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1547#comment:9&gt;
GRASS GIS <http://grass.osgeo.org>

#1547: wxGUI Cartographic Composer: division by zero
---------------------------+------------------------------------------------
  Reporter: martinl | Owner: annakrat
      Type: defect | Status: closed
  Priority: major | Milestone: 6.4.2
Component: wxGUI | Version: unspecified
Resolution: fixed | Keywords: cartographic composer, psmap, wingrass
  Platform: MSWindows XP | Cpu: Unspecified
---------------------------+------------------------------------------------
Changes (by annakrat):

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

Comment:

Backported in r50518, r50519.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1547#comment:10&gt;
GRASS GIS <http://grass.osgeo.org>