Skip to content

maestral-qt and others: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. #98067

@SFrijters

Description

@SFrijters

Describe the bug

When running the maestral_qt executable, I get a core dump.
This started to happen after updating my nixpkgs flake.lock from 63e1162 to 9232ca2.

To Reproduce
Steps to reproduce the behavior:

  1. Use nixpkgs 9232ca2
  2. Install maestral-gui on Linux
  3. Run maestral_qt

Expected behavior

Program should work and not crash.

Additional context

$ QT_DEBUG_PLUGINS=1 maestral_qt
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/bs03sg8b0gq2zr4v252hh9psp780qj5q-python3-3.8.5/lib/qt-5.15.0/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/4vdyqzhfcs5zyf4gxh2k13wk5bdc2f5z-maestral-qt-1.1.0/lib/qt-5.15.0/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/iwpbnf39fhwx8blysa9q9hc4v09yxmq3-python3.8-nose-1.3.7/lib/qt-5.15.0/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/ayzm6ir9icrdl05azpwxlhcv4gxwqzsj-python3.8-coverage-5.2.1/lib/qt-5.15.0/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/s78f5giv8m77njsxig420s6568jsnfxl-python3.8-pytest-5.4.3/lib/qt-5.15.0/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/8wf8ivlli0j1wnnwbc4ymnbfqwyqyjyr-python3.8-setuptools-47.3.1/lib/qt-5.15.0/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/v9547fjhl16rfj4yqdd3bnx60kwqgkgd-python3.8-markdown2-2.3.6/lib/qt-5.15.0/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/lkwkbaqgglbcz5pck62jg6b0x7vf4wb6-python3.8-maestral-1.1.0/lib/qt-5.15.0/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/b89babrahxcn4r320viqhjvp07sa339l-python3.8-chardet-3.0.4/lib/qt-5.15.0/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/yzavpirck4ayab5saarixnh4gh0s57br-python3.8-pbr-5.4.5/lib/qt-5.15.0/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/bsy3zvvwc1ikx7v66l461hnqqikz03ng-python3.8-keyring-21.3.1/lib/qt-5.15.0/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/5i40ai0xiq0w30sy6hsl09xm6zgr9vwi-python3.8-Pyro5-5.11/lib/qt-5.15.0/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/kzyg18c3j7kjbi3sbshd957m710djfg3-python3.8-watchdog-0.10.3/lib/qt-5.15.0/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/cjpazii6x2fz9a0j723r6s1qcj1vr90q-python3.8-PyQt5.sip-4.19.22/lib/qt-5.15.0/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/rlck717m6zaq6pj546146ngcg6k6d762-qtdeclarative-5.15.0-bin/lib/qt-5.15.0/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/bzqj563g50wws2f4jg8aspjpqvqrwd2a-python3.8-PyQt5-5.14.2/lib/qt-5.15.0/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/home/frijters/lib/qt-5.15.0/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/f5b1y8x3rh62y6yw7zal8z8l4cv2by8n-terminator-1.92/lib/qt-5.15.0/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/3y2wb1cpvf8nks9lkh612bm1l2d1qig9-cairo-1.16.0-dev/lib/qt-5.15.0/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/3fz0y9fcpq53p5lk6l0qbfmqixp3finr-freetype-2.10.2-dev/lib/qt-5.15.0/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/ba05xi32q6zjcn6niad1zs1adqylwcr7-bzip2-1.0.6.0.1-bin/lib/qt-5.15.0/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/sp88r6xc325pmj19cbagk474d4k11bp7-libpng-apng-1.6.37-dev/lib/qt-5.15.0/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/hlm1kmkigzf5qa3j113r8jm63nfqhdjd-fontconfig-2.13.92-bin/lib/qt-5.15.0/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/a2f9frivgpxcbm1fkr6qhgxd0002k19a-expat-2.2.8-dev/lib/qt-5.15.0/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/lw6mlp0vh41xfpawlkh8w84m7qfr430l-glib-2.64.5-dev/lib/qt-5.15.0/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/ggngxyl69bjiqvr2nkpcw04523393lcx-gettext-0.21/lib/qt-5.15.0/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/fdi21x5yfqvhf2jm7gvkbprsjb692r39-glib-2.64.5-bin/lib/qt-5.15.0/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/home/frijters/.nix-profile/lib/qt-5.15.0/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/run/wrappers/lib/qt-5.15.0/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/etc/profiles/per-user/frijters/lib/qt-5.15.0/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/var/nix/profiles/default/lib/qt-5.15.0/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/run/current-system/sw/lib/qt-5.15.0/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/wy7cj276rxhil4wkxmmlpgqvk5x8cdkh-qtwayland-5.14.2-bin/lib/qt-5.14.2/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/nix/store/wy7cj276rxhil4wkxmmlpgqvk5x8cdkh-qtwayland-5.14.2-bin/lib/qt-5.14.2/plugins/platforms/libqwayland-egl.so"
Found metadata in lib /nix/store/wy7cj276rxhil4wkxmmlpgqvk5x8cdkh-qtwayland-5.14.2-bin/lib/qt-5.14.2/plugins/platforms/libqwayland-egl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland-egl"
        ]
    },
    "archreq": 0,
    "className": "QWaylandEglPlatformIntegrationPlugin",
    "debug": false,
    "version": 331264
}


Got keys from plugin meta data ("wayland-egl")
QFactoryLoader::QFactoryLoader() looking at "/nix/store/wy7cj276rxhil4wkxmmlpgqvk5x8cdkh-qtwayland-5.14.2-bin/lib/qt-5.14.2/plugins/platforms/libqwayland-generic.so"
Found metadata in lib /nix/store/wy7cj276rxhil4wkxmmlpgqvk5x8cdkh-qtwayland-5.14.2-bin/lib/qt-5.14.2/plugins/platforms/libqwayland-generic.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland"
        ]
    },
    "archreq": 0,
    "className": "QWaylandIntegrationPlugin",
    "debug": false,
    "version": 331264
}


Got keys from plugin meta data ("wayland")
QFactoryLoader::QFactoryLoader() looking at "/nix/store/wy7cj276rxhil4wkxmmlpgqvk5x8cdkh-qtwayland-5.14.2-bin/lib/qt-5.14.2/plugins/platforms/libqwayland-xcomposite-egl.so"
Found metadata in lib /nix/store/wy7cj276rxhil4wkxmmlpgqvk5x8cdkh-qtwayland-5.14.2-bin/lib/qt-5.14.2/plugins/platforms/libqwayland-xcomposite-egl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland-xcomposite-egl"
        ]
    },
    "archreq": 0,
    "className": "QWaylandXCompositeEglPlatformIntegrationPlugin",
    "debug": false,
    "version": 331264
}


Got keys from plugin meta data ("wayland-xcomposite-egl")
QFactoryLoader::QFactoryLoader() looking at "/nix/store/wy7cj276rxhil4wkxmmlpgqvk5x8cdkh-qtwayland-5.14.2-bin/lib/qt-5.14.2/plugins/platforms/libqwayland-xcomposite-glx.so"
Found metadata in lib /nix/store/wy7cj276rxhil4wkxmmlpgqvk5x8cdkh-qtwayland-5.14.2-bin/lib/qt-5.14.2/plugins/platforms/libqwayland-xcomposite-glx.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland-xcomposite-glx"
        ]
    },
    "archreq": 0,
    "className": "QWaylandXCompositeGlxPlatformIntegrationPlugin",
    "debug": false,
    "version": 331264
}


Got keys from plugin meta data ("wayland-xcomposite-glx")
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/hmaq5b8hj3hk7xdgknj2h58qknrbxb23-qtdeclarative-5.14.2-bin/lib/qt-5.14.2/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/s7vbwk79awc5m0dpl13c8gyaik1l9h4q-qtsvg-5.14.2-bin/lib/qt-5.14.2/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/gm1s9lnk2xkii2gj3qwddb93ss8gcg38-qtbase-5.14.2-bin/lib/qt-5.14.2/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/nix/store/gm1s9lnk2xkii2gj3qwddb93ss8gcg38-qtbase-5.14.2-bin/lib/qt-5.14.2/plugins/platforms/libqeglfs.so"
Found metadata in lib /nix/store/gm1s9lnk2xkii2gj3qwddb93ss8gcg38-qtbase-5.14.2-bin/lib/qt-5.14.2/plugins/platforms/libqeglfs.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "eglfs"
        ]
    },
    "archreq": 0,
    "className": "QEglFSIntegrationPlugin",
    "debug": false,
    "version": 331264
}


Got keys from plugin meta data ("eglfs")
QFactoryLoader::QFactoryLoader() looking at "/nix/store/gm1s9lnk2xkii2gj3qwddb93ss8gcg38-qtbase-5.14.2-bin/lib/qt-5.14.2/plugins/platforms/libqlinuxfb.so"
Found metadata in lib /nix/store/gm1s9lnk2xkii2gj3qwddb93ss8gcg38-qtbase-5.14.2-bin/lib/qt-5.14.2/plugins/platforms/libqlinuxfb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "linuxfb"
        ]
    },
    "archreq": 0,
    "className": "QLinuxFbIntegrationPlugin",
    "debug": false,
    "version": 331264
}


Got keys from plugin meta data ("linuxfb")
QFactoryLoader::QFactoryLoader() looking at "/nix/store/gm1s9lnk2xkii2gj3qwddb93ss8gcg38-qtbase-5.14.2-bin/lib/qt-5.14.2/plugins/platforms/libqminimal.so"
Found metadata in lib /nix/store/gm1s9lnk2xkii2gj3qwddb93ss8gcg38-qtbase-5.14.2-bin/lib/qt-5.14.2/plugins/platforms/libqminimal.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimal"
        ]
    },
    "archreq": 0,
    "className": "QMinimalIntegrationPlugin",
    "debug": false,
    "version": 331264
}


Got keys from plugin meta data ("minimal")
QFactoryLoader::QFactoryLoader() looking at "/nix/store/gm1s9lnk2xkii2gj3qwddb93ss8gcg38-qtbase-5.14.2-bin/lib/qt-5.14.2/plugins/platforms/libqminimalegl.so"
Found metadata in lib /nix/store/gm1s9lnk2xkii2gj3qwddb93ss8gcg38-qtbase-5.14.2-bin/lib/qt-5.14.2/plugins/platforms/libqminimalegl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimalegl"
        ]
    },
    "archreq": 0,
    "className": "QMinimalEglIntegrationPlugin",
    "debug": false,
    "version": 331264
}


Got keys from plugin meta data ("minimalegl")
QFactoryLoader::QFactoryLoader() looking at "/nix/store/gm1s9lnk2xkii2gj3qwddb93ss8gcg38-qtbase-5.14.2-bin/lib/qt-5.14.2/plugins/platforms/libqoffscreen.so"
Found metadata in lib /nix/store/gm1s9lnk2xkii2gj3qwddb93ss8gcg38-qtbase-5.14.2-bin/lib/qt-5.14.2/plugins/platforms/libqoffscreen.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "offscreen"
        ]
    },
    "archreq": 0,
    "className": "QOffscreenIntegrationPlugin",
    "debug": false,
    "version": 331264
}


Got keys from plugin meta data ("offscreen")
QFactoryLoader::QFactoryLoader() looking at "/nix/store/gm1s9lnk2xkii2gj3qwddb93ss8gcg38-qtbase-5.14.2-bin/lib/qt-5.14.2/plugins/platforms/libqvnc.so"
Found metadata in lib /nix/store/gm1s9lnk2xkii2gj3qwddb93ss8gcg38-qtbase-5.14.2-bin/lib/qt-5.14.2/plugins/platforms/libqvnc.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "vnc"
        ]
    },
    "archreq": 0,
    "className": "QVncIntegrationPlugin",
    "debug": false,
    "version": 331264
}


Got keys from plugin meta data ("vnc")
QFactoryLoader::QFactoryLoader() looking at "/nix/store/gm1s9lnk2xkii2gj3qwddb93ss8gcg38-qtbase-5.14.2-bin/lib/qt-5.14.2/plugins/platforms/libqxcb.so"
Found metadata in lib /nix/store/gm1s9lnk2xkii2gj3qwddb93ss8gcg38-qtbase-5.14.2-bin/lib/qt-5.14.2/plugins/platforms/libqxcb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "xcb"
        ]
    },
    "archreq": 0,
    "className": "QXcbIntegrationPlugin",
    "debug": false,
    "version": 331264
}


Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/bs03sg8b0gq2zr4v252hh9psp780qj5q-python3-3.8.5/bin/platforms" ...
Cannot load library /nix/store/gm1s9lnk2xkii2gj3qwddb93ss8gcg38-qtbase-5.14.2-bin/lib/qt-5.14.2/plugins/platforms/libqxcb.so: (/nix/store/gm1s9lnk2xkii2gj3qwddb93ss8gcg38-qtbase-5.14.2-bin/lib/qt-5.14.2/plugins/platforms/../../../../../p0xr68q9fiixq7jnbd7vc2xyilckiz5s-qtbase-5.14.2/lib/libQt5XcbQpa.so.5: undefined symbol: _ZN22QWindowSystemInterface16handleMouseEventINS_15DefaultDeliveryEEEvP7QWindowmRK7QPointFS6_6QFlagsIN2Qt11MouseButtonEES9_N6QEvent4TypeES7_INS8_16KeyboardModifierEENS8_16MouseEventSourceE, version Qt_5_PRIVATE_API)
QLibraryPrivate::loadPlugin failed on "/nix/store/gm1s9lnk2xkii2gj3qwddb93ss8gcg38-qtbase-5.14.2-bin/lib/qt-5.14.2/plugins/platforms/libqxcb.so" : "Cannot load library /nix/store/gm1s9lnk2xkii2gj3qwddb93ss8gcg38-qtbase-5.14.2-bin/lib/qt-5.14.2/plugins/platforms/libqxcb.so: (/nix/store/gm1s9lnk2xkii2gj3qwddb93ss8gcg38-qtbase-5.14.2-bin/lib/qt-5.14.2/plugins/platforms/../../../../../p0xr68q9fiixq7jnbd7vc2xyilckiz5s-qtbase-5.14.2/lib/libQt5XcbQpa.so.5: undefined symbol: _ZN22QWindowSystemInterface16handleMouseEventINS_15DefaultDeliveryEEEvP7QWindowmRK7QPointFS6_6QFlagsIN2Qt11MouseButtonEES9_N6QEvent4TypeES7_INS8_16KeyboardModifierEENS8_16MouseEventSourceE, version Qt_5_PRIVATE_API)"
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

Aborted (core dumped)

Notify maintainers

@peterhoeg probably the issue is with a Qt update, but do you see this problem?

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

 - system: `"x86_64-linux"`
 - host os: `Linux 5.8.9, NixOS, 21.03.20200915.9232ca2 (Okapi)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 3.0pre20200829_f156513`
 - channels(frijters): `"nixos-unstable-20.09pre223023.fce7562cf46"`
 - channels(root): `"nixos, nixos-unstable-20.09pre225264.683c68232e9"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute: maestral-gui
# a list of nixos modules affected by the problem
module:

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: pythonPython is a high-level, general-purpose programming language.6.topic: qt/kdeObject-oriented framework for GUI creation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions