question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

QT xcb issues with 4.1+ AppImage

See original GitHub issue

Hello – I recently updated my AppImage from 4.0.9 to 4.1.2, and I can no longer get Electrum to run. There seems to be some QT issues going on. The primary error “Could not load the QT Platform plugin “xcb” in “” even though it was found.” seems to have popped up a lot with Arch users for a variety of applications. However I’m running Debian 10 with MATE desktop. Additionally I’m accessing through VNC – not sure if this causes extra complexities. I’ve tried installing some various xcb packages, but that doesn’t help (but I shouldn’t need to install more stuff for an AppImage anyway, right?)

Here’s the output of running with QT_DEBUG_PLUGINS=1

QFactoryLoader::QFactoryLoader() checking directory path "/tmp/.mount_electrJ8ESTc/usr/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/tmp/.mount_electrJ8ESTc/usr/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqeglfs.so"
Found metadata in lib /tmp/.mount_electrJ8ESTc/usr/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqeglfs.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "eglfs"
        ]
    },
    "archreq": 0,
    "className": "QEglFSIntegrationPlugin",
    "debug": false,
    "version": 331520
}


Got keys from plugin meta data ("eglfs")
QFactoryLoader::QFactoryLoader() looking at "/tmp/.mount_electrJ8ESTc/usr/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqlinuxfb.so"
Found metadata in lib /tmp/.mount_electrJ8ESTc/usr/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqlinuxfb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "linuxfb"
        ]
    },
    "archreq": 0,
    "className": "QLinuxFbIntegrationPlugin",
    "debug": false,
    "version": 331520
}


Got keys from plugin meta data ("linuxfb")
QFactoryLoader::QFactoryLoader() looking at "/tmp/.mount_electrJ8ESTc/usr/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqminimal.so"
Found metadata in lib /tmp/.mount_electrJ8ESTc/usr/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqminimal.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimal"
        ]
    },
    "archreq": 0,
    "className": "QMinimalIntegrationPlugin",
    "debug": false,
    "version": 331520
}


Got keys from plugin meta data ("minimal")
QFactoryLoader::QFactoryLoader() looking at "/tmp/.mount_electrJ8ESTc/usr/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqminimalegl.so"
Found metadata in lib /tmp/.mount_electrJ8ESTc/usr/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqminimalegl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimalegl"
        ]
    },
    "archreq": 0,
    "className": "QMinimalEglIntegrationPlugin",
    "debug": false,
    "version": 331520
}


Got keys from plugin meta data ("minimalegl")
QFactoryLoader::QFactoryLoader() looking at "/tmp/.mount_electrJ8ESTc/usr/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqoffscreen.so"
Found metadata in lib /tmp/.mount_electrJ8ESTc/usr/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqoffscreen.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "offscreen"
        ]
    },
    "archreq": 0,
    "className": "QOffscreenIntegrationPlugin",
    "debug": false,
    "version": 331520
}


Got keys from plugin meta data ("offscreen")
QFactoryLoader::QFactoryLoader() looking at "/tmp/.mount_electrJ8ESTc/usr/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqvnc.so"
Found metadata in lib /tmp/.mount_electrJ8ESTc/usr/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqvnc.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "vnc"
        ]
    },
    "archreq": 0,
    "className": "QVncIntegrationPlugin",
    "debug": false,
    "version": 331520
}


Got keys from plugin meta data ("vnc")
QFactoryLoader::QFactoryLoader() looking at "/tmp/.mount_electrJ8ESTc/usr/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqwayland-egl.so"
Found metadata in lib /tmp/.mount_electrJ8ESTc/usr/lib/python3.7/site-packages/PyQt5/Qt5/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": 331520
}


Got keys from plugin meta data ("wayland-egl")
QFactoryLoader::QFactoryLoader() looking at "/tmp/.mount_electrJ8ESTc/usr/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqwayland-generic.so"
Found metadata in lib /tmp/.mount_electrJ8ESTc/usr/lib/python3.7/site-packages/PyQt5/Qt5/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": 331520
}


Got keys from plugin meta data ("wayland")
QFactoryLoader::QFactoryLoader() looking at "/tmp/.mount_electrJ8ESTc/usr/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqwayland-xcomposite-egl.so"
Found metadata in lib /tmp/.mount_electrJ8ESTc/usr/lib/python3.7/site-packages/PyQt5/Qt5/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": 331520
}


Got keys from plugin meta data ("wayland-xcomposite-egl")
QFactoryLoader::QFactoryLoader() looking at "/tmp/.mount_electrJ8ESTc/usr/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqwayland-xcomposite-glx.so"
Found metadata in lib /tmp/.mount_electrJ8ESTc/usr/lib/python3.7/site-packages/PyQt5/Qt5/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": 331520
}


Got keys from plugin meta data ("wayland-xcomposite-glx")
QFactoryLoader::QFactoryLoader() looking at "/tmp/.mount_electrJ8ESTc/usr/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqwebgl.so"
Found metadata in lib /tmp/.mount_electrJ8ESTc/usr/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqwebgl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "webgl"
        ]
    },
    "archreq": 0,
    "className": "QWebGLIntegrationPlugin",
    "debug": false,
    "version": 331520
}


Got keys from plugin meta data ("webgl")
QFactoryLoader::QFactoryLoader() looking at "/tmp/.mount_electrJ8ESTc/usr/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqxcb.so"
Found metadata in lib /tmp/.mount_electrJ8ESTc/usr/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqxcb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "xcb"
        ]
    },
    "archreq": 0,
    "className": "QXcbIntegrationPlugin",
    "debug": false,
    "version": 331520
}


Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/tmp/.mount_electrJ8ESTc/usr/bin/platforms" ...
Cannot load library /tmp/.mount_electrJ8ESTc/usr/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqxcb.so: (libxcb-randr.so.0: cannot open shared object file: No such file or directory)
QLibraryPrivate::loadPlugin failed on "/tmp/.mount_electrJ8ESTc/usr/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqxcb.so" : "Cannot load library /tmp/.mount_electrJ8ESTc/usr/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqxcb.so: (libxcb-randr.so.0: cannot open shared object file: No such file or directory)"
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: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

Aborted

I can still run 4.0.9 for the timebeing, but would like to be able to update if I can.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
SomberNightcommented, Apr 12, 2021

I think we should just bundle all these libxcb-* packages… Luckily they are fairly small in size. I’ve tested building an AppImage from https://github.com/spesmilo/electrum/commit/4e91555d56edb0f1a167736219f61550cd01a309 and that can launch properly on my fresh debian VM.

@EchterAgo you might be interested in this

0reactions
SomberNightcommented, Apr 12, 2021

See https://doc.qt.io/qt-5/linux-requirements.html

Note: From Qt 5.15 onwards, Qt does require libxcb 1.11. Also, the -qt-xcb configure option got removed that was bundling some of the libs below.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AppImage and issues with the XCB plugin. : r/linuxquestions
I am trying to run out an AppImage program but it errors out with: This application failed to start because it could not...
Read more >
Electrum 4.1.1 version changes to make note of
I had AppImage issues with this release of Electrum. ... qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though...
Read more >
Could not load the Qt platform plugin "xcb" in "" even ...
Hey there, I am trying to get FlatCAM into an AppImage and I'm facing some problems. First I tried to install the stable...
Read more >
AppImages (Page 1) — News
AppImage qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because ......
Read more >
[SOLVED] Could not load 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.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found