linuxdeploy-plugin-qt icon indicating copy to clipboard operation
linuxdeploy-plugin-qt copied to clipboard

Running AppImage crashes on some OSs: Could not load the Qt platform plugin "xcb"

Open nitanmarcel opened this issue 3 years ago • 0 comments

While for me on Ubuntu 22.04 an AppImage I've build on 18.04 works fine, I've had some users complaining that it doesn't start on their platform due to some errors with Qt's platform plugin xcb.

Asked to launch the AppImage with QT_DEBUG_PLUGINS to see what happens and I've noticed the following error: undefined symbol: _ZN11QFontEngine14bitmapForGlyphEj6QFixedRK10QTransform, version Qt_5_PRIVATE_API)"

Does the plugin fails to bundle something that I could do manually or I don't understand what the issue would be

Error

THIS IS FROM MY UBUNTU 22.04 LAPTOP

user@ThinkPadP15:~$ QT_DEBUG_PLUGINS=1 '/media/user/500GB-sdcard/Appimages/VPS_Player-x86_64 v4 (Celeron plus dragdrop).AppImage' 
QFactoryLoader::QFactoryLoader() checking directory path "/tmp/.mount_VPS_PliQwEHn/usr/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/tmp/.mount_VPS_PliQwEHn/usr/plugins/platforms/libqxcb.so"
Found metadata in lib /tmp/.mount_VPS_PliQwEHn/usr/plugins/platforms/libqxcb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "xcb"
        ]
    },
    "className": "QXcbIntegrationPlugin",
    "debug": false,
    "version": 329989
}


Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/tmp/.mount_VPS_PliQwEHn/usr/bin/platforms" ...
Cannot load library /tmp/.mount_VPS_PliQwEHn/usr/plugins/platforms/libqxcb.so: (/tmp/.mount_VPS_PliQwEHn/usr/plugins/platforms/../../lib/libQt5XcbQpa.so.5: undefined symbol: _ZN11QFontEngine14bitmapForGlyphEj6QFixedRK10QTransform, version Qt_5_PRIVATE_API)
QLibraryPrivate::loadPlugin failed on "/tmp/.mount_VPS_PliQwEHn/usr/plugins/platforms/libqxcb.so" : "Cannot load library /tmp/.mount_VPS_PliQwEHn/usr/plugins/platforms/libqxcb.so: (/tmp/.mount_VPS_PliQwEHn/usr/plugins/platforms/../../lib/libQt5XcbQpa.so.5: undefined symbol: _ZN11QFontEngine14bitmapForGlyphEj6QFixedRK10QTransform, 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: xcb.

Aborted (core dumped)

Tree

_AppDir
├── AppRun
├── apprun-hooks
│   └── linuxdeploy-plugin-qt-hook.sh
├── AppRun.wrapped -> usr/bin/vpsplayer
├── com.github.fcrollet.vpsplayer.desktop -> usr/share/applications/com.github.fcrollet.vpsplayer.desktop
├── com.github.fcrollet.vpsplayer.png -> usr/share/icons/hicolor/128x128/apps/com.github.fcrollet.vpsplayer.png
├── include
│   └── rubberband
│       ├── rubberband-c.h
│       └── RubberBandStretcher.h
├── lib
│   └── x86_64-linux-gnu
│       ├── ladspa
│       │   ├── ladspa-rubberband.cat
│       │   └── ladspa-rubberband.so
│       ├── librubberband.a
│       ├── librubberband.so -> librubberband.so.2
│       ├── librubberband.so.2 -> librubberband.so.2.2.0
│       ├── librubberband.so.2.2.0
│       └── pkgconfig
│           └── rubberband.pc
├── share
│   └── ladspa
│       └── rdf
│           └── ladspa-rubberband.rdf
└── usr
    ├── bin
    │   ├── qt.conf
    │   └── vpsplayer
    ├── lib
    │   ├── libb2.so.1
    │   ├── libbrotlicommon.so.1
    │   ├── libbrotlidec.so.1
    │   ├── libbsd.so.0
    │   ├── libbz2.so.1.0
    │   ├── libcap.so.2
    │   ├── libdbus-1.so.3
    │   ├── libdouble-conversion.so.3
    │   ├── libdw.so.1
    │   ├── libelf.so.1
    │   ├── libffi.so.8
    │   ├── libgcrypt.so.20
    │   ├── libglib-2.0.so.0
    │   ├── libgmodule-2.0.so.0
    │   ├── libgobject-2.0.so.0
    │   ├── libgomp.so.1
    │   ├── libgraphite2.so.3
    │   ├── libgssapi_krb5.so.2
    │   ├── libgstallocators-1.0.so.0
    │   ├── libgstapp-1.0.so.0
    │   ├── libgstaudio-1.0.so.0
    │   ├── libgstbase-1.0.so.0
    │   ├── libgstgl-1.0.so.0
    │   ├── libgstpbutils-1.0.so.0
    │   ├── libgstreamer-1.0.so.0
    │   ├── libgsttag-1.0.so.0
    │   ├── libgstvideo-1.0.so.0
    │   ├── libgudev-1.0.so.0
    │   ├── libicudata.so.70
    │   ├── libicui18n.so.70
    │   ├── libicuuc.so.70
    │   ├── libjpeg.so.8
    │   ├── libk5crypto.so.3
    │   ├── libkeyutils.so.1
    │   ├── libkrb5.so.3
    │   ├── libkrb5support.so.0
    │   ├── liblz4.so.1
    │   ├── liblzma.so.5
    │   ├── libmd4c.so.0
    │   ├── libmd.so.0
    │   ├── liborc-0.4.so.0
    │   ├── libpcre2-16.so.0
    │   ├── libpcre.so.3
    │   ├── libpng16.so.16
    │   ├── libproxy.so.1
    │   ├── libQt6Core.so.6
    │   ├── libQt6DBus.so.6
    │   ├── libQt6Gui.so.6
    │   ├── libQt6Multimedia.so.6
    │   ├── libQt6Network.so.6
    │   ├── libQt6Widgets.so.6
    │   ├── libQt6XcbQpa.so.6
    │   ├── librubberband.so.2
    │   ├── libsystemd.so.0
    │   ├── libudev.so.1
    │   ├── libunwind.so.8
    │   ├── libwayland-client.so.0
    │   ├── libwayland-cursor.so.0
    │   ├── libwayland-egl.so.1
    │   ├── libwayland-server.so.0
    │   ├── libX11-xcb.so.1
    │   ├── libXau.so.6
    │   ├── libxcb-glx.so.0
    │   ├── libxcb-icccm.so.4
    │   ├── libxcb-image.so.0
    │   ├── libxcb-keysyms.so.1
    │   ├── libxcb-randr.so.0
    │   ├── libxcb-render.so.0
    │   ├── libxcb-render-util.so.0
    │   ├── libxcb-shape.so.0
    │   ├── libxcb-shm.so.0
    │   ├── libxcb-sync.so.1
    │   ├── libxcb-util.so.1
    │   ├── libxcb-xfixes.so.0
    │   ├── libxcb-xinput.so.0
    │   ├── libxcb-xkb.so.1
    │   ├── libXdmcp.so.6
    │   ├── libxkbcommon.so.0
    │   ├── libxkbcommon-x11.so.0
    │   └── libzstd.so.1
    ├── plugins
    │   ├── imageformats
    │   │   ├── libqgif.so
    │   │   ├── libqico.so
    │   │   └── libqjpeg.so
    │   ├── platforminputcontexts
    │   │   ├── libcomposeplatforminputcontextplugin.so
    │   │   └── libibusplatforminputcontextplugin.so
    │   ├── platforms
    │   │   └── libqxcb.so
    │   ├── tls
    │   │   ├── libqcertonlybackend.so
    │   │   └── libqopensslbackend.so
    │   └── xcbglintegrations
    │       ├── libqxcb-egl-integration.so
    │       └── libqxcb-glx-integration.so
    └── share
        ├── applications
        │   └── com.github.fcrollet.vpsplayer.desktop
        ├── doc
        │   ├── libb2-1
        │   │   └── copyright
        │   ├── libbrotli1
        │   │   └── copyright
        │   ├── libbsd0
        │   │   └── copyright
        │   ├── libbz2-1.0
        │   │   └── copyright
        │   ├── libcap2
        │   │   └── copyright
        │   ├── libdbus-1-3
        │   │   └── copyright
        │   ├── libdouble-conversion3
        │   │   └── copyright
        │   ├── libgcrypt20
        │   │   └── copyright
        │   ├── libglib2.0-0
        │   │   └── copyright
        │   ├── libgomp1
        │   │   └── copyright
        │   ├── libgraphite2-3
        │   │   └── copyright
        │   ├── libgssapi-krb5-2
        │   │   └── copyright
        │   ├── libicu70
        │   │   └── copyright
        │   ├── libjpeg-turbo8
        │   │   └── copyright
        │   ├── libk5crypto3
        │   │   └── copyright
        │   ├── libkeyutils1
        │   │   └── copyright
        │   ├── libkrb5-3
        │   │   └── copyright
        │   ├── libkrb5support0
        │   │   └── copyright
        │   ├── liblz4-1
        │   │   └── copyright
        │   ├── liblzma5
        │   │   └── copyright
        │   ├── libmd0
        │   │   └── copyright
        │   ├── libmd4c0
        │   │   └── copyright
        │   ├── libpcre2-16-0
        │   │   └── copyright
        │   ├── libpcre3
        │   │   └── copyright
        │   ├── libpng16-16
        │   │   └── copyright
        │   ├── libproxy1v5
        │   │   └── copyright
        │   ├── libqt6core6
        │   │   └── copyright
        │   ├── libqt6dbus6
        │   │   └── copyright
        │   ├── libqt6gui6
        │   │   └── copyright
        │   ├── libqt6network6
        │   │   └── copyright
        │   ├── libsystemd0
        │   │   └── copyright
        │   ├── libx11-xcb1
        │   │   └── copyright
        │   ├── libxau6
        │   │   └── copyright
        │   ├── libxcb-glx0
        │   │   └── copyright
        │   ├── libxcb-icccm4
        │   │   └── copyright
        │   ├── libxcb-image0
        │   │   └── copyright
        │   ├── libxcb-keysyms1
        │   │   └── copyright
        │   ├── libxcb-randr0
        │   │   └── copyright
        │   ├── libxcb-render0
        │   │   └── copyright
        │   ├── libxcb-render-util0
        │   │   └── copyright
        │   ├── libxcb-shape0
        │   │   └── copyright
        │   ├── libxcb-shm0
        │   │   └── copyright
        │   ├── libxcb-sync1
        │   │   └── copyright
        │   ├── libxcb-util1
        │   │   └── copyright
        │   ├── libxcb-xfixes0
        │   │   └── copyright
        │   ├── libxcb-xinput0
        │   │   └── copyright
        │   ├── libxcb-xkb1
        │   │   └── copyright
        │   ├── libxdmcp6
        │   │   └── copyright
        │   ├── libxkbcommon0
        │   │   └── copyright
        │   ├── libxkbcommon-x11-0
        │   │   └── copyright
        │   ├── libzstd1
        │   │   └── copyright
        │   ├── qt6-qpa-plugins
        │   │   └── copyright
        │   └── VPSPlayer
        │       ├── COPYING
        │       └── README.md
        ├── icons
        │   └── hicolor
        │       ├── 128x128
        │       │   └── apps
        │       │       └── com.github.fcrollet.vpsplayer.png
        │       ├── 16x16
        │       │   └── apps
        │       ├── 256x256
        │       │   └── apps
        │       ├── 32x32
        │       │   └── apps
        │       ├── 64x64
        │       │   └── apps
        │       │       └── com.github.fcrollet.vpsplayer.png
        │       └── scalable
        │           └── apps
        └── metainfo
            └── com.github.fcrollet.vpsplayer.appdata.xml

90 directories, 165 files

nitanmarcel avatar Sep 03 '22 19:09 nitanmarcel