[GRASS-dev] [GRASS GIS] #2741: d.to.rast fails

GRASS GIS trac at osgeo.org
Fri May 6 17:31:10 PDT 2016


#2741: d.to.rast fails
-----------------------+----------------------------------------------
  Reporter:  annakrat  |      Owner:  grass-dev@…
      Type:  defect    |     Status:  new
  Priority:  normal    |  Milestone:  7.2.0
 Component:  wxGUI     |    Version:  svn-trunk
Resolution:            |   Keywords:  rendering, d.to.rast, d.out.file
       CPU:  All       |   Platform:  All
-----------------------+----------------------------------------------
Changes (by wenzeslaus):

 * keywords:  rendering, d.to.rast => rendering, d.to.rast, d.out.file


Comment:

 This works before r65205 (same as #2857 and #2899). With r65205 I get this
 error message for G7:d.to.rast and G7:d.out.file:

 {{{
 Traceback (most recent call last):
   File "/...dist.../gui/wxpython/lmgr/frame.py", line 311, in <lambda>

 lambda event: self.RunSpecialCmd(event.cmd))
   File "/...dist.../gui/wxpython/lmgr/frame.py", line 619, in
 RunSpecialCmd

 self.RunDisplayCmd(command)
   File "/...dist.../gui/wxpython/lmgr/frame.py", line 673, in
 RunDisplayCmd

 '', ''))
   File "/...dist.../gui/wxpython/gui_core/forms.py", line 2467, in
 ParseCommand

 self.mf.OnApply(None)
   File "/...dist.../gui/wxpython/gui_core/forms.py", line 687, in OnApply

 self)
   File "/...dist.../gui/wxpython/mapdisp/frame.py", line 682, in
 DOutFileOptData

 self.DOutFile(dcmd)
   File "/...dist.../gui/wxpython/mapdisp/frame.py", line 673, in DOutFile

 self.MapWindow.SaveToFile(name, bitmapType, int(width), int(height))
   File "/...dist.../gui/wxpython/mapwin/buffered.py", line 635, in
 SaveToFile

 self.Draw(self.pdc, img, drawid = 99)
   File "/...dist.../gui/wxpython/mapwin/buffered.py", line 320, in Draw

 bitmap = wx.BitmapFromImage(img)
   File "/usr/lib/python2.7/dist-
 packages/wx-3.0-gtk2/wx/_gdi.py", line 884, in BitmapFromImage

 val = _gdi_.new_BitmapFromImage(*args, **kwargs)
 ValueError
 :
 invalid null reference in method 'new_BitmapFromImage',
 expected argument 1 of type 'wxImage const &'
 }}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2741#comment:2>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list