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.81k stars 908 forks source link

Monitors, modeline interlaced mode crashes. #4607

Open cjuniorfox opened 9 months ago

cjuniorfox commented 9 months ago

Hyprland Version

System/Version info ```sh Hyprland, built from branch HEAD at commit 03ebbe18ed8517ee22591eac82cd54322f42cb7d (props: bump ver to 0.34.0). Date: Mon Jan 1 12:03:15 2024 Tag: v0.34.0 flags: (if any) ```

Bug or Regression?

Bug

Description

I was trying to connect the computer to a CRT TV 15,6khz and change the HDMI trimmings using the "modeline" feature. The command works as intended for "progressive scan" at 240p resolution. For interlaced mode, the application crashes. You can calculate the "modelines" compatible with CRT TVs using the chvideo.py script.

For progressive mode: (240p)

chvideo.py -pim

For interlaced: (480i)

chvideo,py -im

How to reproduce

240p (works as intended)

hyprctl keyword monitor HDMI-A-1, "modeline 27.368520 1440 1482 1611 1741 244 247 250 262 -HSync +Vsync",auto, 1

480i (crashes)

hyprctl keyword monitor HDMI-A-1, "modeline 27.420750 1440 1482 1611 1741 488 494 501 525 Interlace -HSync +Vsync",auto, 1

Worth mentioning that the intended modeline works as intended on X11

Crash reports, logs, images, videos

--------------------------------------------
   Hyprland Crash Report
--------------------------------------------
Calm down, it was a misinput! MISINPUT!

Hyprland received signal 11 (Segmentation fault)

Version: 03ebbe18ed8517ee22591eac82cd54322f42cb7d
Tag: v0.34.0

System info:
    System name: Linux
    Node name: dellhost
    Release: 6.6.11-200.fc39.x86_64
    Version: #1 SMP PREEMPT_DYNAMIC Wed Jan 10 19:25:59 UTC 2024

GPU:
    00:02.0 VGA compatible controller [0300]: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] [8086:9a49] (rev 01) (prog-if 00 [VGA controller])

os-release:
    NAME="Fedora Linux"
    VERSION="39 (Thirty Nine)"
    ID=fedora
    VERSION_ID=39
    VERSION_CODENAME=""
    PLATFORM_ID="platform:f39"
    PRETTY_NAME="Fedora Linux 39 (Thirty Nine)"
    ANSI_COLOR="0;38;2;60;110;180"
    LOGO=fedora-logo-icon
    CPE_NAME="cpe:/o:fedoraproject:fedora:39"
    DEFAULT_HOSTNAME="fedora"
    HOME_URL="https://fedoraproject.org/"
    DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f39/system-administrators-guide/"
    SUPPORT_URL="https://ask.fedoraproject.org/"
    BUG_REPORT_URL="https://bugzilla.redhat.com/"
    REDHAT_BUGZILLA_PRODUCT="Fedora"
    REDHAT_BUGZILLA_PRODUCT_VERSION=39
    REDHAT_SUPPORT_PRODUCT="Fedora"
    REDHAT_SUPPORT_PRODUCT_VERSION=39
    SUPPORT_END=2024-11-12

Backtrace:
    #0 | Hyprland(_Z12getBacktracev+0x69) [0x55abef3b2779]
        ??
        ??:0
    #1 | Hyprland(_ZN13CrashReporter18createAndSaveCrashEi+0x832) [0x55abef3792f2]
        ??
        ??:0
    #2 | Hyprland(_Z25handleUnrecoverableSignali+0x4d) [0x55abef2fb07d]
        ??
        ??:0
    #3 | /lib64/libc.so.6(+0x3e9a0) [0x7fed62d579a0]
        ??
        ??:0
    #4 | Hyprland(+0x146f71) [0x55abef372f71]
        ??
        ??:0
    #5 | Hyprland(+0x11bbea) [0x55abef347bea]
        ??
        ??:0
    #6 | Hyprland(_ZN14CConfigManager13handleMonitorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_+0x2168) [0x55abef34cbd8]
        ??
        ??:0
    #7 | Hyprland(_ZN14CConfigManager12parseKeywordERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_b+0x675) [0x55abef35bd45]
        ??
        ??:0
    #8 | Hyprland(_ZN14CConfigManager9parseLineERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x2e1) [0x55abef35c711]
        ??
        ??:0
    #9 | Hyprland(_ZN14CConfigManager12handleSourceERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_+0x8a8) [0x55abef35d4e8]
        ??
        ??:0
    #10 | Hyprland(_ZN14CConfigManager12parseKeywordERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_b+0x86c) [0x55abef35bf3c]
        ??
        ??:0
    #11 | Hyprland(_ZN14CConfigManager9parseLineERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x2e1) [0x55abef35c711]
        ??
        ??:0
    #12 | Hyprland(_ZN14CConfigManager18loadConfigLoadVarsEv+0x749) [0x55abef35e089]
        ??
        ??:0
    #13 | Hyprland(_ZN14CConfigManager4initEv+0x32) [0x55abef347502]
        ??
        ??:0
    #14 | Hyprland(_ZN11CCompositor12initManagersE18eManagersInitStage+0x112e) [0x55abef302f5e]
        ??
        ??:0
    #15 | Hyprland(_ZN11CCompositor10initServerEv+0x9e) [0x55abef30329e]
        ??
        ??:0
    #16 | Hyprland(main+0x7ba) [0x55abef2e43ca]
        ??
        ??:0
    #17 | /lib64/libc.so.6(+0x2814a) [0x7fed62d4114a]
        ??
        ??:0
    #18 | /lib64/libc.so.6(__libc_start_main+0x8b) [0x7fed62d4120b]
        ??
        ??:0
    #19 | Hyprland(_start+0x25) [0x55abef2f8e35]
        ??
        ??:0

Log tail:
[LOG] Instance Signature: 03ebbe18ed8517ee22591eac82cd54322f42cb7d_1707006150
[LOG] Hyprland PID: 3110
[LOG] ===== SYSTEM INFO: =====
[LOG] System name: Linux
[LOG] Node name: dellhost
[LOG] Release: 6.6.11-200.fc39.x86_64
[LOG] Version: #1 SMP PREEMPT_DYNAMIC Wed Jan 10 19:25:59 UTC 2024

[LOG] GPU information:
00:02.0 VGA compatible controller [0300]: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] [8086:9a49] (rev 01) (prog-if 00 [VGA controller])

[LOG] os-release:
NAME="Fedora Linux"
VERSION="39 (Thirty Nine)"
ID=fedora
VERSION_ID=39
VERSION_CODENAME=""
PLATFORM_ID="platform:f39"
PRETTY_NAME="Fedora Linux 39 (Thirty Nine)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:39"
DEFAULT_HOSTNAME="fedora"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f39/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=39
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=39
SUPPORT_END=2024-11-12

[LOG] ========================

[INFO] If you are crashing, or encounter any bugs, please consult https://wiki.hyprland.org/Crashes-and-Bugs/

[LOG] 
Current splash: "my win11 install runs hyprland that is true" - raf

[LOG] Creating the HookSystem!
[LOG] Creating the KeybindManager!
[LOG] [hookSystem] New hook event registered: configReloaded
[LOG] Creating the AnimationManager!
[LOG] Created a bezier curve, baked 255 points, mem usage: 4.08kB, time to bake: 22.35µs. Estimated average calc time: 0.06µs.
[LOG] Creating the ConfigManager!
[LOG] NOTE: further logs to stdout / logfile are disabled by default. Use debug:disable_logs and debug:enable_stdout_logs to override this.
[LOG] Creating the CHyprError!
[LOG] [hookSystem] New hook event registered: focusedMon
[LOG] [hookSystem] New hook event registered: preRender
[LOG] Creating the LayoutManager!
[LOG] [hookSystem] New hook event registered: preConfigReload
[LOG] Reloading the config!
[LOG] Created a bezier curve, baked 255 points, mem usage: 4.08kB, time to bake: 9.61µs. Estimated average calc time: 0.02µs.
[LOG] Using config: /home/junior/.config/hypr/hyprland.conf
vaxerski commented 9 months ago

patch.txt does this fix the issue?