cpvrlab / ImagePlay

ImagePlay is a rapid prototyping application for image processing
http://cpvrlab.github.io/ImagePlay/
GNU General Public License v3.0
1.17k stars 126 forks source link

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

Closed Ricky-Tigg closed 11 months ago

Ricky-Tigg commented 4 years ago

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 4 years ago

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

Ricky-Tigg commented 4 years ago
$ ./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 4 years ago

Yes, I agree, or an experienced linux user.

Ricky-Tigg commented 4 years ago

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
selimarikan commented 4 years ago

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.

Ricky-Tigg commented 11 months ago
$ 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.x8664/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.