Could not load the Qt platform plugin "xcb" in "" even though it was found.
Describe the bug
The AppImage doesn't launch from within a Linux console, both in a remote SSH console and on Linux desktop.
$ wget https://opencl.gpuinfo.org/downloads/openclcapsviewer_1.00_linux64_x11.AppImage
$ ./openclcapsviewer_1.00_linux64_x11.AppImage
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)
$ ./openclcapsviewer_1.00_linux64_x11.AppImage --appimage-extract
$ export QT_DEBUG_PLUGINS=1
$ squashfs-root/AppRun
QFactoryLoader::QFactoryLoader() checking directory path "/home/btpj/bt306485/squashfs-root/OpenCLCapsViewer/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "~/squashfs-root/OpenCLCapsViewer/plugins/platforms/libqxcb.so"
Found metadata in lib ~/squashfs-root/OpenCLCapsViewer/plugins/platforms/libqxcb.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"xcb"
]
},
"archreq": 0,
"className": "QXcbIntegrationPlugin",
"debug": false,
"version": 330752
}
Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "~/squashfs-root/OpenCLCapsViewer/bin/platforms" ...
loaded library "~/squashfs-root/OpenCLCapsViewer/plugins/platforms/libqxcb.so"
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)
Platform (please complete the following information):
- Device: AMD Radeon VII
- OS: Linux x86_64 GNU/Linux
- Driver version: 3314.0 (HSA1.1,LC)
Additional context It would be cool to be able to submit a device to the database from within the SSH console and without root access.
I have added a cli only build for Linux that does not require any ui libraries.
You can get it from here: https://opencl.gpuinfo.org/downloads/openclcapsviewer_1.10_linux64_cli.AppImage Command line arguments are described here: https://github.com/SaschaWillems/OpenCLCapsViewer/blob/master/docs/commandline_arguments.md
This works fine for me on systems without a window manager and didn't require any root access.
Let me know if this works for you.
Thank you so much! I have uploaded a few more interesting devices :)
Unfortunatley there is problems on some platforms that I have tested. I either get Segmentation fault, or Database unreachable (but devices are detected correctly) or nothing happens and I cannot even quit the application with Ctrl+C.
And on some platforms there is this error dlopen(): error loading libfuse.so.2. sudo apt install libfuse2 fixes the error, or alternatively --appimage-extract-and-run on systems where sudo is not available.
Is there a way to save a report as a file and from another computer upload the report?