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.99k stars 852 forks source link

hyprland crash on vnc connection #6976

Closed pbosab closed 2 months ago

pbosab commented 2 months ago

Regression?

No

System Info and Version

System/Version info ```sh Version: 672bf1f8670b200da57e2f6de4e9ed7efd8c98fc Tag: v0.41.2-63-g672bf1f8 System info: System name: Linux Node name: blackdot Release: 6.10.0-zen1-1-zen Version: #1 ZEN SMP PREEMPT_DYNAMIC Thu, 18 Jul 2024 20:26:11 +0000 GPU: 02:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP106 [GeForce GTX 1060 6GB] [10de:1c03] (rev a1) (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://gitlab.archlinux.org/groups/archlinux/-/issues" PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/" LOGO=archlinux-logo ```

Description

❯ The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported maximum keycode 708, clipping.
>                   X11 cannot support keycodes above 255.
> Warning:          Could not resolve keysym XF86KbdInputAssistPrevgrou
> Warning:          Could not resolve keysym XF86KbdInputAssistNextgrou
Errors from xkbcomp are not fatal to the X server
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported maximum keycode 708, clipping.
>                   X11 cannot support keycodes above 255.
> Warning:          Could not resolve keysym XF86KbdInputAssistPrevgrou
> Warning:          Could not resolve keysym XF86KbdInputAssistNextgrou
Errors from xkbcomp are not fatal to the X server
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported maximum keycode 708, clipping.
>                   X11 cannot support keycodes above 255.
> Warning:          Could not resolve keysym XF86KbdInputAssistPrevgrou
> Warning:          Could not resolve keysym XF86KbdInputAssistNextgrou
Errors from xkbcomp are not fatal to the X server
Hyprland has crashed :( Consult the crash report at /home/pbo/.cache/hyprland/hyprlandCrashReport1482.txt for more information.
ERROR: ../wayvnc/src/main.c: 497: Compositor has gone away. Exiting...
wl_display_dispatch: Broken pipe
Gdk-Message: 14:08:23.475: Error reading events from display: Broken pipe
wl_display_dispatch: Broken pipe
(EE) failed to read Wayland events: Broken pipe
Gdk-Message: 14:08:23.475: Error reading events from display: Broken pipe

How to reproduce

just connecting make it crash, worked before AQ.

Crash reports, logs, images, videos

hyprlandCrashReport1482.txt:

--------------------------------------------
   Hyprland Crash Report
--------------------------------------------
Who tried dividing by zero?!

Hyprland received signal 11(SEGV)
Version: 672bf1f8670b200da57e2f6de4e9ed7efd8c98fc
Tag: v0.41.2-63-g672bf1f8

System info:
        System name: Linux
        Node name: blackdot
        Release: 6.10.0-zen1-1-zen
        Version: #1 ZEN SMP PREEMPT_DYNAMIC Thu, 18 Jul 2024 20:26:11 +0000

GPU:
        02:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP106 [GeForce GTX 1060 6GB] [10de:1c03] (rev a1) (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://gitlab.archlinux.org/groups/archlinux/-/issues"
        PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
        LOGO=archlinux-logo
Backtrace:
        # | Hyprland(_Z12getBacktracev+0x46) [0x6304e397b686]
                getBacktrace()
                ??:?
        #1 | Hyprland(_ZN13CrashReporter18createAndSaveCrashEi+0xa7f) [0x6304e390694f]
                CrashReporter::createAndSaveCrash(int)
                ??:?
        #2 | Hyprland(_Z25handleUnrecoverableSignali+0x5c) [0x6304e389cd3c]
                handleUnrecoverableSignal(int)
                ??:?
        #3 | /usr/lib/libc.so.6(+0x3cae0) [0x7557a3250ae0]
                ??
                ??:0
        #4 | Hyprland(_ZN15CPointerManager12warpAbsoluteEN9Hyprutils4Math8Vector2DENS0_6Memory14CSharedPointerI4IHIDEE+0xed) [0x6304e39d1c1d]
                CPointerManager::warpAbsolute(Hyprutils::Math::Vector2D, Hyprutils::Memory::CSharedPointer<IHID>)
                ??:?
        #5 | Hyprland(_ZN13CInputManager11onMouseWarpEN8IPointer20SMotionAbsoluteEventE+0x5d) [0x6304e39f027d]
                CInputManager::onMouseWarp(IPointer::SMotionAbsoluteEvent)
                ??:?
        #6 | Hyprland(+0x2b5bf6) [0x6304e39d4bf6]
                CPointerManager::damageCursor(Hyprutils::Memory::CSharedPointer<CMonitor>)
                ??:?
        #7 | /usr/lib/libhyprutils.so.1(_ZN9Hyprutils6Signal15CSignalListener4emitESt3any+0x5f) [0x7557a3b629bf]
                ??
                ??:0
        #8 | /usr/lib/libhyprutils.so.1(_ZN9Hyprutils6Signal7CSignal4emitESt3any+0x1df) [0x7557a3b62d2f]
                ??
                ??:0
        #9 | Hyprland(+0x241b4c) [0x6304e3960b4c]
                CVirtualPointer::aq()
                ??:?
        #1 | /usr/lib/libhyprutils.so.1(_ZN9Hyprutils6Signal15CSignalListener4emitESt3any+0x5f) [0x7557a3b629bf]
                ??
                ??:0
        #11 | /usr/lib/libhyprutils.so.1(_ZN9Hyprutils6Signal7CSignal4emitESt3any+0x1df) [0x7557a3b62d2f]
                ??
                ??:0
        #12 | Hyprland(+0x39df9b) [0x6304e3abcf9b]
                CVirtualKeyboardProtocol::bindManager(wl_client*, void*, unsigned int, unsigned int)
                ??:?
        #13 | Hyprland(+0x15bc82) [0x6304e387ac82]
                CZwpInputMethodManagerV2::setDestroy(std::function<void (CZwpInputMethodManagerV2*)>)
                ??:?
        #14 | /usr/lib/libffi.so.8(+0x7596) [0x7557a3055596]
                ??
                ??:0
        #15 | /usr/lib/libffi.so.8(+0x400e) [0x7557a305200e]
                ??
                ??:0
        #16 | /usr/lib/libffi.so.8(ffi_call+0x123) [0x7557a3054bd3]
                ??
                ??:0
        #17 | /usr/lib/libwayland-server.so.0(+0x6e45) [0x7557a3d30e45]
                ??
                ??:0
        #18 | /usr/lib/libwayland-server.so.0(+0xbc42) [0x7557a3d35c42]
                ??
                ??:0
        #19 | /usr/lib/libwayland-server.so.0(wl_event_loop_dispatch+0x1f2) [0x7557a3d340a2]
                ??
                ??:0
        #2 | /usr/lib/libwayland-server.so.0(wl_display_run+0x2f) [0x7557a3d3610f]
                ??
                ??:0
        #21 | Hyprland(_ZN17CEventLoopManager9enterLoopEv+0x25f) [0x6304e39ec6ff]
                CEventLoopManager::enterLoop()
                ??:?
        #22 | Hyprland(main+0xc2c) [0x6304e38398dc]
                main
                ??:?
        #23 | /usr/lib/libc.so.6(+0x25c88) [0x7557a3239c88]
                ??
                ??:0
        #24 | /usr/lib/libc.so.6(__libc_start_main+0x8c) [0x7557a3239d4c]
                ??
                ??:0
        #25 | Hyprland(_start+0x25) [0x6304e3866235]
                _start
                ??:?

Log tail:
[LOG] [WLSHM] Resizing a SHM pool from 145152 to 292608
[LOG] [WLSHM] Resizing a SHM pool from 292608 to 587520
[LOG] [WLSeat] New seat resource bound at 6304ff329070
[LOG] [WLCompositor] New wl_surface with id 20 at 6304ff1ff160
[LOG] [PrimarySelection] New primary selection data device bound at 6304ff223e90
[LOG] [WLDataDevice] New data device bound at 6304ff2f2790
[LOG] [WLCompositor] New wl_surface with id 23 at 6304ff321260
[LOG] [XDGShell] New xdg_wm_base at 6304ff329c20
[LOG] [WLDataDevice] New datamgr resource bound at 6304feff3b80
[LOG] [PrimarySelection] New primary_seletion_manager at 6304ff332c70
[LOG] [WLSHM] Resizing a SHM pool from 2304 to 6912
[LOG] [WLSHM] Resizing a SHM pool from 6912 to 16128
[LOG] [WLSHM] Resizing a SHM pool from 16128 to 34560
[LOG] [WLSHM] Resizing a SHM pool from 34560 to 71424
[LOG] [WLSHM] Resizing a SHM pool from 71424 to 145152
[LOG] [WLSHM] Resizing a SHM pool from 145152 to 292608
[LOG] [WLSHM] Resizing a SHM pool from 292608 to 587520
[LOG] [WLSeat] New seat resource bound at 6304ff37f020
[LOG] [WLCompositor] New wl_surface with id 20 at 6304ff326fe0
[LOG] [PrimarySelection] New primary selection data device bound at 6304ff2e9ec0
[LOG] [WLDataDevice] New data device bound at 6304ff2fb350
[LOG] [WLCompositor] New wl_surface with id 23 at 6304ff37fb30
[LOG] [XDGShell] New xdg_wm_base at 6304ff2f25b0
[LOG] [DRMLease] Sending DRMFD 101 to new lease device
[LOG] [WLSeat] New seat resource bound at 6304ff38c9b0
[LOG] [WLCompositor] New wl_surface with id 21 at 6304ff38cd80
[LOG] XWayland is ready
[LOG] xfixes version: 6.0
[LOG] xres version: 1.2
[LOG] [seatmgr] Rejecting a setCursor because the client ain't in focus
[LOG] ToplevelExportManager bound successfully!
[LOG] GlobalShortcutsManager bound successfully!
[LOG] ScreencopyProtocolManager bound successfully!
[LOG] [XDGShell] New xdg_wm_base at 6304ff24d490
[LOG] [XDGShell] New xdg_wm_base at 6304ff3a9640
[LOG] Socket2 accepted a new client at FD 103
[LOG] [WLCompositor] New wl_surface with id 17 at 6304ff3a8490
[LOG] [WLCompositor] New wl_region with id 18 at 6304ff3ad4e0
[LOG] CWLSurface 6304ff3aafe0 called init()
[LOG] LayerSurface 6304ff3ad770 (namespace hyprpaper layer 0) created on monitor HDMI-A-2
[LOG] [LayerShell] New wlr_layer_surface 6304ff3ad770
[LOG] [WLCompositor] New wl_region with id 18 at 6304ff3ad510
[LOG] LayerSurface 1 mapped
[LOG] [hookSystem] New hook event registered: openLayer
[LOG] [WLCompositor] New wl_surface with id 35 at 6304ff3aed80
[LOG] CWLSurface 6304ff3aaa10 called init()
[LOG] LayerSurface 6304ff3af100 (namespace waybar layer 2) created on monitor HDMI-A-2
[LOG] [LayerShell] New wlr_layer_surface 6304ff3af100
[LOG] LayerSurface 1 mapped
[LOG] [VirtualKeyboard] New VKeyboard at id 16
[LOG] ApplyConfigToKeyboard for "hl-virtual-keyboard", hasconfig: 0
[LOG] Attempting to create a keymap for layout it with variant  (rules: , model: , options: )
[LOG] Updating keyboard 6304ff211a30's translation state from a provided keymap
[LOG] xkb: LED index 0 (name Num Lock) got index 1
[LOG] xkb: LED index 1 (name Caps Lock) got index 0
[LOG] xkb: LED index 2 (name Scroll Lock) got index 2
[LOG] xkb: Mod index 0 (name Shift) got index 0
[LOG] xkb: Mod index 1 (name Lock) got index 1
[LOG] xkb: Mod index 2 (name Control) got index 2
[LOG] xkb: Mod index 3 (name Mod1) got index 3
[LOG] xkb: Mod index 4 (name Mod2) got index 4
[LOG] xkb: Mod index 5 (name Mod3) got index 5
[LOG] xkb: Mod index 6 (name Mod4) got index 6
[LOG] xkb: Mod index 7 (name Mod5) got index 7
[LOG] Set the keyboard layout to it and variant to  for keyboard "hl-virtual-keyboard"
[LOG] New virtual keyboard created at 6304ff211a30
[WARN] [VirtualPointer] TODO: CreateWithOutput is not supported yet. Ignoring for now.
[LOG] [VirtualPointer] New VPointer at id 17
[LOG] Attached pointer -1 to global
[LOG] Applied config to mouse logitech-usb-optical-mouse, sens 0.00
[LOG] New virtual mouse created
[LOG] [DataDeviceWlr] New wlr data device bound at 6304ff442a00
[LOG] Framebuffer created, status 36053
vaxerski commented 2 months ago

debug stacktrace pls https://wiki.hyprland.org/Crashes-and-Bugs/#obtaining-a-debug-stacktrace

pbosab commented 2 months ago
(gdb) bt -full
#0  0x00007c9caaaa8e44 in ??? () at /usr/lib/libc.so.6
#1  0x00007c9caaa50a30 in raise () at /usr/lib/libc.so.6
#2  0x00007c9caaa384c3 in abort () at /usr/lib/libc.so.6
#3  0x0000589b91a372b6 in handleUnrecoverableSignal(int) ()
#4  0x00007c9caaa50ae0 in <signal handler called> () at /usr/lib/libc.so.6
#5  0x0000589b91c76ad2 in CPointerManager::warpAbsolute(Hyprutils::Math::Vector2D, Hyprutils::Memory::CSharedPointer<IHID>) ()
#6  0x0000589b91cc6adc in CInputManager::onMouseWarp(IPointer::SMotionAbsoluteEvent) ()
#7  0x0000589b91c775e5 in ??? ()
#8  0x0000589b91c87eb4 in ??? ()
#9  0x0000589b91c8388e in ??? ()
#10 0x0000589b91c7ea0f in ??? ()
#11 0x00007c9cab3929bf in Hyprutils::Signal::CSignalListener::emit(std::any) () at /usr/lib/libhyprutils.so.1
#12 0x00007c9cab392d2f in Hyprutils::Signal::CSignal::emit(std::any) () at /usr/lib/libhyprutils.so.1
#13 0x0000589b91bb286c in ??? ()
#14 0x0000589b91bb5b40 in ??? ()
#15 0x0000589b91bb47c5 in ??? ()
#16 0x0000589b91bb3783 in ??? ()
#17 0x00007c9cab3929bf in Hyprutils::Signal::CSignalListener::emit(std::any) () at /usr/lib/libhyprutils.so.1
#18 0x00007c9cab392d2f in Hyprutils::Signal::CSignal::emit(std::any) () at /usr/lib/libhyprutils.so.1
#19 0x0000589b91eb0fa7 in ??? ()
#20 0x0000589b91eb74f2 in ??? ()
#21 0x0000589b91eb54a9 in ??? ()
#22 0x0000589b91eb2f27 in ??? ()
#23 0x0000589b919f87fe in ??? ()
#24 0x0000589b919f7cab in ??? ()
#25 0x00007c9caa883596 in ??? () at /usr/lib/libffi.so.8
#26 0x00007c9caa88000e in ??? () at /usr/lib/libffi.so.8
#27 0x00007c9caa882bd3 in ffi_call () at /usr/lib/libffi.so.8
#28 0x00007c9cab560e45 in ??? () at /usr/lib/libwayland-server.so.0
#29 0x00007c9cab565c42 in ??? () at /usr/lib/libwayland-server.so.0
#30 0x00007c9cab5640a2 in wl_event_loop_dispatch () at /usr/lib/libwayland-server.so.0
#31 0x00007c9cab56610f in wl_display_run () at /usr/lib/libwayland-server.so.0
#32 0x0000589b91cbb86d in CEventLoopManager::enterLoop() ()
#33 0x0000589b91a3c628 in CCompositor::startCompositor() ()
#34 0x0000589b91c28776 in main ()
(gdb)
pbosab commented 2 months ago
Core was generated by `Hyprland -c /home/pbo/.config/hypr/hyprland-remote.conf'.
Program terminated with signal SIGABRT, Aborted.
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
44            return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO (ret) : 0;
[Current thread is 1 (Thread 0x7c9ca8e755c0 (LWP 856))]
(gdb) bt -full
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
        tid = <optimized out>
        ret = 0
        pd = <optimized out>
        old_mask = {__val = {7142820555575487776}}
        ret = <optimized out>
#1  0x00007c9caaaa8eb3 in __pthread_kill_internal (threadid=<optimized out>, signo=6) at pthread_kill.c:78
#2  0x00007c9caaa50a30 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
        ret = <optimized out>
#3  0x00007c9caaa384c3 in __GI_abort () at abort.c:79
        save_stage = 1
        act = {__sigaction_handler = {sa_handler = 0x20, sa_sigaction = 0x20}, sa_mask = {__val = {5989890065257224970, 7719281260612318309, 2334116269690878309, 8367816155384602988, 7236828443250860143, 8389750261356262944, 8245921730907829280, 8241991261798886176, 7599311364861075556, 7307984763853567090, 730256532011180665, 0, 108, 140726446861152, 3711214733449654016, 7680}}, sa_flags = -894238912, sa_restorer = 0x7ffd6de034a0}
#4  0x0000589b91a372b6 in handleUnrecoverableSignal(int) ()
#5  0x00007c9caaa50ae0 in <signal handler called> () at /usr/lib/libc.so.6
#6  0x0000589b91c76ad2 in CPointerManager::warpAbsolute(Hyprutils::Math::Vector2D, Hyprutils::Memory::CSharedPointer<IHID>) ()
#7  0x0000589b91cc6adc in CInputManager::onMouseWarp(IPointer::SMotionAbsoluteEvent) ()
#8  0x0000589b91c775e5 in ??? ()
#9  0x0000589b91c87eb4 in ??? ()
#10 0x0000589b91c8388e in ??? ()
#11 0x0000589b91c7ea0f in ??? ()
#12 0x00007c9cab3929bf in Hyprutils::Signal::CSignalListener::emit(std::any) () at /usr/lib/libhyprutils.so.1
#13 0x00007c9cab392d2f in Hyprutils::Signal::CSignal::emit(std::any) () at /usr/lib/libhyprutils.so.1
#14 0x0000589b91bb286c in ??? ()
#15 0x0000589b91bb5b40 in ??? ()
#16 0x0000589b91bb47c5 in ??? ()
#17 0x0000589b91bb3783 in ??? ()
#18 0x00007c9cab3929bf in Hyprutils::Signal::CSignalListener::emit(std::any) () at /usr/lib/libhyprutils.so.1
#19 0x00007c9cab392d2f in Hyprutils::Signal::CSignal::emit(std::any) () at /usr/lib/libhyprutils.so.1
#20 0x0000589b91eb0fa7 in ??? ()
#21 0x0000589b91eb74f2 in ??? ()
#22 0x0000589b91eb54a9 in ??? ()
#23 0x0000589b91eb2f27 in ??? ()
#24 0x0000589b919f87fe in ??? ()
#25 0x0000589b919f7cab in ??? ()
#26 0x00007c9caa883596 in ffi_call_unix64 () at ../src/x86/unix64.S:104
#27 0x00007c9caa88000e in ffi_call_int (cif=cif@entry=0x7ffd6de03c70, fn=<optimized out>, rvalue=<optimized out>, avalue=<optimized out>, closure=closure@entry=0x0) at ../src/x86/ffi64.c:673
        classes = {X86_64_INTEGERSI_CLASS, 32765, 2861033292, 31900}
        stack = <optimized out>
        argp = 0x7ffd6de03ac4 ""
        arg_types = <optimized out>
        gprcount = 6
        ssecount = <optimized out>
        ngpr = 1
        nsse = 0
        i = <optimized out>
        avn = <optimized out>
        flags = <optimized out>
        reg_args = <optimized out>
#28 0x00007c9caa882bd3 in ffi_call (cif=cif@entry=0x7ffd6de03c70, fn=<optimized out>, rvalue=rvalue@entry=0x0, avalue=avalue@entry=0x7ffd6de03d40) at ../src/x86/ffi64.c:710
        arg_types = 0x7ffd6de03c90
        i = <optimized out>
        nargs = 7
        max_reg_struct_size = <optimized out>
#29 0x00007c9cab560e45 in wl_closure_invoke (closure=closure@entry=0x589bcb1cf120, target=<optimized out>, target@entry=0x589bcb1fbf00, opcode=opcode@entry=1, data=<optimized out>, 
    data@entry=0x589bcb01cd90, flags=2) at ../wayland-1.23.0/src/connection.c:1228
        count = 5
        cif = {abi = FFI_UNIX64, nargs = 7, arg_types = 0x7ffd6de03c90, rtype = 0x7c9caa8841a0 <ffi_type_void>, bytes = 8, flags = 0}
        ffi_types = {0x7c9caa8842a0 <ffi_type_pointer>, 0x7c9caa8842a0 <ffi_type_pointer>, 0x7c9caa884240 <ffi_type_uint32>, 0x7c9caa884240 <ffi_type_uint32>, 0x7c9caa884240 <ffi_type_uint32>, 0x7c9caa884240 <ffi_type_uint32>, 0x7c9caa884240 <ffi_type_uint32>, 0x7c9caa884240 <ffi_type_uint32>, 0x7ffd6de03d10, 0xfffffffffffffd80, 0xb, 0x589bcb15f9b0, 0x7ffd6de03d30, 0x7c9caaab7dae <__GI___libc_free+126>, 0x589bcab94f50, 0x7ffd6de03d70, 0x7ffd6de03d30, 0x589b919cbd92, 0x7ffd6de03d80, 0x7c9caaab6a9a <_int_malloc+2922>, 0x7ffd6de03d50, 0xe}
        ffi_args = {0x7ffd6de03c50, 0x7ffd6de03c58, 0x589bcb1cf138, 0x589bcb1cf140, 0x589bcb1cf148, 0x589bcb1cf150, 0x589bcb1cf158, 0x5, 0x7ffd6de03dd0, 0x7c9cab562988 <log_closure+88>, 0x589bcb1cf120, 0x7ffd6de03ed0, 0x7ffd6de03df0, 0x589bcab31160, 0x5b, 0x589b92378878, 0x0, 0x5, 0x7ffd6de03e30, 0x7c9cab55ff38 <wl_closure_init+200>, 0xec6de03e40, 0xec}
        implementation = <optimized out>
#30 0x00007c9cab565c42 in wl_client_connection_data (fd=<optimized out>, mask=<optimized out>, data=0x589bcb01cd90) at ../wayland-1.23.0/src/wayland-server.c:444
        client = 0x589bcb01cd90
        connection = 0x589bcaeff020
        resource = <optimized out>
        object = 0x589bcb1fbf00
        closure = 0x589bcb1cf120
        message = 0x589b92378878
        p = {17, 1835009}
        resource_flags = 0
        opcode = 1
        size = <optimized out>
        since = <optimized out>
        len = <optimized out>
#31 0x00007c9cab5640a2 in wl_event_loop_dispatch (loop=0x589bcab91570, timeout=<optimized out>, timeout@entry=-1) at ../wayland-1.23.0/src/event-loop.c:1105
        ep = {{events = 1, data = {ptr = 0x589bcafdbe70, fd = -889340304, u32 = 3405626992, u64 = 97426148802160}}, {events = 31900, data = {ptr = 0x589bcab915c8, fd = -893839928, u32 = 3401127368, u64 = 97426144302536}}, {events = 3404722208, data = {ptr = 0x400000589b, fd = 22683, u32 = 22683, u64 = 274877929627}}, {events = 0, data = {ptr = 0x7ffd6de040e0, fd = 1843413216, u32 = 1843413216, u64 = 140726446866656}}, {events = 3404722304, data = {ptr = 0xffffffff0000589b, fd = 22683, u32 = 22683, u64 = 18446744069414607003}}, {events = 4294967295, data = {ptr = 0x7ffd6de04200, fd = 1843413504, u32 = 1843413504, u64 = 140726446866944}}, {events = 2874541723, data = {ptr = 0xcafb7a3800007c9c, fd = 31900, u32 = 31900, u64 = 14626418595752606876}}, {events = 22683, data = {ptr = 0x3448, fd = 13384, u32 = 13384, u64 = 13384}}, {events = 1843413312, data = {ptr = 0x4000007ffd, fd = 32765, u32 = 32765, u64 = 274877939709}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 1843413424, data = {ptr = 0xcb02055800007ffd, fd = 32765, u32 = 32765, u64 = 14628260415168086013}}, {events = 22683, data = {ptr = 0x40, fd = 64, u32 = 64, u64 = 64}}, {events = 3406562272, data = {ptr = 0x80000589b, fd = 22683, u32 = 22683, u64 = 34359761051}}, {events = 0, data = {ptr = 0x1c, fd = 28, u32 = 28, u64 = 28}}, {events = 1, data = {ptr = 0x6d00000001, fd = 1, u32 = 1, u64 = 468151435265}}, {events = 112, data = {ptr = 0x7c9c00000073, fd = 115, u32 = 115, u64 = 137009456742515}}, {events = 19, data = {ptr = 0x1166146300000000, fd = 0, u32 = 0, u64 = 1253711961703579648}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x1300000000, fd = 0, u32 = 0, u64 = 81604378624}}, {events = 0, data = {ptr = 0x11661463, fd = 291902563, u32 = 291902563, u64 = 291902563}}, {events = 3401287200, data = {ptr = 0xcafa13e00000589b, fd = 22683, u32 = 22683, u64 = 14626024592632731803}}, {events = 22683, data = {ptr = 0x7ffd6de041e0, fd = 1843413472, u32 = 1843413472, u64 = 140726446866912}}, {events = 2875403287, data = {ptr = 0x7c9c, fd = 31900, u32 = 31900, u64 = 31900}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 1843413472, data = {ptr = 0x20766f0000007ffd, fd = 32765, u32 = 32765, u64 = 2339179102256267261}}, {events = 864084515, data = {ptr = 0x589bcafa13e8, fd = -889580568, u32 = 3405386728, u64 = 97426148561896}}, {events = 3406995696, data = {ptr = 0xcab311880000589b, fd = 22683, u32 = 22683, u64 = 14606037292305897627}}, {events = 22683, data = {ptr = 0x589bcab311a8, fd = -894234200, u32 = 3400733096, u64 = 97426143908264}}}
        source = <optimized out>
        i = 0
        count = <optimized out>
        has_timers = <optimized out>
        use_timeout = false
        now = {tv_sec = 140726446866592, tv_nsec = 97426146701584}
        end = {tv_sec = <optimized out>, tv_nsec = <optimized out>}
#32 0x00007c9cab56610f in wl_display_run (display=0x589bcab31160) at ../wayland-1.23.0/src/wayland-server.c:1530
#33 0x0000589b91cbb86d in CEventLoopManager::enterLoop() ()
#34 0x0000589b91a3c628 in CCompositor::startCompositor() ()
#35 0x0000589b91c28776 in main ()
vaxerski commented 2 months ago

doesn't look very debug to me...

patch.txt

anyways try this I guess

pbosab commented 2 months ago

yes my fault, don't know why it build without debug... here is before the patch, trying the patch now

(gdb) bt -full
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
        tid = <optimized out>
        ret = 0
        pd = <optimized out>
        old_mask = {__val = {0}}
        ret = <optimized out>
#1  0x0000779b21aa8eb3 in __pthread_kill_internal (threadid=<optimized out>, signo=6) at pthread_kill.c:78
#2  0x0000779b21a50a30 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
        ret = <optimized out>
#3  0x0000779b21a384c3 in __GI_abort () at abort.c:79
        save_stage = 1
        act = {__sigaction_handler = {sa_handler = 0x20, sa_sigaction = 0x20}, sa_mask = {__val = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 111, 140730360980912, 140730360979280, 140730360979264, 111, 111}}, sa_flags = 565302609, sa_restorer = 0x7ffe572cdfc0}
#4  0x0000626f34095021 in operator() (__closure=0x0, _=14) at /home/pbo/sources/Hyprland/src/Compositor.cpp:66
        msg = 0x626f347ae3d0 "\nCrashReporter exceeded timeout, forcefully exiting\n"
#5  0x0000626f3409503b in _FUN () at /home/pbo/sources/Hyprland/src/Compositor.cpp:67
#6  0x0000779b21a50ae0 in <signal handler called> () at /usr/lib/libc.so.6
#7  0x0000779b21b1c9b8 in __GI___libc_read (fd=107, buf=0x626f4e13b8e0, nbytes=4096) at ../sysdeps/unix/sysv/linux/read.c:26
        __arg2 = 108230190807264
        _a3 = 4096
        _a1 = 107
        resultvar = <optimized out>
        __arg3 = 4096
        __arg1 = 107
        _a2 = 108230190807264
        sc_ret = <optimized out>
        sc_cancel_oldtype = 0
        sc_ret = <optimized out>
        sc_ret = <optimized out>
        __arg2 = <optimized out>
        _a3 = <optimized out>
        _a1 = <optimized out>
        resultvar = <optimized out>
        __arg3 = <optimized out>
        __arg1 = <optimized out>
        _a2 = <optimized out>
#8  __GI___libc_read (fd=107, buf=0x626f4e13b8e0, nbytes=4096) at ../sysdeps/unix/sysv/linux/read.c:24
#9  0x0000779b21a9de63 in _IO_new_file_underflow (fp=0x626f4e126520) at /usr/src/debug/glibc/glibc/libio/libioP.h:1030
        count = <optimized out>
#10 0x0000779b21aa02c2 in __GI__IO_default_uflow (fp=0x626f4e126520) at /usr/src/debug/glibc/glibc/libio/libioP.h:1030
        ch = <optimized out>
#11 0x0000779b21a92b6b in __GI__IO_getline_info
    (fp=fp@entry=0x626f4e126520, buf=buf@entry=0x7ffe572ce6f0 "/home/pbo/sources/Hyprland/src/Compositor.cpp:72\n", n=127, delim=delim@entry=10, extract_delim=extract_delim@entry=1, eof=eof@entry=0x0)
    at iogetline.c:60
        c = <optimized out>
        len = <optimized out>
        ptr = 0x7ffe572ce6f0 "/home/pbo/sources/Hyprland/src/Compositor.cpp:72\n"
#12 0x0000779b21a92c6c in __GI__IO_getline
    (fp=fp@entry=0x626f4e126520, buf=buf@entry=0x7ffe572ce6f0 "/home/pbo/sources/Hyprland/src/Compositor.cpp:72\n", n=<optimized out>, delim=delim@entry=10, extract_delim=extract_delim@entry=1)
    at iogetline.c:34
#13 0x0000779b21a918a6 in _IO_fgets (buf=0x7ffe572ce6f0 "/home/pbo/sources/Hyprland/src/Compositor.cpp:72\n", n=<optimized out>, fp=0x626f4e126520) at iofgets.c:53
        _IO_acquire_lock_file = 0x626f4e126520
        count = <optimized out>
        result = <optimized out>
        old_error = 0
--Type <RET> for more, q to quit, c to continue without paging--c
#14 0x0000626f34298076 in execAndGet[abi:cxx11](char const*)
    (cmd=0x626f4dd53b90 "addr2line -e /home/pbo/sources/Hyprland/build/Hyprland -Cf 0xa2668b 0x939e61 0x82210d 0x3cae0 0xad491a 0xb2de32 0xad545b 0xae01cc 0xadcfb5 0xada185 0x89bf 0x8d2f 0xa01388 0xa051c8 0xa03e49 0xa02ef6 0x"...) at /home/pbo/sources/Hyprland/src/helpers/MiscFunctions.cpp:594
        buffer = {_M_elems = "/home/pbo/sources/Hyprland/src/Compositor.cpp:72\n\000.cpp:190\n\000 (discriminator 1)\n\000P\350,W\376\177\000\000p\350,W\376\177\000\000\242\026\000\000\000\000\000\000`\347,W\376\177\000\000p\227\017Nob\000\000\220\350,W\376\177\000"}
        result = "getBacktrace()\n/home/pbo/sources/Hyprland/src/helpers/MiscFunctions.cpp:791 (discriminator 1)\nCrashReporter::createAndSaveCrash(int)\n/home/pbo/sources/Hyprland/src/debug/CrashReporter.cpp:190\nhandleUn"...
^C        pipe = std::unique_ptr<_IO_FILE> = {get() = 0x626f4e126520}
#15 0x0000626f341ad05f in CrashReporter::createAndSaveCrash (sig=11) at /home/pbo/sources/Hyprland/src/debug/CrashReporter.cpp:214
        reportFd = 106
        finalCrashReport = {m_writeBuf = "Backtrace:\noller])\n\n\nos-release:\n\tNAME=\"Arch Linux\"\n\tPRETTY_NAME=\"Arch Linux\"\n\tID=arch\n\tBUILD_ID=rolling\n\tANSI_COLOR=\"38;2;23;147;209\"\n\tHOME_URL=\"https://archlinux.org/\"\n\tDOCUMENTATION_URL=\"https://wi"..., m_writeBufPos = 11, m_fd = 106}
        CALLSTACK = std::vector of length 37, capacity 64 = {{adr = 0x626f3429968b <getBacktrace()+73>, desc = "./Hyprland(_Z12getBacktracev+0x49) [0x626f3429968b]"}, {adr = 0x626f341ace61 <CrashReporter::createAndSaveCrash(int)+2051>, desc = "./Hyprland(_ZN13CrashReporter18createAndSaveCrashEi+0x803) [0x626f341ace61]"}, {adr = 0x626f3409510d <handleUnrecoverableSignal(int)+190>, desc = "./Hyprland(_Z25handleUnrecoverableSignali+0xbe) [0x626f3409510d]"}, {adr = 0x779b21a50ae0 <__restore_rt>, desc = "/usr/lib/libc.so.6(+0x3cae0) [0x779b21a50ae0]"}, {adr = 0x626f3434791a <CPointerManager::warpAbsolute(Hyprutils::Math::Vector2D, Hyprutils::Memory::CSharedPointer<IHID>)+354>, desc = "./Hyprland(_ZN15CPointerManager12warpAbsoluteEN9Hyprutils4Math8Vector2DENS0_6Memory14CSharedPointerI4IHIDEE+0x162) [0x626f3434791a]"}, {adr = 0x626f343a0e32 <CInputManager::onMouseWarp(IPointer::SMotionAbsoluteEvent)+112>, desc = "./Hyprland(_ZN13CInputManager11onMouseWarpEN8IPointer20SMotionAbsoluteEventE+0x70) [0x626f343a0e32]"}, {adr = 0x626f3434845b <operator()(std::any) const+103>, desc = "./Hyprland(+0xad545b) [0x626f3434845b]"}, {adr = 0x626f343531cc <std::__invoke_impl<void, CPointerManager::attachPointer(Hyprutils::Memory::CSharedPointer<IPointer>)::<lambda(std::any)>&, std::any>(std::__invoke_other, struct {...} &)+92>, desc = "./Hyprland(+0xae01cc) [0x626f343531cc]"}, {adr = 0x626f3434ffb5 <std::__invoke_r<void, CPointerManager::attachPointer(Hyprutils::Memory::CSharedPointer<IPointer>)::<lambda(std::any)>&, std::any>(struct {...} &)+55>, desc = "./Hyprland(+0xadcfb5) [0x626f3434ffb5]"}, {adr = 0x626f3434d185 <std::_Function_handler<void(std::any), CPointerManager::attachPointer(Hyprutils::Memory::CSharedPointer<IPointer>)::<lambda(std::any)> >::_M_invoke(const std::_Any_data &, std::any &&)+55>, desc = "./Hyprland(+0xada185) [0x626f3434d185]"}, {adr = 0x779b220619bf <Hyprutils::Signal::CSignalListener::emit(std::any)+95>, desc = "/usr/lib/libhyprutils.so.1(_ZN9Hyprutils6Signal15CSignalListener4emitESt3any+0x5f) [0x779b220619bf]"}, {adr = 0x779b22061d2f <Hyprutils::Signal::CSignal::emit(std::any)+479>, desc = "/usr/lib/libhyprutils.so.1(_ZN9Hyprutils6Signal7CSignal4emitESt3any+0x1df) [0x779b22061d2f]"}, {adr = 0x626f34274388 <operator()(std::any) const+80>, desc = "./Hyprland(+0xa01388) [0x626f34274388]"}, {adr = 0x626f342781c8 <std::__invoke_impl<void, CVirtualPointer::CVirtualPointer(Hyprutils::Memory::CSharedPointer<CVirtualPointerV1Resource>)::<lambda(std::any)>&, std::any>(std::__invoke_other, struct {...} &)+92>, desc = "./Hyprland(+0xa051c8) [0x626f342781c8]"}, {adr = 0x626f34276e49 <std::__invoke_r<void, CVirtualPointer::CVirtualPointer(Hyprutils::Memory::CSharedPointer<CVirtualPointerV1Resource>)::<lambda(std::any)>&, std::any>(struct {...} &)+55>, desc = "./Hyprland(+0xa03e49) [0x626f34276e49]"}, {adr = 0x626f34275ef6 <std::_Function_handler<void(std::any), CVirtualPointer::CVirtualPointer(Hyprutils::Memory::CSharedPointer<CVirtualPointerV1Resource>)::<lambda(std::any)> >::_M_invoke(const std::_Any_data &, std::any &&)+55>, desc = "./Hyprland(+0xa02ef6) [0x626f34275ef6]"}, {adr = 0x779b220619bf <Hyprutils::Signal::CSignalListener::emit(std::any)+95>, desc = "/usr/lib/libhyprutils.so.1(_ZN9Hyprutils6Signal15CSignalListener4emitESt3any+0x5f) [0x779b220619bf]"}, {adr = 0x779b22061d2f <Hyprutils::Signal::CSignal::emit(std::any)+479>, desc = "/usr/lib/libhyprutils.so.1(_ZN9Hyprutils6Signal7CSignal4emitESt3any+0x1df) [0x779b22061d2f]"}, {adr = 0x626f345d08c3 <operator()(CZwlrVirtualPointerV1*, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t) const+355>, desc = "./Hyprland(+0xd5d8c3) [0x626f345d08c3]"}, {adr = 0x626f345d59c8 <std::__invoke_impl<void, CVirtualPointerV1Resource::CVirtualPointerV1Resource(Hyprutils::Memory::CSharedPointer<CZwlrVirtualPointerV1>)::<lambda(CZwlrVirtualPointerV1*, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t)>&, CZwlrVirtualPointerV1*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int>(std::__invoke_other, struct {...} &)+176>, desc = "./Hyprland(+0xd629c8) [0x626f345d59c8]"}, {adr = 0x626f345d434f <std::__invoke_r<void, CVirtualPointerV1Resource::CVirtualPointerV1Resource(Hyprutils::Memory::CSharedPointer<CZwlrVirtualPointerV1>)::<lambda(CZwlrVirtualPointerV1*, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t)>&, CZwlrVirtualPointerV1*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int>(struct {...} &)+173>, desc = "./Hyprland(+0xd6134f) [0x626f345d434f]"}, {adr = 0x626f345d2d97 <std::_Function_handler<void(CZwlrVirtualPointerV1*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int), CVirtualPointerV1Resource::CVirtualPointerV1Resource(Hyprutils::Memory::CSharedPointer<CZwlrVirtualPointerV1>)::<lambda(CZwlrVirtualPointerV1*, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t)> >::_M_invoke(const std::_Any_data &, CZwlrVirtualPointerV1 *&&, unsigned int &&, unsigned int &&, unsigned int &&, unsigned int &&, unsigned int &&)+173>, desc = "./Hyprland(+0xd5fd97) [0x626f345d2d97]"}, {adr = 0x626f3474a72c <std::function<void (CZwlrVirtualPointerV1*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int)>::operator()(CZwlrVirtualPointerV1*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) const+184>, desc = "./Hyprland(_ZNKSt8functionIFvP21CZwlrVirtualPointerV1jjjjjEEclES1_jjjjj+0xb8) [0x626f3474a72c]"}, {adr = 0x626f34748efb <_CZwlrVirtualPointerV1MotionAbsolute(wl_client*, wl_resource*, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t)+131>, desc = "./Hyprland(+0xed5efb) [0x626f34748efb]"}, {adr = 0x779b21ebd596 <ffi_call_unix64+86>, desc = "/usr/lib/libffi.so.8(+0x7596) [0x779b21ebd596]"}, {adr = 0x779b21eba00e <ffi_call_int+510>, desc = "/usr/lib/libffi.so.8(+0x400e) [0x779b21eba00e]"}, {adr = 0x779b21ebcbd3 <ffi_call+291>, desc = "/usr/lib/libffi.so.8(ffi_call+0x123) [0x779b21ebcbd3]"}, {adr = 0x779b22751e45 <wl_closure_invoke+373>, desc = "/usr/lib/libwayland-server.so.0(+0x6e45) [0x779b22751e45]"}, {adr = 0x779b22756c42 <wl_client_connection_data+3586>, desc = "/usr/lib/libwayland-server.so.0(+0xbc42) [0x779b22756c42]"}, {adr = 0x779b227550a2 <wl_event_loop_dispatch+498>, desc = "/usr/lib/libwayland-server.so.0(wl_event_loop_dispatch+0x1f2) [0x779b227550a2]"}, {adr = 0x779b2275710f <wl_display_run+47>, desc = "/usr/lib/libwayland-server.so.0(wl_display_run+0x2f) [0x779b2275710f]"}, {adr = 0x626f3439482b <CEventLoopManager::enterLoop()+439>, desc = "./Hyprland(_ZN17CEventLoopManager9enterLoopEv+0x1b7) [0x626f3439482b]"}, {adr = 0x626f3409a704 <CCompositor::startCompositor()+884>, desc = "./Hyprland(_ZN11CCompositor15startCompositorEv+0x374) [0x626f3409a704]"}, {adr = 0x626f342f10ef <main(int, char**)+3437>, desc = "./Hyprland(main+0xd6d) [0x626f342f10ef]"}, {adr = 0x779b21a39c88 <__libc_start_call_main+120>, desc = "/usr/lib/libc.so.6(+0x25c88) [0x779b21a39c88]"}, {adr = 0x779b21a39d4c <__libc_start_main_impl+140>, desc = "/usr/lib/libc.so.6(__libc_start_main+0x8c) [0x779b21a39d4c]"}, {adr = 0x626f34094ea5 <_start+37>, desc = "./Hyprland(_start+0x25) [0x626f34094ea5]"}}
        FPATH = filesystem::path "/home/pbo/sources/Hyprland/build/Hyprland" = {[root-directory] = "/", [1] = "home", [2] = "pbo", [3] = "sources", [4] = "Hyprland", [5] = "build", [6] = "Hyprland"}
        addrs = "0xa2668b 0x939e61 0x82210d 0x3cae0 0xad491a 0xb2de32 0xad545b 0xae01cc 0xadcfb5 0xada185 0x89bf 0x8d2f 0xa01388 0xa051c8 0xa03e49 0xa02ef6 0x89bf 0x8d2f 0xd5d8c3 0xd629c8 0xd6134f 0xd5fd97 0xed772c 0x"...
        CMD = "addr2line -e /home/pbo/sources/Hyprland/build/Hyprland -Cf 0xa2668b 0x939e61 0x82210d 0x3cae0 0xad491a 0xb2de32 0xad545b 0xae01cc 0xadcfb5 0xada185 0x89bf 0x8d2f 0xa01388 0xa051c8 0xa03e49 0xa02ef6 0x"...
        ADDR2LINE = <error: Cannot access memory at address 0x19e>
        ssin = Python Exception <class 'gdb.error'>: virtual baseclass botch
Python Exception <class 'OverflowError'>: signed integer is greater than maximum
{<std::basic_iostream<char, std::char_traits<char> >> = {<std::basic_istream<char, std::char_traits<char> >> = {<std::basic_ios<char, std::char_traits<char> >> = <invalid address>, _vptr.basic_istream = 0x7ffe572ce970, _M_gcount = 9}, <std::basic_ostream<char, std::char_traits<char> >> = {_vptr.basic_ostream = 0x3561653132387830}, <No data fields>}, _M_stringbuf = }
#16 0x0000626f3409510d in handleUnrecoverableSignal (sig=11) at /home/pbo/sources/Hyprland/src/Compositor.cpp:70
#17 0x0000779b21a50ae0 in <signal handler called> () at /usr/lib/libc.so.6
#18 0x0000626f3434791a in CPointerManager::warpAbsolute (this=0x626f4daa0fd0, abs=..., dev=...) at /home/pbo/sources/Hyprland/src/managers/PointerManager.cpp:634
        currentMonitor = {impl_ = 0x626f4dd44fd0}
        mappedArea = {x = 0, y = 0, {w = 1920, width = 1920}, {h = 1080, height = 1080}, rot = 0}
#19 0x0000626f343a0e32 in CInputManager::onMouseWarp (this=0x626f4dc40e20, e=...) at /home/pbo/sources/Hyprland/src/managers/input/InputManager.cpp:105
#20 0x0000626f3434845b in operator() (__closure=0x626f4e0ecab0, e=std::any containing IPointer::SMotionAbsoluteEvent = {...}) at /home/pbo/sources/Hyprland/src/managers/PointerManager.cpp:731
        E = {timeMs = 7920485, absolute = {x = 0.57916666666666672, y = 0.69722222222222219}, device = {impl_ = 0x0}}
        this = 0x626f4daa0fd0
#21 0x0000626f343531cc in std::__invoke_impl<void, CPointerManager::attachPointer(Hyprutils::Memory::CSharedPointer<IPointer>)::<lambda(std::any)>&, std::any>(std::__invoke_other, struct {...} &) (__f=...)
    at /usr/include/c++/14.1.1/bits/invoke.h:61
#22 0x0000626f3434ffb5 in std::__invoke_r<void, CPointerManager::attachPointer(Hyprutils::Memory::CSharedPointer<IPointer>)::<lambda(std::any)>&, std::any>(struct {...} &) (__fn=...)
    at /usr/include/c++/14.1.1/bits/invoke.h:111
#23 0x0000626f3434d185 in std::_Function_handler<void(std::any), CPointerManager::attachPointer(Hyprutils::Memory::CSharedPointer<IPointer>)::<lambda(std::any)> >::_M_invoke(const std::_Any_data &, std::any &&) (__functor=..., __args#0=...) at /usr/include/c++/14.1.1/bits/std_function.h:290
#24 0x0000779b220619bf in Hyprutils::Signal::CSignalListener::emit(std::any) () at /usr/lib/libhyprutils.so.1
#25 0x0000779b22061d2f in Hyprutils::Signal::CSignal::emit(std::any) () at /usr/lib/libhyprutils.so.1
#26 0x0000626f34274388 in operator() (__closure=0x626f4e0f22d0, d=std::any containing IPointer::SMotionAbsoluteEvent = {...}) at /home/pbo/sources/Hyprland/src/devices/VirtualPointer.cpp:23
        this = 0x626f4e0a79c0
#27 0x0000626f342781c8 in std::__invoke_impl<void, CVirtualPointer::CVirtualPointer(Hyprutils::Memory::CSharedPointer<CVirtualPointerV1Resource>)::<lambda(std::any)>&, std::any>(std::__invoke_other, struct {...} &) (__f=...) at /usr/include/c++/14.1.1/bits/invoke.h:61
#28 0x0000626f34276e49 in std::__invoke_r<void, CVirtualPointer::CVirtualPointer(Hyprutils::Memory::CSharedPointer<CVirtualPointerV1Resource>)::<lambda(std::any)>&, std::any>(struct {...} &) (__fn=...)
    at /usr/include/c++/14.1.1/bits/invoke.h:111
#29 0x0000626f34275ef6 in std::_Function_handler<void(std::any), CVirtualPointer::CVirtualPointer(Hyprutils::Memory::CSharedPointer<CVirtualPointerV1Resource>)::<lambda(std::any)> >::_M_invoke(const std::_Any_data &, std::any &&) (__functor=..., __args#0=...) at /usr/include/c++/14.1.1/bits/std_function.h:290
#30 0x0000779b220619bf in Hyprutils::Signal::CSignalListener::emit(std::any) () at /usr/lib/libhyprutils.so.1
#31 0x0000779b22061d2f in Hyprutils::Signal::CSignal::emit(std::any) () at /usr/lib/libhyprutils.so.1
#32 0x0000626f345d08c3 in operator() (__closure=0x626f4deed980, r=0x626f4deed960, timeMs=7920485, x=1112, y=753, xExtent=1920, yExtent=1080) at /home/pbo/sources/Hyprland/src/protocols/VirtualPointer.cpp:30
        this = 0x626f4db87770
#33 0x0000626f345d59c8 in std::__invoke_impl<void, CVirtualPointerV1Resource::CVirtualPointerV1Resource(Hyprutils::Memory::CSharedPointer<CZwlrVirtualPointerV1>)::<lambda(CZwlrVirtualPointerV1*, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t)>&, CZwlrVirtualPointerV1*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int>(std::__invoke_other, struct {...} &) (__f=...)
    at /usr/include/c++/14.1.1/bits/invoke.h:61
#34 0x0000626f345d434f in std::__invoke_r<void, CVirtualPointerV1Resource::CVirtualPointerV1Resource(Hyprutils::Memory::CSharedPointer<CZwlrVirtualPointerV1>)::<lambda(CZwlrVirtualPointerV1*, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t)>&, CZwlrVirtualPointerV1*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int>(struct {...} &) (__fn=...) at /usr/include/c++/14.1.1/bits/invoke.h:111
#35 0x0000626f345d2d97 in std::_Function_handler<void(CZwlrVirtualPointerV1*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int), CVirtualPointerV1Resource::CVirtualPointerV1Resource(Hyprutils::Memory::CSharedPointer<CZwlrVirtualPointerV1>)::<lambda(CZwlrVirtualPointerV1*, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t)> >::_M_invoke(const std::_Any_data &, CZwlrVirtualPointerV1 *&&, unsigned int &&, unsigned int &&, unsigned int &&, unsigned int &&, unsigned int &&)
    (__functor=..., __args#0=@0x7ffe572cfb40: 0x626f4deed960, __args#1=@0x7ffe572cfb3c: 7920485, __args#2=@0x7ffe572cfb38: 1112, __args#3=@0x7ffe572cfb34: 753, __args#4=@0x7ffe572cfb30: 1920, __args#5=@0x7ffe572cfb90: 1080) at /usr/include/c++/14.1.1/bits/std_function.h:290
#36 0x0000626f3474a72c in std::function<void(CZwlrVirtualPointerV1*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int)>::operator()
    (this=0x626f4deed980, __args#0=0x626f4deed960, __args#1=7920485, __args#2=1112, __args#3=753, __args#4=1920, __args#5=1080) at /usr/include/c++/14.1.1/bits/std_function.h:591
#37 0x0000626f34748efb in _CZwlrVirtualPointerV1MotionAbsolute (client=0x626f4e012b50, resource=0x626f4e1658e0, time=7920485, x=1112, y=753, x_extent=1920, y_extent=1080)
    at /home/pbo/sources/Hyprland/protocols/wlr-virtual-pointer-unstable-v1.cpp:57
        PO = 0x626f4deed960
#38 0x0000779b21ebd596 in ffi_call_unix64 () at ../src/x86/unix64.S:104
#39 0x0000779b21eba00e in ffi_call_int (cif=cif@entry=0x7ffe572cfd90, fn=<optimized out>, rvalue=<optimized out>, avalue=<optimized out>, closure=closure@entry=0x0) at ../src/x86/ffi64.c:673
        classes = {X86_64_INTEGERSI_CLASS, 32766, 569083724, 30619}
        stack = <optimized out>
        argp = 0x7ffe572cfbe4 ""
        arg_types = <optimized out>
        gprcount = 6
        ssecount = <optimized out>
        ngpr = 1
        nsse = 0
        i = <optimized out>
        avn = <optimized out>
        flags = <optimized out>
        reg_args = <optimized out>
#40 0x0000779b21ebcbd3 in ffi_call (cif=cif@entry=0x7ffe572cfd90, fn=<optimized out>, rvalue=rvalue@entry=0x0, avalue=avalue@entry=0x7ffe572cfe60) at ../src/x86/ffi64.c:710
        arg_types = 0x7ffe572cfdb0
        i = <optimized out>
        nargs = 7
        max_reg_struct_size = <optimized out>
#41 0x0000779b22751e45 in wl_closure_invoke (closure=closure@entry=0x626f4e0f1a40, target=<optimized out>, target@entry=0x626f4e1658e0, opcode=opcode@entry=1, data=<optimized out>,
    data@entry=0x626f4e012b50, flags=2) at ../wayland-1.23.0/src/connection.c:1228
        count = 5
        cif = {abi = FFI_UNIX64, nargs = 7, arg_types = 0x7ffe572cfdb0, rtype = 0x779b21ebe1a0 <ffi_type_void>, bytes = 8, flags = 0}
        ffi_types = {0x779b21ebe2a0 <ffi_type_pointer>, 0x779b21ebe2a0 <ffi_type_pointer>, 0x779b21ebe240 <ffi_type_uint32>, 0x779b21ebe240 <ffi_type_uint32>, 0x779b21ebe240 <ffi_type_uint32>, 0x779b21ebe240 <ffi_type_uint32>, 0x779b21ebe240 <ffi_type_uint32>, 0x779b21ebe240 <ffi_type_uint32>, 0x7ffe572cfe30, 0xfffffffffffffd60, 0xb, 0x626f4e0687f0, 0x7ffe572cfe50, 0x779b21ab7dae <__GI___libc_free+126>, 0x626f4db06090, 0x7ffe572cfe90, 0x7ffe572cfe50, 0x626f340bb1d8 <std::any::reset()+24>, 0x7ffe572cfea0, 0x779b21ab6a9a <_int_malloc+2922>, 0x421, 0xe}
        ffi_args = {0x7ffe572cfd70, 0x7ffe572cfd78, 0x626f4e0f1a58, 0x626f4e0f1a60, 0x626f4e0f1a68, 0x626f4e0f1a70, 0x626f4e0f1a78, 0x5, 0x7ffe572cfef0, 0x779b22753988 <log_closure+88>, 0x626f4e11bd90, 0x7ffe572cfff0, 0x7ffe572cff10, 0x626f4db02570, 0x18, 0x626f34cc1318 <_CZwlrVirtualPointerV1Requests+24>, 0x0, 0x5, 0x7ffe572cff50, 0x779b22750f38 <wl_closure_init+200>, 0xec0000000b, 0xec}
        implementation = <optimized out>
#42 0x0000779b22756c42 in wl_client_connection_data (fd=<optimized out>, mask=<optimized out>, data=0x626f4e012b50) at ../wayland-1.23.0/src/wayland-server.c:444
        client = 0x626f4e012b50
        connection = 0x626f4dff95e0
        resource = <optimized out>
        object = 0x626f4e1658e0
        closure = 0x626f4e0f1a40
        message = 0x626f34cc1318 <_CZwlrVirtualPointerV1Requests+24>
        p = {17, 1835009}
        resource_flags = 0
        opcode = 1
        size = <optimized out>
        since = <optimized out>
        len = <optimized out>
#43 0x0000779b227550a2 in wl_event_loop_dispatch (loop=0x626f4db02660, timeout=<optimized out>, timeout@entry=-1) at ../wayland-1.23.0/src/event-loop.c:1105
        ep = {{events = 1, data = {ptr = 0x626f4e00b940, fd = 1308670272, u32 = 1308670272, u64 = 108230189562176}}, {events = 1, data = {ptr = 0x626f4df4cef0, fd = 1307889392, u32 = 1307889392, u64 = 108230188781296}}, {events = 1308595680, data = {ptr = 0x400000626f, fd = 25199, u32 = 25199, u64 = 274877932143}}, {events = 0, data = {ptr = 0x7ffe572d0200, fd = 1462567424, u32 = 1462567424, u64 = 140730360988160}}, {events = 1308595776, data = {ptr = 0xffffffff0000626f, fd = 25199, u32 = 25199, u64 = 18446744069414609519}}, {events = 4294967295, data = {ptr = 0x7ffe572d0320, fd = 1462567712, u32 = 1462567712, u64 = 140730360988448}}, {events = 578098843, data = {ptr = 0x779b, fd = 30619, u32 = 30619, u64 = 30619}}, {events = 0, data = {ptr = 0x3514, fd = 13588, u32 = 13588, u64 = 13588}}, {events = 1462567520, data = {ptr = 0x4000007ffe, fd = 32766, u32 = 32766, u64 = 274877939710}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x4e06b16400000000, fd = 0, u32 = 0, u64 = 5622376227873488896}}, {events = 25199, data = {ptr = 0x40, fd = 64, u32 = 64, u64 = 64}}, {events = 1308774640, data = {ptr = 0x2980000626f, fd = 25199, u32 = 25199, u64 = 2851858309743}}, {events = 0, data = {ptr = 0x1c, fd = 28, u32 = 28, u64 = 28}}, {events = 1, data = {ptr = 0x6800000001, fd = 1, u32 = 1, u64 = 446676598785}}, {events = 108, data = {ptr = 0x6f, fd = 111, u32 = 111, u64 = 111}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0xe4a740000000000, fd = 0, u32 = 0, u64 = 1029763008156401664}}, {events = 617457140, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 1308699472, data = {ptr = 0x4db025980000626f, fd = 25199, u32 = 25199, u64 = 5598015671586808431}}, {events = 25199, data = {ptr = 0x626f4db025b8, fd = 1303389624, u32 = 1303389624, u64 = 108230184281528}}}
        source = <optimized out>
        i = 0
        count = <optimized out>
        has_timers = <optimized out>
        use_timeout = false
        now = {tv_sec = 0, tv_nsec = 0}
        end = {tv_sec = <optimized out>, tv_nsec = <optimized out>}
#44 0x0000779b2275710f in wl_display_run (display=0x626f4db02570) at ../wayland-1.23.0/src/wayland-server.c:1530
#45 0x0000626f3439482b in CEventLoopManager::enterLoop (this=0x626f4da948c0) at /home/pbo/sources/Hyprland/src/managers/eventLoop/EventLoopManager.cpp:46
#46 0x0000626f3409a704 in CCompositor::startCompositor (this=0x626f4daa0ba0) at /home/pbo/sources/Hyprland/src/Compositor.cpp:676
#47 0x0000626f342f10ef in main (argc=3, argv=0x7ffe572d0878) at /home/pbo/sources/Hyprland/src/main.cpp:158
        cmd = "./Hyprland -c /home/pbo/.config/hypr/hyprland-remote.conf"
        configPath = "/home/pbo/.config/hypr/hyprland-remote.conf"
        socketName = ""
        socketFd = -1
        ignoreSudo = false
        args = std::vector of length 2, capacity 2 = {"-c", "/home/pbo/.config/hypr/hyprland-remote.conf"}
pbosab commented 2 months ago

patch works, but the mouse is locked in the left upper corner.

vaxerski commented 2 months ago

ah! I see. Give me a moment.

vaxerski commented 2 months ago

patch.txt this should fix your problems

pbosab commented 2 months ago

everything works, thanks.

vaxerski commented 2 months ago

yours truly