hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
19.54k stars 820 forks source link

[Nouveau + NVK] Hyprland refuses to launch #4504

Closed WasteOfO2 closed 7 months ago

WasteOfO2 commented 7 months ago

Hyprland Version

System/Version info ```sh Hyprland, built from branch main at commit 4d403dac3244aab217fb9bf17a68e9a009fcadd8 dirty (build: protocols: require wayland-protocols >= 1.32). Date: Sun Jan 21 02:03:12 2024 Tag: v0.34.0-57-g4d403dac flags: (if any) System Information: System name: Linux Node name: vigu Release: 6.7.0-arch3-1 Version: #1 SMP PREEMPT_DYNAMIC Sat, 13 Jan 2024 14:37:14 +0000 GPU information: 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU117M [GeForce GTX 1650 Mobile / Max-Q] [10de:1f9d] (rev a1) (prog-if 00 [VGA controller]) 06:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] [1002:1638] (rev c6) (prog-if 00 [VGA controller]) os-release: NAME="Arch Linux" PRETTY_NAME="Arch Linux" ID=arch BUILD_ID=rolling ANSI_COLOR="38;2;23;147;209" HOME_URL="https://archlinux.org/" DOCUMENTATION_URL="https://wiki.archlinux.org/" SUPPORT_URL="https://bbs.archlinux.org/" BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues" PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/" LOGO=archlinux-logo plugins: ```

Bug or Regression?

Bug

Description

When trying to launch hyprland using the nouveau drivers with nvk userspace drivers, Hyprland freezes for a minute, and crashes eventually

Motivated by #4499

How to reproduce

1) Follow the nouveau drivers installation procedure over at arch wiki 2) Install vulkan-nouveau-git and lib32-vulkan-nouveau-git from the AUR 3) Reboot, configure, etc 4) Launch hyprland using WLR_DRM_DEVICES and set nvidia as default 5) Set WLR_RENDERER as vulkan 6) watch the world burn

Crash reports, logs, images, videos

hyprlandCrashReport6239.txt

lscpi -nnk

00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex [1022:1630]
    Subsystem: Hewlett-Packard Company Renoir/Cezanne Root Complex [103c:8a3e]
00:00.2 IOMMU [0806]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU [1022:1631]
    Subsystem: Hewlett-Packard Company Renoir/Cezanne IOMMU [103c:8a3e]
00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632]
00:01.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge [1022:1633]
    Subsystem: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge [1022:1453]
    Kernel driver in use: pcieport
00:01.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634]
    Subsystem: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1453]
    Kernel driver in use: pcieport
00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632]
00:02.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634]
    Subsystem: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1453]
    Kernel driver in use: pcieport
00:02.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634]
    Subsystem: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1453]
    Kernel driver in use: pcieport
00:02.4 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634]
    Subsystem: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1453]
    Kernel driver in use: pcieport
00:08.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632]
00:08.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus [1022:1635]
    Subsystem: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus [1022:1635]
    Kernel driver in use: pcieport
00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b] (rev 51)
    Subsystem: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b]
    Kernel driver in use: piix4_smbus
    Kernel modules: i2c_piix4, sp5100_tco
00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e] (rev 51)
    Subsystem: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e]
00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 0 [1022:166a]
00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 1 [1022:166b]
00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 2 [1022:166c]
00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 3 [1022:166d]
    Kernel driver in use: k10temp
    Kernel modules: k10temp
00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 4 [1022:166e]
00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 5 [1022:166f]
00:18.6 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 6 [1022:1670]
00:18.7 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 7 [1022:1671]
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU117M [GeForce GTX 1650 Mobile / Max-Q] [10de:1f9d] (rev a1)
    DeviceName: NVIDIA Graphics Device
    Subsystem: Hewlett-Packard Company TU117M [GeForce GTX 1650 Mobile / Max-Q] [103c:8a3e]
    Kernel driver in use: nouveau
    Kernel modules: nouveau
01:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:10fa] (rev a1)
    Subsystem: Hewlett-Packard Company Device [103c:8a3e]
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 16)
    DeviceName: OnBoard Enthernets
    Subsystem: Hewlett-Packard Company RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [103c:8a3e]
    Kernel driver in use: r8169
    Kernel modules: r8169
03:00.0 Network controller [0280]: MEDIATEK Corp. MT7921 802.11ax PCI Express Wireless Network Adapter [14c3:7961]
    DeviceName: Tequila MediaTek Wi-Fi 6 MT7921 + BT5.3
    Subsystem: AzureWave MT7921 802.11ax PCI Express Wireless Network Adapter [1a3b:4682]
    Kernel driver in use: mt7921e
    Kernel modules: mt7921e
04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device [10ec:5228] (rev 01)
    DeviceName: Realtek PCIE CardReader
    Subsystem: Hewlett-Packard Company Device [103c:8a3e]
    Kernel driver in use: rtsx_pci
    Kernel modules: rtsx_pci
05:00.0 Non-Volatile memory controller [0108]: Silicon Motion, Inc. SM2263EN/SM2263XT (DRAM-less) NVMe SSD Controllers [126f:2263] (rev 03)
    Subsystem: Silicon Motion, Inc. SM2263EN/SM2263XT (DRAM-less) NVMe SSD Controllers [126f:2263]
    Kernel driver in use: nvme
    Kernel modules: nvme
06:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] [1002:1638] (rev c6)
    DeviceName:  Onboard IGD
    Subsystem: Hewlett-Packard Company Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] [103c:8a3e]
    Kernel driver in use: amdgpu
    Kernel modules: amdgpu
06:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller [1002:1637]
    Subsystem: Hewlett-Packard Company Renoir Radeon High Definition Audio Controller [103c:8a3e]
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel
06:00.2 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor [1022:15df]
    Subsystem: Hewlett-Packard Company Family 17h (Models 10h-1fh) Platform Security Processor [103c:8a3e]
    Kernel driver in use: ccp
    Kernel modules: ccp
06:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 [1022:1639]
    Subsystem: Hewlett-Packard Company Renoir/Cezanne USB 3.1 [103c:8a3e]
    Kernel driver in use: xhci_hcd
    Kernel modules: xhci_pci
06:00.4 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 [1022:1639]
    Subsystem: Hewlett-Packard Company Renoir/Cezanne USB 3.1 [103c:8a3e]
    Kernel driver in use: xhci_hcd
    Kernel modules: xhci_pci
06:00.5 Multimedia controller [0480]: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor [1022:15e2] (rev 01)
    Subsystem: Hewlett-Packard Company ACP/ACP3X/ACP6x Audio Coprocessor [103c:8a3e]
    Kernel driver in use: snd_rn_pci_acp3x
    Kernel modules: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x, snd_acp_pci, snd_rpl_pci_acp6x, snd_pci_ps, snd_sof_amd_renoir, snd_sof_amd_rembrandt, snd_sof_amd_vangogh, snd_sof_amd_acp63
06:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller [1022:15e3]
    Subsystem: Hewlett-Packard Company Family 17h/19h HD Audio Controller [103c:8a3e]
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel

Additional info will be provided on request, Thx!

fufexan commented 7 months ago

Hyprland uses a custom OpenGL renderer, I'm pretty sure WLR_RENDERER=vulkan won't do anything.

vaxerski commented 7 months ago

thats definitely one. Two is nvidia not being officially supported, so, out of luck.