The Electrum wallet GUI fails with a coredump because the Qt platform is unable to load plugins.
To Reproduce
Steps to reproduce the behavior:
nix run nixpkgs.electrum --command electrumExpected 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
"x86_64-linux"Linux 5.8.13, NixOS, 21.03.git.cfc9214a8ad (Okapi)yesyesnix-env (Nix) 2.3.7/home/emmanuel/projects/nixpkgsMaintainer information:
# a list of nixpkgs attributes affected by the problem
attribute: electrum
# a list of nixos modules affected by the problem
module:
https://github.com/NixOS/nixpkgs/pull/99956 will fix, but it will take a while, promise.
nix run nixpkgs.electrum --command electrum
Curiously, works for me on Wayland (sway)
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?
I'm using X (with Xmonad).
For now, I'm using a pinned Nixpkgs to get it working again.
For now, I'm using a pinned Nixpkgs to get it working again.
Which nixpkgs commit did you pin?
I had it pinned to 23370afcedc46f63ea0dc7328bcb1f40d78887bf
I solved this way:
export QT_PLUGIN_PATH=/usr/lib/qt/plugins