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
21.64k stars 903 forks source link

Crash on startup after updating from 0.41.2 #8446

Closed rmoretto closed 2 days ago

rmoretto commented 2 days ago

Already reported ? *

Regression?

Yes

System Info and Version

System/Version info ```sh Hyprland 0.45.0 built from branch main at commit bb160cfe377da2d2b2e4431a3399fa60114f3911 (makefile: add stub to discourage direct make). Date: Tue Nov 12 12:26:25 2024 Tag: v0.45.0-17-gbb160cfe, commits: 5450 built against aquamarine 0.4.3 flags set: debug System Information: System name: Linux Node name: rodrigo-pc Release: 6.11.5-zen1 Version: #1-NixOS ZEN SMP PREEMPT_DYNAMIC Tue Jan 1 00:00:00 UTC 1980 GPU information: 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation AD104 [GeForce RTX 4070] [10de:2786] (rev a1) (prog-if 00 [VGA controller]) 11:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Raphael [1002:164e] (rev c3) (prog-if 00 [VGA controller]) NVRM version: NVIDIA UNIX x86_64 Kernel Module 565.57.01 Thu Oct 10 12:29:05 UTC 2024 os-release: ANSI_COLOR="1;34" BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues" BUILD_ID="24.05.20241110.9256f7c" 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_END="2024-12-31" SUPPORT_URL="https://nixos.org/community.html" VERSION="24.05 (Uakari)" VERSION_CODENAME=uakari VERSION_ID="24.05" plugins: unknown: not runtime ```

Description

After trying to update from the 0.41.2 to the newest version Hyprland crashes on startup, I tried updating to the 0.44 and 0.45 version, both crashing. I tried to run a git bisect without much success, my guess is that the crash started after the aquamarine migration.

To get the logs I made a build in the main branch with

make build

and runned the binary with:

HYPRLAND_TRACE=1 AQ_TRACE=1 Hyprland

How to reproduce

Build from main and start Hyprland

Crash reports, logs, images, videos

--------------------------------------------
   Hyprland Crash Report
--------------------------------------------
"stable"

Hyprland received signal 11(SEGV)
Version: bb160cfe377da2d2b2e4431a3399fa60114f3911
Tag: v0.45.0-17-gbb160cfe
Date: Tue Nov 12 12:26:25 2024
Flags:

System info:
    System name: Linux
    Node name: rodrigo-pc
    Release: 6.11.5-zen1
    Version: #1-NixOS ZEN SMP PREEMPT_DYNAMIC Tue Jan  1 00:00:00 UTC 1980

GPU:
    01:00.0 VGA compatible controller [0300]: NVIDIA Corporation AD104 [GeForce RTX 4070] [10de:2786] (rev a1) (prog-if 00 [VGA controller])
11:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Raphael [1002:164e] (rev c3) (prog-if 00 [VGA controller])

os-release:
    ANSI_COLOR="1;34"
    BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
    BUILD_ID="24.05.20241110.9256f7c"
    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_END="2024-12-31"
    SUPPORT_URL="https://nixos.org/community.html"
    VERSION="24.05 (Uakari)"
    VERSION_CODENAME=uakari
    VERSION_ID="24.05"
Backtrace:
    # | ./build/src/Hyprland(_Z12getBacktracev+0x49) [0x14b2816]
        getBacktrace()
        ??:?
    #1 | ./build/src/Hyprland(_ZN13CrashReporter18createAndSaveCrashEi+0x84e) [0x13b6bc3]
        CrashReporter::createAndSaveCrash(int)
        ??:?
    #2 | ./build/src/Hyprland(_Z25handleUnrecoverableSignali+0xbe) [0x1294e77]
        handleUnrecoverableSignal(int)
        ??:?
    #3 | /nix/store/3bvxjkkmwlymr0fssczhgi39c3aj1l7i-glibc-2.40-36/lib/libc.so.6(+0x40620) [0x7ffff6d60620]
        ??
        ??:0
    #4 | /nix/store/3bvxjkkmwlymr0fssczhgi39c3aj1l7i-glibc-2.40-36/lib/libc.so.6(+0x17ad5c) [0x7ffff6e9ad5c]
        ??
        ??:0
    #5 | /nix/store/3bvxjkkmwlymr0fssczhgi39c3aj1l7i-glibc-2.40-36/lib/libc.so.6(__strdup+0x12) [0x7ffff6dc7ff2]
        ??
        ??:0
    #6 | /nix/store/yi3i9rkcxdl13ks9rjsp63b226bx1rkc-mesa-24.0.7-drivers/lib/libEGL_mesa.so.0(+0x25aca) [0x7fffe9cf2aca]
        ??
        ??:0
    #7 | /nix/store/yi3i9rkcxdl13ks9rjsp63b226bx1rkc-mesa-24.0.7-drivers/lib/libEGL_mesa.so.0(+0x1d900) [0x7fffe9cea900]
        ??
        ??:0
    #8 | /nix/store/yi3i9rkcxdl13ks9rjsp63b226bx1rkc-mesa-24.0.7-drivers/lib/libEGL_mesa.so.0(+0xf4a8) [0x7fffe9cdc4a8]
        ??
        ??:0
    #9 | /nix/store/vajxdhnd7p4pm7qcngn5fpr1ngwv0lkr-aquamarine-0.4.3+date=2024-11-07_a49bc35/lib/libaquamarine.so.3(_ZN10Aquamarine12CDRMRenderer7attemptEN9Hyprutils6Memory14CSharedPointerINS_13CGBMAllocatorEEENS3_INS_8CBackendEEE+0x611) [0x7ffff7f87f81]
        ??
        ??:0
    #1 | /nix/store/vajxdhnd7p4pm7qcngn5fpr1ngwv0lkr-aquamarine-0.4.3+date=2024-11-07_a49bc35/lib/libaquamarine.so.3(_ZN10Aquamarine11CDRMBackend8initMgpuEv+0x340) [0x7ffff7f46250]
        ??
        ??:0
    #11 | /nix/store/vajxdhnd7p4pm7qcngn5fpr1ngwv0lkr-aquamarine-0.4.3+date=2024-11-07_a49bc35/lib/libaquamarine.so.3(_ZN10Aquamarine11CDRMBackend7onReadyEv+0x664) [0x7ffff7f50bf4]
        ??
        ??:0
    #12 | /nix/store/vajxdhnd7p4pm7qcngn5fpr1ngwv0lkr-aquamarine-0.4.3+date=2024-11-07_a49bc35/lib/libaquamarine.so.3(_ZN10Aquamarine8CBackend5startEv+0x676) [0x7ffff7f15f06]
        ??
        ??:0
    #13 | ./build/src/Hyprland(_ZN11CCompositor10initServerENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi+0x3c3) [0x1296975]
        CCompositor::initServer(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int)
        ??:?
    #14 | ./build/src/Hyprland(main+0xf30) [0x1513681]
        main
        ??:?
    #15 | /nix/store/3bvxjkkmwlymr0fssczhgi39c3aj1l7i-glibc-2.40-36/lib/libc.so.6(+0x2a27e) [0x7ffff6d4a27e]
        ??
        ??:0
    #16 | /nix/store/3bvxjkkmwlymr0fssczhgi39c3aj1l7i-glibc-2.40-36/lib/libc.so.6(__libc_start_main+0x89) [0x7ffff6d4a339]
        ??
        ??:0
    #17 | ./build/src/Hyprland(_start+0x25) [0x11e00e5]
        _start
        ??:?

Log tail:
[TRACE] [AQ] EGL:  | external only with modifier 0x300000000e08015: BLOCK_LINEAR_2D,HEIGHT=5,KIND=8,GEN=2,SECTOR=1,COMPRESSION=1
[TRACE] [AQ] EGL:  | external only with modifier 0x0: LINEAR
[TRACE] [AQ] EGL:  | external only with modifier 0xffffffffffffff: INVALID
[TRACE] [AQ] EGL: GPU Supports Format HD01 (0x31304448)
[TRACE] [AQ] EGL:  | external only with modifier 0x300000000606010: BLOCK_LINEAR_2D,HEIGHT=0,KIND=6,GEN=2,SECTOR=1,COMPRESSION=0
[TRACE] [AQ] EGL:  | external only with modifier 0x300000000606011: BLOCK_LINEAR_2D,HEIGHT=1,KIND=6,GEN=2,SECTOR=1,COMPRESSION=0
[TRACE] [AQ] EGL:  | external only with modifier 0x300000000606012: BLOCK_LINEAR_2D,HEIGHT=2,KIND=6,GEN=2,SECTOR=1,COMPRESSION=0
[TRACE] [AQ] EGL:  | external only with modifier 0x300000000606013: BLOCK_LINEAR_2D,HEIGHT=3,KIND=6,GEN=2,SECTOR=1,COMPRESSION=0
[TRACE] [AQ] EGL:  | external only with modifier 0x300000000606014: BLOCK_LINEAR_2D,HEIGHT=4,KIND=6,GEN=2,SECTOR=1,COMPRESSION=0
[TRACE] [AQ] EGL:  | external only with modifier 0x300000000606015: BLOCK_LINEAR_2D,HEIGHT=5,KIND=6,GEN=2,SECTOR=1,COMPRESSION=0
[TRACE] [AQ] EGL:  | external only with modifier 0x300000000e08010: BLOCK_LINEAR_2D,HEIGHT=0,KIND=8,GEN=2,SECTOR=1,COMPRESSION=1
[TRACE] [AQ] EGL:  | external only with modifier 0x300000000e08011: BLOCK_LINEAR_2D,HEIGHT=1,KIND=8,GEN=2,SECTOR=1,COMPRESSION=1
[TRACE] [AQ] EGL:  | external only with modifier 0x300000000e08012: BLOCK_LINEAR_2D,HEIGHT=2,KIND=8,GEN=2,SECTOR=1,COMPRESSION=1
[TRACE] [AQ] EGL:  | external only with modifier 0x300000000e08013: BLOCK_LINEAR_2D,HEIGHT=3,KIND=8,GEN=2,SECTOR=1,COMPRESSION=1
[TRACE] [AQ] EGL:  | external only with modifier 0x300000000e08014: BLOCK_LINEAR_2D,HEIGHT=4,KIND=8,GEN=2,SECTOR=1,COMPRESSION=1
[TRACE] [AQ] EGL:  | external only with modifier 0x300000000e08015: BLOCK_LINEAR_2D,HEIGHT=5,KIND=8,GEN=2,SECTOR=1,COMPRESSION=1
[TRACE] [AQ] EGL:  | external only with modifier 0x0: LINEAR
[TRACE] [AQ] EGL:  | external only with modifier 0xffffffffffffff: INVALID
[TRACE] [AQ] EGL: GPU Supports Format UHD0 (0x30444855)
[TRACE] [AQ] EGL:  | external only with modifier 0x300000000606010: BLOCK_LINEAR_2D,HEIGHT=0,KIND=6,GEN=2,SECTOR=1,COMPRESSION=0
[TRACE] [AQ] EGL:  | external only with modifier 0x300000000606011: BLOCK_LINEAR_2D,HEIGHT=1,KIND=6,GEN=2,SECTOR=1,COMPRESSION=0
[TRACE] [AQ] EGL:  | external only with modifier 0x300000000606012: BLOCK_LINEAR_2D,HEIGHT=2,KIND=6,GEN=2,SECTOR=1,COMPRESSION=0
[TRACE] [AQ] EGL:  | external only with modifier 0x300000000606013: BLOCK_LINEAR_2D,HEIGHT=3,KIND=6,GEN=2,SECTOR=1,COMPRESSION=0
[TRACE] [AQ] EGL:  | external only with modifier 0x300000000606014: BLOCK_LINEAR_2D,HEIGHT=4,KIND=6,GEN=2,SECTOR=1,COMPRESSION=0
[TRACE] [AQ] EGL:  | external only with modifier 0x300000000606015: BLOCK_LINEAR_2D,HEIGHT=5,KIND=6,GEN=2,SECTOR=1,COMPRESSION=0
[TRACE] [AQ] EGL:  | external only with modifier 0x300000000e08010: BLOCK_LINEAR_2D,HEIGHT=0,KIND=8,GEN=2,SECTOR=1,COMPRESSION=1
[TRACE] [AQ] EGL:  | external only with modifier 0x300000000e08011: BLOCK_LINEAR_2D,HEIGHT=1,KIND=8,GEN=2,SECTOR=1,COMPRESSION=1
[TRACE] [AQ] EGL:  | external only with modifier 0x300000000e08012: BLOCK_LINEAR_2D,HEIGHT=2,KIND=8,GEN=2,SECTOR=1,COMPRESSION=1
[TRACE] [AQ] EGL:  | external only with modifier 0x300000000e08013: BLOCK_LINEAR_2D,HEIGHT=3,KIND=8,GEN=2,SECTOR=1,COMPRESSION=1
[TRACE] [AQ] EGL:  | external only with modifier 0x300000000e08014: BLOCK_LINEAR_2D,HEIGHT=4,KIND=8,GEN=2,SECTOR=1,COMPRESSION=1
[TRACE] [AQ] EGL:  | external only with modifier 0x300000000e08015: BLOCK_LINEAR_2D,HEIGHT=5,KIND=8,GEN=2,SECTOR=1,COMPRESSION=1
[TRACE] [AQ] EGL:  | external only with modifier 0x0: LINEAR
[TRACE] [AQ] EGL:  | external only with modifier 0xffffffffffffff: INVALID
[TRACE] [AQ] EGL: Found 756 formats
[LOG] [AQ] CDRMRenderer: success
[LOG] [AQ] drm: Connectors size2 2
[LOG] [AQ] drm: onReady: connector 93
[LOG] [AQ] drm: onReady: connector 101
[LOG] [AQ] Created a GBM allocator with drm fd 57
vaxerski commented 2 days ago

you:

this is not a hyprland issue