[GRASS-dev] [GRASS GIS] #2068: d.out.file fails

#2068: d.out.file fails
-----------------------------+----------------------------------------------
Reporter: laurimyllyvirta | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.4
Component: Default | Version: 6.4.2
Keywords: | Platform: MSWindows 7
      Cpu: x86-32 |
-----------------------------+----------------------------------------------
Thank you so much for an amazing piece of free software.

When trying to save the display as an image in wxGUI, I get the error
below. No image file gets created. I have tried to vary the contents of
the display, the dimensions of the image etc. but the result is
consistently the same.

Traceback (most recent call last):
   File "C:\Program Files\GRASS
6.4.2\etc\wxpython\gui_modules\mapdisp.py", line 1159, in
SaveToFile

width, height)
   File "C:\Program Files\GRASS
6.4.2\etc\wxpython\gui_modules\mapdisp_window.py", line 575,
in SaveToFile

dc = wx.BufferedPaintDC(self, ibuffer)
   File "C:\Program Files\GRASS 6.4.2\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!

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

#2068: Saving the display as an image in wxGUI fails
-----------------------------+----------------------------------------------
Reporter: laurimyllyvirta | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.4
Component: wxGUI | Version: 6.4.2
Keywords: display | Platform: MSWindows 7
      Cpu: x86-32 |
-----------------------------+----------------------------------------------
Changes (by wenzeslaus):

  * keywords: => display
  * component: Default => wxGUI

Comment:

If I remember, this was fixed at some point. Can you please try to update
to GRASS 6.4.3 and test there? (6.4.3 is the current stable release, if
you want to test this bug also for development/svn versions such as GRASS
7 you are welcome, but the update to 6.4.3 may solve your problem.)

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

#2068: Saving the display as an image in wxGUI fails
-----------------------------+----------------------------------------------
Reporter: laurimyllyvirta | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.4
Component: wxGUI | Version: 6.4.2
Keywords: display | Platform: MSWindows 7
      Cpu: x86-32 |
-----------------------------+----------------------------------------------
Description changed by martinl:

Old description:

Thank you so much for an amazing piece of free software.

When trying to save the display as an image in wxGUI, I get the error
below. No image file gets created. I have tried to vary the contents of
the display, the dimensions of the image etc. but the result is
consistently the same.

Traceback (most recent call last):
  File "C:\Program Files\GRASS
6.4.2\etc\wxpython\gui_modules\mapdisp.py", line 1159, in
SaveToFile

width, height)
  File "C:\Program Files\GRASS
6.4.2\etc\wxpython\gui_modules\mapdisp_window.py", line 575,
in SaveToFile

dc = wx.BufferedPaintDC(self, ibuffer)
  File "C:\Program Files\GRASS 6.4.2\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!

New description:

Thank you so much for an amazing piece of free software.

When trying to save the display as an image in wxGUI, I get the error
below. No image file gets created. I have tried to vary the contents of
the display, the dimensions of the image etc. but the result is
consistently the same.

{{{
Traceback (most recent call last):
   File "C:\Program Files\GRASS
6.4.2\etc\wxpython\gui_modules\mapdisp.py", line 1159, in
SaveToFile

width, height)
   File "C:\Program Files\GRASS
6.4.2\etc\wxpython\gui_modules\mapdisp_window.py", line 575,
in SaveToFile

dc = wx.BufferedPaintDC(self, ibuffer)
   File "C:\Program Files\GRASS 6.4.2\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!
}}}

--

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

#2068: Saving the display as an image in wxGUI fails
-----------------------------+----------------------------------------------
Reporter: laurimyllyvirta | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.4
Component: wxGUI | Version: 6.4.2
Keywords: display | Platform: MSWindows 7
      Cpu: x86-32 |
-----------------------------+----------------------------------------------

Comment(by hamish):

Hi,

as a work-around, you might try the built-in Windows 7 screenshot tool,

  http://windows.microsoft.com/en-US/windows7/products/features/snipping-
tool

Hamish

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

#2068: Saving the display as an image in wxGUI fails
------------------------------+---------------------------------------------
  Reporter: laurimyllyvirta | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 6.4.4
Component: wxGUI | Version: 6.4.2
Resolution: worksforme | Keywords: display
  Platform: MSWindows 7 | Cpu: x86-32
------------------------------+---------------------------------------------
Changes (by laurimyllyvirta):

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

Comment:

Sorry for missing the new stable release! I can confirm that updating to
6.4.3 fixed this issue for me. And thank you for the lightning speed
responses.

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