Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

Random memory issues around core wayland event loop

Open outfoxxed opened this issue 1 year ago • 7 comments
trafficstars

Hyprland Version

System/Version info
> hyprctl version
Hyprland, built from branch  at commit 13d985489788fa5349b3457d6eb1c19bad8f37e9  ().
Date: 2024-02-20
Tag:

flags: (if any)

> hyprctl systeminfo
Hyprland, built from branch  at commit 13d985489788fa5349b3457d6eb1c19bad8f37e9  ().
Date: 2024-02-20
Tag:

flags: (if any)


System Information:
System name: Linux
Node name: msi
Release: 6.1.78
Version: #1-NixOS SMP PREEMPT_DYNAMIC Fri Feb 16 18:06:32 UTC 2024


GPU information:
07:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] [1002:1638] (rev c5) (prog-if 00 [VGA controller])


os-release: ANSI_COLOR="1;34"
BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
BUILD_ID="24.05.20240218.b98a4e1"
DOCUMENTATION_URL="https://nixos.org/learn.html"
HOME_URL="https://nixos.org/"
ID=nixos
IMAGE_ID=""
IMAGE_VERSION=""
LOGO="nix-snowflake"
NAME=NixOS
PRETTY_NAME="NixOS 24.05 (Uakari)"
SUPPORT_URL="https://nixos.org/community.html"
VERSION="24.05 (Uakari)"
VERSION_CODENAME=uakari
VERSION_ID="24.05"


plugins:
  hy3 by outfoxxed ver 0.1

Bug or Regression?

Bug

Description

I'm unable to open new windows, as in they open for a split second and disappear a frame or two in. I spammed it a bit and hyprland crashed.

How to reproduce

I've triggered this multiple times and its been random as far as I can tell. This time I tried opening slurp and it refused to open, started trying to open terminals which also failed. After spamming a few terminals it crashed.

Note that I've never had this happen on an instance that wasn't running for like, at least 12 hours. (so its probably some kind of memory corruption)

Crash reports, logs, images, videos

hyprlandCrashReport2077.txt

Larger clip of the end of the log, including errors and warnings that seem probably related log.txt

outfoxxed avatar Feb 22 '24 11:02 outfoxxed

oh god it's the brodie crash

vaxerski avatar Feb 22 '24 15:02 vaxerski

is it feasible for you to get this to happen with ASan or vg?

vaxerski avatar Feb 22 '24 15:02 vaxerski

try compiling just hyprland & wlr with asan, and running that debug build. It should make all your apps still work and hopefully ASan will still catch traces.

vaxerski avatar Feb 22 '24 15:02 vaxerski

I'm running a debug build with ASan myself and we'll see if anything happens. Shit works, although firefox in native wl won't launch. (xwayland works okay)

Please try too.

vaxerski avatar Feb 22 '24 16:02 vaxerski

also build wayland in debug for more stacktrace frames

vaxerski avatar Feb 22 '24 18:02 vaxerski

You open this windows via what? Terminal emulator? Launcher (i.e. Rofi)? From within an app (like File>New Window)? What's your screen resolution? Do you have any panels (waybar, eww, etc.)?

grappas avatar Feb 23 '24 06:02 grappas

Open via keybind, 5120x1440, no panels. Have already talked to vaxry about it.

outfoxxed avatar Feb 23 '24 09:02 outfoxxed