[GRASS-user] 3D view error on MacOS (black screen)

Hi all

I’m running 7.2.2 on MacOS Sierra, installed via homebrew. Trying to display anything in 3D results only in a black screen. Checking the console I get these error messages:

Traceback (most recent call last):
File “/usr/local/Cellar/grass7/7.2.2/grass-7.2.2/gui/wxpyt
hon/nviz/mapwindow.py”, line 628, in OnMouseAction

self.OnDragging(event)
File “/usr/local/Cellar/grass7/7.2.2/grass-7.2.2/gui/wxpyt
hon/nviz/mapwindow.py”, line 722, in OnDragging

angle, x, y, z = self._display.GetRotationParameters(dx, dy)
File “/usr/local/Cellar/grass7/7.2.2/grass-7.2.2/gui/wxpyt
hon/nviz/wxnviz.py”, line 1975, in GetRotationParameters

inv = matrix(m).I
File “/usr/local/lib/python2.7/site-
packages/numpy/matrixlib/defmatrix.py”, line 972, in getI

return asmatrix(func(self))
File “/usr/local/lib/python2.7/site-
packages/numpy/linalg/linalg.py”, line 526, in inv

ainv = _umath_linalg.inv(a, signature=signature,
extobj=extobj)
File “/usr/local/lib/python2.7/site-
packages/numpy/linalg/linalg.py”, line 90, in
_raise_linalgerror_singular

raise LinAlgError(“Singular matrix”)
numpy.linalg.linalg
.
LinAlgError
:
Singular matrix

thanks

Carlos

···

Prof. Carlos Henrique Grohmann
Institute of Energy and Environment - Univ. of São Paulo, Brazil

  • Digital Terrain Analysis | GIS | Remote Sensing -

http://carlosgrohmann.com
http://orcid.org/0000-0001-5073-5572


Can’t stop the signal.

Hi Carlos,

I couldn't get 3D view working with homebrew either. The error you see
seems to happen when you click and drag in the window, so the actual
problem happens before, because it never loads. Interestingly, when I
compiled GRASS myself (using the homebrew libraries), the 3D worked.
Unfortunately I have no idea what's wrong.

Anna

On Wed, Nov 22, 2017 at 5:11 PM, Carlos Grohmann
<carlos.grohmann@gmail.com> wrote:

Hi all

I'm running 7.2.2 on MacOS Sierra, installed via homebrew. Trying to display
anything in 3D results only in a black screen. Checking the console I get
these error messages:

Traceback (most recent call last):
  File "/usr/local/Cellar/grass7/7.2.2/grass-7.2.2/gui/wxpyt
hon/nviz/mapwindow.py", line 628, in OnMouseAction

self.OnDragging(event)
  File "/usr/local/Cellar/grass7/7.2.2/grass-7.2.2/gui/wxpyt
hon/nviz/mapwindow.py", line 722, in OnDragging

angle, x, y, z = self._display.GetRotationParameters(dx, dy)
  File "/usr/local/Cellar/grass7/7.2.2/grass-7.2.2/gui/wxpyt
hon/nviz/wxnviz.py", line 1975, in GetRotationParameters

inv = matrix(m).I
  File "/usr/local/lib/python2.7/site-
packages/numpy/matrixlib/defmatrix.py", line 972, in getI

return asmatrix(func(self))
  File "/usr/local/lib/python2.7/site-
packages/numpy/linalg/linalg.py", line 526, in inv

ainv = _umath_linalg.inv(a, signature=signature,
extobj=extobj)
  File "/usr/local/lib/python2.7/site-
packages/numpy/linalg/linalg.py", line 90, in
_raise_linalgerror_singular

raise LinAlgError("Singular matrix")
numpy.linalg.linalg
.
LinAlgError
:
Singular matrix

thanks

Carlos

--
Prof. Carlos Henrique Grohmann
Institute of Energy and Environment - Univ. of São Paulo, Brazil
- Digital Terrain Analysis | GIS | Remote Sensing -

http://carlosgrohmann.com
http://orcid.org/0000-0001-5073-5572
________________
Can’t stop the signal.

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Hello Anna

I managed to fixed by compiling using homebrew libraries. The trick was to set --with-opengl=aqua, so it uses the opengl librarie from the system. Using --with-opengl=x11 results in the black screen.

Carlos

···

On Wed, Nov 22, 2017 at 10:48 PM, Anna Petrášová <kratochanna@gmail.com> wrote:

Hi Carlos,

I couldn’t get 3D view working with homebrew either. The error you see
seems to happen when you click and drag in the window, so the actual
problem happens before, because it never loads. Interestingly, when I
compiled GRASS myself (using the homebrew libraries), the 3D worked.
Unfortunately I have no idea what’s wrong.

Anna

On Wed, Nov 22, 2017 at 5:11 PM, Carlos Grohmann
<carlos.grohmann@gmail.com> wrote:

Hi all

I’m running 7.2.2 on MacOS Sierra, installed via homebrew. Trying to display
anything in 3D results only in a black screen. Checking the console I get
these error messages:

Traceback (most recent call last):
File “/usr/local/Cellar/grass7/7.2.2/grass-7.2.2/gui/wxpyt
hon/nviz/mapwindow.py”, line 628, in OnMouseAction

self.OnDragging(event)
File “/usr/local/Cellar/grass7/7.2.2/grass-7.2.2/gui/wxpyt
hon/nviz/mapwindow.py”, line 722, in OnDragging

angle, x, y, z = self._display.GetRotationParameters(dx, dy)
File “/usr/local/Cellar/grass7/7.2.2/grass-7.2.2/gui/wxpyt
hon/nviz/wxnviz.py”, line 1975, in GetRotationParameters

inv = matrix(m).I
File “/usr/local/lib/python2.7/site-
packages/numpy/matrixlib/defmatrix.py”, line 972, in getI

return asmatrix(func(self))
File “/usr/local/lib/python2.7/site-
packages/numpy/linalg/linalg.py”, line 526, in inv

ainv = _umath_linalg.inv(a, signature=signature,
extobj=extobj)
File “/usr/local/lib/python2.7/site-
packages/numpy/linalg/linalg.py”, line 90, in
_raise_linalgerror_singular

raise LinAlgError(“Singular matrix”)
numpy.linalg.linalg
.
LinAlgError
:
Singular matrix

thanks

Carlos


Prof. Carlos Henrique Grohmann
Institute of Energy and Environment - Univ. of São Paulo, Brazil

  • Digital Terrain Analysis | GIS | Remote Sensing -

http://carlosgrohmann.com
http://orcid.org/0000-0001-5073-5572


Can’t stop the signal.


grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Prof. Carlos Henrique Grohmann
Institute of Energy and Environment - Univ. of São Paulo, Brazil

  • Digital Terrain Analysis | GIS | Remote Sensing -

http://carlosgrohmann.com
http://orcid.org/0000-0001-5073-5572


Can’t stop the signal.

On Thu, Nov 23, 2017 at 5:58 PM, Carlos Grohmann
<carlos.grohmann@gmail.com> wrote:

Hello Anna

I managed to fixed by compiling using homebrew libraries. The trick was to
set --with-opengl=aqua, so it uses the opengl librarie from the system.
Using --with-opengl=x11 results in the black screen.

I've added that to
https://grasswiki.osgeo.org/wiki/MacOSX_GRASS_errors#3D_view_error_on_MacOS_.28black_screen.29

Markus