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.09] electrum: qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "" #99982

Closed
emmanuelrosa opened this issue Oct 7, 2020 · 12 comments · Fixed by #99956 or #111026
Closed
Labels

Comments

@emmanuelrosa
Copy link
Contributor

The Electrum wallet GUI fails with a coredump because the Qt platform is unable to load plugins.

To Reproduce
Steps to reproduce the behavior:

  1. nix run nixpkgs.electrum --command electrum

Expected behavior
Electrum should launch without crashing.

Screenshots

nix run nixpkgs.electrum --command electrum
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.

Aborted (core dumped)

Additional context
The electrum package already uses the Qt wrappers, and they worked fine at some point. I've compared the generated scripts to those of qutebrowser, which is working, and I didn't see any difference that could explain the problem.

Notify maintainers

@ehmry @joachifm @np

Metadata

  • system: "x86_64-linux"
  • host os: Linux 5.8.13, NixOS, 21.03.git.cfc9214a8ad (Okapi)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.3.7
  • nixpkgs: /home/emmanuel/projects/nixpkgs

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute: electrum
# a list of nixos modules affected by the problem
module:
@doronbehar
Copy link
Contributor

#99956 will fix, but it will take a while, promise.

@onny
Copy link
Contributor

onny commented Oct 8, 2020

nix run nixpkgs.electrum --command electrum

Curiously, works for me on Wayland (sway)

@ehmry
Copy link
Contributor

ehmry commented Oct 8, 2020

I may have caused this when I asked that the latest Qt be used at #97792 (I also use Sway). @emmanuelrosa are you using X or Wayland?

@emmanuelrosa
Copy link
Contributor Author

I'm using X (with Xmonad).

For now, I'm using a pinned Nixpkgs to get it working again.

@piegamesde
Copy link
Member

For now, I'm using a pinned Nixpkgs to get it working again.

Which nixpkgs commit did you pin?

@emmanuelrosa
Copy link
Contributor Author

I had it pinned to 23370af

@licensed
Copy link

licensed commented Nov 7, 2020

I solved this way:
export QT_PLUGIN_PATH=/usr/lib/qt/plugins

@ryanswrt
Copy link

ryanswrt commented Dec 7, 2020

This is still happening for me on 20.09 with X/Plasma ; will it only be fixed in unstable / 21.03 ?

@doronbehar doronbehar changed the title electrum: qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "" [20.09] electrum: qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "" Dec 7, 2020
@doronbehar doronbehar reopened this Dec 7, 2020
@bhipple
Copy link
Contributor

bhipple commented Dec 26, 2020

This works on master, but fails on 20.09 with the above xcb error for me. For me personally, at least, I'm fine working around with a master branch build, but it might be nice to get it going on 21.09 too.

@cirno-999
Copy link
Contributor

Yeah, same issue. Any workarounds? export QT_PLUGIN_PATH=/usr/lib/qt/plugins doesn't work

@doronbehar
Copy link
Contributor

See #111026 . Since it's a bitcoin wallet, updates to it can be crucial, so we should backport updates to it from master.

@prusnak prusnak linked a pull request Jan 28, 2021 that will close this issue
10 tasks
@prusnak
Copy link
Member

prusnak commented Jan 28, 2021

Should be fixed via #111026

@prusnak prusnak closed this as completed Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet