NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.39k stars 13.61k forks source link

Recent revision broken sway while WLR_RENDER=vulkan #340114

Open oluceps opened 1 week ago

oluceps commented 1 week ago

Describe the bug

I'm on nixos-unstable-small and upgraded today and found that sway start with WLR_RENDERER=vulkan only has blank and a cursor left on the screen, which is not in previous nixpkgs revision. here is my upgrade commit.

This happened in both stable kernel (default) and latest kernel (pkgs.linuxPackages_latest), in both sway 1.9 (version in nixpkgs) and 1.10-dev (from nixpkgs-wayland overlay), permutations and combinations all produced that.

There's sway debug log while blank screen (set WLR_RENDERER): https://pb.nyaw.xyz/one-tarpon.txt Sway debug log while normally work (unset WLR_RENDERER): https://pb.nyaw.xyz/prompt-raccoon.txt (expr 30d)

Expected behavior

Normally work while set WLR_RENDERER=vulkan as before.

Additional

FWIW my nixos config https://github.com/oluceps/nixos-config/tree/trival/hosts/kaambl

Notify maintainers

@primeos @Synthetica9 @colemickens

Metadata

> nix-info -m
 - system: `"x86_64-linux"`
 - host os: `Linux 6.10.8, NixOS, 24.11 (Vicuna), 24.11.20240905.8b16862`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Lix, like Nix) 2.92.0-dev-pre20240903-72589e7
System type: x86_64-linux
Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux
Features: gc, signed-caches
System configuration file: /etc/nix/nix.conf
User configuration files: /home/elen/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/elen/.local/share/flatpak/exports/etc/xdg/nix/nix.conf:/var/lib/flatpak/exports/etc/xdg/nix/nix.conf:/home/elen/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/elen/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/elen/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/71l4pnxiirnn91pgwj49rsq05kdw1bzj-lix-2.92.0-dev-pre20240903-72589e7/share`
 - nixpkgs: `/nix/store/r1gzri19ghj6c4xvzz0bqs6r5hy3jklv-3fbs2i8q8954fggv6fv86n043w41s86a-source`

Add a :+1: reaction to issues you find important.

colemickens commented 1 week ago

Hm, initial thoughts are confusion. I am running Sway, my WLR_RENDERER is set to vulkan, and I've restarted today, so I should be on latest. Things seem okay for me. AMD CPU+iGPU + AMD dGPU.

My sway is /nix/store/fky0wmivaqmi833f8ax31i5qghv8k3b6-sway-+4fe054c/bin/sway so 4fe054c rev of sway.

colemickens commented 1 week ago

@ghishadow I see you +1 the issue. Are you also experiencing this? Any other details you might be able to add?

oluceps commented 1 week ago

I think there's some issue with vulkan the recent version. I set chrome experimental features Vulkan,VulkanFromANGLE,DefaultANGLEVulkan and it also appeared blank screen after I set full-screen playing video.

edit: Please ignore the above. This still exists even though I disabled these features. maybe they are not related.