[GH-ISSUE #3836] [Bug] AppImage on PopOS 22.04 #1734

Open
opened 2026-03-23 21:16:37 +00:00 by mirror · 11 comments
Owner

Originally created by @dentropy on GitHub (Oct 30, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/3836

Originally assigned to: @LucasXu0 on GitHub.

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

Originally created by @dentropy on GitHub (Oct 30, 2023). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/3836 Originally assigned to: @LucasXu0 on GitHub. ### 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](https://github.com/AppFlowy-IO/AppFlowy/assets/8509074/e3f46fda-d427-4bb9-9b94-6db108eaf75a) ### Additional Context _No response_
Author
Owner

@LucasXu0 commented on GitHub (Oct 31, 2023):

Hi, @dentropy. Did you install the AppImageLauncher?

<!-- gh-comment-id:1786725141 --> @LucasXu0 commented on GitHub (Oct 31, 2023): Hi, @dentropy. Did you install the [AppImageLauncher](https://github.com/TheAssassin/AppImageLauncher/releases/tag/v2.2.0)?
Author
Owner

@Zszywek commented on GitHub (Nov 13, 2023):

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

<!-- gh-comment-id:1807827274 --> @Zszywek commented on GitHub (Nov 13, 2023): Got the same thing, even though it worked before. I haven't used any AppImage launchers or updaters
Author
Owner

@leleogere commented on GitHub (Nov 15, 2023):

Same bug, I'm using AppImageLauncher

<!-- gh-comment-id:1812061802 --> @leleogere commented on GitHub (Nov 15, 2023): Same bug, I'm using AppImageLauncher
Author
Owner

@msiyer commented on GitHub (Nov 20, 2023):

Exact same behavior observed on openSUSE Tumbleweed.

<!-- gh-comment-id:1819370759 --> @msiyer commented on GitHub (Nov 20, 2023): Exact same behavior observed on openSUSE Tumbleweed.
Author
Owner

@wesleybliss commented on GitHub (Nov 21, 2023):

Same issue on Fedora 38 also

<!-- gh-comment-id:1821243155 --> @wesleybliss commented on GitHub (Nov 21, 2023): Same issue on Fedora 38 also
Author
Owner

@eljamm commented on GitHub (Dec 14, 2023):

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
<!-- gh-comment-id:1855700903 --> @eljamm commented on GitHub (Dec 14, 2023): 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 ``` 2. 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/ ``` 3. Repackage the AppImage using [appimagetool](https://github.com/AppImage/AppImageKit/releases) (Optional) First, you should modify the desktop file in `./squashfs-root/io.appflowy.AppFlowy.desktop` and remove `.svg` from the icon name: ```diff - 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 ```
Author
Owner

@ElDavoo commented on GitHub (Feb 3, 2024):

Same issue on Gentoo, workaround by eljamm worked

<!-- gh-comment-id:1925255676 --> @ElDavoo commented on GitHub (Feb 3, 2024): Same issue on Gentoo, workaround by eljamm worked
Author
Owner

@josineto commented on GitHub (Feb 21, 2024):

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
<!-- gh-comment-id:1955786771 --> @josineto commented on GitHub (Feb 21, 2024): Almost same issue, without the canberra error, only pixbuf message. Using 0.4.9: ```bash $ 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 ```
Author
Owner

@cuervolu commented on GitHub (Mar 8, 2024):

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

<!-- gh-comment-id:1986269966 --> @cuervolu commented on GitHub (Mar 8, 2024): Same issue on EndeavourOS with KDE Plasma 6, the workaround by eljamm worked
Author
Owner

@Ovear commented on GitHub (Aug 17, 2024):

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

<!-- gh-comment-id:2294860573 --> @Ovear commented on GitHub (Aug 17, 2024): I can reproduce this issue and have partially resolved by using the workaround provided by eljamm on EndeavourOS/Arch Linux with KDE Plasma 6.
Author
Owner

@Ovear commented on GitHub (Aug 17, 2024):

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
<!-- gh-comment-id:2294867618 --> @Ovear commented on GitHub (Aug 17, 2024): 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 ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#1734
No description provided.