compas-dev / compas-dev/compas_viewer

`invalid enumerant` error (1280) in glClearColor after calling `viewer.show()`

Open
#225 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
12
Forks
12
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

Experiencing the following error with a fresh install of mamba/compas_occ/compas_viewer on macOS.

```
(occ313) chenkasirer@staff-net-hix-2055 compas_occ % python docs/examples/breps/brep_from_booleans.py
Traceback (most recent call last):
File "/Users/chenkasirer/repos/GKR/compas_viewer/src/compas_viewer/renderer/renderer.py", line 226, in initializeGL
GL.glClearColor(*self.viewer.config.renderer.backgroundcolor.rgba)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/chenkasirer/.local/share/mamba/envs/occ313/lib/python3.13/site-packages/OpenGL/platform/baseplatform.py", line 487, in __call__
return self(*args, **named)
File "/Users/chenkasirer/.local/share/mamba/envs/occ313/lib/python3.13/site-packages/OpenGL/error.py", line 230, in glCheckError
raise self._errorClass(
...<4 lines>...
)
OpenGL.error.GLError: GLError(
err = 1280,
description = b'invalid enumerant',
baseOperation = glClearColor,
cArguments = (1.0, 1.0, 1.0, 1.0)
)

```

**To Reproduce**

Steps to reproduce the behavior:

Here using one of the compas_occ brep examples, but any call to `Viewer().show()` would trigger this.

**Desktop (please complete the following information):**

- OS: macOS
- Python version 3.13
- Python package manager `mamba` from `miniforge`.

**Additional context**

```
(occ313) chenkasirer@staff-net-hix-2055 compas_occ % python -c "import compas_viewer; print(compas_viewer.__version__)"
2.0.1
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.