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

Failed to finding matching FBConfig for QSurfaceFormat - Could not initialize GLX #5

Open
Nate-Wilkins opened this issue Mar 7, 2024 · 1 comment

Comments

@Nate-Wilkins
Copy link

I'm running into an issue when running genix7000. I believe the issue has to do with OpenGL but I don't know this project or its dependencies well enough to understand where the issue lies. I'm not even sure the best way to debug this. Some initial research suggests outdated graphics drivers as well.

Here's what I know.

Reproduction

Running the default entry point with nix run github:cab404/genix7000

CGAL Cache insert: union(){multmatrix([[0.866025,0.5,0,0],[ (22096 bytes)
CGAL Cache insert: multmatrix([[1,0,0,0],[0,1,0,0],[0,0,1,0 (22096 bytes)
CGAL Cache insert: multmatrix([[1,0,0,-30],[0,1,0,-40],[0,0 (22096 bytes)
CGAL Cache hit: multmatrix([[1,0,0,-30],[0,1,0,-40],[0,0 (22096 bytes)
CGAL Cache insert: multmatrix([[0.62349,0.781831,0,0],[-0.7 (22096 bytes)
CGAL Cache insert: multmatrix([[1,0,0,0],[0,1,0,0],[0,0,2,0 (22096 bytes)
CGAL Cache insert: difference(){multmatrix([[1,0,0,-30],[0, (22096 bytes)
CGAL Cache hit: difference(){multmatrix([[1,0,0,-30],[0, (22096 bytes)
CGAL Cache insert: intersection(){difference(){multmatrix([ (24784 bytes)
CGAL Cache insert: multmatrix([[1,0,0,-2],[0,1,0,-2],[0,0,1 (24784 bytes)
CGAL Cache insert: multmatrix([[1,0,0,0],[0,1,0,0],[0,0,1,0 (24784 bytes)
CGAL Cache hit: multmatrix([[1,0,0,-2],[0,1,0,-2],[0,0,1 (24784 bytes)
CGAL Cache insert: multmatrix([[0.62349,-0.781831,0,0],[0.7 (24784 bytes)
CGAL Cache hit: multmatrix([[1,0,0,-2],[0,1,0,-2],[0,0,1 (24784 bytes)
CGAL Cache insert: multmatrix([[-0.222521,-0.974928,0,0],[0 (24784 bytes)
CGAL Cache hit: multmatrix([[1,0,0,-2],[0,1,0,-2],[0,0,1 (24784 bytes)
CGAL Cache insert: multmatrix([[-0.900969,-0.433884,0,0],[0 (24784 bytes)
CGAL Cache hit: multmatrix([[1,0,0,-2],[0,1,0,-2],[0,0,1 (24784 bytes)
CGAL Cache insert: multmatrix([[-0.900969,0.433884,0,0],[-0 (24784 bytes)
CGAL Cache hit: multmatrix([[1,0,0,-2],[0,1,0,-2],[0,0,1 (24784 bytes)
CGAL Cache insert: multmatrix([[-0.222521,0.974928,0,0],[-0 (24784 bytes)
CGAL Cache hit: multmatrix([[1,0,0,-2],[0,1,0,-2],[0,0,1 (24784 bytes)
CGAL Cache insert: multmatrix([[0.62349,0.781831,0,0],[-0.7 (24784 bytes)
Compiling design (CSG Products normalization)...
Normalized CSG tree has 8 elements
glXChooseFBConfig failed
Can't create OpenGL OffscreenView. Code: -1.
Geometries in cache: 15
Geometry cache size in bytes: 9160
CGAL Polyhedrons in cache: 15
CGAL cache size in bytes: 355632
Total rendering time: 0:00:00.224
Segmentation fault: oops, process '/nix/store/1rrnf8alwgp4k42dkykm7s41s8s6l98d-openscad-2021.01/bin/openscad' core dumped
Done.

Running nix-shell -p openscad --command "openscad ./genix.scad":

qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::NoProfile)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::NoProfile)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::NoProfile)
Could not initialize GLX

Running nix-shell -p nix-info --run "nix-info -m":

- system: `"x86_64-linux"`
- host os: `Linux 6.1.80-1-MANJARO, Manjaro Linux, noversion, rolling`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.20.3`
- nixpkgs: `/home/nate-wilkins/.nix-defexpr/channels/nixpkgs`

Running lspci | grep -i vga:

00:02.0 VGA compatible controller: Intel Corporation TigerLake-H GT1 [UHD Graphics] (rev 01)
@hugosenari
Copy link
Contributor

@Nate-Wilkins do you mind sending your machine to @cab404 to test? 😈

Jokes aside, can you test with the most recent nixpkgs?

nix run github:NixOS/nixpkgs#openscad

This is the same as nix-shell -p openscad --command "openscad" but, will take the latest version for sure (or at least one from this week).

If this works for you we can update flakes.lock.
If don't, is an issue with nixpkgs: non-nixos: Could not initialize GLX, Aborted (core dumped)

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

2 participants