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
19.64k stars 829 forks source link

XWayland connection permanently dies at random occasions #4751

Closed MortalP0ison closed 6 months ago

MortalP0ison commented 6 months ago

Hyprland Version

hyprland 0.35.0-2 ```sh hyprland, built from branch main at commit b9c1414f25bfe6972d1996b79566f63c215ec78a dirty (border: fix missed translate by offset). Date: Sat Dec 23 10:11:26 2023 Tag: v0.33.1-79-gb9c1414f flags: (if any) debug ```

Bug or Regression?

Bug

Description

Hello, I’ve encountered an unusual problem, and I’m not sure if it’s related to Hyprland or EndeavourOS. My setup includes an NVIDIA RTX 4090 and I’m running Hyprland on EndeavourOS. I can open applications and they work normally, but specific actions cause issues. For example, in Opera, when I attempt to open a file selection dialog or use drag-and-drop features, the application unexpectedly closes. This issue isn’t limited to Opera; it also affects other applications like Google Chrome and Java apps, but not my terminal windows or Firefox. Additionally, when I try to open virtual machines in VirtualBox, it triggers a stack trace. Here are the details of the stack trace.

To open again all the applications, I need reboot the system.

How to reproduce

For example, in Opera, when I attempt to open a file selection dialog or use drag-and-drop features, the application unexpectedly closes. This issue isn’t limited to Opera; it also affects other applications like Google Chrome and Java apps, but not my terminal windows or Firefox. Additionally, when I try to open virtual machines in VirtualBox, it triggers a stack trace. Here are the details of the stack trace.

Crash reports, logs, images, videos

journalctl -b -1


                                                 Stack trace of thread 1962:
                                                 #0  0x000075d60582df9e n/a (libsdbus-c++.so.1 + 0x19f9e)
                                                 #1  0x000075d60583887e n/a (libsdbus-c++.so.1 + 0x2487e)
                                                 #2  0x000075d605838d8a n/a (libsdbus-c++.so.1 + 0x24d8a)
                                                 #3  0x00005e7e2f7e6840 n/a (xdg-desktop-portal-hyprland + 0x1f840)
                                                 #4  0x00005e7e2f7e6a35 n/a (xdg-desktop-portal-hyprland + 0x1fa35)
                                                 #5  0x000075d605170b36 n/a (libc.so.6 + 0x3eb36)
                                                 #6  0x000075d605170c80 exit (libc.so.6 + 0x3ec80)
                                                 #7  0x000075d605157cd7 n/a (libc.so.6 + 0x25cd7)
                                                 #8  0x000075d605157d8a __libc_start_main (libc.so.6 + 0x25d8a)
                                                 #9  0x00005e7e2f7d8f25 n/a (xdg-desktop-portal-hyprland + 0x11f25)
                                                 ELF object binary architecture: AMD x86-64
feb 18 17:09:54 pois0n systemd[1]: systemd-coredump@3-257023-0.service: Deactivated successfully.
feb 18 17:09:54 pois0n systemd-coredump[257059]: [🡕] Process 250952 (electron) of user 1000 dumped core.

                                                 Stack trace of thread 250952:
                                                 #0  0x00007701532ab002 n/a (libc.so.6 + 0x8d002)
                                                 #1  0x000059920d4b517f uv_thread_join (electron + 0x214517f)
                                                 #2  0x000059920d65d4c8 n/a (electron + 0x22ed4c8)
                                                 #3  0x000059920d6995bf n/a (electron + 0x23295bf)
                                                 #4  0x000059920d5ad1c9 n/a (electron + 0x223d1c9)
                                                 #5  0x000059920d5ad2ae n/a (electron + 0x223d2ae)
                                                 #6  0x000059920fb8c6ee n/a (electron + 0x481c6ee)
                                                 #7  0x000059920fb8c86e n/a (electron + 0x481c86e)
                                                 #8  0x000059920fb90c35 n/a (electron + 0x4820c35)
                                                 #9  0x000059920fb90778 n/a (electron + 0x4820778)
                                                 #10 0x000059920fb8c2ba n/a (electron + 0x481c2ba)
                                                 #11 0x000059920d7f439a n/a (electron + 0x248439a)
                                                 #12 0x000059920d7f5ab0 n/a (electron + 0x2485ab0)
                                                 #13 0x000059920d7f5901 n/a (electron + 0x2485901)
                                                 #14 0x000059920d7f3080 n/a (electron + 0x2483080)
                                                 #15 0x000059920d7f35ac n/a (electron + 0x24835ac)
                                                 #16 0x000059920d4bb7a6 n/a (electron + 0x214b7a6)
                                                 #17 0x0000770153243cd0 n/a (libc.so.6 + 0x25cd0)
                                                 #18 0x0000770153243d8a __libc_start_main (libc.so.6 + 0x25d8a)
                                                 #19 0x000059920d1e2025 _start (electron + 0x1e72025)

                                                 Stack trace of thread 251021:
                                                 #0  0x00007701532a5ebe n/a (libc.so.6 + 0x87ebe)
                                                 #1  0x00007701532a8750 pthread_cond_wait (libc.so.6 + 0x8a750)
                                                 #2  0x0000599210d6690e n/a (electron + 0x59f690e)
                                                 #3  0x0000599210d8c3ff n/a (electron + 0x5a1c3ff)
                                                 #4  0x0000599210d1e03c n/a (electron + 0x59ae03c)
                                                 #5  0x0000599210d4e00e n/a (electron + 0x59de00e)
                                                 #6  0x0000599210d4eced n/a (electron + 0x59deced)
                                                 #7  0x0000599210d4e92a n/a (electron + 0x59de92a)
                                                 #8  0x0000599210d4e782 n/a (electron + 0x59de782)
                                                 #9  0x0000599210d6724c n/a (electron + 0x59f724c)
                                                 #10 0x00007701532a955a n/a (libc.so.6 + 0x8b55a)
                                                 #11 0x0000770153326a3c n/a (libc.so.6 + 0x108a3c)

                                                 Stack trace of thread 251017:
                                                 #0  0x000077015330fec7 wait4 (libc.so.6 + 0xf1ec7)
                                                 #1  0x0000599210d81d5b n/a (electron + 0x5a11d5b)
                                                 #2  0x0000599210d82814 n/a (electron + 0x5a12814)
                                                 #3  0x0000599210d6724c n/a (electron + 0x59f724c)
                                                 #4  0x00007701532a955a n/a (libc.so.6 + 0x8b55a)
                                                 #5  0x0000770153326a3c n/a (libc.so.6 + 0x108a3c)

                                                 Stack trace of thread 251018:
                                                 #0  0x0000770153326e66 epoll_wait (libc.so.6 + 0x108e66)
                                                 #1  0x0000599210eb8d5c n/a (electron + 0x5b48d5c)
                                                 #2  0x0000599210eb652c n/a (electron + 0x5b4652c)
                                                 #3  0x0000599210d8756c n/a (electron + 0x5a1756c)
                                                 #4  0x0000599210d38647 n/a (electron + 0x59c8647)
                                                 #5  0x0000599210d04385 n/a (electron + 0x5994385)
                                                 #6  0x0000599210d54547 n/a (electron + 0x59e4547)
                                                 #7  0x0000599210d430cb n/a (electron + 0x59d30cb)
                                                 #8  0x0000599210d5473c n/a (electron + 0x59e473c)
                                                 #9  0x0000599210d6724c n/a (electron + 0x59f724c)
                                                 #10 0x00007701532a955a n/a (libc.so.6 + 0x8b55a)
                                                 #11 0x0000770153326a3c n/a (libc.so.6 + 0x108a3c)

                                                 Stack trace of thread 251011:
                                                 #0  0x00007701533190bf __poll (libc.so.6 + 0xfb0bf)
                                                 #1  0x00005992102f2912 n/a (electron + 0x4f82912)
                                                 #2  0x0000599210d6724c n/a (electron + 0x59f724c)
                                                 #3  0x00007701532a955a n/a (libc.so.6 + 0x8b55a)
                                                 #4  0x0000770153326a3c n/a (libc.so.6 + 0x108a3c)

                                                 Stack trace of thread 251028:
                                                 #0  0x00007701532a5ebe n/a (libc.so.6 + 0x87ebe)
                                                 #1  0x00007701532b1470 n/a (libc.so.6 + 0x93470)
                                                 #2  0x000059920d4b5656 uv_sem_wait (electron + 0x2145656)
                                                 #3  0x000059921501e0ac n/a (electron + 0x9cae0ac)
                                                 #4  0x00007701532a955a n/a (libc.so.6 + 0x8b55a)
                                                 #5  0x0000770153326a3c n/a (libc.so.6 + 0x108a3c)

                                                 Stack trace of thread 251019:
                                                 #0  0x00007701532a5ebe n/a (libc.so.6 + 0x87ebe)
                                                 #1  0x00007701532a8750 pthread_cond_wait (libc.so.6 + 0x8a750)
                                                 #2  0x0000599210d6690e n/a (electron + 0x59f690e)
                                                 #3  0x0000599210d8c3ff n/a (electron + 0x5a1c3ff)
                                                 #4  0x0000599210d1e03c n/a (electron + 0x59ae03c)
                                                 #5  0x0000599210d4e00e n/a (electron + 0x59de00e)
                                                 #6  0x0000599210d4eced n/a (electron + 0x59deced)
                                                 #7  0x0000599210d4e8da n/a (electron + 0x59de8da)
                                                 #8  0x0000599210d4e756 n/a (electron + 0x59de756)
                                                 #9  0x0000599210d6724c n/a (electron + 0x59f724c)
                                                 #10 0x00007701532a955a n/a (libc.so.6 + 0x8b55a)
                                                 #11 0x0000770153326a3c n/a (libc.so.6 + 0x108a3c)

                                                 Stack trace of thread 251023:
                                                 #0  0x00007701532a5ebe n/a (libc.so.6 + 0x87ebe)
                                                 #1  0x00007701532a8750 pthread_cond_wait (libc.so.6 + 0x8a750)
                                                 #2  0x0000599210d6690e n/a (electron + 0x59f690e)
                                                 #3  0x0000599210d8c3ff n/a (electron + 0x5a1c3ff)
                                                 #4  0x0000599210d1e03c n/a (electron + 0x59ae03c)
                                                 #5  0x0000599210d1df93 n/a (electron + 0x59adf93)
                                                 #6  0x0000599210ce470d n/a (electron + 0x597470d)
                                                 #7  0x0000599210d38647 n/a (electron + 0x59c8647)
                                                 #8  0x0000599210d04385 n/a (electron + 0x5994385)
                                                 #9  0x0000599210d54547 n/a (electron + 0x59e4547)
                                                 #10 0x0000599210d5473c n/a (electron + 0x59e473c)
                                                 #11 0x0000599210d6724c n/a (electron + 0x59f724c)
                                                 #12 0x00007701532a955a n/a (libc.so.6 + 0x8b55a)
                                                 #13 0x0000770153326a3c n/a (libc.so.6 + 0x108a3c)

                                                 Stack trace of thread 251020:
                                                 #0  0x00007701532a5ebe n/a (libc.so.6 + 0x87ebe)
                                                 #1  0x00007701532a8750 pthread_cond_wait (libc.so.6 + 0x8a750)
                                                 #2  0x0000599210d6690e n/a (electron + 0x59f690e)
                                                 #3  0x0000599210d8c3ff n/a (electron + 0x5a1c3ff)
                                                 #4  0x0000599210d1e03c n/a (electron + 0x59ae03c)
                                                 #5  0x0000599210d4e00e n/a (electron + 0x59de00e)
                                                 #6  0x0000599210d4ea86 n/a (electron + 0x59dea86)
                                                 #7  0x0000599210d4e8da n/a (electron + 0x59de8da)
                                                 #8  0x0000599210d4e756 n/a (electron + 0x59de756)
                                                 #9  0x0000599210d6724c n/a (electron + 0x59f724c)
                                                 #10 0x00007701532a955a n/a (libc.so.6 + 0x8b55a)
                                                 #11 0x0000770153326a3c n/a (libc.so.6 + 0x108a3c)
                                                 ELF object binary architecture: AMD x86-64
feb 18 17:09:54 pois0n systemd[1]: systemd-coredump@6-257038-0.service: Deactivated successfully.
feb 18 17:09:55 pois0n systemd-coredump[257058]: [🡕] Process 254300 (code) of user 1000 dumped core.

                                                 Stack trace of thread 254300:
                                                 #0  0x000077546428c32c n/a (libc.so.6 + 0x8d32c)
                                                 #1  0x000077546423b6c8 raise (libc.so.6 + 0x3c6c8)
                                                 #2  0x00007754642234b8 abort (libc.so.6 + 0x244b8)
                                                 #3  0x0000775464224395 n/a (libc.so.6 + 0x25395)
                                                 #4  0x000077546427fc7b __libc_fatal (libc.so.6 + 0x80c7b)
                                                 #5  0x0000775464291d5d sem_post (libc.so.6 + 0x92d5d)
                                                 #6  0x00005ffe207aa4a7 uv_sem_post (code + 0x201c4a7)
                                                 #7  0x00005ffe209138e7 n/a (code + 0x21858e7)
                                                 #8  0x00005ffe20949f9e n/a (code + 0x21bbf9e)
                                                 #9  0x00005ffe20882c1d n/a (code + 0x20f4c1d)
                                                 #10 0x00005ffe20882cde n/a (code + 0x20f4cde)
                                                 #11 0x00005ffe22903fcb n/a (code + 0x4175fcb)
                                                 #12 0x00005ffe2290410e n/a (code + 0x417610e)
                                                 #13 0x00005ffe22908359 n/a (code + 0x417a359)
                                                 #14 0x00005ffe22907eb8 n/a (code + 0x4179eb8)
                                                 #15 0x00005ffe22903c0e n/a (code + 0x4175c0e)
                                                 #16 0x00005ffe20a6d244 n/a (code + 0x22df244)
                                                 #17 0x00005ffe20a6e990 n/a (code + 0x22e0990)
                                                 #18 0x00005ffe20a6e79c n/a (code + 0x22e079c)

coredumpctl

Tue 2024-01-23 08:36:29 -05   35242 1000 1000 SIGSEGV missing   /opt/visual-studio-code/code              -
Mon 2024-01-29 15:54:36 -05  248790 1000 1000 SIGSEGV missing   /opt/visual-studio-code/code              -
Tue 2024-01-30 13:37:10 -05   82918 1000 1000 SIGILL  missing   /opt/google/chrome/chrome                 -
Tue 2024-01-30 13:37:44 -05   83808 1000 1000 SIGILL  missing   /opt/google/chrome/chrome                 -
Tue 2024-01-30 13:39:11 -05   85080 1000 1000 SIGILL  missing   /opt/google/chrome/chrome                 -
Tue 2024-01-30 13:40:13 -05   87722 1000 1000 SIGILL  missing   /opt/google/chrome/chrome                 -
Tue 2024-01-30 13:41:42 -05   88873 1000 1000 SIGILL  missing   /opt/google/chrome/chrome                 -
Tue 2024-01-30 14:00:02 -05   88404 1000 1000 SIGILL  missing   /opt/google/chrome/chrome                 -
Thu 2024-02-01 22:48:42 -05    1968 1000 1000 SIGSEGV missing   /usr/lib/xdg-desktop-portal-hyprland      -
Sat 2024-02-03 12:34:03 -05    1738 1000 1000 SIGABRT missing   /usr/bin/Hyprland                         -
Sat 2024-02-03 12:34:04 -05  533313 1000 1000 SIGSEGV missing   /usr/bin/zsh                              -
Sat 2024-02-03 12:34:05 -05   16797 1000 1000 SIGSEGV missing   /opt/visual-studio-code/code              -
Sat 2024-02-03 12:34:05 -05    3092 1000 1000 SIGABRT missing   /usr/bin/Xwayland                         -
Sat 2024-02-03 12:34:06 -05   52950 1000 1000 SIGSEGV missing   /opt/visual-studio-code/code              -
Sat 2024-02-03 12:34:07 -05    3378 1000 1000 SIGTRAP missing   /usr/lib/electron27/electron              -
Tue 2024-02-06 06:25:44 -05  907724 1000 1000 SIGSEGV present   /usr/bin/krita                        35.1M
Tue 2024-02-06 06:25:45 -05    7201 1000 1000 SIGSEGV present   /opt/google/chrome/chrome             46.9M
Tue 2024-02-06 15:39:27 -05  284829 1000 1000 SIGSEGV present   /usr/bin/krita                        35.3M
Fri 2024-02-09 09:50:27 -05 1502200 1000 1000 SIGABRT present   /usr/bin/zsh                           1.1M
Fri 2024-02-09 09:54:21 -05 1503236 1000 1000 SIGABRT present   /usr/bin/zsh                           1.1M
Fri 2024-02-09 22:08:44 -05  241474 1000 1000 SIGSEGV present   /opt/google/chrome/chrome             29.2M
Fri 2024-02-09 22:10:24 -05 1812912 1000 1000 SIGSEGV present   /opt/google/chrome/chrome             12.5M
Fri 2024-02-09 23:17:21 -05 1852389 1000 1000 SIGABRT present   /usr/bin/netcat                       23.4K
Sat 2024-02-10 00:25:04 -05 1454358 1000 1000 SIGSEGV truncated /usr/bin/kitty                         2.4M
Sat 2024-02-10 03:39:11 -05 1849406 1000 1000 SIGABRT present   /usr/bin/zsh                           1.0M
Sat 2024-02-10 14:29:18 -05 2218103 1000 1000 SIGSEGV present   /usr/lib/firefox/firefox               1.3G
Tue 2024-02-13 22:06:40 -05  655453 1000 1000 SIGSEGV present   /usr/bin/krita                        35.3M
Wed 2024-02-14 15:33:06 -05  200686 1000 1000 SIGSEGV present   /opt/visual-studio-code/code          17.1M
Sun 2024-02-18 17:09:54 -05    1962 1000 1000 SIGSEGV present   /usr/lib/xdg-desktop-portal-hyprland 191.7K
Sun 2024-02-18 17:09:55 -05  250952 1000 1000 SIGSEGV present   /usr/lib/electron27/electron           4.1M
Sun 2024-02-18 17:09:55 -05  254300 1000 1000 SIGABRT present   /opt/visual-studio-code/code           2.1M
Sun 2024-02-18 17:09:55 -05  251154 1000 1000 SIGABRT present   /opt/visual-studio-code/code           2.1M
Sun 2024-02-18 17:09:55 -05  253214 1000 1000 SIGABRT present   /usr/lib/virtualbox/VirtualBox         1.7M
Sun 2024-02-18 17:09:55 -05  197973 1000 1000 SIGABRT present   /usr/lib/virtualbox/VirtualBox         1.7M
Sun 2024-02-18 17:09:55 -05  256091 1000 1000 SIGABRT present   /usr/lib/virtualbox/VirtualBox         1.7M
Sun 2024-02-18 17:09:56 -05  256513 1000 1000 SIGSEGV present   /usr/lib/slack/slack                   3.6M

coredumpctl info 253214


           UID: 1000 (pois0n)
           GID: 1000 (pois0n)
        Signal: 6 (ABRT)
     Timestamp: Sun 2024-02-18 17:09:54 -05 (1h 29min ago)
  Command Line: /usr/lib/virtualbox/VirtualBox
    Executable: /usr/lib/virtualbox/VirtualBox
 Control Group: /user.slice/user-1000.slice/session-2.scope
          Unit: session-2.scope
         Slice: user-1000.slice
       Session: 2
     Owner UID: 1000 (pois0n)
       Boot ID: 60de7b7e910e45dd9e236d2cb88f59c4
    Machine ID: 1a3542789b7249db9d2f9774b6a62a4b
      Hostname: pois0n
       Storage: /var/lib/systemd/coredump/core.VirtualBox.1000.60de7b7e910e45dd9e236d2cb88f59c4.253214.1708294194000000.zs>
  Size on Disk: 1.7M
       Message: Process 253214 (VirtualBox) of user 1000 dumped core.

                Stack trace of thread 253214:
                #0  0x00007d7033eab32c n/a (libc.so.6 + 0x8d32c)
                #1  0x00007d7033e5a6c8 raise (libc.so.6 + 0x3c6c8)
                #2  0x00007d7033e424b8 abort (libc.so.6 + 0x244b8)
                #3  0x00007d70354a00c2 _ZNK14QMessageLogger5fatalEPKcz (libQt5Core.so.5 + 0xa00c2)
                #4  0x00007d7034d3f402 _ZN22QGuiApplicationPrivate25createPlatformIntegrationEv (libQt5Gui.so.5 + 0x13f402)
                #5  0x00007d7034d3fa99 _ZN22QGuiApplicationPrivate21createEventDispatcherEv (libQt5Gui.so.5 + 0x13fa99)
                #6  0x00007d703569b995 _ZN23QCoreApplicationPrivate4initEv (libQt5Core.so.5 + 0x29b995)
                #7  0x00007d7034d3fb46 _ZN22QGuiApplicationPrivate4initEv (libQt5Gui.so.5 + 0x13fb46)
                #8  0x00007d7034575b9e _ZN19QApplicationPrivate4initEv (libQt5Widgets.so.5 + 0x175b9e)
                #9  0x0000602fe92301c3 n/a (VirtualBox + 0xac1c3)
                #10 0x0000602fe922b9f7 n/a (VirtualBox + 0xa79f7)
                #11 0x00007d7033e43cd0 n/a (libc.so.6 + 0x25cd0)
                #12 0x00007d7033e43d8a __libc_start_main (libc.so.6 + 0x25d8a)
                #13 0x0000602fe922f735 n/a (VirtualBox + 0xab735)

                Stack trace of thread 253231:
                #0  0x00007d7033f190bf __poll (libc.so.6 + 0xfb0bf)
                #1  0x00007d703316c2f6 n/a (libglib-2.0.so.0 + 0xb82f6)
                #2  0x00007d703310c162 g_main_context_iteration (libglib-2.0.so.0 + 0x58162)
                #3  0x00007d70356ead0c _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE>
                #4  0x00007d703569ac04 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x29ac04)
                #5  0x00007d70354f7576 _ZN7QThread4execEv (libQt5Core.so.5 + 0xf7576)
                #6  0x00007d7035f7aa9a n/a (libQt5DBus.so.5 + 0x18a9a)
                #7  0x00007d70354f379a n/a (libQt5Core.so.5 + 0xf379a)
                #8  0x00007d7033ea955a n/a (libc.so.6 + 0x8b55a)
                #9  0x00007d7033f26a3c n/a (libc.so.6 + 0x108a3c)
                ELF object binary architecture: AMD x86-64```
vaxerski commented 6 months ago

no clue, looks like an issue on your end tho

MortalP0ison commented 6 months ago

Like which one? @vaxerski

vaxerski commented 6 months ago

dont ping me for no reason pls

looks like wayland itself is having a hard time. But I've never seen this so I can't help much.

MortalP0ison commented 6 months ago

Sorry for pinging you. Do you think it is a wayland problem? Should I post the problem in wayland communities?

vaxerski commented 6 months ago

I have no clue what kind of problem this is, honestly. Looks like wayland dying, but it's just certain apps. You may ask around wayland devs, but I have no clue.

MortalP0ison commented 6 months ago

I've been researching, and it seems to be a Wayland issue. Although I'm not as certain as you are, could you recommend another display server protocol besides Wayland? I'd like to test and install it to see if it resolves the problem. Afterward, I can report back whether that was the solution or not.

vaxerski commented 6 months ago

wayland is not a display server, it's just a protocol.

If you want a different wayland implementation, KDE, Gnome, Sway are three.

MortalP0ison commented 6 months ago

True, my mistake. I will change to Sway. I will reply here ASAP if it's solving the error or not. Don't close until I will have an answer, please. Thank you.

MortalP0ison commented 6 months ago

Hey, I just tried Plasma and it seems everything is working fine (I mean, I can't trigger the windows closing when I start two machines in VirtualBox at the same time, for example). So, I don't know what is happening. Do you think it can affect the rice that I'm using?

https://github.com/prasanthrangan/hyprdots

I don't think so, but I would like your opinion, please. Thank you.

formbook commented 6 months ago

EXACT same issue for me, been using hyprland with no issues for months, this only started happening after the most recent update

ill be on application and suddenly it closes, all other open applications except terminal are also closed and cannot be reopened without a reboot

MortalP0ison commented 6 months ago

EXACT same issue for me, been using hyprland with no issues for months, this only started happening after the most recent update

ill be on application and suddenly it closes, all other open applications except terminal are also closed and cannot be reopened without a reboot

What are your system specs?

vaxerski commented 6 months ago

if possible, provide an ASan trace: https://wiki.hyprland.org/Crashes-and-Bugs/#building-the-wayland-stack-with-asan

MortalP0ison commented 6 months ago

asan.log..zip

I think the important one was asan.log.3296. I hope I did correctly. I just open Netbeans and other java applications and it just quit me from the Hyprland to the TTY.

Unfortunately, I couldn't open virtutalbox (this is a trigger that I know) to log with ASan (because as is in the documentation, it is not possible to open some apps in that 'mode').

Thank you.

vaxerski commented 6 months ago

hell yea thats a proper log, thanks. Will fix in a sec.

vaxerski commented 6 months ago

aw fuck yea I see it, it's a typical oopsie from me.

MortalP0ison commented 6 months ago

Hahah I'm just wondering why it happens to some of us and not to everyone

vaxerski commented 6 months ago

fixed the UAF above. Check with that one. If you still have issues, try ASan again, this might be multiple bugs.

Hahah I'm just wondering why it happens to some of us and not to everyone

It's a memory bug and when you have memory bugs vastly different things can happen depending on the hardware.

MortalP0ison commented 6 months ago

I have attempted to open NetBeans and other applications that might trigger the error, but unsurprisingly, I can't open them (obviously, with ASan). However, the problem still occurs: If I start a machine in VirtualBox and another one at the same time, it closes all the applications except Firefox and the terminal.

Below is the core dump. However, how can we attempt to trigger the error since NetBeans will not open for ASan?

Tue 2024-02-20 13:45:06 -05   18093 1000 1000 SIGABRT none         /usr/lib/drkonqi                          -
Tue 2024-02-20 13:45:07 -05   17963 1000 1000 SIGABRT none         /usr/bin/krita                            -
Tue 2024-02-20 13:45:49 -05   19109 1000 1000 SIGABRT none         /usr/lib/virtualbox/VirtualBox            -
coredumpctl info 19109
           PID: 19109 (VirtualBox)
           UID: 1000 (pois0n)
           GID: 1000 (pois0n)
        Signal: 6 (ABRT)
     Timestamp: Tue 2024-02-20 13:45:49 -05 (17min ago)
  Command Line: /usr/lib/virtualbox/VirtualBox
    Executable: /usr/lib/virtualbox/VirtualBox
 Control Group: /user.slice/user-1000.slice/session-2.scope
          Unit: session-2.scope
         Slice: user-1000.slice
       Session: 2
     Owner UID: 1000 (pois0n)
       Boot ID: b1555b3b29404449ab92cb5f83b611f0
    Machine ID: 1a3542789b7249db9d2f9774b6a62a4b
      Hostname: pois0n
       Storage: none
       Message: Process 19109 (VirtualBox) of user 1000 terminated abnormally without generating a coredump.
❯ coredumpctl debug 19109
           PID: 19109 (VirtualBox)
           UID: 1000 (pois0n)
           GID: 1000 (pois0n)
        Signal: 6 (ABRT)
     Timestamp: Tue 2024-02-20 13:45:49 -05 (17min ago)
  Command Line: /usr/lib/virtualbox/VirtualBox
    Executable: /usr/lib/virtualbox/VirtualBox
 Control Group: /user.slice/user-1000.slice/session-2.scope
          Unit: session-2.scope
         Slice: user-1000.slice
       Session: 2
     Owner UID: 1000 (pois0n)
       Boot ID: b1555b3b29404449ab92cb5f83b611f0
    Machine ID: 1a3542789b7249db9d2f9774b6a62a4b
      Hostname: pois0n
       Storage: none
       Message: Process 19109 (VirtualBox) of user 1000 terminated abnormally without generating a coredump.

Coredump entry has no core attached (neither internally in the journal nor externally on disk).
vaxerski commented 6 months ago

yeah that's the annoying part of ASan. I've never tried this, but what if you recompile wayland and install it while hyprland is running on ASan? It should allow newly spawned apps to use ASan-free libwayland while hyprland stays on asan'd

MortalP0ison commented 6 months ago

If I understand that, I can do that. However, I'm not sure if I'm following the procedure correctly. If I run Hyprland in ASan, am I correct in understanding that I should not compile Wayland while Hyprland is running in ASan? But once I am in Hyprland, running in ASan, should I then open a terminal within Hyprland to compile Wayland?

vaxerski commented 6 months ago

yeah launch hyprland with asan and then inside hyprland compile no-asan wayland and install it

MortalP0ison commented 6 months ago

I've just started Hyprland with ASan enabled, without involving Wayland directly. After Hyprland launched, I opened a terminal and executed the following commands:

meson ./build --prefix=/usr --buildtype=release
sudo ninja -C build install

I believe this setup configures Wayland without ASan, right? However, even after these steps, I'm unable to open VirtualBox or any applications that could trigger the error. Any ideas?

Btw, do you think you can catch the error with the VBox logs?

vaxerski commented 6 months ago

that was a random shot in the dark, if it didnt work that sucks one thing I will note is clean the build dir first (rm -rf ./build) as some flags might persist

Btw, do you think you can catch the error with the VBox logs?

Nope, I am not a vbox dev

MortalP0ison commented 6 months ago

I did the rm -rf ./build but it says that does not exist. For that reason I just run the meson and after ninja. I was saying to you about VBox logs because it can show why is crashing, but I'm not sure about it. The problem is that we can't trigger the problem if we will not be able to open at least VBox or Opera in Hyprland + Walynd - ASan mode.

Is there other debugger like ASan? We can try prob other way...

vaxerski commented 6 months ago

Not that I am aware of. Valgrind is for memory leaks mostly + it's so slow it wont run hl. You can try finding one, though...

MortalP0ison commented 6 months ago

Do you think we can run VirtualBox in headless mode? It's an idea that came to my mind just now...

vaxerski commented 6 months ago

no clue

MortalP0ison commented 6 months ago

I'm trying to run with valgrind, but it returns an error about ASan. I have good specs, so, I don't know if you said that valgrind won't run because valgrind itself or because resources? 🤔. If so, can you explain me and I'll run with Valgrind? It returns an error with LD_PRELOAD

vaxerski commented 6 months ago

valgrind runs only without asan

MortalP0ison commented 6 months ago

So, I need uninstall ASan? When the hyprland is compiling, I see some ASan parameters. How can I just run or compile without ASan?

vaxerski commented 6 months ago

The instructions I sent have "undo" instructions at the bottom. You need to clean recompile hyprland and wayland without ASan flags.

MortalP0ison commented 6 months ago

Hey, after several things, I was be able to run valgrind with Hyprland. Obviously, it was too slow but I think it can be good to find the error. I would like also to create a guide to run valgrind + hyprland :).

I'm attaching the error log:

valgrind.zip

I have triggered the error with VirtualBox. Hope it helps. Let me know, please. Thank you!

Edit: I'm trying to get with other ways, and right now with dmesg I just get this when I start two machines at the same time in VirtualBox for example:

[   92.649143] hid-generic 0003:2516:01C1.000F: hiddev106,hidraw14: USB HID v1.01 Device [Coolermaster HAF700] on usb-0000:00:14.0-12.4.2/input0
[   92.702497] [drm:drm_new_set_master] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[   92.702555] [drm:drm_new_set_master] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[   92.702671] [drm:drm_new_set_master] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[   92.702732] [drm:drm_new_set_master] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[   92.713940] [drm:drm_new_set_master] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[   92.713996] [drm:drm_new_set_master] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[   92.722372] [drm:drm_new_set_master] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[   92.722423] [drm:drm_new_set_master] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[   92.850865] hid-sensor-hub 0003:2516:01C1.000F: hiddev106,hidraw14: USB HID v1.01 Device [Coolermaster HAF700] on usb-0000:00:14.0-12.4.2/input0
[   92.870708] [drm:drm_new_set_master] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[   92.870772] [drm:drm_new_set_master] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[   92.941157] [drm:drm_new_set_master] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[   92.941218] [drm:drm_new_set_master] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[   98.371333] systemd-journald[852]: /var/log/journal/1a3542789b7249db9d2f9774b6a62a4b/user-1000.journal: Journal file uses a different sequence number ID, rotating.
[ 1052.960717] SUPR0GipMap: fGetGipCpu=0x1b
[ 1053.782328] ------------[ cut here ]------------
[ 1053.782331] WARNING: CPU: 14 PID: 13887 at /var/lib/dkms/vboxhost/7.0.14_OSE/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:564 rtR0MemObjLinuxApplyPageRange+0x6b/0xa0 [vboxdrv]
[ 1053.782354] Modules linked in: snd_seq_dummy snd_hrtimer snd_seq hid_sensor_hub snd_usb_audio btusb btrtl btintel btbcm snd_usbmidi_lib btmtk snd_ump snd_rawmidi snd_seq_device bluetooth ecdh_generic mc mousedev joydev xt_conntrack xt_MASQUERADE nf_conntrack_netlink xt_addrtype nft_compat br_netfilter bridge stp llc overlay nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables libcrc32c vfat fat intel_rapl_msr intel_rapl_common intel_uncore_frequency intel_uncore_frequency_common iwlmvm x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel snd_sof_pci_intel_tgl snd_sof_intel_hda_common soundwire_intel snd_sof_intel_hda_mlink soundwire_cadence snd_sof_intel_hda snd_sof_pci snd_sof_xtensa_dsp snd_sof snd_sof_utils snd_soc_hdac_hda kvm mac80211 snd_hda_ext_core snd_soc_acpi_intel_match snd_soc_acpi libarc4 soundwire_generic_allocation irqbypass soundwire_bus rapl snd_hda_codec_realtek
[ 1053.782373]  intel_cstate snd_soc_core snd_hda_codec_generic snd_hda_codec_hdmi ledtrig_audio snd_compress ac97_bus snd_pcm_dmaengine snd_hda_intel r8169 snd_intel_dspcfg snd_intel_sdw_acpi snd_hda_codec iwlwifi snd_hda_core realtek mdio_devres snd_hwdep snd_pcm iTCO_wdt snd_timer intel_pmc_bxt iTCO_vendor_support mei_me libphy snd cfg80211 mei i2c_i801 soundcore spi_nor mtd intel_uncore i2c_smbus spi_intel_pci spi_intel intel_lpss_pci intel_lpss rfkill idma64 acpi_tad acpi_pad intel_hid wmi_bmof gigabyte_wmi mac_hid sparse_keymap pcspkr fuse loop nfnetlink ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 dm_crypt cbc encrypted_keys trusted asn1_encoder tee vboxnetflt(OE) vboxnetadp(OE) vboxdrv(OE) pkcs8_key_parser usbhid nvidia_uvm(POE) nvidia_drm(POE) nvidia_modeset(POE) nvidia(POE) crct10dif_pclmul crc32_pclmul crc32c_intel polyval_clmulni polyval_generic gf128mul ghash_clmulni_intel sha512_ssse3 sha256_ssse3 sha1_ssse3 aesni_intel nvme crypto_simd nvme_core xhci_pci cryptd nvme_auth xhci_pci_renesas video
[ 1053.782395]  wmi dm_mod i2c_dev crypto_user
[ 1053.782397] CPU: 14 PID: 13887 Comm: EMT-0 Tainted: P           OE      6.7.5-arch1-1 #1 32ac08bf335c0e36bba629af337d0f9b5fa2013e
[ 1053.782403] Hardware name: Gigabyte Technology Co., Ltd. Z790 AORUS ELITE AX/Z790 AORUS ELITE AX, BIOS FHc 11/09/2023
[ 1053.782404] RIP: 0010:rtR0MemObjLinuxApplyPageRange+0x6b/0xa0 [vboxdrv]
[ 1053.782416] Code: 83 ff 40 74 25 48 89 c7 48 21 f7 48 85 d2 75 1c 48 89 f8 0f 1f 00 48 89 c6 48 89 cf e8 0e b9 6d df 90 31 c0 5d c3 cc cc cc cc <0f> 0b f6 c2 01 75 15 48 f7 d0 48 89 c7 48 21 f7 48 81 e7 00 f0 ff
[ 1053.782416] RSP: 0018:ffffbefd09ccbd10 EFLAGS: 00010246
[ 1053.782417] RAX: 00000002cc740000 RBX: ffff9f766d94bf58 RCX: ffff9f766d94bf50
[ 1053.782418] RDX: 0000000000000161 RSI: 000fffffffffffff RDI: 0000000000000040
[ 1053.782418] RBP: ffffbefd09ccbd10 R08: ffffbefd211a1000 R09: ffff9f77a623abe8
[ 1053.782419] R10: ffffbefd211a1000 R11: 0000000000000000 R12: 0000000000000001
[ 1053.782419] R13: ffffffffc43b16b0 R14: ffffbefd20fea000 R15: ffffbefd09ccbdd8
[ 1053.782420] FS:  000078be70dff6c0(0000) GS:ffff9f947f980000(0000) knlGS:0000000000000000
[ 1053.782420] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1053.782421] CR2: 00005cc7a90a8680 CR3: 000000036623a000 CR4: 0000000000f50ef0
[ 1053.782421] PKRU: 55555554
[ 1053.782422] Call Trace:
[ 1053.782423]  <TASK>
[ 1053.782423]  ? rtR0MemObjLinuxApplyPageRange+0x6b/0xa0 [vboxdrv 0cc3312511c2e3db4c3ebb44493344b007f565b3]
[ 1053.782435]  ? __warn+0x81/0x130
[ 1053.782438]  ? rtR0MemObjLinuxApplyPageRange+0x6b/0xa0 [vboxdrv 0cc3312511c2e3db4c3ebb44493344b007f565b3]
[ 1053.782449]  ? report_bug+0x171/0x1a0
[ 1053.782452]  ? handle_bug+0x3c/0x80
[ 1053.782454]  ? exc_invalid_op+0x17/0x70
[ 1053.782455]  ? asm_exc_invalid_op+0x1a/0x20
[ 1053.782457]  ? __pfx_rtR0MemObjLinuxApplyPageRange+0x10/0x10 [vboxdrv 0cc3312511c2e3db4c3ebb44493344b007f565b3]
[ 1053.782468]  ? rtR0MemObjLinuxApplyPageRange+0x6b/0xa0 [vboxdrv 0cc3312511c2e3db4c3ebb44493344b007f565b3]
[ 1053.782478]  __apply_to_page_range+0x3cf/0x900
[ 1053.782481]  rtR0MemObjNativeProtect+0x80/0xc0 [vboxdrv 0cc3312511c2e3db4c3ebb44493344b007f565b3]
[ 1053.782491]  VBoxHost_RTR0MemObjProtect+0x8b/0xc0 [vboxdrv 0cc3312511c2e3db4c3ebb44493344b007f565b3]
[ 1053.782504]  supdrvIOCtl+0x2cad/0x31b0 [vboxdrv 0cc3312511c2e3db4c3ebb44493344b007f565b3]
[ 1053.782515]  VBoxDrvLinuxIOCtl_7_0_14+0x169/0x260 [vboxdrv 0cc3312511c2e3db4c3ebb44493344b007f565b3]
[ 1053.782524]  __x64_sys_ioctl+0x94/0xd0
[ 1053.782526]  do_syscall_64+0x61/0xe0
[ 1053.782528]  ? exc_page_fault+0x7f/0x180
[ 1053.782529]  entry_SYSCALL_64_after_hwframe+0x6e/0x76
[ 1053.782530] RIP: 0033:0x78be851814ff
[ 1053.782553] Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 18 48 8b 44 24 18 64 48 2b 04 25 28 00 00
[ 1053.782553] RSP: 002b:000078be70dfdd20 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[ 1053.782554] RAX: ffffffffffffffda RBX: 0000000000000030 RCX: 000078be851814ff
[ 1053.782555] RDX: 000078bdcc2a1610 RSI: 0000000000005684 RDI: 0000000000000007
[ 1053.782555] RBP: 000078be70dfdd80 R08: 0000000000000000 R09: 000078be70dfdc00
[ 1053.782555] R10: 000078bdcc2a1610 R11: 0000000000000246 R12: 000078be6a938727
[ 1053.782556] R13: 0000000000000000 R14: 00005b436f302a60 R15: 0000000000000000
[ 1053.782557]  </TASK>
[ 1053.782557] ---[ end trace 0000000000000000 ]---
[ 1053.789897] vboxdrv: 00000000d6b2aa83 VMMR0.r0
[ 1054.213306] vboxdrv: 00000000ac8568cc VBoxDDR0.r0
vaxerski commented 6 months ago

I don't see any errors with hyprland in the valgrind log, though worth noting it's so huge I might've missed something.

vaxerski commented 6 months ago

Next time you are using vg to find memory issues, use

valgrind --leak-check=full --track-origins=yes --show-leak-kinds=none --error-limit=no --trace-children=no --log-file="/tmp/vg.log" ./build/Hyprland

and a debug build of hyprland. It will output the log to /tmp/vg.log and only print memory faults and not stupid "possibly leaked"

MortalP0ison commented 6 months ago

Nice! Now I've used that and this is the log:

vg.log

What I tried to do: 1) Open two machines of virtualbox (Crash) 2) Open Opera (It wouldn't open because the step 1). After, reboot.

vaxerski commented 6 months ago

odd that there is no crash in the vg log... 🤔

although this:

Syscall param writev(vector[0]) points to uninitialised byte(s)

sounds like UB. I'll ask on irc as its in wlroots

rest looks normal

MortalP0ison commented 6 months ago

Sure, if there's anything else I can try with Valgrind, just let me know. Something strange is happening: when the applications are closed, you can run commands like opera, virtualbox, or similar in the terminal, but it seems like they do nothing at all—no output, no action

vaxerski commented 6 months ago

I've asked on wlroots IRC but not much constructive has come out of it.

It might be the nvidia 0 reallocs - but I'd put that more on the side of "nvidia being nvidia"

the last error in xcb was brushed off.

So, from me, there isn't much more to be done here. I can't help here, nobody seems to be able to reproduce it, and no faults on hyprland's side seem to be happening.

IMO the most suspicious thing is the writev call. You can try sway-git (maybe its a recent wlroots regression?) but honestly I am lost

MortalP0ison commented 6 months ago

I really love Hyprland. If you want, I can try to trigger the other error I'm aware of, which occurs with a file upload selector in the Opera browser. However, switching to Sway makes me somewhat sad. Interestingly, everything else seems to be working fine. Let me install VMware and see if that makes a difference. Just a question: Do you think the problem could be with VirtualBox itself, or do you not think so?

MortalP0ison commented 6 months ago

Hey, I tried with VMware, and everything is working fine (two or multiple machines at the same time). I will use VMware from now on. Thank you for the help. I think it's not necessary to say, but it is important to mention: you are doing an amazing job!

vaxerski commented 6 months ago

I have no clue what's going on here, genuinely.

MortalP0ison commented 6 months ago

No worries. We will see what's going on, but for now, everyone who has the same problem (not many people) can just use VMware; everything is fine. Could you please close this ticket? Thank you for the help!

vaxerski commented 6 months ago

I'll leave it open as the issue isn't fixed technically, I'll just rename it more specific

MortalP0ison commented 6 months ago

Hey Vaxry, I've asked yesterday also in the VBox forums and it seems a problems with VirtualBox.

https://forums.virtualbox.org/viewtopic.php?t=111129&sid=6d2af2d310fdbf5b02fb92045369fa77

Also, I've been using the file picker in Opera and other features that previously caused the app to close, and it no longer does so. This improvement is likely due to the fix for the Use-After-Free (UAF). It seems you've already addressed it, which is great! :100:

vaxerski commented 6 months ago

oh, that sounds great. I'll close then. Cheers.