Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Linux AppImage doesn't work #533

Open
1 task done
raffaem opened this issue Dec 2, 2023 · 6 comments
Open
1 task done

[Bug]: Linux AppImage doesn't work #533

raffaem opened this issue Dec 2, 2023 · 6 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@raffaem
Copy link

raffaem commented Dec 2, 2023

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

v2.0.0-rc.0

Platform

Linux

Relevant log output

See above

Code of Conduct

  • I agree to follow this project's Code of Conduct
@raffaem raffaem added the bug Something isn't working label Dec 2, 2023
@CodeDoctorDE
Copy link
Member

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?

@raffaem
Copy link
Author

raffaem commented Dec 2, 2023

desktop environment is KDE. Desktop session is Wayland.

@raffaem
Copy link
Author

raffaem commented Dec 2, 2023

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)

@raffaem
Copy link
Author

raffaem commented Dec 2, 2023

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

@CodeDoctorDE
Copy link
Member

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

@CodeDoctorDE CodeDoctorDE added the help wanted Extra attention is needed label Dec 17, 2023
@CodeDoctorDE CodeDoctorDE added the good first issue Good for newcomers label Feb 7, 2024
@CodeDoctorDE
Copy link
Member

CodeDoctorDE commented Feb 7, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
Status: 📕 Todo
Development

No branches or pull requests

2 participants