Skip to content

OpenGl_Window::CreateWindow: glXCreateContext failed #250

@wcraigtrader

Description

@wcraigtrader

Ubuntu 20.04, Python 3.7.8

Installed with Miniconda3:

conda create -n cadquery
conda activate cadquery
conda install -c conda-forge -c cadquery cadquery=master cq-editor=master

When I start cq-editor the center rendering pane is empty and showing my desktop background, instead of showing a model. The Log viewer has the following messages:

[2021-03-12 04:37:23.147485] ERROR: CQ GUI: Uncaught exception occurred
Traceback (most recent call last):
  File "/opt/miniconda3/envs/cadquery/lib/python3.7/site-packages/cq_editor/widgets/occt_widget.py", line 131, in paintEvent
    self._initialize()
  File "/opt/miniconda3/envs/cadquery/lib/python3.7/site-packages/cq_editor/widgets/occt_widget.py", line 153, in _initialize
    self.view.SetWindow(wins.get(platform,self._get_window_linux)(self.winId()))
OCP.Aspect.Aspect_GraphicDeviceDefinitionError: OpenGl_Window::CreateWindow: glXCreateContext failed.
[2021-03-12 04:37:23.168568] ERROR: CQ GUI: Uncaught exception occurred
Traceback (most recent call last):
  File "/opt/miniconda3/envs/cadquery/lib/python3.7/site-packages/cq_editor/widgets/occt_widget.py", line 131, in paintEvent
    self._initialize()
  File "/opt/miniconda3/envs/cadquery/lib/python3.7/site-packages/cq_editor/widgets/occt_widget.py", line 153, in _initialize
    self.view.SetWindow(wins.get(platform,self._get_window_linux)(self.winId()))
OCP.Aspect.Aspect_GraphicDeviceDefinitionError: OpenGl_Window::CreateWindow: glXCreateContext failed.

I can edit models and do all normal actions with the editor, except that I can't actually see any models being rendered.

Here's a screenshot showing the problem:

cq-editor-screenshot-1

Here's a copy of the full installation log:
cadquery-installation.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions