I recently updated from wxPython 2.8.4.0 to 2.8.4.2 on my Mac, using the binaries supplied at the wxPython site.
After updating, wxgrass crashed with the error listed below. After I uninstalled 2.8.4.2 and reinstalled 2.8.4.0, it runs fine.
I’ve posted this to the wxPython bug list too.
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
========== error generated by wxPython 2.8.4.2 ===========
GRASS 6.3.cvs (spearfish60_test):~ > Digitization tool is disabled.
Under development…
CGBitmapContextCreate: invalid data bytes/row: should be at least 4 for 8 integer bits/component, 3 components, kCGImageAlphaNoneSkipFirst.
CGContextConcatCTM: invalid context
CGContextConcatCTM: invalid context
Traceback (most recent call last):
File “/Applications/Grass/GRASS-6.3.app/Contents/Resources/etc/wx/wxgui.py”, line 945, in
app = GMApp(0)
File “//Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/wx-2.8-mac-unicode/wx/_core.py”, line 7819, in init
self._BootstrapApp()
File “//Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/wx-2.8-mac-unicode/wx/_core.py”, line 7416, in _BootstrapApp
return core.PyApp__BootstrapApp(*args, **kwargs)
File “/Applications/Grass/GRASS-6.3.app/Contents/Resources/etc/wx/wxgui.py”, line 927, 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 189, in init
self.NewDisplay()
File “/Applications/Grass/GRASS-6.3.app/Contents/Resources/etc/wx/wxgui.py”, line 585, 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 1518, 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 212, in init
self.OnSize(None)
File “/Applications/Grass/GRASS-6.3.app/Contents/Resources/etc/wx/gui_modules/mapdisp.py”, line 409, in OnSize
self._Buffer = wx.EmptyBitmap(self.Map.width, self.Map.height)
File “//Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/wx-2.8-mac-unicode/wx/_gdi.py”, line 718, in EmptyBitmap
val = gdi.new_EmptyBitmap(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion “m_hBitmap” failed at /BUILD/wxPython-src-2.8.4.2/src/mac/carbon/bitmap.cpp(230) in Create(): Unable to create CGBitmapContext context
GRASS 6.3.cvs (spearfish60_test):~ >