Nixpkgs: keepassxc fails to start due to some Qt error on `unstable`

Created on 15 Sep 2019  路  6Comments  路  Source: NixOS/nixpkgs

Describe the bug
Starting keepassxc fails with a core dump due to a Qt error. Setting export QT_DEBUG_PLUGINS=1 gives us following trace:

QFactoryLoader::QFactoryLoader() checking directory path "/home/earendil/lib/qt-5.12.3/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/run/wrappers/lib/qt-5.12.3/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/home/earendil/.nix-profile/lib/qt-5.12.3/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/etc/profiles/per-user/earendil/lib/qt-5.12.3/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/var/nix/profiles/default/lib/qt-5.12.3/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/run/current-system/sw/lib/qt-5.12.3/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/ryq0biggsg93bj962bkw9mhcrxv92dn7-keepassxc-2.4.3/bin/platforms" ...
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)

To Reproduce
Steps to reproduce the behavior:

  1. have keepassxc installed (unstable)
  2. start keepassxc
  3. watch the world burn

Expected behavior
application doesn't crash

Metadata

  • system: "x86_64-linux"
  • host os: Linux 5.2.13, NixOS, 19.09pre192418.e19054ab3cd (Loris)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.3
  • channels(root): "nixos-19.09pre192418.e19054ab3cd, nixpkgs-20.03pre193019.a26445a2ddf"
  • channels(earendil): ""
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos
bug

All 6 comments

@worldofpeace That was merged 8 days ago, but is still happening:

$ keepassxc
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)
  • system: "x86_64-linux"
  • host os: Linux 4.19.71, NixOS, 19.09pre192418.e19054ab3cd (Loris)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.3
  • channels(root): "nixos-19.09pre192418.e19054ab3cd"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Your channel doesn't have this commit c6d516dfc49c1d84ef03605e0d2b8aa3ea8ae431.

Where would I find out in general what the sensible next step is once I have that information? Should I manually patch my installation (and how complex/risky is that?), use a different channel (ditto about the risk), or is the best option just to use keepassxc-cli until this arrives on unstable (how long should I expect that to take?)?

Thanks a bunch for taking the time to answer a newbie! I'm completely spoiled by Arch Linux.

Hi @l0b0, I'd be happy to help you.

Putting this in your configuration.nix should work

nixpkgs.overlays =  [
  (self: super: {
    keepassxc = super.keepassxc.overrideAttrs(old: {
      preFixup = ''
        wrapQtApp $out/bin/keepassxc
      '';
    });
  })
];

Fantastic @worldofpeace, thank you again!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

copumpkin picture copumpkin  路  3Comments

yawnt picture yawnt  路  3Comments

ob7 picture ob7  路  3Comments

ghost picture ghost  路  3Comments

langston-barrett picture langston-barrett  路  3Comments