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

RStudio "failed to start because no Qt platform plugin could be initialized" #74298

Closed
8573 opened this issue Nov 27, 2019 · 1 comment · Fixed by #74381
Closed

RStudio "failed to start because no Qt platform plugin could be initialized" #74298

8573 opened this issue Nov 27, 2019 · 1 comment · Fixed by #74381
Labels

Comments

@8573
Copy link
Contributor

8573 commented Nov 27, 2019

I have installed RStudio on NixOS via environment.systemPackages. When I try to start it, it fails with an error message:

$ rstudio
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

[1]    2573 abort (core dumped)  rstudio
$ echo $QT_PLUGIN_PATH
/home/c74d/.nix-profile/lib/qt4/plugins:/home/c74d/.nix-profile/lib/kde4/plugins:/etc/profiles/per-user/c74d/lib/qt4/plugins:/etc/profiles/per-user/c74d/lib/kde4/plugins:/nix/var/nix/profiles/default/lib/qt4/plugins:/nix/var/nix/profiles/default/lib/kde4/plugins:/run/current-system/sw/lib/qt4/plugins:/run/current-system/sw/lib/kde4/plugins

RStudio worked fine for me on NixOS in 2018, when it would build at all. Rebooting my computer doesn't fix the problem, so I doubt it's a transient problem with my desktop session.

I note that this is the same error message from #33702, #48826, and #54872, but my issue involves RStudio installed via environment.systemPackages rather than run via nix-shell as in those issues.

Metadata

  • system: "x86_64-linux"
  • host os: Linux 4.19.84-hardened, NixOS, 20.03pre202088.e89b21504f3 (Markhor)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.3.1
  • channels(root): "nixos-20.03pre202088.e89b21504f3"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos
@8573 8573 added the 0.kind: bug Something is broken label Nov 27, 2019
@worldofpeace
Copy link
Contributor

see #65399

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

Successfully merging a pull request may close this issue.

3 participants