[GRASS-dev] [GRASS GIS] #3600: m.nviz.image doesn't produce any output

GRASS GIS trac at osgeo.org
Thu Jul 12 07:41:08 PDT 2018


#3600: m.nviz.image doesn't produce any output
--------------------------+-------------------------
  Reporter:  guano        |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:
 Component:  Default      |    Version:  7.0.4
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  MacOSX
--------------------------+-------------------------

Comment (by hcho):

 Replying to [comment:61 hellik]:
 > Replying to [comment:60 hcho]:
 > > Replying to [comment:58 hellik]:
 > > > Replying to [comment:54 hcho]:
 > > > > Only Windows defines double buffering; that's why Linux works
 without buffer swapping because it has only one buffer. BUT, glGetError()
 still returns GL_INVALID_OPERATION according to
 https://www.khronos.org/registry/OpenGL-
 Refpages/gl4/html/glReadBuffer.xhtml. Probably, that's why some Linux
 drivers and MacOS don't work at all.
 > > > >
 > > > > Windows is also broken because nviz draws to the back buffer, but
 it reads from the front buffer without buffer swapping.
 > > >
 > > > tested with
 > > >
 > > > {{{
 > > > GRASS version: 7.5.svn
 > > > GRASS SVN revision: r72969
 > > > Build date: 2018-07-10
 > > > 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)
 > > > }}}
 > > >
 > >
 > >
 > > r72974+ has double buffering. Earlier version was incomplete without
 buffer swapping for Windows. Please try r72974+ later.
 >
 > winGRASS building is broken:
 >
 > see
 [https://wingrass.fsv.cvut.cz/grass75/x86_64/logs/log-r72978-191/error.log
 error.log]
 >
 > {{{
 > GRASS GIS 7.5.svn r72978 compilation log
 > --------------------------------------------------
 > Started compilation: Wed Jul 11 15:02:16     2018
 > --
 > Errors in:
 > /c/msys64/usr/src/grass_trunk/lib/ogsf
 > /c/msys64/usr/src/grass_trunk/lib/nviz
 > /c/msys64/usr/src/grass_trunk/misc/m.nviz.image
 > --
 > In case of errors please change into the directory with error and run
 'make'.
 > If you get multiple errors, you need to deal with them in the order they
 > appear in the error log. If you get an error building a library, you
 will
 > also get errors from anything which uses the library.
 > --
 > Finished compilation: Wed Jul 11 15:35:12     2018
 > }}}
 >
 > and
 [https://wingrass.fsv.cvut.cz/grass75/x86_64/logs/log-r72978-191/package.log
 compiling log]

 Replaced wingdi.h with windows.h in r72980. Copied from nviz.h. Weird,
 according to https://docs.microsoft.com/en-us/windows/desktop/api/wingdi
 /nf-wingdi-swapbuffers, SwapBuffer is defined in wingdi.h.

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



More information about the grass-dev mailing list