[GRASS-dev] [GRASS GIS] #3156: Cannot export GRASS raster map using r.out.png (crashes on windows)

GRASS GIS trac at osgeo.org
Wed Sep 12 10:36:09 PDT 2018


#3156: Cannot export GRASS raster map using r.out.png (crashes on windows)
----------------------+---------------------------------
  Reporter:  spawley  |      Owner:  grass-dev@…
      Type:  defect   |     Status:  new
  Priority:  normal   |  Milestone:  7.0.7
 Component:  Raster   |    Version:  7.0.4
Resolution:           |   Keywords:  r.out.png, wingrass
       CPU:  x86-64   |   Platform:  MSWindows 7
----------------------+---------------------------------

Comment (by hellik):

 Replying to [comment:8 wenzeslaus]:
 > Can somebody debug this on MS Windows (gdb, valgrind, ...)? Does it give
 return code `-1073741819` (which based on internet search seems to be
 either ''Access Violation'' - dereferencing an invalid memory location -
 or File System Error) as in #3200? What about `DEBUG=5`? Does
 `g.ppmtopng`? Does switching `cairo` for `png` works in GUI or with d.mon
 or direct rendering?
 >
 > I didn't get any issues reported with valgrind on Linux and program
 finished successfully.

 tested with

 {{{
 System Info
 GRASS version: 7.4.1
 GRASS SVN revision: r72807
 Build date: 2018-06-13
 Build platform: x86_64-w64-mingw32
 GDAL: 2.2.4
 PROJ.4: 4.9.3
 GEOS: 3.5.0
 SQLite: 3.17.0
 Python: 2.7.14
 wxPython: 2.8.12.1
 Platform: Windows-10-10.0.17134 (OSGeo4W)
 }}}

 {{{
 r.out.png input=elevation at PERMANENT output=D:\wd\test\test_01.png
 (Wed Sep 12 19:32:06 2018) Command finished (2 sec)

 r.out.png -w input=elevation at PERMANENT output=D:\wd\test\test_02.png
 compression=0
 (Wed Sep 12 19:32:28 2018) Command finished (2 sec)

 r.out.png -t -w input=elevation at PERMANENT output=D:\wd\test\test_03.png
 compression=4
 (Wed Sep 12 19:32:46 2018) Command finished (2 sec)
 }}}

 no crash, but empty png files (header unkown).

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



More information about the grass-dev mailing list