[GRASS-dev] [GRASS GIS] #1554: wxGUI Cartographic Composer: preview broken on Windows

GRASS GIS trac at osgeo.org
Sat Jan 28 05:43:16 EST 2012


#1554: wxGUI Cartographic Composer: preview broken on Windows
----------------------------------------------------+-----------------------
 Reporter:  martinl                                 |       Owner:  grass-dev@…              
     Type:  defect                                  |      Status:  new                      
 Priority:  normal                                  |   Milestone:  6.4.2                    
Component:  wxGUI                                   |     Version:  unspecified              
 Keywords:  cartographic composer, psmap, wingrass  |    Platform:  MSWindows XP             
      Cpu:  Unspecified                             |  
----------------------------------------------------+-----------------------
 Recently `python-pil` package has been introduced into OSGeo4W framework.
 When testing "preview" functionality in cartographic composer I am getting
 error bellow

 {{{
 Traceback (most recent call last):
   File "c:\osgeo4w\usr\src\grass64_release\dist.i686-pc-
 mingw32\etc\wxpython\gui_modules\psmap.py", line 317, in OnCmdDone
     im.save(self.imgName, format = 'png')
   File "C:\OSGeo4w\apps\Python27\lib\site-packages\PIL\Image.py", line
 1406, in save
     self.load()
   File "C:\OSGeo4w\apps\Python27\lib\site-packages\PIL\EpsImagePlugin.py",
 line 283, in load
     self.im = Ghostscript(self.tile, self.size, self.fp)
   File "C:\OSGeo4w\apps\Python27\lib\site-packages\PIL\EpsImagePlugin.py",
 line 72, in Ghostscript
     gs.write(s)
 IOError: [Errno 32] Broken pipe
 c:\osgeo4w\usr\src\grass64_release\dist.i686-pc-
 mingw32\etc\wxpython\gui_modules\psmap.py:325: RuntimeWarning: tp_compare
 didn't return -1 or -2 for exception
   rect = self.previewCanvas.ImageRect()
 Traceback (most recent call last):
   File "c:\osgeo4w\usr\src\grass64_release\dist.i686-pc-
 mingw32\etc\wxpython\gui_modules\psmap.py", line 325, in OnCmdDone
     rect = self.previewCanvas.ImageRect()
   File "c:\osgeo4w\usr\src\grass64_release\dist.i686-pc-
 mingw32\etc\wxpython\gui_modules\psmap.py", line 1626, in ImageRect
     iW, iH = img.GetWidth(), img.GetHeight()
   File "C:\OSGeo4w\apps\Python27\lib\site-packages\wx-2.8-msw-
 unicode\wx\_core.py", line 3031, in GetWidth
     return _core_.Image_GetWidth(*args, **kwargs)
 wx._core.PyAssertionError: C++ assertion "Ok()" failed at
 ..\..\src\common\image.cpp(1454) in wxImage::GetWidth(): invalid image
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1554>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list