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

Calibre doesn't run #132045

Closed
kephas opened this issue Jul 30, 2021 · 9 comments
Closed

Calibre doesn't run #132045

kephas opened this issue Jul 30, 2021 · 9 comments
Labels
0.kind: bug Something is broken 6.topic: non-nixos Running packages on non-NixOS Linux

Comments

@kephas
Copy link

kephas commented Jul 30, 2021

Describe the bug

Just after install, running calibre ends with SIGABRT.

Steps To Reproduce

  1. nix-env -i calibre
  2. calibre

Expected behavior

Calibre should run.

Screenshots

[pierre@viper:~]$ nix-shell -p calibre --run calibre
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-2060922-0/rc: line 1: 2060941 Aborted                 calibre

Notify maintainers

@pSub @AndersonTorres

Metadata

[pierre@viper:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.10.0-7-amd64, Debian GNU/Linux, 11 (bullseye)`
 - multi-user?: `no`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.3.12`
 - channels(pierre): `"nixpkgs-21.11pre293448.2a1c29ef4ba"`
 - nixpkgs: `/home/pierre/.nix-defexpr/channels/nixpkgs`
@kephas kephas added the 0.kind: bug Something is broken label Jul 30, 2021
@veprbl veprbl added the 6.topic: non-nixos Running packages on non-NixOS Linux label Jul 31, 2021
@veprbl
Copy link
Member

veprbl commented Jul 31, 2021

This is a duplicate of #9415
A common workaround is to use https://github.com/guibou/nixGL

@kephas
Copy link
Author

kephas commented Jul 31, 2021

Isn't a bug that this package's default state is to not run? Why not make GL-depending packages use nixGL by default?

@veprbl
Copy link
Member

veprbl commented Jul 31, 2021

Isn't a bug that this package's default state is to not run? Why not make GL-depending packages use nixGL by default?

Yes, it's a bug. My guess is that the problems would be that nixGL is inherently impure, or that adding it to every OpenGL package might require adding every possible driver into the closure.

@kephas
Copy link
Author

kephas commented Aug 17, 2021

Would it be a problem to include all drivers in the closure, and leave the choice at run time?

@stale
Copy link

stale bot commented Apr 29, 2022

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 Apr 29, 2022
@kephas
Copy link
Author

kephas commented Oct 15, 2022

@AndersonTorres why close the bug? It's stale but the problem persists. calibre will run fine with the help of nixGL but not without, and there's no warning, documentation or helper script for that.

@AndersonTorres
Copy link
Member

AndersonTorres commented Oct 16, 2022

I believed it was already closed.

It was stalled for months, and it was more than one month for anyone notice this was closed.

@stale stale bot removed 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md labels Oct 16, 2022
@patka-123
Copy link
Contributor

Hello @kephas 👋

I tried to reproduce this issue, but I'm unable to do so. Can you confirm that this no longer an issue? If so, would you be able to close this issue?

(I'm going through issues marked as stale to see what can be resolved. If you are still experiencing this issue then don't mind me)

@Aleksanaa Aleksanaa closed this as not planned Won't fix, can't repro, duplicate, stale Mar 26, 2024
@kephas
Copy link
Author

kephas commented Apr 2, 2024

@patka-123 sorry for the late reply, but it's still true for me with /nix/store/glic4pdqdl2rs4xirc1j406hyd16mcfz-calibre-7.1.0:

$ nix-shell -p calibre --run calibre
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 QColorSpace(), 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 QColorSpace(), profile  QSurfaceFormat::NoProfile)
Could not initialize GLX
/tmp/nix-shell-3617183-0/rc : ligne 3 : 3621404 Aborted                 (core dumped)calibre

(but it works great with nixGL)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 6.topic: non-nixos Running packages on non-NixOS Linux
Projects
None yet
Development

No branches or pull requests

5 participants