Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't find matching GLX visual #136

Open
divisonofficer opened this issue Jun 20, 2024 · 2 comments
Open

Couldn't find matching GLX visual #136

divisonofficer opened this issue Jun 20, 2024 · 2 comments

Comments

@divisonofficer
Copy link

divisonofficer commented Jun 20, 2024

I'm using Ubuntu 22.04 on AMD64 platform with NVIDIA RTX 4060 (laptop). OpenGL version is 4.5 Messa 23.2.1-1ubuntu3.1~22.04.2

When i try to run ''mapping_vis.py'' via x11 connection,

Traceback (most recent call last):
  File "/home/cglab/project/spectacularAI-example/python/oak/mapping_visu.py", line 124, in <module>
    visualizer.run()
  File "/home/cglab/.local/lib/python3.10/site-packages/spectacularAI/cli/visualization/visualizer.py", line 569, in run
    self.__render(
  File "/home/cglab/.local/lib/python3.10/site-packages/spectacularAI/cli/visualization/visualizer.py", line 335, in __render
    self.__initDisplay()
  File "/home/cglab/.local/lib/python3.10/site-packages/spectacularAI/cli/visualization/visualizer.py", line 310, in __initDisplay
    else: pygame.display.set_mode((w, h), DOUBLEBUF | OPENGL)

pygame.error: Coudn't find matcing GLX visual

Looks like that "GL_MULTISAMPLEBUFFERS" and "GL_MULTISAMPLESAMPLES" options cause problem.
Could you update the core sdk that user manually disdable that option?

@kaatrasa
Copy link
Member

Hey, thanks for letting us know. The source code for the Python visualizer is available here. Could you try if removing the multisampling fixes the issue for you?

@oseiskar
Copy link
Member

Also make sure your OpenGL drivers are correctly configured. "Mesa" drivers in use sounds like an issue in your setup. If you install the Nvidia driver and check that e.g., glxgears works (shows animated gears), then the SDK is likely to work too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants