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
18.31k stars 762 forks source link

Hyprland crashes randomly with electron apps #2438

Closed imxyy1soope1 closed 1 year ago

imxyy1soope1 commented 1 year ago

Seems like Hyprland crashes randomly when interacting with components in electron apps. Any idea?

CrashReport 1:

--------------------------------------------
   Hyprland Crash Report
--------------------------------------------
Vaxry is going to be upset.

Hyprland received signal 6 (Aborted)

Version: df98db50924c05f0bd7a8c95cdab5d4ece13a1f1

System info:
    System name: Linux
    Node name: imxyy-arch
    Release: 6.3.5-zen1-1-zen
    Version: #1 ZEN SMP PREEMPT_DYNAMIC Tue, 30 May 2023 13:43:47 +0000

GPU:
    01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM206 [GeForce GTX 960] [10de:1401] (rev a1) (prog-if 00 [VGA controller])
06:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 14 [Radeon RX 5500/5500M / Pro 5500M] [1002:7340] (rev c5) (prog-if 00 [VGA controller])

os-release:
    NAME="Arch Linux"
    PRETTY_NAME="Arch Linux"
    ID=arch
    BUILD_ID=rolling
    ANSI_COLOR="38;2;23;147;209"
    HOME_URL="https://archlinux.org/"
    DOCUMENTATION_URL="https://wiki.archlinux.org/"
    SUPPORT_URL="https://bbs.archlinux.org/"
    BUG_REPORT_URL="https://bugs.archlinux.org/"
    PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
    LOGO=archlinux-logo

Backtrace:
    #0 | Hyprland(_ZN13CrashReporter18createAndSaveCrashEi+0x78e) [0x55f8b930b5de]
        ??
        ??:0
    #1 | Hyprland(_Z25handleUnrecoverableSignali+0x3c) [0x55f8b92a6e3c]
        ??
        ??:0
    #2 | /usr/lib/libc.so.6(+0x39ab0) [0x7f2c21362ab0]
        ??
        ??:0
    #3 | /usr/lib/libc.so.6(+0x8926c) [0x7f2c213b226c]
        ??
        ??:0
    #4 | /usr/lib/libc.so.6(gsignal+0x18) [0x7f2c21362a08]
        ??
        ??:0
    #5 | /usr/lib/libc.so.6(abort+0xd7) [0x7f2c2134b538]
        ??
        ??:0
    #6 | /usr/lib/libc.so.6(+0x232db) [0x7f2c2134c2db]
        ??
        ??:0
    #7 | /usr/lib/libc.so.6(+0x931b7) [0x7f2c213bc1b7]
        ??
        ??:0
    #8 | /usr/lib/libc.so.6(realloc+0x3fc) [0x7f2c213c127c]
        ??
        ??:0
    #9 | /usr/lib/dri/radeonsi_dri.so(+0x8adafd) [0x7f2c1eeadafd]
        ??
        ??:0
    #10 | /usr/lib/dri/radeonsi_dri.so(+0x8b3979) [0x7f2c1eeb3979]
        ??
        ??:0
    #11 | /usr/lib/dri/radeonsi_dri.so(+0x8b3b07) [0x7f2c1eeb3b07]
        ??
        ??:0
    #12 | /usr/lib/dri/radeonsi_dri.so(+0xc861d) [0x7f2c1e6c861d]
        ??
        ??:0
    #13 | /usr/lib/dri/radeonsi_dri.so(+0x11541c) [0x7f2c1e71541c]
        ??
        ??:0
    #14 | /usr/lib/libc.so.6(+0x8744b) [0x7f2c213b044b]
        ??
        ??:0
    #15 | /usr/lib/libc.so.6(+0x10ae40) [0x7f2c21433e40]
        ??
        ??:0

Log tail:
[LOG] Registered signal for owner 55f8bc92b360: 55f8bc902680 -> 55f8bc92ba48 (owner: XWayland Window)
[LOG] Registered signal for owner 55f8bc92b360: 55f8bc902550 -> 55f8bc92b8a8 (owner: XWayland Window)
[LOG] Registered signal for owner 55f8bc92b360: 55f8bc9222a0 -> 55f8bc92b3c8 (owner: XWayland Window)
[LOG] Registered signal for owner 55f8bc92bb80: 55f8bc9222d0 -> 55f8bc92bb88 (owner: CWLSurface)
[LOG] CWLSurface 55f8bc92bb80 called init()
[LOG] Registered signal for owner 55f8bc92b360: 55f8bc9222b0 -> 55f8bc92b430 (owner: CWindow)
[LOG] Searching for matching rules for  (title: )
[LOG] Window rule noblur ->  floating:1 matched 55f8bc92b360 []
[LOG] Window got assigned a surfaceTreeNode 0
[LOG] Registered signal for owner 55f8bc92b360: 55f8bc9025a0 -> 55f8bc92b5d0 (owner: XWayland Window Late)
[LOG] Registered signal for owner 55f8bc92b360: 55f8bc9025b0 -> 55f8bc92b840 (owner: XWayland Window Late)
[LOG] Registered signal for owner 55f8bc92b360: 55f8bc9025e0 -> 55f8bc92b500 (owner: XWayland Window Late)
[LOG] Registered signal for owner 55f8bc92b360: 55f8bc902580 -> 55f8bc92b708 (owner: Xwayland Window Late)
[ERR] Tried to connect a listener twice?!
[LOG] Registered signal for owner 55f8bc92b360: 55f8bc902690 -> 55f8bc92b568 (owner: XWayland Window Late)
[LOG] Registered signal for owner 55f8bc919aa0: 55f8bc9222c0 -> 55f8bc919b18 (owner: SurfaceTreeNode)
[LOG] Registered signal for owner 55f8bc919aa0: 55f8bc922290 -> 55f8bc919b80 (owner: SurfaceTreeNode)
[LOG] Registered signal for owner 55f8bc919aa0: 55f8bc9222d0 -> 55f8bc919be8 (owner: SurfaceTreeNode)
[LOG] Creating a surfaceTree Root! (pWindow: 55f8bc92b360)
[LOG] Map request dispatched, monitor DP-2, xywh: 209.000000 241.000000 198.000000 375.000000
[LOG] Window 55f8bc92b360 unmapped (class )
[LOG] Unregistered late callbacks XWL
[LOG] Callback 55f8bc92b5f8 -> 55f8bc92b5f0, XWayland Window Late removed.
[LOG] Callback 55f8bc92b868 -> 55f8bc92b860, XWayland Window Late removed.
[LOG] Callback 55f8bc92b528 -> 55f8bc92b520, XWayland Window Late removed.
[LOG] Callback 55f8bc92b590 -> 55f8bc92b588, XWayland Window Late removed.
[LOG] Callback 55f8bc92b730 -> 55f8bc92b728, Xwayland Window Late removed.
[LOG] Framebuffer created, status 36053
[LOG] Unmapped was not focused, ignoring a refocus.
[LOG] Destroying the SubSurface tree of unmapped window 55f8bc92b360
[LOG] Callback 55f8bc919ba8 -> 55f8bc919ba0, SurfaceTreeNode removed.
[LOG] Callback 55f8bc919c10 -> 55f8bc919c08, SurfaceTreeNode removed.
[LOG] Callback 55f8bc919b40 -> 55f8bc919b38, SurfaceTreeNode removed.
[LOG] SurfaceTree Node removed
[LOG] Callback 55f8bc92bbb0 -> 55f8bc92bba8, CWLSurface removed.
[LOG] CWLSurface 55f8bc92bb80 called destroy()
[LOG] Callback 55f8bc92b458 -> 55f8bc92b450, CWindow removed.
[LOG] Callback 55f8bc92b3f0 -> 55f8bc92b3e8, XWayland Window removed.
[LOG] Window 55f8bc92b360 destroyed, queueing. (class )
[LOG] XWayland class raw: (null)
[LOG] Callback 55f8bc92b4c0 -> 55f8bc92b4b8, XWayland Window removed.
[LOG] Callback 55f8bc92b8d0 -> 55f8bc92b8c8, XWayland Window removed.
[LOG] Callback 55f8bc92ba70 -> 55f8bc92ba68, XWayland Window removed.
[LOG] Callback 55f8bc92bb40 -> 55f8bc92bb38, XWayland Window removed.
[LOG] Callback 55f8bc92bad8 -> 55f8bc92bad0, XWayland Window removed.
[LOG] Cleanup: destroyed a window
[LOG] Searching for matching rules for Code (title: )
[LOG] Window 55f8bc9082c0 set title to 
[LOG] Searching for matching rules for Code (title: )
[LOG] Window 55f8bc9082c0 set title to 

CrashReport 2:

--------------------------------------------
   Hyprland Crash Report
--------------------------------------------
Well this is awkward.

Hyprland received signal 11 (Segmentation fault)

Version: df98db50924c05f0bd7a8c95cdab5d4ece13a1f1

System info:
    System name: Linux
    Node name: imxyy-arch
    Release: 6.3.5-zen1-1-zen
    Version: #1 ZEN SMP PREEMPT_DYNAMIC Tue, 30 May 2023 13:43:47 +0000

GPU:
    01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM206 [GeForce GTX 960] [10de:1401] (rev a1) (prog-if 00 [VGA controller])
06:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 14 [Radeon RX 5500/5500M / Pro 5500M] [1002:7340] (rev c5) (prog-if 00 [VGA controller])

os-release:
    NAME="Arch Linux"
    PRETTY_NAME="Arch Linux"
    ID=arch
    BUILD_ID=rolling
    ANSI_COLOR="38;2;23;147;209"
    HOME_URL="https://archlinux.org/"
    DOCUMENTATION_URL="https://wiki.archlinux.org/"
    SUPPORT_URL="https://bbs.archlinux.org/"
    BUG_REPORT_URL="https://bugs.archlinux.org/"
    PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
    LOGO=archlinux-logo

Backtrace:
    #0 | Hyprland(_ZN13CrashReporter18createAndSaveCrashEi+0x78e) [0x557a173145de]
        ??
        ??:0
    #1 | Hyprland(_Z25handleUnrecoverableSignali+0x3c) [0x557a172afe3c]
        ??
        ??:0
    #2 | /usr/lib/libc.so.6(+0x39ab0) [0x7fa231a4fab0]
        ??
        ??:0
    #3 | /usr/lib/dri/radeonsi_dri.so(+0x15ba58) [0x7fa22ed5ba58]
        ??
        ??:0
    #4 | /usr/lib/dri/radeonsi_dri.so(+0x1663fb) [0x7fa22ed663fb]
        ??
        ??:0
    #5 | /usr/lib/dri/radeonsi_dri.so(+0x1666fd) [0x7fa22ed666fd]
        ??
        ??:0
    #6 | /usr/lib/dri/radeonsi_dri.so(+0x168951) [0x7fa22ed68951]
        ??
        ??:0
    #7 | /usr/lib/libwlroots.so.12032(+0x425ff) [0x7fa23270b5ff]
        ??
        ??:0
    #8 | /usr/lib/libwlroots.so.12032(wlr_addon_set_finish+0x2e) [0x7fa232772e2e]
        ??
        ??:0
    #9 | /usr/lib/libwlroots.so.12032(wlr_buffer_drop+0x34) [0x7fa23274f2b4]
        ??
        ??:0
    #10 | /usr/lib/libwayland-server.so.0(+0xb9ba) [0x7fa2326819ba]
        ??
        ??:0
    #11 | /usr/lib/libwayland-server.so.0(wl_resource_destroy+0xc9) [0x7fa2326837a9]
        ??
        ??:0
    #12 | /usr/lib/libffi.so.8(+0x74f6) [0x7fa2315eb4f6]
        ??
        ??:0
    #13 | /usr/lib/libffi.so.8(+0x3f5e) [0x7fa2315e7f5e]
        ??
        ??:0
    #14 | /usr/lib/libffi.so.8(ffi_call+0x123) [0x7fa2315eab73]
        ??
        ??:0
    #15 | /usr/lib/libwayland-server.so.0(+0x8ada) [0x7fa23267eada]
        ??
        ??:0
    #16 | /usr/lib/libwayland-server.so.0(+0xd180) [0x7fa232683180]
        ??
        ??:0
    #17 | /usr/lib/libwayland-server.so.0(wl_event_loop_dispatch+0xa2) [0x7fa232681ae2]
        ??
        ??:0
    #18 | /usr/lib/libwayland-server.so.0(wl_display_run+0x27) [0x7fa2326822d7]
        ??
        ??:0
    #19 | Hyprland(main+0x4b4) [0x557a172a09a4]
        ??
        ??:0
    #20 | /usr/lib/libc.so.6(+0x23850) [0x7fa231a39850]
        ??
        ??:0
    #21 | /usr/lib/libc.so.6(__libc_start_main+0x8a) [0x7fa231a3990a]
        ??
        ??:0
    #22 | Hyprland(_start+0x25) [0x557a172afce5]
        ??
        ??:0

Log tail:
[LOG] Unmapped was not focused, ignoring a refocus.
[LOG] Destroying the SubSurface tree of unmapped window 557a1a4ad680
[LOG] Callback 557a1a47f5e8 -> 557a1a47f5e0, SurfaceTreeNode removed.
[LOG] Callback 557a1a47f650 -> 557a1a47f648, SurfaceTreeNode removed.
[LOG] Callback 557a1a47f580 -> 557a1a47f578, SurfaceTreeNode removed.
[LOG] SurfaceTree Node removed
[LOG] Callback 557a1a4aded0 -> 557a1a4adec8, CWLSurface removed.
[LOG] CWLSurface 557a1a4adea0 called destroy()
[LOG] Callback 557a1a4ad778 -> 557a1a4ad770, CWindow removed.
[LOG] Callback 557a1a4ad710 -> 557a1a4ad708, XWayland Window removed.
[LOG] Window 557a1a4a9fc0 destroyed, queueing. (class )
[LOG] XWayland class raw: (null)
[LOG] Callback 557a1a4aa120 -> 557a1a4aa118, XWayland Window removed.
[LOG] Callback 557a1a4aa530 -> 557a1a4aa528, XWayland Window removed.
[LOG] Callback 557a1a4aa6d0 -> 557a1a4aa6c8, XWayland Window removed.
[LOG] Window 557a1a4ad680 destroyed, queueing. (class )
[LOG] XWayland class raw: (null)
[LOG] Callback 557a1a4ad7e0 -> 557a1a4ad7d8, XWayland Window removed.
[LOG] Callback 557a1a4adbf0 -> 557a1a4adbe8, XWayland Window removed.
[LOG] Callback 557a1a4add90 -> 557a1a4add88, XWayland Window removed.
[LOG] New XWayland Surface created (class (null)).
[LOG] Registered signal for owner 557a1a4af480: 557a1a480720 -> 557a1a4afbd0 (owner: XWayland Window)
[LOG] Registered signal for owner 557a1a4af480: 557a1a480730 -> 557a1a4afc38 (owner: XWayland Window)
[LOG] Registered signal for owner 557a1a4af480: 557a1a4806a0 -> 557a1a4af5b8 (owner: XWayland Window)
[LOG] Registered signal for owner 557a1a4af480: 557a1a4807e0 -> 557a1a4afb68 (owner: XWayland Window)
[LOG] Registered signal for owner 557a1a4af480: 557a1a4806b0 -> 557a1a4af9c8 (owner: XWayland Window)
[LOG] Registered signal for owner 557a1a4af480: 557a1a4a72c0 -> 557a1a4af4e8 (owner: XWayland Window)
[LOG] Registered signal for owner 557a1a4afca0: 557a1a4a72f0 -> 557a1a4afca8 (owner: CWLSurface)
[LOG] CWLSurface 557a1a4afca0 called init()
[LOG] Registered signal for owner 557a1a4af480: 557a1a4a72d0 -> 557a1a4af550 (owner: CWindow)
[LOG] Searching for matching rules for  (title: )
[LOG] Window rule noblur ->  floating:1 matched 557a1a4af480 []
[LOG] Window got assigned a surfaceTreeNode 0
[LOG] Registered signal for owner 557a1a4af480: 557a1a480700 -> 557a1a4af6f0 (owner: XWayland Window Late)
[LOG] Registered signal for owner 557a1a4af480: 557a1a480710 -> 557a1a4af960 (owner: XWayland Window Late)
[LOG] Registered signal for owner 557a1a4af480: 557a1a480740 -> 557a1a4af620 (owner: XWayland Window Late)
[LOG] Registered signal for owner 557a1a4af480: 557a1a4806e0 -> 557a1a4af828 (owner: Xwayland Window Late)
[ERR] Tried to connect a listener twice?!
[LOG] Registered signal for owner 557a1a4af480: 557a1a4807f0 -> 557a1a4af688 (owner: XWayland Window Late)
[LOG] Registered signal for owner 557a1a47faa0: 557a1a4a72e0 -> 557a1a47fb18 (owner: SurfaceTreeNode)
[LOG] Registered signal for owner 557a1a47faa0: 557a1a4a72b0 -> 557a1a47fb80 (owner: SurfaceTreeNode)
[LOG] Registered signal for owner 557a1a47faa0: 557a1a4a72f0 -> 557a1a47fbe8 (owner: SurfaceTreeNode)
[LOG] Creating a surfaceTree Root! (pWindow: 557a1a4af480)
[LOG] Map request dispatched, monitor HDMI-A-1, xywh: 1990.000000 485.000000 321.000000 275.000000
[LOG] Callback 557a1a4aa7a0 -> 557a1a4aa798, XWayland Window removed.
[LOG] Callback 557a1a4aa738 -> 557a1a4aa730, XWayland Window removed.
[LOG] Cleanup: destroyed a window
[LOG] Callback 557a1a4ade60 -> 557a1a4ade58, XWayland Window removed.
[LOG] Callback 557a1a4addf8 -> 557a1a4addf0, XWayland Window removed.
[LOG] Cleanup: destroyed a window
easterNday commented 1 year ago

The same, but in any other applications.

Sometimes it will go back to the sddm interface to log in again, and sometimes it will just get stuck. My crash log is as follows:

--------------------------------------------
   Hyprland Crash Report
--------------------------------------------
Oops

Hyprland received signal 6 (Aborted)

Version: df98db50924c05f0bd7a8c95cdab5d4ece13a1f1

System info:
    System name: Linux
    Node name: SA5112M4
    Release: 6.3.5-zen1-1-zen
    Version: #1 ZEN SMP PREEMPT_DYNAMIC Tue, 30 May 2023 13:43:47 +0000

GPU:
    07:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Lexa PRO [Radeon 540/540X/550/550X / RX 540X/550/550X] [1002:699f] (rev c7) (prog-if 00 [VGA controller])

os-release:
    NAME="Arch Linux"
    PRETTY_NAME="Arch Linux"
    ID=arch
    BUILD_ID=rolling
    ANSI_COLOR="38;2;23;147;209"
    HOME_URL="https://archlinux.org/"
    DOCUMENTATION_URL="https://wiki.archlinux.org/"
    SUPPORT_URL="https://bbs.archlinux.org/"
    BUG_REPORT_URL="https://bugs.archlinux.org/"
    PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
    LOGO=archlinux-logo

Backtrace:
    #0 | Hyprland(_ZN13CrashReporter18createAndSaveCrashEi+0x78e) [0x564cdf9b35de]
        ??
        ??:0
    #1 | Hyprland(_Z25handleUnrecoverableSignali+0x3c) [0x564cdf94ee3c]
        ??
        ??:0
    #2 | /usr/lib/libc.so.6(+0x39ab0) [0x7fb8ce562ab0]
        ??
        ??:0
    #3 | /usr/lib/libc.so.6(+0x8926c) [0x7fb8ce5b226c]
        ??
        ??:0
    #4 | /usr/lib/libc.so.6(gsignal+0x18) [0x7fb8ce562a08]
        ??
        ??:0
    #5 | /usr/lib/libc.so.6(abort+0xd7) [0x7fb8ce54b538]
        ??
        ??:0
    #6 | /usr/lib/libc.so.6(+0x232db) [0x7fb8ce54c2db]
        ??
        ??:0
    #7 | /usr/lib/libc.so.6(+0x931b7) [0x7fb8ce5bc1b7]
        ??
        ??:0
    #8 | /usr/lib/libc.so.6(+0x95048) [0x7fb8ce5be048]
        ??
        ??:0
    #9 | /usr/lib/libc.so.6(__libc_free+0x73) [0x7fb8ce5c0cb3]
        ??
        ??:0
    #10 | /usr/lib/dri/radeonsi_dri.so(+0x8ad33e) [0x7fb8cc0ad33e]
        ??
        ??:0
    #11 | /usr/lib/dri/radeonsi_dri.so(+0xb85470) [0x7fb8cc385470]
        ??
        ??:0
    #12 | /usr/lib/dri/radeonsi_dri.so(+0xb855f9) [0x7fb8cc3855f9]
        ??
        ??:0
    #13 | /usr/lib/dri/radeonsi_dri.so(+0x8b0493) [0x7fb8cc0b0493]
        ??
        ??:0
    #14 | /usr/lib/dri/radeonsi_dri.so(+0x899e35) [0x7fb8cc099e35]
        ??
        ??:0
    #15 | /usr/lib/dri/radeonsi_dri.so(+0x87e02a) [0x7fb8cc07e02a]
        ??
        ??:0
    #16 | /usr/lib/dri/radeonsi_dri.so(+0x87fab3) [0x7fb8cc07fab3]
        ??
        ??:0
    #17 | /usr/lib/dri/radeonsi_dri.so(+0x87c244) [0x7fb8cc07c244]
        ??
        ??:0
    #18 | /usr/lib/dri/radeonsi_dri.so(+0xb94326) [0x7fb8cc394326]
        ??
        ??:0
    #19 | /usr/lib/dri/radeonsi_dri.so(+0x18c17c) [0x7fb8cb98c17c]
        ??
        ??:0
    #20 | /usr/lib/dri/radeonsi_dri.so(+0x149cfd) [0x7fb8cb949cfd]
        ??
        ??:0
    #21 | /usr/lib/dri/radeonsi_dri.so(+0x14b1ed) [0x7fb8cb94b1ed]
        ??
        ??:0
    #22 | /usr/lib/dri/radeonsi_dri.so(+0x14b2dc) [0x7fb8cb94b2dc]
        ??
        ??:0
    #23 | /usr/lib/libwlroots.so.12032(+0x424d7) [0x7fb8cf1974d7]
        ??
        ??:0
    #24 | /usr/lib/libwlroots.so.12032(+0x87f92) [0x7fb8cf1dcf92]
        ??
        ??:0
    #25 | /usr/lib/libffi.so.8(+0x74f6) [0x7fb8ce0764f6]
        ??
        ??:0
    #26 | /usr/lib/libffi.so.8(+0x3f5e) [0x7fb8ce072f5e]
        ??
        ??:0
    #27 | /usr/lib/libffi.so.8(ffi_call+0x123) [0x7fb8ce075b73]
        ??
        ??:0
    #28 | /usr/lib/libwayland-server.so.0(+0x8ada) [0x7fb8cf10aada]
        ??
        ??:0
    #29 | /usr/lib/libwayland-server.so.0(+0xd180) [0x7fb8cf10f180]
        ??
        ??:0
    #30 | /usr/lib/libwayland-server.so.0(wl_event_loop_dispatch+0xa2) [0x7fb8cf10dae2]
        ??
        ??:0
    #31 | /usr/lib/libwayland-server.so.0(wl_display_run+0x27) [0x7fb8cf10e2d7]
        ??
        ??:0
    #32 | Hyprland(main+0x4b4) [0x564cdf93f9a4]
        ??
        ??:0
    #33 | /usr/lib/libc.so.6(+0x23850) [0x7fb8ce54c850]
        ??
        ??:0
    #34 | /usr/lib/libc.so.6(__libc_start_main+0x8a) [0x7fb8ce54c90a]
        ??
        ??:0
    #35 | Hyprland(_start+0x25) [0x564cdf94ece5]
        ??
        ??:0

Log tail:
[wlr] [xwayland/xwm.c:878] unhandled X11 property 333 (_NET_WM_USER_TIME) for window 6291487
[wlr] [types/wlr_compositor.c:686] New wlr_surface 0x564ce1e02650 (res 0x564ce1e26720)
[wlr] [xwayland/xwm.c:1717] New xwayland surface: 0x564ce1e02650
[LOG] Registered signal for owner 564ce1e4ddb0: 564ce1e02930 -> 564ce1e4de18 (owner: XWayland Window)
[LOG] Registered signal for owner 564ce1e4e5d0: 564ce1e02960 -> 564ce1e4e5d8 (owner: CWLSurface)
[LOG] CWLSurface 564ce1e4e5d0 called init()
[LOG] Registered signal for owner 564ce1e4ddb0: 564ce1e02940 -> 564ce1e4de80 (owner: CWindow)
[LOG] Searching for matching rules for  (title: )
[LOG] Window got assigned a surfaceTreeNode 0
[LOG] Registered signal for owner 564ce1e4ddb0: 564ce1e04920 -> 564ce1e4e020 (owner: XWayland Window Late)
[LOG] Registered signal for owner 564ce1e4ddb0: 564ce1e04930 -> 564ce1e4e290 (owner: XWayland Window Late)
[LOG] Registered signal for owner 564ce1e4ddb0: 564ce1e04960 -> 564ce1e4df50 (owner: XWayland Window Late)
[LOG] Registered signal for owner 564ce1e4ddb0: 564ce1e04900 -> 564ce1e4e158 (owner: Xwayland Window Late)
[ERR] Tried to connect a listener twice?!
[LOG] Registered signal for owner 564ce1e4ddb0: 564ce1e04a10 -> 564ce1e4dfb8 (owner: XWayland Window Late)
[LOG] Registered signal for owner 564ce1e54af0: 564ce1e02950 -> 564ce1e54b68 (owner: SurfaceTreeNode)
[LOG] Registered signal for owner 564ce1e54af0: 564ce1e02920 -> 564ce1e54bd0 (owner: SurfaceTreeNode)
[LOG] Registered signal for owner 564ce1e54af0: 564ce1e02960 -> 564ce1e54c38 (owner: SurfaceTreeNode)
[LOG] Creating a surfaceTree Root! (pWindow: 564ce1e4ddb0)
[LOG] Map request dispatched, monitor HDMI-A-1, xywh: 1143.000000 607.000000 373.000000 401.000000
[LOG] Window 564ce1e4ddb0 unmapped (class )
[LOG] Unregistered late callbacks XWL
[LOG] Callback 564ce1e4e048 -> 564ce1e4e040, XWayland Window Late removed.
[LOG] Callback 564ce1e4e2b8 -> 564ce1e4e2b0, XWayland Window Late removed.
[LOG] Callback 564ce1e4df78 -> 564ce1e4df70, XWayland Window Late removed.
[LOG] Callback 564ce1e4dfe0 -> 564ce1e4dfd8, XWayland Window Late removed.
[LOG] Callback 564ce1e4e180 -> 564ce1e4e178, Xwayland Window Late removed.
[LOG] Framebuffer created, status 36053
[LOG] Unmapped was not focused, ignoring a refocus.
[LOG] Destroying the SubSurface tree of unmapped window 564ce1e4ddb0
[LOG] Callback 564ce1e54bf8 -> 564ce1e54bf0, SurfaceTreeNode removed.
[LOG] Callback 564ce1e54c60 -> 564ce1e54c58, SurfaceTreeNode removed.
[LOG] Callback 564ce1e54b90 -> 564ce1e54b88, SurfaceTreeNode removed.
[LOG] SurfaceTree Node removed
[LOG] Callback 564ce1e4e600 -> 564ce1e4e5f8, CWLSurface removed.
[LOG] CWLSurface 564ce1e4e5d0 called destroy()
[LOG] Callback 564ce1e4dea8 -> 564ce1e4dea0, CWindow removed.
[LOG] Callback 564ce1e4de40 -> 564ce1e4de38, XWayland Window removed.
[LOG] Window 564ce1e4ddb0 destroyed, queueing. (class )
[LOG] XWayland class raw: (null)
[LOG] Callback 564ce1e4df10 -> 564ce1e4df08, XWayland Window removed.
[LOG] Callback 564ce1e4e320 -> 564ce1e4e318, XWayland Window removed.
[LOG] Callback 564ce1e4e4c0 -> 564ce1e4e4b8, XWayland Window removed.
[LOG] Searching for matching rules for Google-chrome (title: 英伟达 | Hyprland 维基 - Google Chrome)
[LOG] Window 564ce1dfcc30 set title to 英伟达 | Hyprland 维基 - Google Chrome
[LOG] Searching for matching rules for Google-chrome (title: 英伟达 | Hyprland 维基 - Google Chrome)
[LOG] Window 564ce1dfcc30 set title to 英伟达 | Hyprland 维基 - Google Chrome
[LOG] Callback 564ce1e4e590 -> 564ce1e4e588, XWayland Window removed.
[LOG] Callback 564ce1e4e528 -> 564ce1e4e520, XWayland Window removed.
[LOG] Cleanup: destroyed a window

Does this seem to be a conflict with my graphics driver? I use an AMD RX550 graphics card, and I have these packages installed: sudo pacman -S mesa lib32-mesa xf86-video-amdgpu vulkan-radeon lib32-vulkan-radeon.

vaxerski commented 1 year ago

driver bug

Erothas commented 1 year ago

Today my PC has been almost unusable because of these crashes. It has happened about a dozen times by now, and I don't know what I can do even as just a band-aid. Which driver bug are we talking about here then?

vaxerski commented 1 year ago

if this is a regression then do a git bisect please

vaxerski commented 1 year ago

I have also gotten one of these, it might be a wlroots dep update, but for me they are highly inconsistent and happen very rarely, so anyone having them often is kindly asked to bisect it so I can take it to Simon.

vaxerski commented 1 year ago

Another useful thing you can do is clone the hyprland repo, and then inside it:

sudo make configdebug && make debug

then run the executable: HYPRLAND_LOG_WLR=1 ./build/Hyprland

reproduce the crash and share the crash report.

Vagahbond commented 1 year ago

Hello I don't have the time to bissect right now but I can report having the same issue, except it does not crash Hyprland for me.

OS: NixOS GPU: intel integrated (Alder Lake)

I have not enabled the nvidia patch

Reproduction: 1) open VSCode 2) drag and drop anything (tabs or file)

I can still do anything without it crashing but dragging makes VSCode crash Again, hyprland keeps running smoothly

I dont have logs in the terminal when it crashes

I'll try to give more infos when on my computer

IceDBorn commented 1 year ago

This happens to me too with games running with proton or while I'm screen-sharing and I toggle the fullscreen state of a window or a window toggles it on it's own.

OS: NixOS Hyprland: Latest git

vaxerski commented 1 year ago

guys with all due respect I don't care that you also experience this, because I am aware of the issue. I am asking for either a bisect or a debug crash log (explained above)

IceDBorn commented 1 year ago

@vaxerski Is there an easy way to use the debug version on Nix?

vaxerski commented 1 year ago

no clue, I don't use nix.

memchr commented 1 year ago

I have built Hyprland with debug config. However, I have to disable sanitizer because electron apps would just straight up crash with it.

CrashReport:

--------------------------------------------
   Hyprland Crash Report
--------------------------------------------
Sorry, didn't mean to...

Hyprland received signal 11 (Segmentation fault)

Version: 4ef684f6153c167afd6e84c01a814f46d9f287ae

System info:
    System name: Linux
    Node name: lamerda
    Release: 6.3.5-arch1-1
    Version: #1 SMP PREEMPT_DYNAMIC Tue, 30 May 2023 13:44:01 +0000

GPU:
    01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU117M [10de:1f99] (rev a1) (prog-if 00 [VGA controller])
05:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Renoir [1002:1636] (rev c7) (prog-if 00 [VGA controller])

os-release:
    NAME="Arch Linux"
    PRETTY_NAME="Arch Linux"
    ID=arch
    BUILD_ID=rolling
    ANSI_COLOR="38;2;23;147;209"
    HOME_URL="https://archlinux.org/"
    DOCUMENTATION_URL="https://wiki.archlinux.org/"
    SUPPORT_URL="https://bbs.archlinux.org/"
    BUG_REPORT_URL="https://bugs.archlinux.org/"
    PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
    LOGO=archlinux-logo

Backtrace:
    #0 | ./build/Hyprland(_ZN13CrashReporter18createAndSaveCrashEi+0x5e2) [0x55a939dbe4a4]
        ??
        ??:0
    #1 | ./build/Hyprland(_Z25handleUnrecoverableSignali+0x69) [0x55a939cf1e00]
        ??
        ??:0
    #2 | /usr/lib/libc.so.6(+0x39ab0) [0x7f5651f62ab0]
        ??
        ??:0
    #3 | /usr/lib/dri/radeonsi_dri.so(+0x15ba58) [0x7f564b75ba58]
        ??
        ??:0
    #4 | /usr/lib/dri/radeonsi_dri.so(+0x1663fb) [0x7f564b7663fb]
        ??
        ??:0
    #5 | /usr/lib/dri/radeonsi_dri.so(+0x1666fd) [0x7f564b7666fd]
        ??
        ??:0
    #6 | /usr/lib/dri/radeonsi_dri.so(+0x168951) [0x7f564b768951]
        ??
        ??:0
    #7 | ./build/Hyprland(_ZN12CFramebuffer7releaseEv+0x67) [0x55a939ecaa2b]
        ??
        ??:0
    #8 | ./build/Hyprland(_ZN12CFramebufferD1Ev+0x18) [0x55a939ecaaa0]
        ??
        ??:0
    #9 | ./build/Hyprland(_ZNSt4pairIKP7CWindow12CFramebufferED1Ev+0x1c) [0x55a939d3ae1c]
        ??
        ??:0
    #10 | ./build/Hyprland(_ZSt10destroy_atISt4pairIKP7CWindow12CFramebufferEEvPT_+0x18) [0x55a939d3ae37]
        ??
        ??:0
    #11 | ./build/Hyprland(_ZNSt8__detail16_Hashtable_allocISaINS_10_Hash_nodeISt4pairIKP7CWindow12CFramebufferELb0EEEEE18_M_deallocate_nodeEPS8_+0x44) [0x55a939d31d50]
        ??
        ??:0
    #12 | ./build/Hyprland(_ZNSt10_HashtableIP7CWindowSt4pairIKS1_12CFramebufferESaIS5_ENSt8__detail10_Select1stESt8equal_toIS1_ESt4hashIS1_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb0ELb0ELb1EEEE8_M_eraseEmPNS7_15_Hash_node_baseEPNS7_10_Hash_nodeIS5_Lb0EEE+0x12d) [0x55a939d32fcd]
        ??
        ??:0
    #13 | ./build/Hyprland(_ZNSt10_HashtableIP7CWindowSt4pairIKS1_12CFramebufferESaIS5_ENSt8__detail10_Select1stESt8equal_toIS1_ESt4hashIS1_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb0ELb0ELb1EEEE5eraseENS7_20_Node_const_iteratorIS5_Lb0ELb0EEE+0x66) [0x55a939d2db06]
        ??
        ??:0
    #14 | ./build/Hyprland(_ZNSt10_HashtableIP7CWindowSt4pairIKS1_12CFramebufferESaIS5_ENSt8__detail10_Select1stESt8equal_toIS1_ESt4hashIS1_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb0ELb0ELb1EEEE5eraseENS7_14_Node_iteratorIS5_Lb0ELb0EEE+0x45) [0x55a939d26b9b]
        ??
        ??:0
    #15 | ./build/Hyprland(_ZNSt13unordered_mapIP7CWindow12CFramebufferSt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S2_EEE5eraseENSt8__detail14_Node_iteratorIS9_Lb0ELb0EEE+0x23) [0x55a939d20a73]
        ??
        ??:0
    #16 | ./build/Hyprland(+0x224e61) [0x55a939d05e61]
        ??
        ??:0
    #17 | ./build/Hyprland(+0x224927) [0x55a939d05927]
        ??
        ??:0
    #18 | ./build/Hyprland(_ZN11CCompositor16cleanupFadingOutERKi+0x16c) [0x55a939cfc8fa]
        ??
        ??:0
    #19 | ./build/Hyprland(_ZN13CHyprRenderer13renderMonitorEP8CMonitor+0xc5e) [0x55a939ee65a6]
        ??
        ??:0
    #20 | ./build/Hyprland(_ZN6Events21listener_monitorFrameEPvS0_+0x4f4) [0x55a939de3c9b]
        ??
        ??:0
    #21 | ./build/Hyprland(_ZSt13__invoke_implIvRPFvPvS0_EJS0_S0_EET_St14__invoke_otherOT0_DpOT1_+0x4d) [0x55a939d6fb25]
        ??
        ??:0
    #22 | ./build/Hyprland(_ZSt10__invoke_rIvRPFvPvS0_EJS0_S0_EENSt9enable_ifIX16is_invocable_r_vIT_T0_DpT1_EES5_E4typeEOS6_DpOS7_+0x4f) [0x55a939d6ed8c]
        ??
        ??:0
    #23 | ./build/Hyprland(_ZNSt17_Function_handlerIFvPvS0_EPS1_E9_M_invokeERKSt9_Any_dataOS0_S7_+0x4f) [0x55a939d6d57b]
        ??
        ??:0
    #24 | ./build/Hyprland(_ZNKSt8functionIFvPvS0_EEclES0_S0_+0x61) [0x55a939e150a1]
        ??
        ??:0
    #25 | ./build/Hyprland(_ZN15CHyprWLListener4emitEPv+0x2f) [0x55a939e14dfd]
        ??
        ??:0
    #26 | ./build/Hyprland(_Z13handleWrappedP11wl_listenerPv+0x2f) [0x55a939e149c7]
        ??
        ??:0
    #27 | /usr/lib/libwayland-server.so.0(wl_signal_emit_mutable+0x7e) [0x7f5652b7c01e]
        ??
        ??:0
    #28 | /home/arthur/tmp/Hyprland/subprojects/wlroots/build/libwlroots.so.12032(wlr_output_send_frame+0x40) [0x7f5652c49159]
        ??
        ??:0
    #29 | /home/arthur/tmp/Hyprland/subprojects/wlroots/build/libwlroots.so.12032(+0x6356d) [0x7f5652c2856d]
        ??
        ??:0
    #30 | /usr/lib/libdrm.so.2(drmHandleEvent+0xff) [0x7f5652b4b9af]
        ??
        ??:0
    #31 | /home/arthur/tmp/Hyprland/subprojects/wlroots/build/libwlroots.so.12032(+0x635e0) [0x7f5652c285e0]
        ??
        ??:0
    #32 | /usr/lib/libwayland-server.so.0(wl_event_loop_dispatch+0xa2) [0x7f5652b7dae2]
        ??
        ??:0
    #33 | /usr/lib/libwayland-server.so.0(wl_display_run+0x27) [0x7f5652b7e2d7]
        ??
        ??:0
    #34 | ./build/Hyprland(_ZN11CCompositor15startCompositorEv+0x420) [0x55a939cf6048]
        ??
        ??:0
    #35 | ./build/Hyprland(main+0x771) [0x55a939e374b8]
        ??
        ??:0
    #36 | /usr/lib/libc.so.6(+0x23850) [0x7f5651f4c850]
        ??
        ??:0
    #37 | /usr/lib/libc.so.6(__libc_start_main+0x8a) [0x7f5651f4c90a]
        ??
        ??:0
    #38 | ./build/Hyprland(_start+0x25) [0x55a939cf1c65]
        ??
        ??:0

Log tail:
[wlr] [types/wlr_compositor.c:686] New wlr_surface 0x55a93bd15680 (res 0x55a93bd7bed0)
[wlr] [xwayland/xwm.c:1717] New xwayland surface: 0x55a93bd15680
[LOG] Registered signal for owner 55a93bd9dd20: 55a93bd15960 -> 55a93bd9dd88 (owner: XWayland Window)
[LOG] Registered signal for owner 55a93bd9e540: 55a93bd15990 -> 55a93bd9e548 (owner: CWLSurface)
[LOG] CWLSurface 55a93bd9e540 called init()
[LOG] Registered signal for owner 55a93bd9dd20: 55a93bd15970 -> 55a93bd9ddf0 (owner: CWindow)
[LOG] Searching for matching rules for  (title: )
[LOG] Window got assigned a surfaceTreeNode 0
[LOG] Registered signal for owner 55a93bd9dd20: 55a93bd108e0 -> 55a93bd9df90 (owner: XWayland Window Late)
[LOG] Registered signal for owner 55a93bd9dd20: 55a93bd108f0 -> 55a93bd9e200 (owner: XWayland Window Late)
[LOG] Registered signal for owner 55a93bd9dd20: 55a93bd10920 -> 55a93bd9dec0 (owner: XWayland Window Late)
[LOG] Registered signal for owner 55a93bd9dd20: 55a93bd108c0 -> 55a93bd9e0c8 (owner: Xwayland Window Late)
[ERR] Tried to connect a listener twice?!
[LOG] Registered signal for owner 55a93bd9dd20: 55a93bd109d0 -> 55a93bd9df28 (owner: XWayland Window Late)
[LOG] Registered signal for owner 55a93bd8e2d0: 55a93bd15980 -> 55a93bd8e348 (owner: SurfaceTreeNode)
[LOG] Registered signal for owner 55a93bd8e2d0: 55a93bd15950 -> 55a93bd8e3b0 (owner: SurfaceTreeNode)
[LOG] Registered signal for owner 55a93bd8e2d0: 55a93bd15990 -> 55a93bd8e418 (owner: SurfaceTreeNode)
[LOG] Creating a surfaceTree Root! (pWindow: 55a93bd9dd20)
[LOG] Map request dispatched, monitor eDP-1, xywh: 157.000000 59.000000 316.000000 457.000000
[LOG] Window 55a93bd993a0 destroyed, queueing. (class )
[LOG] XWayland class raw: (null)
[LOG] Callback 55a93bd99500 -> 55a93bd994f8, XWayland Window removed.
[LOG] Callback 55a93bd99910 -> 55a93bd99908, XWayland Window removed.
[LOG] Callback 55a93bd99ab0 -> 55a93bd99aa8, XWayland Window removed.
[LOG] Window 55a93bd9dd20 unmapped (class )
[LOG] Unregistered late callbacks XWL
[LOG] Callback 55a93bd9dfb8 -> 55a93bd9dfb0, XWayland Window Late removed.
[LOG] Callback 55a93bd9e228 -> 55a93bd9e220, XWayland Window Late removed.
[LOG] Callback 55a93bd9dee8 -> 55a93bd9dee0, XWayland Window Late removed.
[LOG] Callback 55a93bd9df50 -> 55a93bd9df48, XWayland Window Late removed.
[LOG] Callback 55a93bd9e0f0 -> 55a93bd9e0e8, Xwayland Window Late removed.
[LOG] Framebuffer created, status 36053
[LOG] Unmapped was not focused, ignoring a refocus.
[LOG] Destroying the SubSurface tree of unmapped window 55a93bd9dd20
[LOG] Callback 55a93bd8e3d8 -> 55a93bd8e3d0, SurfaceTreeNode removed.
[LOG] Callback 55a93bd8e440 -> 55a93bd8e438, SurfaceTreeNode removed.
[LOG] Callback 55a93bd8e370 -> 55a93bd8e368, SurfaceTreeNode removed.
[LOG] SurfaceTree Node removed
[LOG] Callback 55a93bd9e570 -> 55a93bd9e568, CWLSurface removed.
[LOG] CWLSurface 55a93bd9e540 called destroy()
[LOG] Callback 55a93bd9de18 -> 55a93bd9de10, CWindow removed.
[LOG] Callback 55a93bd9ddb0 -> 55a93bd9dda8, XWayland Window removed.
[LOG] Window 55a93bd9dd20 destroyed, queueing. (class )
[LOG] XWayland class raw: (null)
[LOG] Callback 55a93bd9de80 -> 55a93bd9de78, XWayland Window removed.
[LOG] Callback 55a93bd9e290 -> 55a93bd9e288, XWayland Window removed.
[LOG] Callback 55a93bd9e430 -> 55a93bd9e428, XWayland Window removed.
[LOG] Callback 55a93bd0be00 -> 55a93bd0bdf8, XWayland Window removed.
[LOG] Callback 55a93bd0bd98 -> 55a93bd0bd90, XWayland Window removed.
[LOG] Cleanup: destroyed a window

The NVIDIA GPU is not in use.

log: hyprlandd.log coredump: Hyprland.elf.gz


It is worth noting that appending the --ozone-platform=wayland flag to electron applications seems to migrate this problem.

For vscode, the flag can be added to ~/.config/code-flags.conf

memchr commented 1 year ago

It appears that steam (which uses libcef) is also a culprit in causing similar crashes.

vaxerski commented 1 year ago

ASan didn't crash, it produced a log.

If you can build with asan, add ASAN_OPTIONS="log_path=asan.log" env and repro, it will save an asan.log.xxxx to your cwd. Paste it here.

vaxerski commented 1 year ago

A bisect would also still be useful, this log seems different from the initial ones.

vaxerski commented 1 year ago

patch.txt

this patch is also to be tested

memchr commented 1 year ago

ASan didn't crash, it produced a log.

Well, it's the electron process that was crashing if ASan was enabled. I have coredumps of electron and no ASan log.

vaxerski commented 1 year ago

dafoq, okay.

memchr commented 1 year ago

And this patch caused Hyprland to crash right away.

report:

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

Hyprland received signal 11 (Segmentation fault)

Version: 4ef684f6153c167afd6e84c01a814f46d9f287ae

System info:
    System name: Linux
    Node name: lamerda
    Release: 6.3.5-arch1-1
    Version: #1 SMP PREEMPT_DYNAMIC Tue, 30 May 2023 13:44:01 +0000

GPU:
    01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU117M [10de:1f99] (rev a1) (prog-if 00 [VGA controller])
05:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Renoir [1002:1636] (rev c7) (prog-if 00 [VGA controller])

os-release:
    NAME="Arch Linux"
    PRETTY_NAME="Arch Linux"
    ID=arch
    BUILD_ID=rolling
    ANSI_COLOR="38;2;23;147;209"
    HOME_URL="https://archlinux.org/"
    DOCUMENTATION_URL="https://wiki.archlinux.org/"
    SUPPORT_URL="https://bbs.archlinux.org/"
    BUG_REPORT_URL="https://bugs.archlinux.org/"
    PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
    LOGO=archlinux-logo

Backtrace:
    #0 | ./build/Hyprland(_ZN13CrashReporter18createAndSaveCrashEi+0x5e2) [0x563338ca44ac]
        ??
        ??:0
    #1 | ./build/Hyprland(_Z25handleUnrecoverableSignali+0x69) [0x563338bd7e00]
        ??
        ??:0
    #2 | /usr/lib/libc.so.6(+0x39ab0) [0x7f72d8c4fab0]
        ??
        ??:0
    #3 | ./build/Hyprland(_ZN12CFramebuffer5allocEii+0x433) [0x563338db07d5]
        ??
        ??:0
    #4 | ./build/Hyprland(_ZN15CHyprOpenGLImpl5beginEP8CMonitorP15pixman_region32b+0x2f0) [0x563338db26b8]
        ??
        ??:0
    #5 | ./build/Hyprland(_ZN13CHyprRenderer13renderMonitorEP8CMonitor+0x10c4) [0x563338dcca48]
        ??
        ??:0
    #6 | ./build/Hyprland(_ZN6Events21listener_monitorFrameEPvS0_+0x4f4) [0x563338cc9ca3]
        ??
        ??:0
    #7 | ./build/Hyprland(_ZSt13__invoke_implIvRPFvPvS0_EJS0_S0_EET_St14__invoke_otherOT0_DpOT1_+0x4d) [0x563338c55b2d]
        ??
        ??:0
    #8 | ./build/Hyprland(_ZSt10__invoke_rIvRPFvPvS0_EJS0_S0_EENSt9enable_ifIX16is_invocable_r_vIT_T0_DpT1_EES5_E4typeEOS6_DpOS7_+0x4f) [0x563338c54d94]
        ??
        ??:0
    #9 | ./build/Hyprland(_ZNSt17_Function_handlerIFvPvS0_EPS1_E9_M_invokeERKSt9_Any_dataOS0_S7_+0x4f) [0x563338c53583]
        ??
        ??:0
    #10 | ./build/Hyprland(_ZNKSt8functionIFvPvS0_EEclES0_S0_+0x61) [0x563338cfb0a9]
        ??
        ??:0
    #11 | ./build/Hyprland(_ZN15CHyprWLListener4emitEPv+0x2f) [0x563338cfae05]
        ??
        ??:0
    #12 | ./build/Hyprland(_Z13handleWrappedP11wl_listenerPv+0x2f) [0x563338cfa9cf]
        ??
        ??:0
    #13 | /usr/lib/libwayland-server.so.0(wl_signal_emit_mutable+0x7e) [0x7f72d981b01e]
        ??
        ??:0
    #14 | /home/arthur/tmp/Hyprland/subprojects/wlroots/build/libwlroots.so.12032(wlr_output_send_frame+0x40) [0x7f72d98e8159]
        ??
        ??:0
    #15 | /home/arthur/tmp/Hyprland/subprojects/wlroots/build/libwlroots.so.12032(+0x8419d) [0x7f72d98e819d]
        ??
        ??:0
    #16 | /usr/lib/libwayland-server.so.0(wl_event_loop_dispatch_idle+0x23) [0x7f72d981ca23]
        ??
        ??:0
    #17 | /usr/lib/libwayland-server.so.0(wl_event_loop_dispatch+0xfd) [0x7f72d981cb3d]
        ??
        ??:0
    #18 | /usr/lib/libwayland-server.so.0(wl_display_run+0x27) [0x7f72d981d2d7]
        ??
        ??:0
    #19 | ./build/Hyprland(_ZN11CCompositor15startCompositorEv+0x420) [0x563338bdc048]
        ??
        ??:0
    #20 | ./build/Hyprland(main+0x771) [0x563338d1d4c0]
        ??
        ??:0
    #21 | /usr/lib/libc.so.6(+0x23850) [0x7f72d8c39850]
        ??
        ??:0
    #22 | /usr/lib/libc.so.6(__libc_start_main+0x8a) [0x7f72d8c3990a]
        ??
        ??:0
    #23 | ./build/Hyprland(_start+0x25) [0x563338bd7c65]
        ??
        ??:0

Log tail:
[LOG] Attempting to create a keymap for layout us with variant  (rules: , model: , options: )
[LOG] Set the keyboard layout to us and variant to  for keyboard "Video Bus"
[LOG] ApplyConfigToKeyboard for "power-button-1", hasconfig: 0
[LOG] Attempting to create a keymap for layout us with variant  (rules: , model: , options: )
[LOG] Set the keyboard layout to us and variant to  for keyboard "Power Button"
[LOG] ApplyConfigToKeyboard for "rapoo-gaming-headset", hasconfig: 0
[LOG] Attempting to create a keymap for layout us with variant  (rules: , model: , options: )
[LOG] Set the keyboard layout to us and variant to  for keyboard "Rapoo Gaming Headset"
[LOG] ApplyConfigToKeyboard for "ite-tech.-inc.-ite-device(8910)-wireless-radio-control", hasconfig: 0
[LOG] Attempting to create a keymap for layout us with variant  (rules: , model: , options: )
[LOG] Set the keyboard layout to us and variant to  for keyboard "ITE Tech. Inc. ITE Device(8910) Wireless Radio Control"
[LOG] ApplyConfigToKeyboard for "ite-tech.-inc.-ite-device(8910)-keyboard", hasconfig: 0
[LOG] Attempting to create a keymap for layout us with variant  (rules: , model: , options: )
[LOG] Set the keyboard layout to us and variant to  for keyboard "ITE Tech. Inc. ITE Device(8910) Keyboard"
[LOG] ApplyConfigToKeyboard for "ideapad-extra-buttons", hasconfig: 0
[LOG] Attempting to create a keymap for layout us with variant  (rules: , model: , options: )
[LOG] Set the keyboard layout to us and variant to  for keyboard "Ideapad extra buttons"
[LOG] ApplyConfigToKeyboard for "at-translated-set-2-keyboard", hasconfig: 0
[LOG] Attempting to create a keymap for layout us with variant  (rules: , model: , options: )
[LOG] Set the keyboard layout to us and variant to  for keyboard "AT Translated Set 2 keyboard"
[LOG] Applied config to mouse ite-tech.-inc.-ite-device(8910)-keyboard-1, sens 0.00
[LOG] Applied config to mouse msft0001:00-04f3:3186-mouse, sens 0.00
[LOG] Applied config to mouse msft0001:00-04f3:3186-touchpad, sens 0.00
[WARN] No rule found for eDP-1, trying to use the first.
[LOG] Applying monitor rule for eDP-1
[LOG] Setting preferred mode for eDP-1
[LOG] Releasing FB 0 tex 0
[LOG] Releasing FB 0 tex 0
[LOG] Releasing FB 0 tex 0
[LOG] Releasing FB 0 tex 0
[LOG] Releasing FB 0 tex 0
[LOG] Releasing FB 0 tex 0
[LOG] Releasing FB 0 tex 0
[LOG] Releasing FB 0 tex 0
[LOG] Releasing FB 0 tex 0
[LOG] Releasing FB 0 tex 0
[LOG] Monitor eDP-1 -> destroyed all render data
[LOG] Monitor eDP-1 layers arranged: reserved: 0.000000 0.000000 0.000000 0.000000
[LOG] Monitor eDP-1 data dump: res 1920x1080@60.01Hz, scale 1.50, transform 0, pos 0x0, 10b 0
[LOG] Monitor eDP-1 layers arranged: reserved: 0.000000 0.000000 0.000000 0.000000
[LOG]  [hookSystem] New hook event registered: render
[wlr] [GLES2] GL_INVALID_OPERATION in glFramebufferTexture2D(window-system framebuffer)
[wlr] [GLES2] GL_INVALID_OPERATION in glFramebufferTexture2D(window-system framebuffer)
[CRITICAL] 
==========================================================================================
ASSERTION FAILED! 

Framebuffer incomplete, couldn't create! (FB status: 33305)

at: line 43 in Framebuffer.cpp

log: hyprlandd.log

coredump: Hyprland.elf.gz

vaxerski commented 1 year ago

aw fuck my bad, try this: patch.txt

(new patch dont apply over last)

memchr commented 1 year ago

Patch applied, unable to obtain crash report as the process freezes. I have to kill manually it with SIGSEGV log: hyprlandd.log

coredump: Hyprland.elf.gz

vaxerski commented 1 year ago

patch.txt I am retarded

memchr commented 1 year ago

Crashed with SIGABRT

--------------------------------------------
   Hyprland Crash Report
--------------------------------------------
*thud*

Hyprland received signal 11 (Segmentation fault)

Version: 4ef684f6153c167afd6e84c01a814f46d9f287ae

System info:
    System name: Linux
    Node name: lamerda
    Release: 6.3.5-arch1-1
    Version: #1 SMP PREEMPT_DYNAMIC Tue, 30 May 2023 13:44:01 +0000

GPU:
    01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU117M [10de:1f99] (rev a1) (prog-if 00 [VGA controller])
05:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Renoir [1002:1636] (rev c7) (prog-if 00 [VGA controller])

os-release:
    NAME="Arch Linux"
    PRETTY_NAME="Arch Linux"
    ID=arch
    BUILD_ID=rolling
    ANSI_COLOR="38;2;23;147;209"
    HOME_URL="https://archlinux.org/"
    DOCUMENTATION_URL="https://wiki.archlinux.org/"
    SUPPORT_URL="https://bbs.archlinux.org/"
    BUG_REPORT_URL="https://bugs.archlinux.org/"
    PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
    LOGO=archlinux-logo

Backtrace:
    #0 | ./build/Hyprland(_ZN13CrashReporter18createAndSaveCrashEi+0x5e2) [0x5631cffa14ac]
        ??
        ??:0
    #1 | ./build/Hyprland(_Z25handleUnrecoverableSignali+0x69) [0x5631cfed4e00]
        ??
        ??:0
    #2 | /usr/lib/libc.so.6(+0x39ab0) [0x7f1f97c4fab0]
        ??
        ??:0
    #3 | /usr/lib/dri/radeonsi_dri.so(+0x15ba58) [0x7f1f9135ba58]
        ??
        ??:0
    #4 | /usr/lib/dri/radeonsi_dri.so(+0x1663fb) [0x7f1f913663fb]
        ??
        ??:0
    #5 | /usr/lib/dri/radeonsi_dri.so(+0x1666fd) [0x7f1f913666fd]
        ??
        ??:0
    #6 | /usr/lib/dri/radeonsi_dri.so(+0x168951) [0x7f1f91368951]
        ??
        ??:0
    #7 | /home/arthur/tmp/Hyprland/subprojects/wlroots/build/libwlroots.so.12032(+0x44698) [0x7f1f988c3698]
        ??
        ??:0
    #8 | /home/arthur/tmp/Hyprland/subprojects/wlroots/build/libwlroots.so.12032(+0x44d47) [0x7f1f988c3d47]
        ??
        ??:0
    #9 | /home/arthur/tmp/Hyprland/subprojects/wlroots/build/libwlroots.so.12032(wlr_addon_set_finish+0x42) [0x7f1f9894c03c]
        ??
        ??:0
    #10 | /home/arthur/tmp/Hyprland/subprojects/wlroots/build/libwlroots.so.12032(+0x9d1b5) [0x7f1f9891c1b5]
        ??
        ??:0
    #11 | /home/arthur/tmp/Hyprland/subprojects/wlroots/build/libwlroots.so.12032(wlr_buffer_drop+0x5e) [0x7f1f9891c22b]
        ??
        ??:0
    #12 | /home/arthur/tmp/Hyprland/subprojects/wlroots/build/libwlroots.so.12032(+0xb1166) [0x7f1f98930166]
        ??
        ??:0
    #13 | /usr/lib/libwayland-server.so.0(+0xb9ba) [0x7f1f988379ba]
        ??
        ??:0
    #14 | /usr/lib/libwayland-server.so.0(wl_resource_destroy+0xc9) [0x7f1f988397a9]
        ??
        ??:0
    #15 | /home/arthur/tmp/Hyprland/subprojects/wlroots/build/libwlroots.so.12032(+0xb0d04) [0x7f1f9892fd04]
        ??
        ??:0
    #16 | /usr/lib/libffi.so.8(+0x74f6) [0x7f1f977a14f6]
        ??
        ??:0
    #17 | /usr/lib/libffi.so.8(+0x3f5e) [0x7f1f9779df5e]
        ??
        ??:0
    #18 | /usr/lib/libffi.so.8(ffi_call+0x123) [0x7f1f977a0b73]
        ??
        ??:0
    #19 | /usr/lib/libwayland-server.so.0(+0x8ada) [0x7f1f98834ada]
        ??
        ??:0
    #20 | /usr/lib/libwayland-server.so.0(+0xd180) [0x7f1f98839180]
        ??
        ??:0
    #21 | /usr/lib/libwayland-server.so.0(wl_event_loop_dispatch+0xa2) [0x7f1f98837ae2]
        ??
        ??:0
    #22 | /usr/lib/libwayland-server.so.0(wl_display_run+0x27) [0x7f1f988382d7]
        ??
        ??:0
    #23 | ./build/Hyprland(_ZN11CCompositor15startCompositorEv+0x420) [0x5631cfed9048]
        ??
        ??:0
    #24 | ./build/Hyprland(main+0x771) [0x5631d001a4c0]
        ??
        ??:0
    #25 | /usr/lib/libc.so.6(+0x23850) [0x7f1f97c39850]
        ??
        ??:0
    #26 | /usr/lib/libc.so.6(__libc_start_main+0x8a) [0x7f1f97c3990a]
        ??
        ??:0
    #27 | ./build/Hyprland(_start+0x25) [0x5631cfed4c65]
        ??
        ??:0

Log tail:
[LOG] Registered signal for owner 5631d273ec50: 5631d2753900 -> 5631d273f338 (owner: XWayland Window)
[LOG] Registered signal for owner 5631d273ec50: 5631d27537d0 -> 5631d273f198 (owner: XWayland Window)
[LOG] Registered signal for owner 5631d273ec50: 5631d273c3a0 -> 5631d273ecb8 (owner: XWayland Window)
[LOG] Registered signal for owner 5631d273f470: 5631d273c3d0 -> 5631d273f478 (owner: CWLSurface)
[LOG] CWLSurface 5631d273f470 called init()
[LOG] Registered signal for owner 5631d273ec50: 5631d273c3b0 -> 5631d273ed20 (owner: CWindow)
[LOG] Searching for matching rules for  (title: )
[LOG] Window got assigned a surfaceTreeNode 0
[LOG] Registered signal for owner 5631d273ec50: 5631d2753820 -> 5631d273eec0 (owner: XWayland Window Late)
[LOG] Registered signal for owner 5631d273ec50: 5631d2753830 -> 5631d273f130 (owner: XWayland Window Late)
[LOG] Registered signal for owner 5631d273ec50: 5631d2753860 -> 5631d273edf0 (owner: XWayland Window Late)
[LOG] Registered signal for owner 5631d273ec50: 5631d2753800 -> 5631d273eff8 (owner: Xwayland Window Late)
[ERR] Tried to connect a listener twice?!
[LOG] Registered signal for owner 5631d273ec50: 5631d2753910 -> 5631d273ee58 (owner: XWayland Window Late)
[LOG] Registered signal for owner 5631d2738b20: 5631d273c3c0 -> 5631d2738b98 (owner: SurfaceTreeNode)
[LOG] Registered signal for owner 5631d2738b20: 5631d273c390 -> 5631d2738c00 (owner: SurfaceTreeNode)
[LOG] Registered signal for owner 5631d2738b20: 5631d273c3d0 -> 5631d2738c68 (owner: SurfaceTreeNode)
[LOG] Creating a surfaceTree Root! (pWindow: 5631d273ec50)
[LOG] Map request dispatched, monitor eDP-1, xywh: 287.000000 47.000000 352.000000 338.000000
[LOG] Window 5631d2741980 destroyed, queueing. (class )
[LOG] XWayland class raw: (null)
[LOG] Callback 5631d2741ae0 -> 5631d2741ad8, XWayland Window removed.
[LOG] Callback 5631d2741ef0 -> 5631d2741ee8, XWayland Window removed.
[LOG] Callback 5631d2742090 -> 5631d2742088, XWayland Window removed.
[LOG] Releasing FB 18 tex 53
[LOG] Callback 5631d2752250 -> 5631d2752248, XWayland Window removed.
[LOG] Callback 5631d27521e8 -> 5631d27521e0, XWayland Window removed.
[LOG] Cleanup: destroyed a window
[LOG] Releasing FB 19 tex 58
[LOG] Callback 5631d2742160 -> 5631d2742158, XWayland Window removed.
[LOG] Callback 5631d27420f8 -> 5631d27420f0, XWayland Window removed.
[LOG] Cleanup: destroyed a window
[LOG] Window 5631d273ec50 unmapped (class )
[LOG] Unregistered late callbacks XWL
[LOG] Callback 5631d273eee8 -> 5631d273eee0, XWayland Window Late removed.
[LOG] Callback 5631d273f158 -> 5631d273f150, XWayland Window Late removed.
[LOG] Callback 5631d273ee18 -> 5631d273ee10, XWayland Window Late removed.
[LOG] Callback 5631d273ee80 -> 5631d273ee78, XWayland Window Late removed.
[LOG] Callback 5631d273f020 -> 5631d273f018, Xwayland Window Late removed.
[LOG] Framebuffer created, status 36053
[LOG] Unmapped was not focused, ignoring a refocus.
[LOG] Destroying the SubSurface tree of unmapped window 5631d273ec50
[LOG] Callback 5631d2738c28 -> 5631d2738c20, SurfaceTreeNode removed.
[LOG] Callback 5631d2738c90 -> 5631d2738c88, SurfaceTreeNode removed.
[LOG] Callback 5631d2738bc0 -> 5631d2738bb8, SurfaceTreeNode removed.
[LOG] SurfaceTree Node removed
[LOG] Callback 5631d273f4a0 -> 5631d273f498, CWLSurface removed.
[LOG] CWLSurface 5631d273f470 called destroy()
[LOG] Callback 5631d273ed48 -> 5631d273ed40, CWindow removed.
[LOG] Callback 5631d273ece0 -> 5631d273ecd8, XWayland Window removed.

log: hyprlandd.log

if coredump is not needed I will omit it from now on. coredump: Hyprland.elf.gz

vaxerski commented 1 year ago

if you could load the coredump in gdb and do bt -full, it should give more symbols

vaxerski commented 1 year ago

alos what about the bisect

memchr commented 1 year ago

I am currently debugging, please wait.

memchr commented 1 year ago

backtrace

#0  0x00007f54459b226c in  () at /usr/lib/libc.so.6
#1  0x00007f5445962a08 in raise () at /usr/lib/libc.so.6
#2  0x00007f544594b538 in abort () at /usr/lib/libc.so.6
#3  0x000055c97a9c7e05 in handleUnrecoverableSignal(int) (sig=11) at /home/arthur/tmp/Hyprland/src/Compositor.cpp:34
#4  0x00007f5445962ab0 in <signal handler called> () at /usr/lib/libc.so.6
#5  st_texture_release_all_sampler_views () at ../mesa-23.1.1/src/mesa/state_tracker/st_sampler_view.c:258
#6  st_FreeTextureImageBuffer () at ../mesa-23.1.1/src/mesa/state_tracker/st_cb_texture.c:423
#7  0x00007f543f7663fb in _mesa_delete_texture_image () at ../mesa-23.1.1/src/mesa/main/teximage.c:226
#8  _mesa_delete_texture_object () at ../mesa-23.1.1/src/mesa/main/texobj.c:532
#9  0x00007f543f7666fd in _mesa_reference_texobj_ () at ../mesa-23.1.1/src/mesa/main/texobj.c:639
#10 0x00007f543f767261 in _mesa_reference_texobj () at ../mesa-23.1.1/src/mesa/main/texobj.h:91
#11 _mesa_update_texture_state () at ../mesa-23.1.1/src/mesa/main/texstate.c:940
#12 0x00007f543f736348 in _mesa_update_state_locked () at ../mesa-23.1.1/src/mesa/main/state.c:567
#13 _mesa_update_state() () at ../mesa-23.1.1/src/mesa/main/state.c:595
#14 0x00007f543f90c190 in _mesa_DrawArrays() () at ../mesa-23.1.1/src/mesa/main/draw.c:1399
#15 0x00007f54465e5e2d in render (box=0x7ffdac981c60, clip=0x0, attrib=0) at ../render/gles2/pass.c:72
        batch = 1
        batch_end = 1
        vert_index = 12
        verts = {[0] = 0, [1] = 0, [2] = 1, [3] = 0, [4] = 0, [5] = 1, [6] = 1, [7] = 0, [8] = 1, [9] = 1, [10] = 0, [11] = 1, [12] = 0 <repeats 58 times>, [70] = 4985.78125, [71] = 4.56767247e-41, [72] = 5641.5, [73] = 4.56767247e-41, [74] = 2.56791024e+36, [75] = 3.07739156e-41, [76] = 0, [77] = 0, [78] = 0, [79] = 0, [80] = 0, [81] = 0, [82] = 1.99544901e-42, [83] = 0, [84] = 5641.45312, [85] = 4.56767247e-41, [86] = 1.97302824e-42, [87] = 0, [88] = 9.80908925e-44, [89] = 0, [90] = 0, [91] = 0, [92] = 1.83850359e-42, [93] = 0, [94] = 4991.38477, [95] = 4.56767247e-41, [96] = 0, [97] = 0, [98] = 7.17464814e-43, [99] = 0, [100] = 0, [101] = 0, [102] = -1.35625938e+35, [103] = -2.48796182e-13, [104] = 0, [105] = 0, [106] = 2.56492112e+36, [107] = 3.07739156e-41, [108] = 8.96831017e-44, [109] = 0, [110] = 2.56493127e+36, [111] = 3.07739156e-41, [112] = 5641.45312, [113] = 4.56767247e-41, [114] = 1.88334514e-42, [115] = 0, [116] = 1.83850359e-42, [117] = 0, [118] = 4992.5, [119] = 4.56767247e-41, [120] = 0, [121] = 0, [122] = 8.96831017e-44, [123] = 0, [124] = 1.81608281e-42, [125] = 0, [126] = 5641.45312, [127] = 4.56767247e-41, [128] = 2.61163912e+36, [129] = 3.07739156e-41, [130] = 0, [131] = 0, [132] = -4.32190395e-12, [133] = 4.59135442e-41, [134] = 4993.26074, [135] = 4.56767247e-41, [136] = -4.32177211e-12, [137] = 4.59135442e-41, [138] = -4.32190395e-12, [139] = 4.59135442e-41, [140] = 8.96831017e-44, [141] = 0, [142] = -4.32164721e-12, [143] = 4.59135442e-41, [144] = 1.81608281e-42, [145] = 0, [146] = 4996.20459, [147] = 4.56767247e-41, [148] = 8.19750346e+35, [149] = 3.07739156e-41, [150] = -4.32239661e-12, [151] = 4.59135442e-41, [152] = 8.19750346e+35, [153] = 3.07739156e-41, [154] = 1.81163251, [155] = 4.56767247e-41, [156] = 0, [157] = 0, [158] = 0, [159] = 0, [160] = -4.32164721e-12, [161] = 4.59135442e-41, [162] = 0, [163] = 1.79366203e-43, [164] = 2.5649338e+36, [165] = 3.07739156e-41, [166] = 1.40129846e-45, [167] = 1.51638771e-36, [168] = 1.40129846e-45, [169] = 0, [170] = 8.14040531e+35, [171] = 3.07739156e-41, [172] = 8.14040848e+35, [173] = 3.07739156e-41, [174] = 0, [175] = 0, [176] = 7.8472714e-44, [177] = 1.21983031e-41, [178] = 3.64337601e-44, [179] = 1.40129846e-45, [180] = 1.821688e-44, [181] = 4.48415509e-44, [182] = 4.48415509e-44, [183] = 4.48415509e-44, [184] = 1.40129846e-45, [185] = 1.40129846e-45, [186] = 1.40129846e-45, [187] = 1.40129846e-45, [188] = 0, [189] = 0, [190] = 0, [191] = 0, [192] = 0, [193] = 0, [194] = 3.64337601e-44, [195] = 1.40129846e-45, [196] = 0, [197] = 4.48415509e-44, [198] = 0, [199] = 0, [200] = 0, [201] = 0, [202] = 0, [203] = 0, [204] = 0, [205] = 0, [206] = -1.35625938e+35, [207] = -2.48796182e-13, [208] = 0, [209] = 0, [210] = 8.19750346e+35, [211] = 3.07739156e-41, [212] = -4.32239661e-12, [213] = 4.59135442e-41, [214] = 0, [215] = 0, [216] = 2.61163912e+36, [217] = 3.07739156e-41, [218] = -4.32190395e-12, [219] = 4.59135442e-41, [220] = 1.40129846e-45, [221] = 0, [222] = 1.81175029, [223] = 4.56767247e-41, [224] = 7.17464814e-43, [225] = 0, [226] = 0, [227] = 0, [228] = 0, [229] = 0, [230] = 1.81182504, [231] = 4.56767247e-41, [232] = 7.17464814e-43, [233] = 2.3509887e-38, [234] = 3.27697778, [235] = 9.40395929e-38, [236] = 0, [237] = 0, [238] = 0, [239] = 0, [240] = 0, [241] = 0, [242] = 0, [243] = 0, [244] = 0, [245] = 0, [246] = 4.20389539e-45, [247] = 5.60519386e-44...}
        i = 1
        region = {
          extents = {
            x1 = 0,
            y1 = 0,
            x2 = 32,
            y2 = 32
          },
          data = 0x0
        }
        rects_len = 1
        rects = 0x7ffdac980b40
#16 0x00007f54465e6559 in render_pass_add_rect (wlr_pass=0x55c97bf4ef50, options=0x7ffdac981c60) at ../render/gles2/pass.c:198
        pass = 0x55c97bf4ef50
        renderer = 0x55c97b32bee0
        color = 0x7ffdac981c70
        box = 0x7ffdac981c60
        __func__ = "render_pass_add_rect"
#17 0x00007f54465e000c in wlr_render_pass_add_rect (render_pass=0x55c97bf4ef50, options=0x7ffdac981c60) at ../render/pass.c:33
#18 0x00007f5446625d4a in render_cursor_buffer (cursor=0x55c97bce2d50) at ../types/output/cursor.c:330
        output = 0x55c97bbefd70
        texture = 0x55c97bd0faa0
        allocator = 0x55c97b9c3630
        renderer = 0x55c97b32bee0
        __PRETTY_FUNCTION__ = "render_cursor_buffer"
        width = 32
        height = 32
        buffer = 0x55c97be3b910
        dst_box = {
          x = 0,
          y = 0,
          width = 32,
          height = 32
        }
        pass = 0x55c97bf4ef50
        transform = WL_OUTPUT_TRANSFORM_NORMAL
#19 0x00007f5446625ec7 in output_cursor_attempt_hardware (cursor=0x55c97bce2d50) at ../types/output/cursor.c:370
        output = 0x55c97bbefd70
        hwcur = 0x55c97bce2d50
        texture = 0x55c97bd0faa0
        buffer = 0x0
        hotspot = {
          x = 219,
          y = 508,
          width = 32,
          height = 32
        }
        ok = false
#20 0x00007f54466263b3 in output_cursor_set_texture (cursor=0x55c97bce2d50, texture=0x55c97bd0faa0, own_texture=false, scale=1, transform=WL_OUTPUT_TRANSFORM_NORMAL, hotspot_x=8, hotspot_y=1) at ../types/output/cursor.c:468
        output = 0x55c97bbefd70
#21 0x00007f5446647ee4 in output_cursor_output_commit_surface (output_cursor=0x55c97ba8c510) at ../types/wlr_cursor.c:395
        surface = 0x55c97bf3cd60
        output = 0x55c97bbefd70
        __PRETTY_FUNCTION__ = "output_cursor_output_commit_surface"
        texture = 0x55c97bd0faa0
        hotspot_x = 8
        hotspot_y = 1
#22 0x00007f54466480ec in output_cursor_output_handle_surface_commit (listener=0x55c97ba8c558, data=0x55c97bf3cd60) at ../types/wlr_cursor.c:440
        output_cursor = 0x55c97ba8c510
        surface = 0x55c97bf3cd60
#23 0x00007f544655c01e in wl_signal_emit_mutable (signal=<optimized out>, data=0x55c97bf3cd60) at ../wayland-1.22.0/src/wayland-server.c:2241
        pos = 0x55c97ba8c558
        l = 0x55c97ba8c558
        cursor = {
          link = {
            prev = 0x55c97ba8c558,
            next = 0x7ffdac981e70
          },
          notify = 0x7f5446559110 <handle_noop>
        }
        end = {
          link = {
            prev = 0x7ffdac981e90,
            next = 0x55c97bf3d030
          },
          notify = 0x7f5446559110 <handle_noop>
        }
#24 0x00007f54466446dd in surface_commit_state (surface=0x55c97bf3cd60, next=0x55c97bf3cee0) at ../types/wlr_compositor.c:498
        __PRETTY_FUNCTION__ = "surface_commit_state"
        invalid_buffer = true
        subsurface = 0x55c97bf3cf58
#25 0x00007f5446644793 in surface_handle_commit (client=0x55c97bf3bf70, resource=0x55c97be4b970) at ../types/wlr_compositor.c:517
        surface = 0x55c97bf3cd60
#26 0x00007f54454c64f6 in  () at /usr/lib/libffi.so.8
#27 0x00007f54454c2f5e in  () at /usr/lib/libffi.so.8
#28 0x00007f54454c5b73 in ffi_call () at /usr/lib/libffi.so.8
#29 0x00007f544655aada in wl_closure_invoke (closure=closure@entry=0x55c97bf6a220, target=<optimized out>, target@entry=0x55c97be4b970, opcode=opcode@entry=6, data=<optimized out>, data@entry=0x55c97bf3bf70, flags=2) at ../wayland-1.22.0/src/connection.c:1025
        count = <optimized out>
        cif = {
          abi = FFI_UNIX64,
          nargs = 2,
          arg_types = 0x7ffdac982110,
          rtype = 0x7f54454c71a0 <ffi_type_void>,
          bytes = 0,
          flags = 0
        }
        ffi_types = {[0] = 0x7f54454c72a0 <ffi_type_pointer>, [1] = 0x7f54454c72a0 <ffi_type_pointer>, [2] = 0x7f54454c7240 <ffi_type_uint32>, [3] = 0x7f54454c7330 <ffi_type_sint32>, [4] = 0x7f54454c7330 <ffi_type_sint32>, [5] = 0x7f54454c7330 <ffi_type_sint32>, [6] = 0x55c97bf70fc0, [7] = 0x1, [8] = 0x1, [9] = 0x7f54459bfb14, [10] = 0x55c97bbe2890, [11] = 0xaa8c0f4ff9d0f700, [12] = 0x7ffd00000000, [13] = 0x55c97bf9ee00, [14] = 0x55c97bf9ee00, [15] = 0x5, [16] = 0x55c97b1143d0, [17] = 0x55c97b103e28, [18] = 0x7ffdac9821e0, [19] = 0x7f5446547645 <wl_closure_invoke+325>, [20] = 0x7ffdac982200, [21] = 0x5459c1608}
        ffi_args = {[0] = 0x7ffdac9820d0, [1] = 0x7ffdac9820d8, [2] = 0x55c97bf1fb48, [3] = 0x55c97bd6be40, [4] = 0x55c97bd6be48, [5] = 0x0, [6] = 0x7f5400000000, [7] = 0x0, [8] = 0x7f54454c72a0 <ffi_type_pointer>, [9] = 0x7f544655c531 <log_closure+81>, [10] = 0x55c97c3a6eb0, [11] = 0x55c97b0f3880, [12] = 0x7f5445b04ba0, [13] = 0x0, [14] = 0x7f5446566428 <wl_surface_requests+72>, [15] = 0x7f54459c1608 <calloc+216>, [16] = 0x7f54454c7240 <ffi_type_uint32>, [17] = 0xaa8c0f4ff9d0f700, [18] = 0x7f544656142d, [19] = 0x7f5446566470 <wl_surface_requests+144>, [20] = 0x0, [21] = 0x8}
        implementation = <optimized out>
#30 0x00007f544655f180 in wl_client_connection_data (fd=<optimized out>, mask=<optimized out>, data=<optimized out>) at ../wayland-1.22.0/src/wayland-server.c:438
        client = <optimized out>
        connection = <optimized out>
        resource = 0x55c97be4b970
        object = 0x55c97be4b970
        closure = <optimized out>
        message = 0x7f5446566470 <wl_surface_requests+144>
        p = {[0] = 18, [1] = 524294}
        resource_flags = 0
        opcode = 6
        size = <optimized out>
        since = <optimized out>
        len = <optimized out>
#31 0x00007f544655dae2 in wl_event_loop_dispatch (loop=0x55c97b0f3970, timeout=timeout@entry=-1) at ../wayland-1.22.0/src/event-loop.c:1027
        ep = {[0] = {
            events = 1,
            data = {
              ptr = 0x55c97bf524f0,
              fd = 2079663344,
              u32 = 2079663344,
              u64 = 94323856450800
            }
          }, [1] = {
            events = 1,
            data = {
              ptr = 0x55c97b0f39b8,
              fd = 2064595384,
              u32 = 2064595384,
              u64 = 94323841382840
            }
          }, [2] = {
            events = 4191221504,
            data = {
              ptr = 0x55c9aa8c0f4f,
              fd = -1433661617,
              u32 = 2861305679,
              u64 = 94324638093135
            }
          }, [3] = {
            events = 0,
            data = {
              ptr = 0x78,
              fd = 120,
              u32 = 120,
              u64 = 120
            }
          }, [4] = {
            events = 2079438224,
            data = {
              ptr = 0xac982540000055c9,
              fd = 21961,
              u32 = 21961,
              u64 = 12436731327791781321
            }
          }, [5] = {
            events = 32765,
            data = {
              ptr = 0x55c97bf1e5a8,
              fd = 2079450536,
              u32 = 2079450536,
              u64 = 94323856237992
            }
          }, [6] = {
            events = 2079442328,
            data = {
              ptr = 0xac982580000055c9,
              fd = 21961,
              u32 = 21961,
              u64 = 12436731602669688265
            }
          }, [7] = {
            events = 32765,
            data = {
              ptr = 0x7f544655a500 <wl_connection_flush+304>,
              fd = 1180017920,
              u32 = 1180017920,
              u64 = 139999933998336
            }
          }, [8] = {
            events = 0,
            data = {
              ptr = 0x7800000000,
              fd = 0,
              u32 = 0,
              u64 = 515396075520
            }
          }, [9] = {
            events = 0,
            data = {
              ptr = 0x7ffdac9825a0,
              fd = -1399315040,
              u32 = 2895652256,
              u64 = 140727499105696
            }
          }, [10] = {
            events = 0,
            data = {
              ptr = 0x15dec,
              fd = 89580,
              u32 = 89580,
              u64 = 89580
            }
          }, [11] = {
            events = 0,
            data = {
              ptr = 0x0,
              fd = 0,
              u32 = 0,
              u64 = 0
            }
          }, [12] = {
            events = 2895652224,
            data = {
              ptr = 0x100007ffd,
              fd = 32765,
              u32 = 32765,
              u64 = 4295000061
            }
          }, [13] = {
            events = 0,
            data = {
              ptr = 0x0,
              fd = 0,
              u32 = 0,
              u64 = 0
            }
          }, [14] = {
            events = 0,
            data = {
              ptr = 0x0,
              fd = 0,
              u32 = 0,
              u64 = 0
            }
          }, [15] = {
            events = 0,
            data = {
              ptr = 0x0,
              fd = 0,
              u32 = 0,
              u64 = 0
            }
          }, [16] = {
            events = 2079445892,
            data = {
              ptr = 0x78000055c9,
              fd = 21961,
              u32 = 21961,
              u64 = 515396097481
            }
          }, [17] = {
            events = 0,
            data = {
              ptr = 0x55c97bf1c598,
              fd = 2079442328,
              u32 = 2079442328,
              u64 = 94323856229784
            }
          }, [18] = {
            events = 80,
            data = {
              ptr = 0x1400000000,
              fd = 0,
              u32 = 0,
              u64 = 85899345920
            }
          }, [19] = {
            events = 0,
            data = {
              ptr = 0x100000001,
              fd = 1,
              u32 = 1,
              u64 = 4294967297
            }
          }, [20] = {
            events = 71,
            data = {
              ptr = 0x45e786e000007f54,
              fd = 32596,
              u32 = 32596,
              u64 = 5037143004868018004
            }
          }, [21] = {
            events = 32596,
            data = {
              ptr = 0x0,
              fd = 0,
              u32 = 0,
              u64 = 0
            }
          }, [22] = {
            events = 4191221504,
            data = {
              ptr = 0xaa8c0f4f,
              fd = -1433661617,
              u32 = 2861305679,
              u64 = 2861305679
            }
          }, [23] = {
            events = 0,
            data = {
              ptr = 0x0,
              fd = 0,
              u32 = 0,
              u64 = 0
            }
          }, [24] = {
            events = 11,
            data = {
              ptr = 0x5400000000,
              fd = 0,
              u32 = 0,
              u64 = 360777252864
            }
          }, [25] = {
            events = 0,
            data = {
              ptr = 0x0,
              fd = 0,
              u32 = 0,
              u64 = 0
            }
          }, [26] = {
            events = 0,
            data = {
              ptr = 0x0,
              fd = 0,
              u32 = 0,
              u64 = 0
            }
          }, [27] = {
            events = 0,
            data = {
              ptr = 0x0,
              fd = 0,
              u32 = 0,
              u64 = 0
            }
          }, [28] = {
            events = 0,
            data = {
              ptr = 0x0,
              fd = 0,
              u32 = 0,
              u64 = 0
            }
          }, [29] = {
            events = 0,
            data = {
              ptr = 0x0,
              fd = 0,
              u32 = 0,
              u64 = 0
            }
          }, [30] = {
            events = 4191221504,
            data = {
              ptr = 0xaa8c0f4f,
              fd = -1433661617,
              u32 = 2861305679,
              u64 = 2861305679
            }
          }, [31] = {
            events = 0,
            data = {
              ptr = 0x55c97bf3bf70,
              fd = 2079571824,
              u32 = 2079571824,
              u64 = 94323856359280
            }
          }}
        source = <optimized out>
        i = 0
        count = <optimized out>
        has_timers = <optimized out>
#32 0x00007f544655e2d7 in wl_display_run (display=0x55c97b0f3880) at ../wayland-1.22.0/src/wayland-server.c:1493
#33 0x000055c97a9cc048 in CCompositor::startCompositor() (this=0x55c97b0f1c60) at /home/arthur/tmp/Hyprland/src/Compositor.cpp:471
#34 0x000055c97ab0d4fe in main(int, char**) (argc=1, argv=0x7ffdac982998) at /home/arthur/tmp/Hyprland/src/main.cpp:100
        cmd = "./Hyprland/build/Hyprland"
        configPath = ""
        ignoreSudo = false
        args = std::vector of length 0, capacity 0
quit

commit 147e9623 is suspicious

vaxerski commented 1 year ago

"suspicious", did you bisect? Also, does this happen on sway-git too?

I'd help more but 1) for me crashes occur rarely and 2) am on holidays, atm climbing a mountain.

NotAShelf commented 1 year ago

what a great dev, reviews issues even while climbing a mountain

vaxerski commented 1 year ago

barely got connection out here.

20230605_132455.jpg

memchr commented 1 year ago

"suspicious", did you bisect? Also, does this happen on sway-git too?

Yes, I did git bisect. I should be more concise.

does this happen on sway-git too

No

for me crashes occur rarely

I can reliably trigger the said crash by flashing the menu bar drop-down of the vscode in quick succession.

vaxerski commented 1 year ago

vscode xwl or wl

memchr commented 1 year ago

Electron uses X by default on Linux.

I can only reproduce this problem with XWayland.

Erothas commented 1 year ago

Electron uses X by default on Linux.

I can only reproduce this problem with XWayland.

Okay, that explains a lot. So, when the whole thing started, my electron apps started that I launch with the ozone wayland flag were not functional. So, I had to resort to launching them without that flag, and through xwayland. Which prompted the above crashes right away. So, why did ozone flag stop working in the first place then?

memchr commented 1 year ago

the ozone wayland flag were not functional

It's more of an Electron problem than a Hyprland problem.

Erothas commented 1 year ago

the ozone wayland flag were not functional

It's more of an Electron problem than a Hyprland problem.

Up until two days ago, that flag launched my electron apps on wayland flawlessly.

Erothas commented 1 year ago

vscode xwl or wl

I believe he mentioned earlier, "I can only reproduce this problem with XWayland.' as an answer... I think? Just trying to help until he is available once again.

ghost commented 1 year ago
--------------------------------------------
file: ~/.cache/hyprland/hyprlandCrashReport4725.txt
--------------------------------------------
   Hyprland Crash Report
--------------------------------------------
Who tried dividing by zero?!

Hyprland received signal 11 (Segmentation fault)

Version: 1a4e6e6a4b3272118a51bebb4a45ecd642383209

System info:
    System name: Linux
    Node name: home
    Release: 6.3.4-artix1-1
    Version: #1 SMP PREEMPT_DYNAMIC Sun, 28 May 2023 21:36:47 +0000

GPU:
    03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 23 [Radeon RX 6600/6600 XT/6600M] [1002:73ff] (rev c1) (prog-if 00 [VGA controller])

os-release:
    NAME="Artix Linux"
    PRETTY_NAME="Artix Linux"
    ID=artix
    BUILD_ID=rolling
    ANSI_COLOR="0;36"
    HOME_URL="https://www.artixlinux.org/"
    DOCUMENTATION_URL="https://wiki.artixlinux.org/"
    SUPPORT_URL="https://forum.artixlinux.org/"
    BUG_REPORT_URL="https://bugs.artixlinux.org/"
    PRIVACY_POLICY_URL="https://terms.artixlinux.org/docs/privacy-policy/"
    LOGO=artixlinux-logo

Backtrace:
    #0 | /home/rscott/Develop/github.com/hyprwm/Hyprland/b/src/Hyprland(_ZN13CrashReporter18createAndSaveCrashEi+0x78e) [0x561854acf5ce]
        ??
        ??:0
    #1 | /home/rscott/Develop/github.com/hyprwm/Hyprland/b/src/Hyprland(_Z25handleUnrecoverableSignali+0x3c) [0x561854a7402c]
        ??
        ??:0
    #2 | /usr/lib/libc.so.6(+0x38f50) [0x7f7b3ef44f50]
        ??
        ??:0
    #3 | /usr/lib/dri/radeonsi_dri.so(+0x15ba58) [0x7f7b3c35ba58]
        ??
        ??:0
    #4 | /usr/lib/dri/radeonsi_dri.so(+0x1663fb) [0x7f7b3c3663fb]
        ??
        ??:0
    #5 | /usr/lib/dri/radeonsi_dri.so(+0x1666fd) [0x7f7b3c3666fd]
        ??
        ??:0
    #6 | /usr/lib/dri/radeonsi_dri.so(+0x168951) [0x7f7b3c368951]
        ??
        ??:0
    #7 | /home/rscott/Develop/github.com/hyprwm/Hyprland/b/src/Hyprland(_ZN12CFramebufferD1Ev+0xab) [0x561854b7963b]
        ??
        ??:0
    #8 | /home/rscott/Develop/github.com/hyprwm/Hyprland/b/src/Hyprland(_ZN11CCompositor16cleanupFadingOutERKi+0x11b) [0x561854a848fb]
        ??
        ??:0
    #9 | /home/rscott/Develop/github.com/hyprwm/Hyprland/b/src/Hyprland(_ZN13CHyprRenderer13renderMonitorEP8CMonitor+0x39c) [0x561854b8f8dc]
        ??
        ??:0
    #10 | /home/rscott/Develop/github.com/hyprwm/Hyprland/b/src/Hyprland(_Z13handleWrappedP11wl_listenerPv+0x3c) [0x561854b0c61c]
        ??
        ??:0
    #11 | /usr/lib/libwayland-server.so.0(wl_signal_emit_mutable+0x7e) [0x7f7b3f9e501e]
        ??
        ??:0
    #12 | /home/rscott/Develop/github.com/hyprwm/Hyprland/b/src/Hyprland(+0x2027d8) [0x561854bb97d8]
        ??
        ??:0
    #13 | /usr/lib/libdrm.so.2(drmHandleEvent+0xff) [0x7f7b3f9c09af]
        ??
        ??:0
    #14 | /home/rscott/Develop/github.com/hyprwm/Hyprland/b/src/Hyprland(handle_drm_event+0x49) [0x561854bbc039]
        ??
        ??:0
    #15 | /usr/lib/libwayland-server.so.0(wl_event_loop_dispatch+0xa2) [0x7f7b3f9e6ae2]
        ??
        ??:0
    #16 | /usr/lib/libwayland-server.so.0(wl_display_run+0x27) [0x7f7b3f9e72d7]
        ??
        ??:0
    #17 | /home/rscott/Develop/github.com/hyprwm/Hyprland/b/src/Hyprland(main+0x4b4) [0x561854a64354]
        ??
        ??:0
    #18 | /usr/lib/libc.so.6(+0x23790) [0x7f7b3ef2f790]
        ??
        ??:0
    #19 | /usr/lib/libc.so.6(__libc_start_main+0x8a) [0x7f7b3ef2f84a]
        ??
        ??:0
    #20 | /home/rscott/Develop/github.com/hyprwm/Hyprland/b/src/Hyprland(_start+0x25) [0x561854a73ed5]
        ??
        ??:0

Log tail:
[LOG] Unregistered late callbacks XWL
[LOG] Callback 5618560009a8 -> 5618560009a0, XWayland Window Late removed.
[LOG] Callback 561856000c18 -> 561856000c10, XWayland Window Late removed.
[LOG] Callback 5618560008d8 -> 5618560008d0, XWayland Window Late removed.
[LOG] Callback 561856000ae0 -> 561856000ad8, Xwayland Window Late removed.
[LOG] Framebuffer created, status 36053
[LOG] Removing last node (dwindle)
[LOG] On closed window, new focused candidate is 0
[LOG] Destroying the SubSurface tree of unmapped window 561856000710
[LOG] Callback 56185684c628 -> 56185684c620, SurfaceTreeNode removed.
[LOG] Callback 56185684c690 -> 56185684c688, SurfaceTreeNode removed.
[LOG] Callback 56185684c5c0 -> 56185684c5b8, SurfaceTreeNode removed.
[LOG] SurfaceTree Node removed
[LOG] Callback 561856000d50 -> 561856000d48, Toplevel removed.
[LOG] Callback 561856000ce8 -> 561856000ce0, Toplevel removed.
[LOG] Callback 561856000db8 -> 561856000db0, Toplevel removed.
[LOG] Callback 561856000f60 -> 561856000f58, CWLSurface removed.
[LOG] CWLSurface 561856000f30 called destroy()
[LOG] Callback 561856000808 -> 561856000800, CWindow removed.
[LOG] Callback 5618560007a0 -> 561856000798, XWayland Window removed.
[LOG] Window 561856000710 destroyed, queueing. (class )
[LOG] XWayland class raw: steamwebhelper
[LOG] Callback 561856000870 -> 561856000868, XWayland Window removed.
[LOG] Callback 561856000c80 -> 561856000c78, XWayland Window removed.
[LOG] Callback 561856000e20 -> 561856000e18, XWayland Window removed.
[ERR] onWindowRemovedTiling node null?
[LOG] Callback 561856861e60 -> 561856861e58, XWayland Window removed.
[LOG] Callback 561856861df8 -> 561856861df0, XWayland Window removed.
[LOG] Cleanup: destroyed a window
[LOG] Callback 561856857c70 -> 561856857c68, XWayland Window removed.
[LOG] Callback 561856857c08 -> 561856857c00, XWayland Window removed.
[LOG] Cleanup: destroyed a window
[LOG] Window 561855abda50 destroyed, queueing. (class )
[LOG] XWayland class raw: (null)
[LOG] Callback 561855abdbb0 -> 561855abdba8, XWayland Window removed.
[LOG] Callback 561855abdfc0 -> 561855abdfb8, XWayland Window removed.
[LOG] Callback 561855abe160 -> 561855abe158, XWayland Window removed.
[ERR] onWindowRemovedTiling node null?
[LOG] Callback 561855abe230 -> 561855abe228, XWayland Window removed.
[LOG] Callback 561855abe1c8 -> 561855abe1c0, XWayland Window removed.
[LOG] Unmapped window 561855abda50 removed instantly
[LOG] Callback 561856867d90 -> 561856867d88, XWayland Window removed.
[LOG] Callback 561856867d28 -> 561856867d20, XWayland Window removed.
[LOG] Cleanup: destroyed a window
[LOG] Callback 561856876740 -> 561856876738, XWayland Window removed.
[LOG] Callback 5618568766d8 -> 5618568766d0, XWayland Window removed.
[LOG] Cleanup: destroyed a window
[LOG] Callback 561856881bd0 -> 561856881bc8, XWayland Window removed.
[LOG] Callback 561856881b68 -> 561856881b60, XWayland Window removed.
[LOG] Cleanup: destroyed a window

may not show detailed trace, i dont have systemd coredumpctl

full log https://gist.github.com/rscottyy/8f4b433dd78a5c238aab00f83be28e9a

vaxerski commented 1 year ago

can someone try removing the glFlush calls in ccompositor::cleanupFadingOut and try that?

memchr commented 1 year ago
diff --git a/src/Compositor.cpp b/src/Compositor.cpp
index 27b4c9cf..864e394f 100644
--- a/src/Compositor.cpp
+++ b/src/Compositor.cpp
@@ -1234,7 +1234,7 @@ void CCompositor::cleanupFadingOut(const int& monid) {

             Debug::log(LOG, "Cleanup: destroyed a window");

-            glFlush(); // to free mem NOW.
+            // glFlush(); // to free mem NOW.
             return;
         }
     }
@@ -1291,7 +1291,7 @@ void CCompositor::cleanupFadingOut(const int& monid) {

             Debug::log(LOG, "Cleanup: destroyed a layersurface");

-            glFlush(); // to free mem NOW.
+            // glFlush(); // to free mem NOW.
             return;
         }
     }
diff --git a/subprojects/wlroots b/subprojects/wlroots
--- a/subprojects/wlroots
+++ b/subprojects/wlroots
@@ -1 +1 @@
-Subproject commit b61d5922f1d0910a848deb100570ad8587aea38d
+Subproject commit b61d5922f1d0910a848deb100570ad8587aea38d-dirty

The crash persists

firedes commented 1 year ago

Also, does this happen on sway-git too?

I tried sway-git just now, no Intellij IDEA crash issue.

vaxerski commented 1 year ago

I'll ask Simon. This seems like some changes to how xwayland unmaps are handled in wlr

vaxerski commented 1 year ago

https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3656

vaxerski commented 1 year ago

can someone help over there in producing an ASan output for the crash?

TheZoq2 commented 1 year ago

I could try, but I'm not sure how to do it. I built hyprland in debug mode and can reproduce the bug by spamming the context menu on chromum. But, running it as ASAN_OPTIONS="log_path=asan.log" HYPRLAND_LOG_WLR=1 ./Hyprland does not create any asan file

Do I need to set asan options for the build?

vaxerski commented 1 year ago

when it crashes, check the cwd. Sometimes it also gets put in .. or ~

Also ASan I think might not sometimes build by default, in which case compile hyprland by doing instead of make debug, this:

cmake -S . -B build -DCMAKE_BUILD_TYPE:STRING=Debug -G Ninja -DWITH_ASAN:BOOL=true
cmake --build ./build --config Debug --target all -j`nproc`
TheZoq2 commented 1 year ago

With that, it doesn't seem to crash for me unfortunately

vaxerski commented 1 year ago

fixed with 10db5a4fdbb0150af1165ea5591081c5182bb416

thanks to Kirill Primak for spotting my idiocy

TheZoq2 commented 1 year ago

Very nice, appreciate the quick resolution!

vaxerski commented 1 year ago

you should appreciate Kirill Primak's contribution, I am a fucking braindead idiot