Crash at boot on wayland
Describe the bug
When I launch Nyxt on my computer (Arch Linux, Wayland w/ Hyperland, NVIDIA GPU), the software immediately crash.
This is the only GTK program that gives me problem in my config.
I have tried all installation methods and changing GSK_RENDERER, ELECTRON_OZONE_PLATFORM_HINT, GTK_BACKEND but nothing changed. In fact it seemed the program ignored all my settings when I tried to tell him to fallback to X11.
Here the log, it seems there is some problems with GTK+Wayland:
Nyxt version 3.12.0
<INFO> [20:55:54] Source location: #P"/usr/share/nyxt/"
<INFO> [20:55:54] Listening to socket: #P"/run/user/1000/nyxt/nyxt.socket"
(nyxt:41596): libenchant-WARNING **: 20:55:54.542: broker.vala:156: Error loading plugin: libaspell.so.15: cannot open shared object file: No such file or directory
(nyxt:41596): libenchant-WARNING **: 20:55:54.543: broker.vala:156: Error loading plugin: libhspell.so.0: cannot open shared object file: No such file or directory
(nyxt:41596): libenchant-WARNING **: 20:55:54.543: broker.vala:156: Error loading plugin: libnuspell.so.5: cannot open shared object file: No such file or directory
(nyxt:41596): libenchant-WARNING **: 20:55:54.543: broker.vala:156: Error loading plugin: libvoikko.so.1: cannot open shared object file: No such file or directory
<INFO> [20:55:54] Loading #P"/home/fpasqua/.local/share/nyxt/history/default.lisp".
<INFO> [20:55:54] Restoring 1 buffer from history.
(WebKitWebProcess:2): Gdk-WARNING **: 20:55:54.718: Failed to read portal settings: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop
(WebKitWebProcess:2): Gdk-WARNING **: 20:55:54.725: Failed to read portal settings: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop
(WebKitWebProcess:2): GLib-GIO-CRITICAL **: 20:55:54.745: Error while sending AddMatch() message: The connection is closed
(WebKitWebProcess:2): GLib-GIO-CRITICAL **: 20:55:54.745: Error while sending GetNameOwner() message: The connection is closed
(WebKitWebProcess:2): GLib-GIO-CRITICAL **: 20:55:54.745: Error while sending AddMatch() message: The connection is closed
(WebKitWebProcess:2): GLib-GIO-CRITICAL **: 20:55:54.745: Error while sending AddMatch() message: The connection is closed
(WebKitWebProcess:2): Gdk-WARNING **: 20:55:54.774: Failed to read portal settings: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop
<INFO> [20:55:54] Loading #P"/home/fpasqua/.local/share/nyxt/auto-rules.lisp".
Gdk-Message: 20:55:55.054: Error 71 (Protocol error) dispatching to Wayland display.
(WebKitWebProcess:2): Gdk-WARNING **: 20:55:55.056: Failed to read portal settings: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop
Steps to reproduce the issue Just running the software in my configuration
Information
- OS Name+Version: Arch Linux
- Installation method (Flatpak, Guix, package manager, build from source): I tried from package manager, from source with gi-gtk and gtk, and from flatpak. Same error every time.
- Output of Nyxt command
show-system-information:
Nyxt version: 3.12.0
Renderer: GI-GTK
Operating system kernel: Linux 6.15.8-arch1-2
Lisp implementation: SBCL 2.4.9 (Dynamic space size: 3221225472)
Features: (:NYXT-GI-GTK :NYXT-GTK :NYXT-GI-GTK :NYXT-GTK :NYXT-3.12 :NYXT-3 :NYXT-3.12.0
:CLIPBOARD-CONTENT-METHOD :SWANK :SLYNK :PLUMP-UTF-32 :PARENSCRIPT :NSYMBOLS
:FSET-EXT-STRINGS :SBCL+SAFE-STANDARD-READTABLE :NAMED-READTABLES :GLOBAL-VARS
:CL-FAD :LPARALLEL :21BIT-CHARS :CUSTOM-HASH-TABLE-NATIVE :CL-PPCRE-UNICODE
:CL-UNICODE :CL-JSON-DOUBLE-FLOAT-IS-SUBSUMED
:CL-JSON-SINGLE-FLOAT-IS-SUBSUMED :CHUNGA :FLEXI-STREAMS :CL-PPCRE :WEBKIT2
:WEBKIT-2.46.2 :WEBKIT-2.46 :WEBKIT-2 :WEBKIT2-CORS-ALLOWLIST
:WEBKIT2-PASTE-PLAINTEXT :WEBKIT2-TRACKING :WEBKIT2-MUTE :WEBKIT2-EMOJI
:WEBKIT2-MEDIA :WEBKIT2-SANDBOXING :GTK-3-22 :GTK-3-20 :GTK-3-18 :GTK-3-16
:GTK-3-14 :GTK-3-12 :GTK-3-10 :GTK-3-8 :GTK-3-6 :GTK-3-4 :GTK :GDK-3-22
:GDK-3-20 :GDK-3-18 :GDK-3-16 :GDK-3-14 :GDK-3-12 :GDK-3-10 :GDK-3-8 :GDK-3-6
:GDK-3-4 :CAIRO-1-10 :CAIRO-1-12 :GDK-PIXBUF :CLOSER-MOP :GLIB-2-30 :GLIB-2-32
:GLIB-2-34 :GLIB-2-36 :GLIB-2-38 :GLIB-2-40 :GLIB-2-42 :GLIB-2-44 :GLIB-2-46
:GLIB-2-48 :GLIB-2-50 :GLIB-2-52 :GLIB-2-54 :GLIB-2-56 :GLIB-2-58 :GLIB
:BORDEAUX-THREADS :LPARALLEL.WITH-CLTL2 :LPARALLEL.WITH-CAS
:LPARALLEL.WITH-STEALING-SCHEDULER :SPLIT-SEQUENCE
CFFI-FEATURES:FLAT-NAMESPACE CFFI-FEATURES:X86-64 CFFI-FEATURES:UNIX :CFFI
CFFI-SYS::FLAT-NAMESPACE ALEXANDRIA::SEQUENCE-EMPTYP :FAST-IO-SV :FAST-IO
:CL-JSON-CLOS :CL-JSON :SBCL-USES-SB-ROTATE-BYTE CHIPZ-SYSTEM:GRAY-STREAMS
:THREAD-SUPPORT :ASDF3.3 :ASDF3.2 :ASDF3.1 :ASDF3 :ASDF2 :ASDF :OS-UNIX
:NON-BASE-CHARS-EXIST-P :ASDF-UNICODE :ARENA-ALLOCATOR :X86-64 :GENCGC :64-BIT
:ANSI-CL :COMMON-LISP :ELF :IEEE-FLOATING-POINT :LINUX :LITTLE-ENDIAN
:PACKAGE-LOCAL-NICKNAMES :SB-CORE-COMPRESSION :SB-LDB :SB-PACKAGE-LOCKS
:SB-THREAD :SB-UNICODE :SBCL :UNIX)
ASDF version: 3.3.1
ASDF registries: (NYXT-SOURCE-REGISTRY ENVIRONMENT-SOURCE-REGISTRY)
Critical dependencies: (/build/nyxt/src/_build/cl-cffi-gtk/gtk/cl-cffi-gtk.asd
/build/nyxt/src/_build/cl-gobject-introspection/cl-gobject-introspection.asd
/build/nyxt/src/_build/cl-webkit/webkit2/cl-webkit2.asd)
Are you trying to run the GTK version, or the Electron version?
I don't know honestly. I'm just running the program with no other options... How can I find out?
I have the same issue with nyxt 3.12 installed via Arch Linux package manager, but if I try nyxt 4.0.0-pre-release-13 via AppImage everything works okay. My GPU is also Nvidia.
I tried building with 4.0.0-pre-release-13 with default settings (so Electron binary) and it works properly.
Seems this problem is limited to the v3 version.