AppFlowy icon indicating copy to clipboard operation
AppFlowy copied to clipboard

[Bug] can't launch appimage

Open superiums opened this issue 9 months ago • 4 comments

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

superiums avatar May 10 '24 02:05 superiums

gdk-pixbuf2 2.42.11-2 was installed already.

superiums avatar May 10 '24 02:05 superiums

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

LucasXu0 avatar May 10 '24 06:05 LucasXu0

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.

superiums avatar May 10 '24 08:05 superiums

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

si-erik avatar May 14 '24 07:05 si-erik

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

superiums avatar May 29 '24 02:05 superiums

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

frandmb avatar Aug 16 '24 19:08 frandmb