cpvrlab/ImagePlay

Appimage – application failed to start – Qt platform plugin "xcb" not found or loaded

Closed this issue · 6 comments

Appimage tested in Gnome on Wayland session, in Fedora 31.

$ ./imageplay
zenity, kdialog, Xdialog missing. Skipping ./bin//imageplay.wrapper.
This application failed to start because it could not find or load the Qt platform plugin "xcb".

Available platform plugins are: eglfs, kms, linuxfb, minimal, minimalegl, offscreen, xcb.

Reinstalling the application may fix this problem.
Aborted (core dumped)
mrazr commented

If anybody's still having this problem try this:

  1. export QT_DEBUG_PLUGINS=1
  2. run the appimage -> get a little more helpful error message
  3. google

In my case the culprit was /usr/lib/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var which has something to do with freetype and so running the appimage like this solved it:
LD_PRELOAD=/usr/lib/libfreetype.so ./ImagePlay-6.1.0.appimage

$ ./ImagePlay-6.1.0.appimage 2>ImagePlay-6.1.0.appimage_debug.txt
zenity, kdialog, Xdialog missing. Skipping ./bin//imageplay.wrapper.
Aborted (core dumped)

ImagePlay-6.1.0.appimage_debug.txt

This output relies on a developer in order to be interpreted correctly.

mrazr commented

Yes, I agree, or an experienced linux user.

Session switched from Gnome to KDE Plasma.

$ export QT_DEBUG_PLUGINS=1; ./ImagePlay-6.1.0.appimage
./ImagePlay-6.1.0.appimage: line 1: syntax error near unexpected token `newline'
./ImagePlay-6.1.0.appimage: line 1: `<?xml version="1.0" encoding="UTF-8"?>
$ gdb -q ImagePlay-6.1.0.appimage
"/home/<user>/Downloads/ImagePlay-6.1.0.appimage": not in executable format: file format not recognized

If anybody's still having this problem try this:

1. `export QT_DEBUG_PLUGINS=1`

2. run the appimage -> get a little more helpful error message

3. google

In my case the culprit was /usr/lib/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var which has something to do with freetype and so running the appimage like this solved it:
LD_PRELOAD=/usr/lib/libfreetype.so ./ImagePlay-6.1.0.appimage

Thanks! I had this problem too and this solved it.

$ locate freetype | grep 'freetype\.so'
/usr/lib/jvm/java-17-openjdk-17.0.9.0.9-1.fc39.x86_64/lib/libfreetype.so
/usr/lib64/libfreetype.so.6
/usr/lib64/libfreetype.so.6.20.0

Non-operational with identical outputs with /usr/lib64/libfreetype.so.6{,.20.0} as LD_PRELOAD:

$ LD_PRELOAD=/usr/lib64/libfreetype.so.6 ./ImagePlay-6.1.0.appimage
/bin/bash: symbol lookup error: /usr/lib64/libfreetype.so.6: undefined symbol: hb_ot_tags_from_script_and_language

Operational with /usr/lib/jvm/java-17-openjdk-17.0.9.0.9-1.fc39.x86_64/lib/libfreetype.so as LD_PRELOAD. Conclusion: not a properly coded Appimage, as demonstrated by the necessity of intervention from the user in order to make it operational.