Closed 06kellyjac closed 2 years ago
Update:
I was hesitant to ping you since you dont use chrome but I also have the issue with chromium @primeos
Also since this is pulled from the cache and my pipewire overlay isn't in any config files it's the non overridden pipewire
λ nix repl
Welcome to Nix 2.6.1. Type :? for help.
nix-repl> :lf .
nix-repl> inputs.nixpkgs.narHash
"sha256-ILKckkiG074t3a0pwaPLjio8zVWgowpEp7AUwI5HjHE="
nix-repl> inputs.nixpkgs.rev
"18bd82edcc752d6a0e6cce1401ba0c81353a03ca"
λ echo $NIX_PATH
/home/jk/.nix-defexpr/channels:nixpkgs=/nix/store/c2kq57hv8hlnv43x5yvf64drfix1bnhq-source:home-manager=/nix/store/1df131fdshngr3ydw2l98isy81rw2p4s-source:nixpkgs-master=/nix/store/wla7if4f3hf6csdilz9hf7jbj7n945ss-source:nur=/nix/store/i8wxlnmf6n8ikj9jvwb9zdw8k99gjn34-source
λ nix path-info /nix/store/c2kq57hv8hlnv43x5yvf64drfix1bnhq-source --json | jq
[
{
"path": "/nix/store/c2kq57hv8hlnv43x5yvf64drfix1bnhq-source",
"narHash": "sha256-ILKckkiG074t3a0pwaPLjio8zVWgowpEp7AUwI5HjHE=",
"narSize": 113198936,
"references": [],
"ca": "fixed:r:sha256:0wcc8y7c055hlx20m8x0ap6kqalfrfiw2addvlnvxlw69299rci0",
"registrationTime": 1646226957
}
]
λ nix-shell -p chromium
these 7 paths will be fetched (95.30 MiB download, 422.96 MiB unpacked):
/nix/store/3qja81afrdx04rfpcapjzfpz7p2n210h-libpng-1.6.37
/nix/store/8crlfv7s2xzjh7c1dhh8h57vap7y9csf-chromium-unwrapped-98.0.4758.102-sandbox
/nix/store/aaj8frg5wrqfksphhnfkrwy0vgvch70i-chromium-unwrapped-98.0.4758.102
/nix/store/b8fpbv6v4jmqa1n0c3h00kvbc9m53gnc-chromium-98.0.4758.102
/nix/store/irscclymqrrb3zj7bi1h1mrj8r42jc00-pipewire-0.3.45-lib
/nix/store/kdlavl97v7x65sx9hn3y2nwsdcm0b70g-libfreeaptx-0.1.1
/nix/store/yjlpfxms4v35rhk0aj24rn5x5yqvdp9m-chromium-98.0.4758.102-sandbox
copying path '/nix/store/8crlfv7s2xzjh7c1dhh8h57vap7y9csf-chromium-unwrapped-98.0.4758.102-sandbox' from 'https://cache.nixos.org'...
copying path '/nix/store/kdlavl97v7x65sx9hn3y2nwsdcm0b70g-libfreeaptx-0.1.1' from 'https://cache.nixos.org'...
copying path '/nix/store/3qja81afrdx04rfpcapjzfpz7p2n210h-libpng-1.6.37' from 'https://cache.nixos.org'...
copying path '/nix/store/irscclymqrrb3zj7bi1h1mrj8r42jc00-pipewire-0.3.45-lib' from 'https://cache.nixos.org'...
copying path '/nix/store/yjlpfxms4v35rhk0aj24rn5x5yqvdp9m-chromium-98.0.4758.102-sandbox' from 'https://cache.nixos.org'...
copying path '/nix/store/aaj8frg5wrqfksphhnfkrwy0vgvch70i-chromium-unwrapped-98.0.4758.102' from 'https://cache.nixos.org'...
copying path '/nix/store/b8fpbv6v4jmqa1n0c3h00kvbc9m53gnc-chromium-98.0.4758.102' from 'https://cache.nixos.org'...
[nix-shell:~]$ chromium
Maximum number of clients reachedlibva error: /run/opengl-driver/lib/dri/nvidia_drv_video.so init failed
[59988:60140:0302/160030.530195:ERROR:object_proxy.cc(623)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[59988:60140:0302/160030.531092:ERROR:object_proxy.cc(623)] Failed to call method: org.freedesktop.UPower.GetDisplayDevice: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[59988:60140:0302/160030.532047:ERROR:object_proxy.cc(623)] Failed to call method: org.freedesktop.UPower.EnumerateDevices: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
a log with --enable-logging=stderr --v=1
I was hesitant to ping you since you dont use chrome but I also have the issue with chromium @primeos
No problem, you can always ping me (it's even useful for me to know about these issues). I just often lack time to help :o And in this case I cannot reproduce it (everything's working fine on my setup - but I'm e.g. using Wayland without XWayland) so I'm afraid you're on your own.
Maximum number of clients reached
That could come from PulseAudio (directly or via services.pipewire.pulse.enable
). I'm not sure though but it seems familiar.
Not sure about the other errors, maybe it's even a bigger resource exhaustion problem.
Are you by any chance running a hardened Linux kernel or using a special audio configuration?
I'm having the same problem.
No problem, you can always ping me (it's even useful for me to know about these issues).
Thanks. I'm just on normal linux kernel and my pipewire config is pretty standard off the wiki
{ ... }:
{
# rtkit is optional but recommended
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
}
I can try swap back to normal pulse at some point and see how it goes
since there's a couple mentions of pipewire pulse I'll poke the pipewire meta thread #102547
I'll try without pipewire pulse.
I see the error message when I run vainfo
but it's fine when I use sudo.
I have the same problem with only pulseaudio.
I can launch Chrome when I stop importing nixos-hardware.nixosModules.common-cpu-intel
.
common-cpu-intel includes libvdpau-va-gl
. Not sure if it's the cause. I wonder if I could blacklist it. EDIT: I guess not, it's probably a lib, not a driver.
@06kellyjac do you also use nixos-hardware.nixosModules.common-cpu-intel
?
This might be the cause: https://github.com/NixOS/nixos-hardware/commit/1da3ba110c8940146588c9adf52811e70f449eb1
VDPAU_DRIVER=nvidia google-chrome-stable
works.
yep I do, and i'm intel + nvidia, I'll try that right after this meeting. If it doesn't work it'll probably kill my call :sweat_smile:
Update: VDPAU_DRIVER=nvidia google-chrome-stable
worked just fine
hehe. I'm filling an issue on nixos-hardware but meanwhile I think we just need to set VDPAU_DRIVER=nvidia
.
thanks for getting to the bottom of this :tada:
Cool, I'll close this issue in favor of https://github.com/NixOS/nixos-hardware/issues/388 then. Feel free to re-open it in case some Nixpkgs changes would be required.
Describe the bug
A clear and concise description of what the bug is.
Steps To Reproduce
Steps to reproduce the behavior:
Maximum number of clients reachedlibva error: /run/opengl-driver/lib/dri/nvidia_drv_video.so init failed
Maximum number of clients reached
on the other stuffExpected behavior
A clear and concise description of what you expected to happen.
Expected chrome to launch and run normally
Screenshots
If applicable, add screenshots to help explain your problem.
error log from polybar clicking stuff only while chrome is up:
launching rofi with chrome up:
Additional context
Add any other context about the problem here.
I'm on an nvidia laptop using prime.sync, currently on my external monitor config
This should be all my graphics related config:
The only other thing that might maybe be related is I override pipewire to remove bluez
pipewire = prev.pipewire.override { bluezSupport = false; };
Notify maintainers
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result."x86_64-linux"
Linux 5.15.25, NixOS, 22.05 (Quokka)
yes
yes
nix-env (Nix) 2.6.1
""
""
/nix/store/c2kq57hv8hlnv43x5yvf64drfix1bnhq-source
18bd82edcc752d6a0e6cce1401ba0c81353a03ca