[Bug]: Linux AppImage doesn't work
What happened?
Linux AppImage for v2.0.0-rc.0 crashes:
I use Arch Linux
➜ ./linwood-butterfly-linux.AppImage
(butterfly:173411): Gtk-WARNING **: 14:18:42.412: Theme parsing error: gtk.css:3376:25: 'font-feature-settings' is not a valid property name
Gtk-Message: 14:18:42.425: Failed to load module "window-decorations-gtk-module"
Gtk-Message: 14:18:42.425: Failed to load module "colorreload-gtk-module"
(butterfly:173411): Gdk-CRITICAL **: 14:18:42.471: gdk_window_get_state: assertion 'GDK_IS_WINDOW (window)' failed
Fontconfig warning: "/etc/fonts/fonts.conf", line 5: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-sub-pixel-rgb.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-yes-antialias.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/48-spacing.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 4: unknown element "description"
** (butterfly:173411): CRITICAL **: 14:18:42.924: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found
** (butterfly:173411): CRITICAL **: 14:18:42.926: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found
** (butterfly:173411): CRITICAL **: 14:18:42.928: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found
** (butterfly:173411): CRITICAL **: 14:18:42.929: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found
** (butterfly:173411): CRITICAL **: 14:18:42.931: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found
flutter: dynamic_color: Accent color detected.
Segmentation fault (core dumped)
Version
Platform
Linux
Relevant log output
See above
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Hmm,
Can you give me more information which desktop environment and graphic engine (wayland, x11) you use?
I don't know why this error happens: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found.
Can you test out if the flatpak version or the portable version works?
desktop environment is KDE. Desktop session is Wayland.
linux-alternative works, although I get the same errors on the console:
❯ ./butterfly
(butterfly:6099): Gdk-CRITICAL **: 21:05:40.326: gdk_window_get_state: assertion 'GDK_IS_WINDOW (window)' failed
** (butterfly:6099): CRITICAL **: 21:05:40.381: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found
** (butterfly:6099): CRITICAL **: 21:05:40.382: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found
** (butterfly:6099): CRITICAL **: 21:05:40.382: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found
** (butterfly:6099): CRITICAL **: 21:05:40.383: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found
** (butterfly:6099): CRITICAL **: 21:05:40.383: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found
flutter: dynamic_color: Accent color detected.
** (butterfly:6099): CRITICAL **: 21:07:10.677: void fl_view_set_textures(FlView *, GdkGLContext *, GPtrArray *): assertion 'FL_IS_VIEW(self)' failed
Also, sometimes it crashes AFTER I close it:
➜ ./butterfly
(butterfly:5906): Gdk-CRITICAL **: 21:05:23.099: gdk_window_get_state: assertion 'GDK_IS_WINDOW (window)' failed
** (butterfly:5906): CRITICAL **: 21:05:23.162: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found
** (butterfly:5906): CRITICAL **: 21:05:23.164: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found
** (butterfly:5906): CRITICAL **: 21:05:23.164: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found
** (butterfly:5906): CRITICAL **: 21:05:23.165: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found
** (butterfly:5906): CRITICAL **: 21:05:23.165: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found
flutter: dynamic_color: Accent color detected.
Segmentation fault (core dumped)
Exact same thing with linux (without the "alternative").
It works but I get the same error messages in the console:
➜ ./butterfly
(butterfly:7168): Gdk-CRITICAL **: 21:09:56.024: gdk_window_get_state: assertion 'GDK_IS_WINDOW (window)' failed
** (butterfly:7168): CRITICAL **: 21:09:56.083: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found
** (butterfly:7168): CRITICAL **: 21:09:56.085: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found
** (butterfly:7168): CRITICAL **: 21:09:56.086: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found
** (butterfly:7168): CRITICAL **: 21:09:56.087: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found
** (butterfly:7168): CRITICAL **: 21:09:56.087: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found
flutter: dynamic_color: Accent color detected.
BTW, what's the difference between linux and linux-alternative?
The README doesn't say
Okay thanks, I will look on this. The linux-alternative build is just the linux build compiled in ubuntu-20.04 with old libraries where the normal build is compiled in ubuntu-22.04
I tried many things out in https://github.com/LinwoodDev/Butterfly/tree/fix/appimage-segfault but I didn't found a fix. If anyone found one feel free to make a pr. For now the portable, flatpak, deb and rpm version should work fine