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

qtcreator core dumped : Could not initialize GLX #101202

Closed
LuxoftAKutsan opened this issue Oct 20, 2020 · 6 comments
Closed

qtcreator core dumped : Could not initialize GLX #101202

LuxoftAKutsan opened this issue Oct 20, 2020 · 6 comments
Labels

Comments

@LuxoftAKutsan
Copy link

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. sh <(curl -L https://nixos.org/nix/install)
  2. . ~/.nix-profile/etc/profile.d/nix.sh
  3. nix-shell -p qtcreator --run qtcreator

Expected behavior
qtcreator started

Actual behavior
QtCreator crashed

alex@alex-WorkStation:~$ nix-shell -p qtcreator --run qtcreator 

(process:13640): Gtk-WARNING **: 21:20:27.168: Locale not supported by C library.
	Using the fallback 'C' locale.
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
/tmp/nix-shell-13626-0/rc: line 1: 13640 Aborted                 (core dumped) qtcreator

  • system: "x86_64-linux"
  • host os: Linux 5.4.0-48-generic, Linux Mint, 19.3 (Tricia)
  • multi-user?: no
  • sandbox: yes
  • version: nix-env (Nix) 2.3.7
  • channels(alex): "nixos-20.03-20.03.3129.d3784204ba1, nixpkgs-20.09pre244104.5e199f944cf"
  • nixpkgs: /home/alex/.nix-defexpr/channels/nixpkgs
@LuxoftAKutsan LuxoftAKutsan added the 0.kind: bug Something is broken label Oct 20, 2020
@LuxoftAKutsan
Copy link
Author

Also tested on

Tried solution from #82959 (comment)
Qt creator succesfull started, but crashed on "Open project" dialog

alex@alex-WorkStation:~$ export QT_XCB_GL_INTEGRATION=none 
alex@alex-WorkStation:~$ nix-shell -p qtcreator --run qtcreator 

(process:14240): Gtk-WARNING **: 21:25:06.761: Locale not supported by C library.
	Using the fallback 'C' locale.
QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
Qt: Session management error: None of the authentication protocols specified are supported
QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled

(qtcreator:14240): GLib-GIO-ERROR **: 21:25:12.557: Settings schema 'org.gtk.Settings.FileChooser' does not contain a key named 'show-type-column'
ConnectionServer error: "QLocalSocket: Remote closed" "/run/user/1000/QtCreator-tnEfIy/ClangBackEnd-14240"
/tmp/nix-shell-14228-0/rc: line 1: 14240 Trace/breakpoint trap   (core dumped) qtcreator

@symphorien
Copy link
Member

Looks like the generic problem of openGL on non-nixos: https://github.com/guibou/nixGL

@ppenguin
Copy link
Contributor

Looks like the generic problem of openGL on non-nixos: https://github.com/guibou/nixGL

Indeed, I had the same problem with freecad and can reproduce described behaviour for qtcreator, and it works with nixGL (in my case nixGLIntel qtcreator)

I'd say it would be conducive to have automatic stubs installed that execute any openGL dependent apps with nixGL , but it doesn't appear so easy (see this discussion)

@stale
Copy link

stale bot commented Jul 11, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jul 11, 2021
@BenediktBroich
Copy link
Contributor

I have the same problem on nixos unstable.

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Oct 23, 2022
@Artturin
Copy link
Member

dupe of #82959

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

No branches or pull requests

6 participants