NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.45k stars 13.65k forks source link

station: Gtk-dependencies missing #203068

Closed Mikilio closed 1 year ago

Mikilio commented 1 year ago

Describe the bug

Gtk-dependencies are not listed in default.nix

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install station in any method and do not have required gtk-modules installed.
  2. start the app from the terminal by typing station and receiving:
    Gtk-Message: 14:24:59.737: Failed to load module "canberra-gtk-module"
    Gtk-Message: 14:24:59.737: Failed to load module "pk-gtk-module"
    Gtk-Message: 14:24:59.739: Failed to load module "canberra-gtk-module"
    Gtk-Message: 14:24:59.739: Failed to load module "pk-gtk-module"
    [bugsnag] Loaded!
    Fontconfig warning: "/usr/share/fontconfig/conf.avail/05-reset-dirs-sample.conf", line 6: unknown element "reset-dirs"
    [14:25:01.646] [info] Proxy : no settings detected
    [2:1126/142504.460117:FATAL:gpu_data_manager_impl_private.cc(894)] The display compositor is frequently crashing. Goodbye.

Expected behavior

Installing should cause missing dependencies to be installed and the app should start normally.

Additional context

Other dependencies may be missing

Notify maintainers

@ajs124 , @epiteff , @Arturrin

Metadata

[mikilio@nubara dotfiles]$ nix-shell -p nix-info --run "nix-info -m"
these 8 paths will be fetched (47.00 MiB download, 200.05 MiB unpacked):
  /nix/store/2zgwnn9hc3v9c6pippmrh730rlb9apv2-glibc-2.35-163-dev
  /nix/store/5w9vg4k7w294gpii036anzx4l9r8slrp-linux-headers-5.19
  /nix/store/71mnjnls5nzmd3bczq0855rz0h21wc9z-stdenv-linux
  /nix/store/86k3ryxp7j7pva463nqdkild7819bf90-nix-info
  /nix/store/af42r7p9wmwsjic72zwaf0c8xji1nc3w-gcc-11.3.0
  /nix/store/hk75004j435l09ij4gawlkzg4wfs839w-binutils-wrapper-2.39
  /nix/store/j061mvdxw70xz20r2r0lr5lk0rcsjf9i-gcc-wrapper-11.3.0
  /nix/store/nsz832b2wrf854y37h6lgcar848ngf2z-expand-response-params
copying path '/nix/store/86k3ryxp7j7pva463nqdkild7819bf90-nix-info' from 'https://cache.nixos.org'...
copying path '/nix/store/nsz832b2wrf854y37h6lgcar848ngf2z-expand-response-params' from 'https://cache.nixos.org'...
copying path '/nix/store/5w9vg4k7w294gpii036anzx4l9r8slrp-linux-headers-5.19' from 'https://cache.nixos.org'...
copying path '/nix/store/2zgwnn9hc3v9c6pippmrh730rlb9apv2-glibc-2.35-163-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/hk75004j435l09ij4gawlkzg4wfs839w-binutils-wrapper-2.39' from 'https://cache.nixos.org'...
copying path '/nix/store/af42r7p9wmwsjic72zwaf0c8xji1nc3w-gcc-11.3.0' from 'https://cache.nixos.org'...
copying path '/nix/store/j061mvdxw70xz20r2r0lr5lk0rcsjf9i-gcc-wrapper-11.3.0' from 'https://cache.nixos.org'...
copying path '/nix/store/71mnjnls5nzmd3bczq0855rz0h21wc9z-stdenv-linux' from 'https://cache.nixos.org'...
 - system: `"x86_64-linux"`
 - host os: `Linux 5.19.14-201.fsync.fc36.x86_64, Nobara Linux, 36 (Thirty Six), nobuild`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.11.1`
 - channels(root): `"nixpkgs"`
 - channels(mikilio): `"home-manager, nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
symphorien commented 1 year ago

You are using nix on non-nixos linux, and the error message has to do with composition of textures with the gpu, so I suspect this is the generic issue that opengl does not work on non-nixos linux. See https://github.com/guibou/nixGL for a possible solution.

Mikilio commented 1 year ago

I will try this solution. If it works I believe it should be included in this package when using nix without nixos for the sake of reproducibility. After all nixpkgs should not work exclusively on nixos.

EDIT: can confirm that the workaround works!