-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
Qt applications fail due to xcb plugin mismatch #24256
Comments
Works fine when installed using |
Incidentally there is a new version of openshot: #22710 (edited a typo, many thanks @lheckemann !) |
Wrong issue number? I guess you meant #22710 |
I have the same problem with krita (installed via
Installing it via
So it's opening two mismatching versions of libqxcb.so, where one is probably discovered via |
I am working on making Qt packages entirely insensitive to their environment. |
@ttuegel What would be the implications of that? Isn't the plugin mechanism necessary for certain things (like picking up the open dialog box of the desktop environment, theming etc.)? |
Right now, I have patched our Qt libraries to go spelunking through |
FWIW if anyone wants a quick and ugly hack to just get an application (in my case $ ls /nix/store/*qtbase*/lib/qt5/plugins/platforms/libqxcb.so
/nix/store/0igx2hwicb18di1mx65qh3jrpypvc40a-qtbase-5.6.1-1/lib/qt5/plugins/platforms/libqxcb.so
/nix/store/9kmi6a4pba9g45wr4c1ny5kasc70jbx9-qtbase-5.6.2/lib/qt5/plugins/platforms/libqxcb.so
/nix/store/3qz77v287y42s3a9l1745551idfcdflr-qtbase-5.8.0/lib/qt5/plugins/platforms/libqxcb.so
/nix/store/f2680a9j60qi724k7dgphxamlqsq933x-qtbase-5.6.1-1/lib/qt5/plugins/platforms/libqxcb.so (choose the one that seems appropriate, or just trial and error) $ NIX_PROFILES=/nix/store/3qz77v287y42s3a9l1745551idfcdflr-qtbase-5.8.0 kolourpaint (May or may not fail for applications with more complicated dependencies than |
...hm. I'm not 100% sure if this issue is the culprit, but I rebooted and KDE itself failed to start (error message something like "core shell components could not be found, this is a packaging problem, contact your distro"). I did |
This is fixed in |
@ttuegel I think I'm getting this error at #27790 is there quick fix for people still on 17.03? @glaebhoerl 's trick did not work for me. |
@ttuegel I still this error when running 17.09-based Qt packages on NixOS 17.03 (e.g. Krita or Tribler). For Tribler, I added this line to the wrapper:
which fixes it. Is that the recommended solution? |
Also, fix the xcb plugin error (#24256) and add service-identity which is a required dependency now.
I believe setting that variable in the wrapper will break the application under KDE. It should not be necessary for you to do anything. If it is, then there is a bug I need to fix in our modified Qt plugin loader. Just to check, you have the package installed in |
@ttuegel I was running it as |
Unfortunately, that is not expected to work. I don't know how to make programs work from the store while also integrating correctly into desktop environments like KDE or LXDE. (This is a really terrible trade-off and I will entertain any suggestion to fix it.) A work-around is to set |
What helped me was either to 1) declare the application in
|
FWIW, I'll add a comment how I fixed this in my case. I ran the failing command with Background: I have FHS user env for Conda and when I launched IPython ( |
Hey I was just struggling with this for a few hours trying to run VirtualBox. My fix was : # In `configuration.nix`
{ config, lib, pkgs, options, ... }:
{
virtualisation.virtualbox.host.enable = true;
environment.pathsToLink = ["${pkgs.xorg.libxcb}/lib/"];
} |
My previous workaround of exporting QT_QPA_PLATFORM_PLUGIN_PATH in my shell caused my (fedora system installed) |
Fixes error 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. See NixOS#24256.
I just upgraded to 20.09 and am running into this issue with my KDE applications. How to fix? |
Same here, experiencing this since upgrading to 20.09.
|
Perhaps try upgrading everything you have imperatively installed via
|
I have installed nothing imperatively. |
I have not found my desired solution in this thread, but in that other one. So I'd like to link it to here, in case anyone else is stumbling upon this. |
Issue description
Technical details
The text was updated successfully, but these errors were encountered: