Skip to content

Glitchy display/errors when running vsk on Linux #353

@JackiePease

Description

@JackiePease

Having a really strange issue with a clean install of vsketch (installed using pipx as per install instructions)

I run vsk run examples/schotter and the window opens but the main display error is unusable and glitching out.

I'm using Ubuntu 22.10. OpenGL messages are mentioned in the traceback. I'm using Blender on this machine with no problems.

The following output appears on the console:

Traceback (most recent call last):
  File "/home/jackie/.local/pipx/venvs/vsketch/lib/python3.10/site-packages/vpype_viewer/qtviewer/viewer.py", line 157, in paintGL
    self._initializeGL()
  File "/home/jackie/.local/pipx/venvs/vsketch/lib/python3.10/site-packages/vpype_viewer/qtviewer/viewer.py", line 137, in _initializeGL
    self._ctx = mgl.create_context()
  File "/home/jackie/.local/pipx/venvs/vsketch/lib/python3.10/site-packages/moderngl/context.py", line 2004, in create_context
    ctx.mglo, ctx.version_code = mgl.create_context(glversion=require, mode=mode, **settings)
  File "/home/jackie/.local/pipx/venvs/vsketch/lib/python3.10/site-packages/glcontext/__init__.py", line 90, in create
    return x11.create_context(**kwargs)
Exception: (detect) glXGetCurrentContext: cannot detect OpenGL context
Traceback (most recent call last):
  File "/home/jackie/.local/pipx/venvs/vsketch/lib/python3.10/site-packages/vpype_viewer/qtviewer/viewer.py", line 157, in paintGL
    self._initializeGL()
  File "/home/jackie/.local/pipx/venvs/vsketch/lib/python3.10/site-packages/vpype_viewer/qtviewer/viewer.py", line 137, in _initializeGL
    self._ctx = mgl.create_context()
  File "/home/jackie/.local/pipx/venvs/vsketch/lib/python3.10/site-packages/moderngl/context.py", line 2004, in create_context
    ctx.mglo, ctx.version_code = mgl.create_context(glversion=require, mode=mode, **settings)
  File "/home/jackie/.local/pipx/venvs/vsketch/lib/python3.10/site-packages/glcontext/__init__.py", line 90, in create
    return x11.create_context(**kwargs)
Exception: (detect) glXGetCurrentContext: cannot detect OpenGL context
Traceback (most recent call last):
  File "/home/jackie/.local/pipx/venvs/vsketch/lib/python3.10/site-packages/vpype_viewer/qtviewer/viewer.py", line 157, in paintGL
    self._initializeGL()
  File "/home/jackie/.local/pipx/venvs/vsketch/lib/python3.10/site-packages/vpype_viewer/qtviewer/viewer.py", line 137, in _initializeGL
    self._ctx = mgl.create_context()
  File "/home/jackie/.local/pipx/venvs/vsketch/lib/python3.10/site-packages/moderngl/context.py", line 2004, in create_context
    ctx.mglo, ctx.version_code = mgl.create_context(glversion=require, mode=mode, **settings)
  File "/home/jackie/.local/pipx/venvs/vsketch/lib/python3.10/site-packages/glcontext/__init__.py", line 90, in create
    return x11.create_context(**kwargs)
Exception: (detect) glXGetCurrentContext: cannot detect OpenGL context
Traceback (most recent call last):
  File "/home/jackie/.local/pipx/venvs/vsketch/lib/python3.10/site-packages/vpype_viewer/qtviewer/viewer.py", line 157, in paintGL
    self._initializeGL()
  File "/home/jackie/.local/pipx/venvs/vsketch/lib/python3.10/site-packages/vpype_viewer/qtviewer/viewer.py", line 137, in _initializeGL
    self._ctx = mgl.create_context()
  File "/home/jackie/.local/pipx/venvs/vsketch/lib/python3.10/site-packages/moderngl/context.py", line 2004, in create_context
    ctx.mglo, ctx.version_code = mgl.create_context(glversion=require, mode=mode, **settings)
  File "/home/jackie/.local/pipx/venvs/vsketch/lib/python3.10/site-packages/glcontext/__init__.py", line 90, in create
    return x11.create_context(**kwargs)
Exception: (detect) glXGetCurrentContext: cannot detect OpenGL context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions