Skip to content

Unable to initialise OpenGL! #98

@soichih

Description

@soichih

Hello. I am not sure what I did but fsleyes stopped working on my Ubuntu 21.10 desktop PC (Using X - not wayland).

$fsleyes --version
fsleyes/FSLeyes version 1.3.3

$ fsleyes
   ERROR              main.py  590: initialise      - Unable to initialise OpenGL!
NotImplementedError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/fsleyes/main.py", line 587, in initialise
    fslgl.getGLContext(ready=realCallback)
  File "/usr/local/lib/python3.9/dist-packages/fsleyes/gl/__init__.py", line 490, in getGLContext
    thismod._glContext = GLContext(**kwargs)
  File "/usr/local/lib/python3.9/dist-packages/fsleyes/gl/__init__.py", line 658, in __init__
    self.__createWXGLCanvas()
  File "/usr/local/lib/python3.9/dist-packages/fsleyes/gl/__init__.py", line 804, in __createWXGLCanvas
    attrs = WXGLCanvasTarget.displayAttributes()
  File "/usr/local/lib/python3.9/dist-packages/fsleyes/gl/__init__.py", line 1097, in displayAttributes
    attrs = wxgl.GLAttributes()
SystemError: <class 'wx._glcanvas.GLAttributes'> returned a result with an error set

glxinfo shows that it's working fine

$ glxinfo
name of display: :1
display: :1  screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.4
server glx extensions:

Could someone help me troubleshoot this problem?

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