AppFlowy
AppFlowy copied to clipboard
[Bug] AppImage on PopOS 22.04
Bug Description
I tried running your AppImage on PopOS 22.04 and got the following error
How to Reproduce
➜ Downloads ./AppFlowy-0.3.6-linux-x86_64.AppImage OnLoad Gtk-Message: 13:53:08.842: Failed to load module "canberra-gtk-module" Gtk-Message: 13:53:08.854: Failed to load module "canberra-gtk-module"
(AppFlowy:80106): Gtk-WARNING **: 13:53:08.904: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.
**
Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Pop/16x16/status/image-missing.svg: Unable to load image-loading module: libpixbufloader-svg.so: libpixbufloader-svg.so: cannot open shared object file: No such file or directory (gdk-pixbuf-error-quark, 5)
Bail out! Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Pop/16x16/status/image-missing.svg: Unable to load image-loading module: libpixbufloader-svg.so: libpixbufloader-svg.so: cannot open shared object file: No such file or directory (gdk-pixbuf-error-quark, 5)
[1] 80106 IOT instruction (core dumped) ./AppFlowy-0.3.6-linux-x86_64.AppImage
➜ Downloads sudo apt install libcanberra-gtk-module libcanberra-gtk3-module
[sudo] password for dentropy:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libcanberra-gtk3-module is already the newest version (0.30-10ubuntu1.22.04.1).
libcanberra-gtk3-module set to manually installed.
libcanberra-gtk-module is already the newest version (0.30-10ubuntu1.22.04.1).
libcanberra-gtk-module set to manually installed.
The following packages were automatically installed and are no longer required:
gcc-10-base gcc-10-base:i386 libssl1.1 vim-common vim-runtime
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 27 not upgraded.
➜ Downloads ./AppFlowy-0.3.6-linux-x86_64.AppImage
OnLoad
Gtk-Message: 13:53:35.852: Failed to load module "canberra-gtk-module"
Gtk-Message: 13:53:35.864: Failed to load module "canberra-gtk-module"
(AppFlowy:80259): Gtk-WARNING **: 13:53:35.905: Could not load a pixbuf from icon theme. This may indicate that pixbuf loaders or the mime database could not be found. ** Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Pop/16x16/status/image-missing.svg: Unable to load image-loading module: libpixbufloader-svg.so: libpixbufloader-svg.so: cannot open shared object file: No such file or directory (gdk-pixbuf-error-quark, 5) Bail out! Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Pop/16x16/status/image-missing.svg: Unable to load image-loading module: libpixbufloader-svg.so: libpixbufloader-svg.so: cannot open shared object file: No such file or directory (gdk-pixbuf-error-quark, 5) [1] 80259 IOT instruction (core dumped) ./AppFlowy-0.3.6-linux-x86_64.AppImage ➜ Downloads
Expected Behavior
Start the program
Operating System
Pop OS 22.04
AppFlowy Version(s)
Downloaded on Oct 30 2023
Screenshots
Additional Context
No response
Hi, @dentropy. Did you install the AppImageLauncher?
Got the same thing, even though it worked before. I haven't used any AppImage launchers or updaters
Same bug, I'm using AppImageLauncher
Exact same behavior observed on openSUSE Tumbleweed.
Same issue on Fedora 38 also
I also encountered this problem under PopOS 22.04. The problem is that libpixbufloader-svg.so
is missing from the AppImage's library folder. A temporary fix would be to:
- Extract the AppImage
$ ./AppFlowy-0.3.9.1-linux-x86_64.AppImage --appimage-extract
- Add the missing library to the lib/ folder (Requires the
librsvg2-common
package to be installed)
$ cp /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so ./squashfs-root/lib/
- Repackage the AppImage using appimagetool (Optional)
First, you should modify the desktop file in ./squashfs-root/io.appflowy.AppFlowy.desktop
and remove .svg
from the icon name:
- Icon=appflowy.svg
+ Icon=appflowy
Then, you can proceed using the tool:
$ ./appimagetool-x86_64.AppImage ./squashfs-root
The result is an AppImage file which should launch normally:
$ ./AppFlowy-x86_64.AppImage
Same issue on Gentoo, workaround by eljamm worked
Almost same issue, without the canberra error, only pixbuf message. Using 0.4.9:
$ AppFlowy-0.4.9-linux-x86_64.AppImage
(AppFlowy:11866): Gtk-WARNING **: 23:54:12.371: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.
**
Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Tela-ubuntu-dark/16/actions/image-missing.svg: Não foi possível carregar o módulo de carregamento de imagens: libpixbufloader-svg.so: libpixbufloader-svg.so: não é possível abrir arquivo compartilhado: Arquivo ou diretório inexistente (gdk-pixbuf-error-quark, 5)
Bail out! Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Tela-ubuntu-dark/16/actions/image-missing.svg: Não foi possível carregar o módulo de carregamento de imagens: libpixbufloader-svg.so: libpixbufloader-svg.so: não é possível abrir arquivo compartilhado: Arquivo ou diretório inexistente (gdk-pixbuf-error-quark, 5)
zsh: IOT instruction (core dumped) AppFlowy-0.4.9-linux-x86_64.AppImage
Same issue on EndeavourOS with KDE Plasma 6, the workaround by eljamm worked
I can reproduce this issue and have partially resolved by using the workaround provided by eljamm on EndeavourOS/Arch Linux with KDE Plasma 6.
This issues may also resolved by running the AppImage with GDK_BACKEND=x11
on WayLand, without modifying AppImage itself.
$ GDK_BACKEND=x11 ./AppFlowy-0.6.7.1-linux-x86_64.AppImage
I also found an alternative solution that doesn't reuqire adding a file to the AppImage and works with Wayland, provided you have gdk-pixbuf
installed on your system. Unfortunately, the AppImage version doesn't work with Wayland on my system, but I observed that this error was resolved. This solution might still be helpful for others encountering the same issue.
After extracting the AppImage, simply comment out the GDK_PIXBUF_MODULE_FILE
line in squashfs-root/AppRun.env. That line should look like this:
#GDK_PIXBUF_MODULE_FILE=$APPDIR/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache