hyprlock icon indicating copy to clipboard operation
hyprlock copied to clipboard

Crash due to MESA version mismatch between hyprlock and compositor

Open mahlquistj opened this issue 10 months ago • 2 comments

Regression?

No

Hyprlock Info and Version

Hyprlock version v0.7.0 (commit e588351)

Hyprlock config
source=/nix/store/njc7bkx658pham3w8b8zffpblh4z26km-hyprland-c388ac5/mocha.conf
source=/nix/store/cwfvm3jq4d4xap7abqb800c21rca75dc-hyprland-mauve-accent.conf
background {
  blur_passes=2
  brightness=0.500000
  contrast=1
  path=screenshot
  vibrancy=0.200000
  vibrancy_darkness=0.200000
}

general {
  disable_loading_bar=true
  grace=0
  hide_cursor=false
  ignore_empty_input=true
  no_fade_in=false
  no_fade_out=false
}

input-field {
  size=250, 60
  capslock_color=$yellow
  check_color=$peach
  dots_center=true
  dots_size=0.200000
  dots_spacing=0.350000
  fade_on_empty=false
  fail_color=$red
  font_color=$text
  font_family=Source Code Pro
  halign=center
  hide_input=false
  inner_color=rgba(0, 0, 0, 0.6)
  outer_color=rgba(0, 0, 0, 0)
  outline_thickness=2
  placeholder_text=Input Password...
  position=0, -100
  rounding=-1
  valign=center
}

label {
  color=$text
  font_family=JetBrains Mono
  font_size=18
  halign=center
  position=0, 50
  text=cmd[update:1000] date +"%A, %d %B"
  valign=bottom
}

label {
  color=$subtext1
  font_family=JetBrains Mono Extrabold
  font_size=95
  halign=center
  position=0, 200
  text=cmd[update:1000] date +"%H:%M"
  valign=center
}

Compositor Info and Version

System/Version info
Hyprland 0.45.2 built from branch v0.45.2-b at commit 12f9a0d0b93f691d4d9923716557154d74777b0a  ([gha] Nix: update inputs).
Date: 2024-11-19
Tag: v0.45.2, commits: 12f9a0d0b93f691d4d9923716557154d74777b0a
built against aquamarine 0.4.4


flags set:
debug


System Information:
System name: Linux
Node name: work
Release: 6.6.79
Version: #1-NixOS SMP PREEMPT_DYNAMIC Fri Feb 21 12:57:28 UTC 2025


GPU information:
64:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Phoenix1 [1002:15bf] (rev dd) (prog-if 00 [VGA controller])


os-release: ANSI_COLOR="1;34"
BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
BUILD_ID="24.11.20250223.04ef94c"
CPE_NAME="cpe:/o:nixos:nixos:24.11"
DEFAULT_HOSTNAME=nixos
DOCUMENTATION_URL="https://nixos.org/learn.html"
HOME_URL="https://nixos.org/"
ID=nixos
ID_LIKE=""
IMAGE_ID=""
IMAGE_VERSION=""
LOGO="nix-snowflake"
NAME=NixOS
PRETTY_NAME="NixOS 24.11 (Vicuna)"
SUPPORT_END="2025-06-30"
SUPPORT_URL="https://nixos.org/community.html"
VARIANT=""
VARIANT_ID=""
VENDOR_NAME=NixOS
VENDOR_URL="https://nixos.org/"
VERSION="24.11 (Vicuna)"
VERSION_CODENAME=vicuna
VERSION_ID="24.11"


plugins:

Description

After switching to using the flake to get 0.7.0 every time i try to lock my pc using hyprlock, it segfaults. I've included the segfault in the attachments below.

The sourced config files in my config, are purely themes - No other configuration is being set in them.

I'm using the repository flake to overwrite the home-manager package.

How to reproduce

  1. Use latest version of hyprlock flake.
  2. Try to lock the screen

Crash reports, logs, images, videos

journalctl.log

mahlquistj avatar Feb 25 '25 12:02 mahlquistj

After setting the flake to follow my own nixpkgs, it works without segfaulting. As i don't know wether or not it should work regardless of following the stable nixpkgs, i'm leaving the issue open for now.

mahlquistj avatar Feb 25 '25 12:02 mahlquistj

Yeah so this is a known problem that people run into quite frequently on nixos.

We use something called gbm, to allocate a buffer for the screencopy frame and that requrires hyprlock using the same MESA version as the compositor.

That's why overriding the nixpkgs input fixes it.

I would love to detect this version mismatch in hyprlock and give the use a proper error for it, but so far I haven't found a good way to do that.

I think we can leave this issue open for now until we find a way to detect it.

PointerDilemma avatar Feb 26 '25 08:02 PointerDilemma