Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hyprland crashing on launch with linux kernel 6.11 #6992

Closed
srikarboga opened this issue Jul 23, 2024 · 27 comments
Closed

Hyprland crashing on launch with linux kernel 6.11 #6992

srikarboga opened this issue Jul 23, 2024 · 27 comments
Labels
bug Something isn't working

Comments

@srikarboga
Copy link

Regression?

Yes

System Info and Version

System/Version info
Hyprland, built from branch  at commit 918d8340afd652b011b937d29d5eea0be08467f5  (flake.lock: update).
Date: Tue Jun 25 12:06:02 2024
Tag: v0.41.2, commits: 4886

flags: (if any)


System Information:
System name: Linux
Node name: fedoraland
Release: 6.10.0-64.fc41.x86_64
Version: #1 SMP PREEMPT_DYNAMIC Mon Jul 15 15:28:59 UTC 2024


GPU information: 
05:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA104 [GeForce RTX 3060 Ti] [10de:2486] (rev a1) (prog-if 00 [VGA controller])


os-release: NAME="Fedora Linux"
VERSION="41 (Workstation Edition Prerelease)"
ID=fedora
VERSION_ID=41
VERSION_CODENAME=""
PLATFORM_ID="platform:f41"
PRETTY_NAME="Fedora Linux 41 (Workstation Edition Prerelease)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:41"
DEFAULT_HOSTNAME="fedora"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/rawhide/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=rawhide
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=rawhide
SUPPORT_END=2025-05-13
VARIANT="Workstation Edition"
VARIANT_ID=workstation


plugins:

======Config-Start======


Config File: /home/srikar/.config/hypr/hyprland.conf: Read Succeeded

# #######################################################################################
# AUTOGENERATED HYPR CONFIG.
# PLEASE USE THE CONFIG PROVIDED IN THE GIT REPO /examples/hypr.conf AND EDIT IT,
# OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS.
# #######################################################################################

#autogenerated = 1 # remove this line to remove the warning

# This is an example Hyprland config file.
# Refer to the wiki for more information.
# https://wiki.hyprland.org/Configuring/Configuring-Hyprland/

# Please note not all available settings / options are set here.
# For a full list, see the wiki

# You can split this configuration into multiple files
# Create your files separately and then link them to this file like this:
# source = ~/.config/hypr/myColors.conf
env = LIBVA_DRIVER_NAME,nvidia
env = XDG_SESSION_TYPE,wayland
env = GBM_BACKEND,nvidia-drm
env = __GLX_VENDOR_LIBRARY_NAME,nvidia

cursor{
	no_hardware_cursors = true
}

################
### MONITORS ###
################

# See https://wiki.hyprland.org/Configuring/Monitors/
monitor=DP-2,2560x1440@180,0x0,1
monitor=DP-1,1920x1080@240,2560x0,1


###################
### MY PROGRAMS ###
###################

# See https://wiki.hyprland.org/Configuring/Keywords/

# Set programs that you use
$terminal = kitty
$fileManager = thunar
$menu = rofi -show drun -click-to-exit -kb-cancel "Escape,MouseSecondary"


#################
### AUTOSTART ###
#################

# Autostart necessary processes (like notifications daemons, status bars, etc.)
# Or execute your favorite apps at launch like this:

exec-once = waybar & dunst & hyprpaper
exec-once =[workspace 2 silent] $terminal
exec-once =[workspace 1] google-chrome
exec-once =[silent] Discord
#exec-once = hyprctl dispatch focusmonitor DP-2
#exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
#exec-once = nm-applet &
# exec-once = waybar & hyprpaper & firefox


#############################
### ENVIRONMENT VARIABLES ###
#############################

# See https://wiki.hyprland.org/Configuring/Environment-variables/

env = XCURSOR_SIZE,24
env = HYPRCURSOR_SIZE,24


#####################
### LOOK AND FEEL ###
#####################

# Refer to https://wiki.hyprland.org/Configuring/Variables/

# https://wiki.hyprland.org/Configuring/Variables/#general
general { 
    gaps_in = 2
    gaps_out = 6

    border_size = 2

    # https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
    col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
    col.inactive_border = rgba(595959aa)

    # Set to true enable resizing windows by clicking and dragging on borders and gaps
    resize_on_border = true 

    # Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
    allow_tearing = false

    layout = dwindle
}

# https://wiki.hyprland.org/Configuring/Variables/#decoration
decoration {
    rounding = 4
    # Change transparency of focused and unfocused windows
    active_opacity = 1.0
    inactive_opacity = 1.0

    drop_shadow = true
    shadow_range = 4
    shadow_render_power = 3
    col.shadow = rgba(1a1a1aee)

    # https://wiki.hyprland.org/Configuring/Variables/#blur
    blur {
        enabled = true
        size = 3
        passes = 1
        
        vibrancy = 0.1696
    }
}

# https://wiki.hyprland.org/Configuring/Variables/#animations
animations {
    enabled = true

    # Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more

    bezier = myBezier, 0.05, 0.9, 0.1, 1.05

    animation = windows, 1, 7, myBezier
    animation = windowsOut, 1, 7, default, popin 80%
    animation = border, 1, 10, default
    animation = borderangle, 1, 8, default
    animation = fade, 1, 7, default
    animation = workspaces, 1, 6, default
}

# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
dwindle {
    pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
    preserve_split = true # You probably want this
}

# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
master {
    new_status = master
}

# https://wiki.hyprland.org/Configuring/Variables/#misc
misc { 
    force_default_wallpaper = 0 # Set to 0 or 1 to disable the anime mascot wallpapers
    disable_hyprland_logo = true # If true disables the random hyprland logo / anime girl background. :(
}


#############
### INPUT ###
#############

# https://wiki.hyprland.org/Configuring/Variables/#input
input {
    kb_layout = us
    kb_variant =
    kb_model =
    kb_options =
    kb_rules =

    follow_mouse = 1

    sensitivity = 0 # -1.0 - 1.0, 0 means no modification.

    touchpad {
        natural_scroll = false
    }
}

# https://wiki.hyprland.org/Configuring/Variables/#gestures
gestures {
    workspace_swipe = false
}

# Example per-device config
# See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more
device {
    name = epic-mouse-v1
    sensitivity = -0.5
}

debug {
    disable_logs = false
    enable_stdout_logs = true
}


####################
### KEYBINDINGSS ###
####################

# See https://wiki.hyprland.org/Configuring/Keywords/
$mainMod = SUPER # Sets "Windows" key as main modifier

# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod, Q, exec, $terminal
bind = $mainMod, C, killactive,
bind = $mainMod, M, exit,
bind = $mainMod, E, exec, $fileManager
bind = $mainMod, V, togglefloating,
bind = $mainMod, R, exec, pkill rofi || $menu
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle

# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d

# Switch workspaces with mainMod + [0-9]
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4
bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6
bind = $mainMod, 7, workspace, 7
bind = $mainMod, 8, workspace, 8
bind = $mainMod, 9, workspace, 9
bind = $mainMod, 0, workspace, 10

# Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2
bind = $mainMod SHIFT, 3, movetoworkspace, 3
bind = $mainMod SHIFT, 4, movetoworkspace, 4
bind = $mainMod SHIFT, 5, movetoworkspace, 5
bind = $mainMod SHIFT, 6, movetoworkspace, 6
bind = $mainMod SHIFT, 7, movetoworkspace, 7
bind = $mainMod SHIFT, 8, movetoworkspace, 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9
bind = $mainMod SHIFT, 0, movetoworkspace, 10

# Example special workspace (scratchpad)
bind = $mainMod, S, togglespecialworkspace, magic
bind = $mainMod SHIFT, S, movetoworkspace, special:magic

# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1

# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow

##############################
### WINDOWS AND WORKSPACES ###
##############################

# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules

# Example windowrule v1
# windowrule = float, ^(kitty)$

# Example windowrule v2
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$

windowrulev2 = suppressevent maximize, class:.* # You'll probably like this.

windowrule = workspace 3 silent, discord

workspace = 1, monitor:DP-2, default:true
workspace = 3, monitor:DP-2, default:true
workspace = 5, monitor:DP-2, default:true
workspace = 7, monitor:DP-2, default:true
workspace = 9, monitor:DP-2, default:true
workspace = 2, monitor:DP-1, default:true
workspace = 4, monitor:DP-1, default:true
workspace = 6, monitor:DP-1, default:true
workspace = 8, monitor:DP-1, default:true
workspace = 10, monitor:DP-1, default:true

======Config-End========

Description

Hyprland crashes when launched with 6.11 linux kernel, booting back into 6.10 kernel allows hyprland to launch again.

How to reproduce

Update to the latest linux kernel and try to launch hyprland.

Crash reports, logs, images, videos

hyprlandCrashReport237.txt

@srikarboga srikarboga added the bug Something isn't working label Jul 23, 2024
@srikarboga srikarboga changed the title Hyprland crashing on launch Hyprland crashing on launch with linux kernel 6.11 Jul 23, 2024
@ikalco
Copy link
Contributor

ikalco commented Jul 23, 2024

try on git and if doesnt work then give a debug log of git with AQ_TRACE=1 HYPRLAND_TRACE=1 Hyprland

@Romaixn
Copy link

Romaixn commented Jul 23, 2024

I have the same bug, after updating can't login in my session anymore (in another DE it's work)

@DADA30000
Copy link

what do you mean 6.11, I've heard about 6.10 only recently 💀

@romanstingler
Copy link
Contributor

romanstingler commented Jul 23, 2024

@DADA30000 just look at the log
Release: 6.11.0-0.rc0.20240719git720261cfc732.7.fc41.x86_64
There are people out there to test software as soon as possible to catch bugs, so that normal folks isn't suffering too much

@srikarboga
Copy link
Author

try on git and if doesnt work then give a debug log of git with AQ_TRACE=1 HYPRLAND_TRACE=1 Hyprland

hyprland-git package does not crash but launches with artifacting issues.

@romanstingler
Copy link
Contributor

try on git and if doesnt work then give a debug log of git with AQ_TRACE=1 HYPRLAND_TRACE=1 Hyprland

hyprland-git package does not crash but launches with artifacting issues.

like
#6994
or like that?
#6830

@srikarboga
Copy link
Author

srikarboga commented Jul 23, 2024

Neither, moving the mouse completely lags and shows random white dots where the mouse path would be and then a second later the mouse properly appears in the spot where it was moved to. If I move the mouse very quickly back and forth there is a lot of white and black dots where the mouse path would be and then after I stop moving it gets fixed after a second. I've attached a recording of the issue from my phone.

IMG_6555.mp4

@ikalco
Copy link
Contributor

ikalco commented Jul 23, 2024

uuuuh can you try on 6.10 to make sure it isnt the kernel
if it still happens then post a video with debug:damage_blink (btw dont if epilepsy) set to true
and also the hyprland.log

@srikarboga
Copy link
Author

Both hyprland and hyprland-git work fine on 6.10, just checked.

@ikalco
Copy link
Contributor

ikalco commented Jul 23, 2024

its probably a kernel bug then
i would keep this issue open until 6.11 is mainline and recheck then, just in case

@vaxerski
Copy link
Member

as long as the kernel is not mainline, and it doesnt happen to many people, I'd consider this a non-issue

@romanstingler
Copy link
Contributor

are you using by any chance the 560 nvidia driver?
this one is currently toast

@romanstingler
Copy link
Contributor

today is my last day of the business trip, I can test in the evening CEST, I am already on 6.11 but on
Tag: v0.41.2-48-gf642fb97, commits: 4934
for now

@romanstingler
Copy link
Contributor

romanstingler commented Jul 31, 2024

I just came home, recompiled aquamarine-git, hyprutils-git and hyprland-git from AUR
and I can start hyprland with 6.11 and executing hyprland from the tty.
Your logs seem to have an issue with the detection of your gpu driver / gpu, can you try to use your cpu internal GPU if you have any?

maybe related to #6053 ?

~ ❯ uname -a                                                                                                                                                                                                  21:29
Linux roman 6.11.0-rc1-2-cachyos-rc #1 SMP PREEMPT_DYNAMIC Wed, 31 Jul 2024 05:40:55 +0000 x86_64 GNU/Linux
~ ❯ yay -Q | grep hypr                                                                                                                       21:08
hyprcursor-git 0.1.9.r9.g4493a972-1
hypridle-git 0.1.2.r10.ge5366d34-1
hyprland-git 0.41.2.r146.54896827-1
hyprlang-git 0.5.2.r8.gadbefbf4-1
hyprlock-git 0.4.1.r3.gcf0e975f-1
hyprutils-git 0.2.1.r0.g5dcbbc1e-1
hyprwayland-scanner-git 0.4.0.r4.ga048a6cb-1
~ ❯ inxi -G                                                                                                                                  21:08
Graphics:
  Device-1: Intel CometLake-H GT2 [UHD Graphics] driver: i915 v: kernel
  Device-2: NVIDIA GP107GLM [Quadro P620] driver: nvidia v: 555.58.02
  Device-3: Chicony Integrated Camera driver: uvcvideo type: USB
  Display: wayland server: X.org v: 1.21.1.13 with: Xwayland v: 24.1.1
    compositor: Hyprland v: 0.41.2-146-g54896827 driver: X: loaded: intel,nvidia
    unloaded: modesetting,nouveau dri: i965 gpu: i915 resolution:
    1: 5120x2880~60Hz 2: 3840x2160~60Hz
  API: EGL v: 1.5 drivers: iris,nvidia,swrast
    platforms: gbm,wayland,x11,surfaceless,device
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 24.1.4-arch1.3
    renderer: Mesa Intel UHD Graphics (CML GT2)
  API: Vulkan v: 1.3.285 drivers: nvidia,intel surfaces: xcb,xlib,wayland
~ ❯ hyprctl version                                                                                                                   2.202s 21:09
Hyprland, built from branch main at commit 548968279926a73d7ff19a9a185c977c50d56756  (internal: some minor fd/socket cleanups and make logging thread safe (7123)).
Date: Wed Jul 31 21:00:14 2024
Tag: v0.41.2-146-g54896827, commits: 5032

flags: (if any)

@srikarboga
Copy link
Author

Closing , I stopped using the 6.11 kernel so I cant test the issue anymore.

@adminy
Copy link

adminy commented Oct 1, 2024

It doesn't help that nixos decided that the latest kernel is 6.11.1 so imagine my surprise that a normal kernel update with no code change breaks hyprland, apps don't auto start and its just laggy as hell. at first I thought it was my nvidia drivers, but no, they seemed fine because I have a spare window manager to test this stuff.

I have no idea why this kernel update breaks hyprland, but I'd really love a warning somewhere in some rss feed I can read. Because This stuff makes me question everything ... and its scary. hardcoding the kernel version fixes the issue. I couldn't find any logs either that would indicate there was a problem.

I'll try AQ_TRACE=1 HYPRLAND_TRACE=1

Update:

Here is all logs that have hypr in them:
https://logpaste.com/zTfvGyDz
I hope it helps.

@ding444
Copy link

ding444 commented Oct 1, 2024

I upgraded to 6.11.1 last night with pacman and ran into this same issue. I downgraded to 6.10 and everything is working as expected.

@ding444
Copy link

ding444 commented Oct 7, 2024

FWIW upgrading to 6.11.2 works great and solved my problem.

@Daholli
Copy link

Daholli commented Oct 16, 2024

just tested it with 6.11.2 on nix (with nividia) and it is unusable, the whole interface is very slow

config for reference is pinned on the profile

@IronhandedLayman
Copy link

I also just tested with 6.11.5 and I get the same as above, really laggy screen, completely unusable. This gained some urgency since 6.10 in nix is EOL'd.

@IronhandedLayman
Copy link

After further testing, it works on current xanmod version available under nixpkgs. So... works for 6.6.58-xanmod1, works for 6.10.4, does not work for 6.11.5. It may be an Nvidia issue as well, as I read that there are some incompatibilities between the 6.11 kernel and Nvidia drivers...

@adminy
Copy link

adminy commented Oct 29, 2024

error: linux 6.10 was removed because it has reached its end of life upstream

Okay. Looks like I'm out of options ...

I'm not sure that it is an nvidia problem @IronhandedLayman as it seems to work with other window managers.

Should this issue be re-opened @vaxerski , @fufexan ?

@Daholli
Copy link

Daholli commented Oct 29, 2024

https://forums.developer.nvidia.com/t/drm-fbdev-wayland-presentation-support-with-linux-kernel-6-11-and-above/307920/16

Will look through this after work and see if I can come up with a solution, maybe we need to provide a fix for hyprland or I can provide a nix specific fix

NVIDIA/open-gpu-kernel-modules#692

@Daholli
Copy link

Daholli commented Oct 29, 2024

Used my lunchbreak for this:

    boot.kernelParams = [
      "nvidia_drm.fbdev=1"

      # TODO: remove after https://github.com/NVIDIA/open-gpu-kernel-modules/pull/692
      # and similar are merged and build in nixpkgs-unstable.
      # WARNING: this disables tty output and thus hides boot logs.
      "initcall_blacklist=simpledrm_platform_driver_init"
    ];

please set up kde until you have everthing running (or keep enough older generations around, since this makes it so you cannot recover using the tty afaik)

credits to @timon-schelling

also for some reason I have two possible hyprland sessions in sddm, and only one of them works... not sure if that is something I messed up

@vaxerski
Copy link
Member

Should this issue be re-opened vaxerski , fufexan ?

No. Kernel policy is to NEVER break userspace. If a kernel update breaks Hyprland, it's not our fault. It's either you're using a weird ass kernel, a faulty kernel update that should be fixed soon, or your drivers broke (wait for an update)

@piyoki
Copy link

piyoki commented Oct 31, 2024

I also just tested with 6.11.5 and I get the same as above, really laggy screen, completely unusable. This gained some urgency since 6.10 in nix is EOL'd.

I am experiencing the same issue. This happened since kernel 6.11.3. Rolling back to 6.10.10 works fine.

@IronhandedLayman
Copy link

Thanks to @Daholli as those kernel params have allowed me to run on 6.11 without issue. I would be surprised if the same settings would not work on other OSes outside of NixOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests