knossos-project / knossos

KNOSSOS is a software tool for the visualization and annotation of 3D image data and was developed for the rapid reconstruction of neural morphology and connectivity.
https://knossos.app
GNU General Public License v2.0
73 stars 19 forks source link

AppImage crashes due to missing Qt platform plugin #487

Closed amotta closed 5 years ago

amotta commented 5 years ago

The AppImage of KNOSSOS 5.1 crashes and dumps core on startup:

➜  Desktop QT_DEBUG_PLUGINS=1 ./linux.KNOSSOS-5.1.AppImage                                                                
QFactoryLoader::QFactoryLoader() checking directory path "/tmp/.mount_linux.jzzEKW/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/tmp/.mount_linux.jzzEKW/plugins/platforms/libqxcb.so"
Found metadata in lib /tmp/.mount_linux.jzzEKW/plugins/platforms/libqxcb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "xcb"
        ]
    },
    "className": "QXcbIntegrationPlugin",
    "debug": false,
    "version": 329986
}

Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/tmp/.mount_linux.jzzEKW/platforms" ...
Cannot load library /tmp/.mount_linux.jzzEKW/plugins/platforms/libqxcb.so: (/usr/lib/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var)
QLibraryPrivate::loadPlugin failed on "/tmp/.mount_linux.jzzEKW/plugins/platforms/libqxcb.so" : "Cannot load library /tmp/.mount_linux.jzzEKW/plugins/platforms/libqxcb.so: (/usr/lib/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var)"
This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".

Available platform plugins are: xcb.

Reinstalling the application may fix this problem.
[1]    21305 abort (core dumped)  QT_DEBUG_PLUGINS=1 ./linux.KNOSSOS-5.1.AppImage

Some googling led to a similar issue in the NextCloud AppImage: https://github.com/nextcloud/desktop/issues/235

The linked issue refers to GNOME 3.28 on Arch Linux. In my particular case the problem occurs with version 3.30 of GNOME on the same linux distribution.

Optiligence commented 5 years ago

Hi, in absence of a current release, please try the nightly builds instead. They should work on any distribution with Linux ≥ 4.11.0.

Optiligence commented 5 years ago

Also, for Arch you can use the AUR package.

amotta commented 5 years ago

Most excellent! I can confirm that the nightly does indeed work. Thanks a lot.