[GRASS-user] Error while saving display on Map Display- wxpython tool

António Rocha antonio.rocha at deimos.com.pt
Tue Sep 18 06:46:29 PDT 2012


Hi
When I try to use "Save display to graphic file" in Windows I get this 
error:

Traceback (most recent call last):
   File "C:\Osgeo\apps\grass\grass-6.4.2\etc\wxpython\gui_mod
ules\mapdisp.py", line 1159, in SaveToFile

width, height)
   File "C:\Osgeo\apps\grass\grass-6.4.2\etc\wxpython\gui_mod
ules\mapdisp_window.py", line 575, in SaveToFile

dc = wx.BufferedPaintDC(self, ibuffer)
   File "C:\Osgeo\apps\Python27\lib\site-packages\wx-2.8-msw-
unicode\wx\_gdi.py", line 4990, in __init__

_gdi_.BufferedPaintDC_swiginit(self,_gdi_.new_BufferedPaintD
C(*args, **kwargs))
wx._core
.
PyAssertionError
:
C++ assertion "wxAssertFailure" failed at
..\..\src\msw\dcclient.cpp(219) in wxPaintDC::wxPaintDC():
wxPaintDC may be created only in EVT_PAINT handler!
Traceback (most recent call last):
   File "C:\Osgeo\apps\grass\grass-6.4.2\etc\wxpython\gui_mod
ules\mapdisp.py", line 1159, in SaveToFile

width, height)
   File "C:\Osgeo\apps\grass\grass-6.4.2\etc\wxpython\gui_mod
ules\mapdisp_window.py", line 575, in SaveToFile

dc = wx.BufferedPaintDC(self, ibuffer)
   File "C:\Osgeo\apps\Python27\lib\site-packages\wx-2.8-msw-
unicode\wx\_gdi.py", line 4990, in __init__

_gdi_.BufferedPaintDC_swiginit(self,_gdi_.new_BufferedPaintD
C(*args, **kwargs))
wx._core
.
PyAssertionError
:
C++ assertion "wxAssertFailure" failed at
..\..\src\msw\dcclient.cpp(219) in wxPaintDC::wxPaintDC():
wxPaintDC may be created only in EVT_PAINT handler!

My GRASS version is 6.4.2 (installed with OSGEO4w).

Any tips on how to fix this?
Thanks
Antonio

-- 
António Rocha
Earth Observation Applications and Services
Av. D. João II, Lt 1.17.01 - 10º, Ed. Torre Zen
1998-023 Lisboa, Portugal
Ph:  +351 21 893 30 23
Fax: +351 21 896 90 99
http://www.deimos.pt



More information about the grass-user mailing list