Opened 9 years ago

Closed 8 years ago

#2741 closed defect (fixed) fails

Reported by: annakrat Owned by: grass-dev@…
Priority: normal Milestone: 7.2.0
Component: wxGUI Version: svn-trunk
Keywords: rendering,, d.out.file Cc:
CPU: All Platform: All


When typing output=xxx in GUI command line, I get:

Failed to run                                                        
ERROR 4: `/home/anna/grassdata/nc_spm_08_grass7_test/user1/.tmp/anna-laptop/7668.0.png' does not exist in the file system,
and is not recognised as a supported dataset name.                              
Unable to open datasource </home/anna/grassdata/nc_spm_08_grass7_test/user1/.tmp/anna-laptop/7668.0.png>

This is because rendering is now running in parallel, so the current code [1] expects the png file, but it's not yet there. I am not sure what should be the right fix. Either we must implement some callback similarly like in d.out.file toknow when the rendering is finished, or perhaps we should be able to specify if rendering should be run in parallel or not?


Change History (4)

comment:1 by neteler, 8 years ago


Milestone renamed

comment:2 by wenzeslaus, 8 years ago

Keywords: d.out.file added

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

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

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

  File "/...dist.../gui/wxpython/lmgr/", line 673, in RunDisplayCmd

'', ''))
  File "/...dist.../gui/wxpython/gui_core/", line 2467, in ParseCommand
  File "/...dist.../gui/wxpython/gui_core/", line 687, in OnApply

  File "/...dist.../gui/wxpython/mapdisp/", line 682, in DOutFileOptData

  File "/...dist.../gui/wxpython/mapdisp/", line 673, in DOutFile

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

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

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

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

comment:3 by neteler, 8 years ago

I tested this on Fedora 24, current releasebranch72: no issue.

comment:4 by annakrat, 8 years ago

Resolution: fixed
Status: newclosed

Right, this was fixed in r69754 and backported.

Note: See TracTickets for help on using tickets.