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

[20.03] rstudio is broken #85921

Closed
tbenst opened this issue Apr 24, 2020 · 15 comments
Closed

[20.03] rstudio is broken #85921

tbenst opened this issue Apr 24, 2020 · 15 comments
Labels
0.kind: bug Something is broken

Comments

@tbenst
Copy link
Contributor

tbenst commented Apr 24, 2020

Describe the bug
I cannot run rstudio through nixpkgs 20.03 on either NixOS w/ Nvidia GPU nor Ubuntu 18.04 w/ intel graphics.

To Reproduce
Steps to reproduce the behavior:

> nix run nixpkgs.rstudio
$ rstudio
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
Aborted (core dumped)

Notify maintainers
@ehmry @changlinli @ciil

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:
@tbenst tbenst added the 0.kind: bug Something is broken label Apr 24, 2020
@doronbehar
Copy link
Contributor

Do you have opengl enabled in your systems? https://nixos.org/nixos/options.html#hardware+opengl

@tbenst
Copy link
Contributor Author

tbenst commented May 1, 2020

Yes, I do, as well as driSupport enabled for both 64 and 32 bit. Running an nvidia card.

I can also reproduce this same problem with intel graphics using nixpkgs on Ubuntu.

@changlinli
Copy link
Contributor

changlinli commented May 4, 2020

Hmmmm... odd. I'll try to take a look later tonight. (The dreaded "it's working for me" applies here, NixOS 20.03 on Intel graphics)

@changlinli
Copy link
Contributor

Hmmmm... strangely nix run nixpkgs.rstudio doesn't work for me (it immediately returns with exit code 0), but nix-shell -p rstudio --run "rstudio" works fine.

@DamienCassou
Copy link
Contributor

I have the same problem.

@changlinli even your second expression drops the error message:

nix-shell -p rstudio --run "rstudio"
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

I'm on Fedora, not NixOS though.

@stale
Copy link

stale bot commented Apr 7, 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 Apr 7, 2021
@turion
Copy link
Contributor

turion commented Aug 18, 2021

Hah, yet another failure:

$ nix-shell -p rstudio --run "rstudio"
/nix/store/p0ngr8w2g7s4nfja1rw2hrbwwj0fqhax-qtwebengine-5.14.2/libexec/QtWebEngineProcess: /nix/store/ikl21vjfq900ccbqg1xasp83kadw6q8y-glibc-2.32-46/lib/libc.so.6: version `GLIBC_2.33' not found (required by /nix/store/bp3wngs9xnrh4il4n86wc8xvhsi8la00-gfortran-9.3.0-lib/lib/libstdc++.so.6)
/tmp/nix-shell-31748-0/rc: Zeile 1: 31774 Trace/breakpoint trap   (Speicherabzug geschrieben) rstudio

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Aug 18, 2021
@turion
Copy link
Contributor

turion commented Aug 18, 2021

That was on the following system:

  • system: "x86_64-linux"
  • host os: Linux 5.4.77, NixOS, 21.03pre252083.2deeb58f494 (Okapi)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.3.8
  • channels(root): "musnix, nixos-21.05pre276379.266dc8c3d05, nixos-hardware"
  • channels(turion): "nixpkgs-21.11pre297902.e8597594274, home-manager"
  • nixpkgs: /home/turion/.nix-defexpr/channels/nixpkgs

So it turns out that my error message does not apply as it is not 20.03.

On current master it works for me though! So I believe this issue should be closed since 20.03 is end of life.

@Dettorer
Copy link
Contributor

I have the same problem on nixpkgs-unstable, here running on archlinux, with nix run and nix-shell:

[dettorer@frimapic ~]$ nix run nixpkgs.rstudio
[dettorer@frimapic ~]$ rstudio
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
Aborted (core dumped)
[dettorer@frimapic ~]$ nix-shell -p rstudio --run "rstudio"
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-2601800-0/rc: line 1: 2601834 Aborted                 (core dumped) rstudio

Metadata

[dettorer@frimapic ~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.13.13-zen1-1-zen, Arch Linux, noversion`
 - multi-user?: `no`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.15`
 - channels(dettorer): `"nixpkgs-21.11pre314682.65b70fbe4c3"`
 - nixpkgs: `/home/dettorer/.nix-defexpr/channels/nixpkgs`

RStudio also seems to be broken on nixos but it launches, the problem is that its missing most of the text in the main UI (#138134)

@Artturin
Copy link
Member

@Dettorer the non-nixos issue is probably because opengl doesn't work on non-nixos without using a wrapper such as https://github.com/guibou/nixGL

@TheSirC
Copy link

TheSirC commented Sep 26, 2021

Maybe we could start by updating the package to a more recent version ? Upstream is already at 1.4.1717 when we are at v1.2.5042 even on unstable...

@Artturin
Copy link
Member

i'll try

@Artturin
Copy link
Member

@TheSirC #139887

@TheSirC
Copy link

TheSirC commented Sep 29, 2021

@TheSirC #139887

What you pulled of is short of black magic to me because I tried to package this new version and failed spectacularly so hats off to you ! 👏

@Artturin
Copy link
Member

@TheSirC please test it by running nix run nixpkgs#nixpkgs-review pr 139887 in a cloned nixpkgs. after it is done building run the binary in ./result

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
Projects
None yet
Development

No branches or pull requests

8 participants