Nixpkgs: electrum: qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""

Created on 7 Oct 2020  路  7Comments  路  Source: NixOS/nixpkgs

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:
bug qkde

All 7 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chris-martin picture chris-martin  路  3Comments

teto picture teto  路  3Comments

tomberek picture tomberek  路  3Comments

edolstra picture edolstra  路  3Comments

retrry picture retrry  路  3Comments