[GRASS-dev] crash in most recent wxgrass?

Martin,

I just updated and recompiled both GRASS 6.3 cvs and wxgrass. When I went to start up wxgrass, it crashed with the error below. I wonder if you have any thoughts as to what is causing this?

Thanks

Michael


Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

========= wxpython error output =============

GRASS 6.3.cvs (spearfish60_test):~ > wxgrass&
[2] 13248
[1] Done wxgrass
GRASS 6.3.cvs (spearfish60_test):~ > Digitization tool is disabled.
Under development…
Traceback (most recent call last):
File “/Applications/Grass/GRASS-6.3.app/Contents/Resources/etc/wx/wxgui.py”, line 918, in
app = GMApp(0)
File “/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/wx-2.8-mac-ansi/wx/_core.py”, line 7757, in init
self._BootstrapApp()
File “/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/wx-2.8-mac-ansi/wx/_core.py”, line 7354, in _BootstrapApp
return core.PyApp__BootstrapApp(*args, **kwargs)
File “/Applications/Grass/GRASS-6.3.app/Contents/Resources/etc/wx/wxgui.py”, line 900, in OnInit
mainframe = GMFrame(parent=None, id=wx.ID_ANY, title=“”)
File “/Applications/Grass/GRASS-6.3.app/Contents/Resources/etc/wx/wxgui.py”, line 188, in init
self.NewDisplay()
File “/Applications/Grass/GRASS-6.3.app/Contents/Resources/etc/wx/wxgui.py”, line 582, in NewDisplay
auimgr=self._auimgr)
File “/Applications/Grass/GRASS-6.3.app/Contents/Resources/etc/wx/gui_modules/wxgui_utils.py”, line 133, in init
Map=self.Map, auimgr=self.auimgr)
File “/Applications/Grass/GRASS-6.3.app/Contents/Resources/etc/wx/gui_modules/mapdisp.py”, line 1511, in init
self.MapWindow = BufferedWindow(self, id = wx.ID_ANY, Map=self.Map, tree=self.tree)
File “/Applications/Grass/GRASS-6.3.app/Contents/Resources/etc/wx/gui_modules/mapdisp.py”, line 216, in init
self.Map.SetRegion() # make sure that extents are updated at init
File “/Applications/Grass/GRASS-6.3.app/Contents/Resources/etc/wx/gui_modules/render.py”, line 402, in SetRegion
self.__adjustRegion()
File “/Applications/Grass/GRASS-6.3.app/Contents/Resources/etc/wx/gui_modules/render.py”, line 348, in __adjustRegion
(self.region[‘e’] - self.region[‘w’]) / self.width
ZeroDivisionError: float division

Michael Barton wrote:

I just updated and recompiled both GRASS 6.3 cvs and wxgrass. When I went to
start up wxgrass, it crashed with the error below. I wonder if you have any
thoughts as to what is causing this?

  File
"/Applications/Grass/GRASS-6.3.app/Contents/Resources/etc/wx/gui_modules/ren
der.py", line 348, in __adjustRegion
    (self.region['e'] - self.region['w']) / self.width
ZeroDivisionError: float division

Clearly, self.width is zero.

Maybe this code is being called before the widget has been fully
initialised?

--
Glynn Clements <glynn@gclements.plus.com>

Self.width should be the canvas width and should not be 0.

Michael

On 7/27/07 9:35 PM, "Glynn Clements" <glynn@gclements.plus.com> wrote:

Michael Barton wrote:

I just updated and recompiled both GRASS 6.3 cvs and wxgrass. When I went to
start up wxgrass, it crashed with the error below. I wonder if you have any
thoughts as to what is causing this?

  File
"/Applications/Grass/GRASS-6.3.app/Contents/Resources/etc/wx/gui_modules/ren
der.py", line 348, in __adjustRegion
    (self.region['e'] - self.region['w']) / self.width
ZeroDivisionError: float division

Clearly, self.width is zero.

Maybe this code is being called before the widget has been fully
initialised?

__________________________________________
Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton