AppFlowy icon indicating copy to clipboard operation
AppFlowy copied to clipboard

[Bug] AppImage on PopOS 22.04

Open dentropy opened this issue 1 year ago • 11 comments

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

image

Additional Context

No response

dentropy avatar Oct 30 '23 18:10 dentropy

Hi, @dentropy. Did you install the AppImageLauncher?

LucasXu0 avatar Oct 31 '23 08:10 LucasXu0

Got the same thing, even though it worked before. I haven't used any AppImage launchers or updaters

Zszywek avatar Nov 13 '23 09:11 Zszywek

Same bug, I'm using AppImageLauncher

leleogere avatar Nov 15 '23 09:11 leleogere

Exact same behavior observed on openSUSE Tumbleweed.

msiyer avatar Nov 20 '23 16:11 msiyer

Same issue on Fedora 38 also

wesleybliss avatar Nov 21 '23 16:11 wesleybliss

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:

  1. Extract the AppImage
$ ./AppFlowy-0.3.9.1-linux-x86_64.AppImage --appimage-extract
  1. 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/
  1. 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

eljamm avatar Dec 14 '23 11:12 eljamm

Same issue on Gentoo, workaround by eljamm worked

ElDavoo avatar Feb 03 '24 10:02 ElDavoo

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

josineto avatar Feb 21 '24 02:02 josineto

Same issue on EndeavourOS with KDE Plasma 6, the workaround by eljamm worked

cuervolu avatar Mar 08 '24 19:03 cuervolu

I can reproduce this issue and have partially resolved by using the workaround provided by eljamm on EndeavourOS/Arch Linux with KDE Plasma 6.

Ovear avatar Aug 17 '24 13:08 Ovear

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

Ovear avatar Aug 17 '24 13:08 Ovear