nyxt icon indicating copy to clipboard operation
nyxt copied to clipboard

Nyxt under stumpwm and nixos not starting

Open MarceColl opened this issue 2 years ago • 12 comments

I installed the nyxt package in NixOS through the official channel. When opening nyxt a white screen flashes and immediately closes.

Information

  • OS name+version: NixOS as a flake with the flake lock given below.
  • Graphics card and driver: VGA compatible controller: Intel Corporation CometLake-U GT2 [UHD Graphics] (rev 02) with driver i915
  • Desktop environment / Window manager name+version: stumpwm 1.0.1
  • How you installed Nyxt (Guix pack, package manager, build from source): nixpkgs
  • Information from show-system-information:
Nyxt version: 2.2.3
Renderer version: GTK
Operating system kernel: Linux 5.15.43
Lisp implementation: SBCL 2.2.4.nixos (Dynamic space size: 1073741824)
Features: (:WEBKIT2 :WEBKIT2-2.36 :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 :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 :NYXT-2
 :FSET-EXT-STRINGS :CUSTOM-HASH-TABLE-NATIVE :SWANK :PLUMP-UTF-32 :GLOBAL-VARS
 :DECLARE-TYPES :PARENSCRIPT :NAMED-READTABLES :LPARALLEL :21BIT-CHARS :CHUNGA
 :FLEXI-STREAMS :CLOSER-MOP :CL-PPCRE-UNICODE :CL-UNICODE :CL-PPCRE
 :BORDEAUX-THREADS :LPARALLEL.WITH-CLTL2 :LPARALLEL.WITH-CAS
 :LPARALLEL.WITH-STEALING-SCHEDULER :SPLIT-SEQUENCE CHIPZ-SYSTEM:GRAY-STREAMS
 CFFI-FEATURES:FLAT-NAMESPACE CFFI-FEATURES:X86-64 CFFI-FEATURES:UNIX :CFFI
 CFFI-SYS::FLAT-NAMESPACE ALEXANDRIA::SEQUENCE-EMPTYP :FAST-IO-SV :FAST-IO
 :SBCL-USES-SB-ROTATE-BYTE :ASDF-SYSTEM-CONNECTIONS :CL-JSON-CLOS :CL-JSON
 :THREAD-SUPPORT :ASDF3.3 :ASDF3.2 :ASDF3.1 :ASDF3 :ASDF2 :ASDF :OS-UNIX
 :NON-BASE-CHARS-EXIST-P :ASDF-UNICODE :X86-64 :GENCGC :64-BIT :ANSI-CL
 :COMMON-LISP :ELF :IEEE-FLOATING-POINT :LINUX :LITTLE-ENDIAN
 :PACKAGE-LOCAL-NICKNAMES :SB-LDB :SB-PACKAGE-LOCKS :SB-THREAD :SB-UNICODE
 :SBCL :UNIX)

ASDF version: 3.3.4
ASDF registries: (NYXT-SOURCE-REGISTRY ENVIRONMENT-SOURCE-REGISTRY USER-SOURCE-REGISTRY
                      USER-SOURCE-REGISTRY-DIRECTORY
                      DEFAULT-USER-SOURCE-REGISTRY SYSTEM-SOURCE-REGISTRY
                      SYSTEM-SOURCE-REGISTRY-DIRECTORY
                      DEFAULT-SYSTEM-SOURCE-REGISTRY)
Critical dependencies: (/nix/store/ik4rsba42w9i6b5h4hiig3c2gm9m50gj-lisp-cl-cffi-gtk-20201220-git/lib/common-lisp/cl-cffi-gtk/gtk/cl-cffi-gtk.asd
 /nix/store/2hkn585cyfc3g8aw8d9h4advqr2fwxl6-lisp-cl-gobject-introspection-20210124-git/lib/common-lisp/cl-gobject-introspection/cl-gobject-introspection.asd
 /nix/store/6xigw0pdgbb1aaxbig51524byiikzmyh-lisp-cl-webkit2-cl-webkit-20211209-git/lib/common-lisp/cl-webkit2/webkit2/cl-webkit2.asd)

NixOS flake lock

{
  "nodes": {
    "home-manager": {
      "inputs": {
        "nixpkgs": "nixpkgs"
      },
      "locked": {
        "lastModified": 1654422613,
        "narHash": "sha256-ZxkMM13AnrMwYOV99ohzcqeTkAOqD9Q2SBdZ9WoFE9Y=",
        "owner": "nix-community",  
        "repo": "home-manager",
        "rev": "20703892473d01c70fb10248442231fe94f4ceb4",
        "type": "github"
      },
      "original": {
        "owner": "nix-community",
        "repo": "home-manager",
        "type": "github"
      }
    },
    "nixpkgs": {
      "locked": {
        "lastModified": 1654398695,
        "narHash": "sha256-Kw/KeoFXszNsF5mORP45mrxCP+k9Aq03hWcuWCL9sdI=",
        "owner": "NixOS",
        "repo": "nixpkgs",
        "rev": "c5d810f4c74c824ae0fb788103003c6c9d366a08",
        "type": "github"  
      },
      "original": {
        "id": "nixpkgs",
        "type": "indirect"
      }
    },
    "nixpkgs_2": {
      "locked": {
        "lastModified": 1654230545,
        "narHash": "sha256-8Vlwf0x8ow6pPOK2a04bT+pxIeRnM1+O0Xv9/CuDzRs=",
        "owner": "nixos",
        "repo": "nixpkgs",
        "rev": "236cc2971ac72acd90f0ae3a797f9f83098b17ec",
        "type": "github"  
      },
      "original": {
        "owner": "nixos",
        "ref": "nixos-unstable",
        "repo": "nixpkgs",
        "type": "github"
      }
    },
    "root": {
      "inputs": {
        "home-manager": "home-manager",
        "nixpkgs": "nixpkgs_2"
      }
    }
  },   
  "root": "root",
  "version": 7
}

Output when started from a shell

[mcoll@Carmack:~]$ nyxt -v
Arguments parsed: (VERBOSE T URLS NIL) and NIL
 <INFO> [12:04:49] nyxt start.lisp (listen-or-query-socket) -
  Listening to socket "/run/user/1000/nyxt/nyxt.socket".
Nyxt version 2.2.3
 <INFO> [12:04:49] nyxt start.lisp (load-lisp unsafe-load) -
  Loading Lisp file "/home/mcoll/.config/nyxt/auto-config.lisp".
<DEBUG> [12:04:49] nyxt start.lisp (load-lisp unsafe-load) -
  Lisp file "/home/mcoll/.config/nyxt/init.lisp" does not exist.
<DEBUG> [12:04:49] nyxt gtk.lisp (ffi-initialize gtk-browser) -
  Initializing GTK Interface
Could not determine the accessibility bus address
<DEBUG> [12:04:49] nyxt base-mode.lisp (base-mode form-fun-19) -
  BASE-MODE enabled.
 <INFO> [12:04:49] nyxt start.lisp (quit form-fun-3) -
  Deleting socket "/run/user/1000/nyxt/nyxt.socket".

MarceColl avatar Jun 07 '22 10:06 MarceColl

Hmmm... I suspect one of these:

  • Either an issue with the graphics driver.

  • Could not determine the accessibility bus address

    Are you running in a container or something? If not, the Nix package may be missing some inputs.

Can someone on Nix report if it works for them on Stumpwm? Cc @jmercouris

Ambrevar avatar Jun 07 '22 11:06 Ambrevar

Not running in a container, no, it's nyxt as installed from nixpkgs running on my laptop. It could be an issue with the graphics driver, but every other application that uses the GPU seems to work fine.

MarceColl avatar Jun 07 '22 14:06 MarceColl

Can you try Epiphany (GNOME Web)?

Also can you try exporting the WEBKIT_DISABLE_COMPOSITING_MODE environment variable to 1 before starting Nyxt?

Ambrevar avatar Jun 07 '22 14:06 Ambrevar

Sure! Epiphany starts and works fine, WEBKIT_DISABLE_COMPOSITING_MODE doesn't seem to change anything. Same logs, same flash of a white screen.

MarceColl avatar Jun 07 '22 14:06 MarceColl

This may help: when running nyxt as root using sudo it starts properly.

MarceColl avatar Jun 09 '22 13:06 MarceColl

This is definitely a packaging issue then. I don't know Nix well enough, could you reach out to the Nix community?

One last thing: can you try nyxt --no-socket --no-init --no-auto-init as a regular user?

Ambrevar avatar Jun 09 '22 17:06 Ambrevar

That does start properly as a regular user (changed --no-auto-init to --no-auto-config as I assume that's what you mean)

MarceColl avatar Jun 09 '22 17:06 MarceColl

Yup!

OK, so the problem is with the socket. Can you try then with nyxt --no-socket? When you start Nyxt without flags, does the file /run/user/1000/nyxt/nyxt.socket exist?

Do you have write persmission to /run/user/1000/nyxt/?

Ambrevar avatar Jun 09 '22 19:06 Ambrevar

It does start properly with nyxt --no-socket The file does not exist and I do have write permissions for /run/user/1000/nyxt/

[mcoll@Carmack:/run/user/1000/nyxt]$ ls

[mcoll@Carmack:/run/user/1000/nyxt]$ touch whatever.socket

[mcoll@Carmack:/run/user/1000/nyxt]$ ls
whatever.socket

MarceColl avatar Jun 09 '22 20:06 MarceColl

The plot thickens...

Can you start nyxt (with socket) and watch for /run/user/1000/nyxt/nyxt.socket, see if it gets created?

Could you also try nyxt --socket $HOME/nyxt.socket?

Ambrevar avatar Jun 10 '22 15:06 Ambrevar

The plot thickens...

Can you start nyxt (with socket) and watch for /run/user/1000/nyxt/nyxt.socket, see if it gets created?

Could you also try nyxt --socket $HOME/nyxt.socket?

Same issue for me (on swaywm and nixos). Socket does not get created, while --no-auto-config and --no-init fix the issue.

Any ideas?

td0m avatar Jul 22 '22 14:07 td0m

@td0m Above we narrowed the issue down to the socket, so starting with nyxt --no-socket fixed it. However it had nothing to do with --no-auto-config or --no-config. Can you confirm which command line argument fixes the startup for you?

Ambrevar avatar Jul 24 '22 03:07 Ambrevar

Stale.

aadcg avatar May 28 '23 19:05 aadcg