[GH-ISSUE #5306] [Bug] can't launch appimage #2351

Closed
opened 2026-03-23 21:21:40 +00:00 by mirror · 6 comments
Owner

Originally created by @superiums on GitHub (May 10, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/5306

Bug Description

can't launch, display this msg:

./AppFlowy-0.5.6-linux-x86_64.AppImage                                                                                                   ✘ 1

(AppFlowy:9850): Gtk-WARNING **: 10:18:44.121: 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 /org/gtk/libgtk/icons/16x16/status/image-missing.png: 无法识别的图像文件格式 (gdk-pixbuf-error-quark, 3)
Bail out! Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /org/gtk/libgtk/icons/16x16/status/image-missing.png: 无法识别的图像文件格式 (gdk-pixbuf-error-quark, 3)
fish: Job 1, './AppFlowy-0.5.6-linux-x86_64.A…' terminated by signal SIGABRT (Abort)

How to Reproduce

download the appimage.

sudo chmod 755 appimage-file
./appimage-file

Expected Behavior

be launched.

Operating System

Arch Linux

AppFlowy Version(s)

0.5.6

Screenshots

No response

Additional Context

No response

Originally created by @superiums on GitHub (May 10, 2024). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/5306 ### Bug Description can't launch, display this msg: ``` ./AppFlowy-0.5.6-linux-x86_64.AppImage ✘ 1 (AppFlowy:9850): Gtk-WARNING **: 10:18:44.121: 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 /org/gtk/libgtk/icons/16x16/status/image-missing.png: 无法识别的图像文件格式 (gdk-pixbuf-error-quark, 3) Bail out! Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /org/gtk/libgtk/icons/16x16/status/image-missing.png: 无法识别的图像文件格式 (gdk-pixbuf-error-quark, 3) fish: Job 1, './AppFlowy-0.5.6-linux-x86_64.A…' terminated by signal SIGABRT (Abort) ``` ### How to Reproduce download the appimage. ``` sudo chmod 755 appimage-file ./appimage-file ``` ### Expected Behavior be launched. ### Operating System Arch Linux ### AppFlowy Version(s) 0.5.6 ### Screenshots _No response_ ### Additional Context _No response_
Author
Owner

@superiums commented on GitHub (May 10, 2024):

gdk-pixbuf2 2.42.11-2 was installed already.

<!-- gh-comment-id:2103751867 --> @superiums commented on GitHub (May 10, 2024): gdk-pixbuf2 2.42.11-2 was installed already.
Author
Owner

@LucasXu0 commented on GitHub (May 10, 2024):

I did a search. Can you try this workaround?

https://github.com/wyyadd/LaLa/issues/40#issuecomment-1950290223

export XDG_DATA_DIRS="/usr/local/share:/usr/share"
echo $XDG_DATA_DIRS
./XXXX.AppImage
<!-- gh-comment-id:2103944762 --> @LucasXu0 commented on GitHub (May 10, 2024): I did a search. Can you try this workaround? https://github.com/wyyadd/LaLa/issues/40#issuecomment-1950290223 ``` export XDG_DATA_DIRS="/usr/local/share:/usr/share" echo $XDG_DATA_DIRS ./XXXX.AppImage ```
Author
Owner

@superiums commented on GitHub (May 10, 2024):

thanks for suggestion, i've tried to set XDG_DATA_DIRS, but not work.
also i've tried to refresh mime cache, still no lucky.

<!-- gh-comment-id:2104193616 --> @superiums commented on GitHub (May 10, 2024): thanks for suggestion, i've tried to set XDG_DATA_DIRS, but not work. also i've tried to refresh mime cache, still no lucky.
Author
Owner

@si-erik commented on GitHub (May 14, 2024):

Modern themes use svg for icons.
It seems like 'libpixbufloader-svg.so' is missing in the appimage, so it fails to load theme resources.

<!-- gh-comment-id:2109505983 --> @si-erik commented on GitHub (May 14, 2024): Modern themes use svg for icons. It seems like 'libpixbufloader-svg.so' is missing in the appimage, so it fails to load theme resources.
Author
Owner

@superiums commented on GitHub (May 29, 2024):

extra/gdk-pixbuf2 2.42.12-1 was already installed.

<!-- gh-comment-id:2136393409 --> @superiums commented on GitHub (May 29, 2024): extra/gdk-pixbuf2 2.42.12-1 was already installed.
Author
Owner

@frandmb commented on GitHub (Aug 16, 2024):

I did a search. Can you try this workaround?

wyyadd/LaLa#40 (comment)

export XDG_DATA_DIRS="/usr/local/share:/usr/share"
echo $XDG_DATA_DIRS
./XXXX.AppImage

@LucasXu0
It seems to be a bundle time error.
I was having the same issue when bundling locally and realized it was because the AppImage recipe is still set to use jammy sources and the CI runs on ubuntu:latest. Replacing every jammy with noble (for Noble Numbat) did the trick for me

<!-- gh-comment-id:2294132219 --> @frandmb commented on GitHub (Aug 16, 2024): > I did a search. Can you try this workaround? > > [wyyadd/LaLa#40 (comment)](https://github.com/wyyadd/LaLa/issues/40#issuecomment-1950290223) > > ``` > export XDG_DATA_DIRS="/usr/local/share:/usr/share" > echo $XDG_DATA_DIRS > ./XXXX.AppImage > ``` @LucasXu0 It seems to be a bundle time error. I was having the same issue when bundling locally and realized it was because the [AppImage recipe](https://github.com/AppFlowy-IO/AppFlowy/blob/main/frontend/scripts/linux_distribution/appimage/AppImageBuilder.yml) is still set to use `jammy` sources and the CI runs on `ubuntu:latest`. Replacing every `jammy` with `noble` (for Noble Numbat) did the trick for me
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#2351
No description provided.