Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hyprland crashes on plugin startup after recent Hyprland update #139

Open
Jacobacon215 opened this issue Jan 24, 2025 · 2 comments
Open

Comments

@Jacobacon215
Copy link

Restarted my computer after updating Hyprland yesterday, and it crashed on startup. Logs seem to indicate the plugin was the cause, and I can confirm, startup is perfectly fine after having disabled the plugin. Logs attached below. The first log was on hyprland 0.46.2-8, the second was on -9.

hyprlandCrashReport4253.txt

hyprlandCrashReport5765.txt

(logs in post body for searchability):
Log number 1:

Hyprland Crash Report

All these computers...

Hyprland received signal 11(SEGV)
Version: 0bd541f2fd902dbfa04c3ea2ccf679395e316887
Tag: v0.46.2
Date: Thu Dec 19 19:26:47 2024
Flags:

Hyprland seems to be running with plugins. This crash might not be Hyprland's fault.
Plugins:
()

System info:
System name: Linux
Node name: archlinux
Release: 6.12.10-arch1-1
Version: #1 SMP PREEMPT_DYNAMIC Sat, 18 Jan 2025 02:26:57 +0000

GPU:
00:02.0 VGA compatible controller [0300]: Intel Corporation Alder Lake-P GT2 [Iris Xe Graphics] [8086:46a6] (rev 0c) (prog-if 00 [VGA controller])
DeviceName: VGA compatible 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+0x61) [0x5fd7f06add41]
getBacktrace()
??:?
#1 | Hyprland(_ZN14NCrashReporter18createAndSaveCrashEi+0xb50) [0x5fd7f062b9f0]
NCrashReporter::createAndSaveCrash(int)
??:?
#2 | Hyprland(_Z25handleUnrecoverableSignali+0x71) [0x5fd7f05bf3b1]
handleUnrecoverableSignal(int)
??:?
#3 | /usr/lib/libc.so.6(+0x3d1d0) [0x7af3e984c1d0]
??
??:0
#4 | /home/user/.local/share/hyprpm/Hyprspace/Hyprspace.so(_Z16registerMonitorsv+0x167) [0x7af3b8209a17]
??
??:0
#5 | /home/user/.local/share/hyprpm/Hyprspace/Hyprspace.so(pluginInit+0x17bd) [0x7af3b820b5cd]
??
??:0
#6 | Hyprland(_ZN13CPluginSystem10loadPluginERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x3af) [0x5fd7f0779c2f]
CPluginSystem::loadPlugin(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)
??:?
#7 | Hyprland(_Z14dispatchPlugin20eHyprCtlOutputFormatNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x458) [0x5fd7f0646928]
dispatchPlugin(eHyprCtlOutputFormat, std::__cxx11::basic_string<char, std::char_traits, std::allocator >)
??:?
#8 | Hyprland(ZNSt17_Function_handlerIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE20eHyprCtlOutputFormatS5_EPS7_E9_M_invokeERKSt9_Any_dataOS6_OS5+0x71) [0x5fd7f0640f91]
std::_Function_handler<std::__cxx11::basic_string<char, std::char_traits, std::allocator > (eHyprCtlOutputFormat, std::__cxx11::basic_string<char, std::char_traits, std::allocator >), std::__cxx11::basic_string<char, std::char_traits, std::allocator > ()(eHyprCtlOutputFormat, std::__cxx11::basic_string<char, std::char_traits, std::allocator >)>::_M_invoke(std::_Any_data const&, eHyprCtlOutputFormat&&, std::__cxx11::basic_string<char, std::char_traits, std::allocator >&&)
??:?
#9 | Hyprland(_ZN8CHyprCtl8getReplyENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x612) [0x5fd7f06485f2]
CHyprCtl::getReply(std::__cxx11::basic_string<char, std::char_traits, std::allocator >)
??:?
#1 | Hyprland(_Z13hyprCtlFDTickijPv+0x4ed) [0x5fd7f0648f2d]
hyprCtlFDTick(int, unsigned int, void
)
??:?
#11 | /usr/lib/libwayland-server.so.0(wl_event_loop_dispatch+0x1f2) [0x7af3ea3fa112]
??
??:0
#12 | /usr/lib/libwayland-server.so.0(wl_display_run+0x37) [0x7af3ea3fc1f7]
??
??:0
#13 | Hyprland(_ZN17CEventLoopManager9enterLoopEv+0x2d8) [0x5fd7f07427e8]
CEventLoopManager::enterLoop()
??:?
#14 | Hyprland(main+0xac8) [0x5fd7f0590908]
main
??:?
#15 | /usr/lib/libc.so.6(+0x25e08) [0x7af3e9834e08]
??
??:0
#16 | /usr/lib/libc.so.6(__libc_start_main+0x8c) [0x7af3e9834ecc]
??
??:0
#17 | Hyprland(_start+0x25) [0x5fd7f05bb575]
_start
??:?

Log tail:
[LOG] [CLinuxDMABBUFParamsResource] | plane 2: mod 72057594037927944 fd 151 stride 64 offset 544768
[LOG] [CSHMPool] Resizing a SHM pool from 34560 to 71424
[LOG] [CSHMPool] Resizing a SHM pool from 71424 to 145152
[LOG] [CSHMPool] Resizing a SHM pool from 145152 to 292608
[LOG] [CSHMPool] Resizing a SHM pool from 292608 to 587520
[LOG] [CSHMPool] Resizing a SHM pool from 587520 to 1177344
[LOG] [CLinuxDMABBUFParamsResource] Creating a dmabuf, with id 61: size [Vector2D: x: 300, y: 350], fmt AB24, planes 3
[LOG] [CLinuxDMABBUFParamsResource] | plane 0: mod 72057594037927944 fd 139 stride 1536 offset 0
[LOG] [CLinuxDMABBUFParamsResource] | plane 1: mod 72057594037927944 fd 140 stride 192 offset 540672
[LOG] [CLinuxDMABBUFParamsResource] | plane 2: mod 72057594037927944 fd 141 stride 64 offset 544768
[LOG] [CWLCompositorResource] New wl_region with id 17 at 5fd81f2774e0
[LOG] [CSHMPool] Resizing a SHM pool from 1177344 to 2356992
[LOG] cursorImage request: shape 1 -> default
[LOG] [CWLCompositorResource] New wl_region with id 16 at 5fd81f7a9910
[LOG] LayerSurface 5fd81f3985e0 mapped
[LOG] LayerSurface 5fd81ef7bde0 destroyed
[LOG] Forcing an unmap of a LS that did a straight destroy!
[LOG] LayerSurface 5fd81ef7bde0 unmapped
[LOG] [hookSystem] New hook event registered: closeLayer
[LOG] Framebuffer created, status 36053
[LOG] CWLSurface 5fd81f46f420 called destroy()
[LOG] [CXDGWMBase] New xdg_surface at 5fd81f8a70c0
[LOG] [CXDGSurfaceResource] xdg_surface 5fd81f4027a0 gets a toplevel 5fd81f44d2e0
[LOG] CWLSurface 5fd81f336d70 called init()
[LOG] Window 5fd81f44a840 set class to signal
[LOG] Searching for matching rules for signal (title: )
[LOG] Window 5fd81f44a840 set title to Signal
[LOG] Searching for matching rules for signal (title: Signal)
[LOG] [CXDGDecoration] setMode: MODE_SERVER_SIDE. Sending MODE_SERVER_SIDE as reply.
[LOG] Searching for matching rules for signal (title: Signal)
[LOG] Layout predicts size [Vector2D: x: 0, y: 0] for [Window 5fd81f44a840: title: "Signal"]
[LOG] [CXDGSurfaceResource] xdg_surface 5fd81f8a70c0 requests geometry 0x0 930x945
[LOG] [CXDGActivationToken] assigned new xdg-activation token 464a1bd8-2c90-46c5-8d30-2706ef6f484e
[LOG] [CXDGActivationToken] assigned new xdg-activation token 998c35c5-5f97-4966-a3e3-b9a8ff62c7ff
[LOG] Searching for matching rules for signal (title: Signal)
[LOG] OPENINGON: [Node nullptr], Monitor: 0
[LOG] Searching for matching rules for Mullvad VPN (title: Mullvad VPN)
[LOG] Set keyboard focus to surface 5fd81f38e690, with [Window 5fd81f44a840: title: "Signal"]
[LOG] Searching for matching rules for signal (title: Signal)
[LOG] Map request dispatched, monitor eDP-1, window pos: [970.00000, 69.00000], window size: [936.00000, 997.00000]
[LOG] [CForeignToplevelWlrManager] Newly mapped window 00005fd81f44a840
[LOG] Searching for matching rules for discord (title: Discord Updater)
[LOG] Searching for matching rules for discord (title: Discord)
[LOG] Searching for matching rules for Mullvad VPN (title: Mullvad VPN)
[LOG] Searching for matching rules for signal (title: Signal)
[LOG] [CSHMPool] Resizing a SHM pool from 2304 to 6912
[LOG] [CSHMPool] Resizing a SHM pool from 6912 to 16128
[LOG] [CSHMPool] Resizing a SHM pool from 16128 to 34560
[LOG] [CXDGSurfaceResource] xdg_surface 5fd81f8a5bf0 requests geometry 0x0 940x991
[LOG] [CWLCompositorResource] New wl_region with id 40 at 5fd81f87fa30
[LOG] [CSHMPool] Resizing a SHM pool from 34560 to 71424
[LOG] [CSHMPool] Resizing a SHM pool from 71424 to 145152
[LOG] [CSHMPool] Resizing a SHM pool from 145152 to 292608
[LOG] [CSHMPool] Resizing a SHM pool from 292608 to 587520
[LOG] [CSHMPool] Resizing a SHM pool from 587520 to 1177344
[LOG] [CSHMPool] Resizing a SHM pool from 1177344 to 2356992
[LOG] cursorImage request: shape 1 -> default
[LOG] [CXDGSurfaceResource] xdg_surface 5fd81f8a70c0 requests geometry 0x0 930x991
[LOG] [CWLCompositorResource] New wl_region with id 50 at 5fd81f8b2160
[LOG] Loading overview plugin

Log number 2:

Hyprland Crash Report

"stable"

Hyprland received signal 11(SEGV)
Version: 0bd541f2fd902dbfa04c3ea2ccf679395e316887
Tag: v0.46.2
Date: Thu Dec 19 19:26:47 2024
Flags:

Hyprland seems to be running with plugins. This crash might not be Hyprland's fault.
Plugins:
()

System info:
System name: Linux
Node name: archlinux
Release: 6.12.10-arch1-1
Version: #1 SMP PREEMPT_DYNAMIC Sat, 18 Jan 2025 02:26:57 +0000

GPU:
00:02.0 VGA compatible controller [0300]: Intel Corporation Alder Lake-P GT2 [Iris Xe Graphics] [8086:46a6] (rev 0c) (prog-if 00 [VGA controller])
DeviceName: VGA compatible 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+0x61) [0x5b8180e1cd41]
getBacktrace()
??:?
#1 | Hyprland(_ZN14NCrashReporter18createAndSaveCrashEi+0xb50) [0x5b8180d9a9f0]
NCrashReporter::createAndSaveCrash(int)
??:?
#2 | Hyprland(_Z25handleUnrecoverableSignali+0x71) [0x5b8180d2e3b1]
handleUnrecoverableSignal(int)
??:?
#3 | /usr/lib/libc.so.6(+0x3d1d0) [0x7c05e8d5d1d0]
??
??:0
#4 | /home/user/.local/share/hyprpm/Hyprspace/Hyprspace.so(_Z16registerMonitorsv+0x167) [0x7c05880d9a17]
??
??:0
#5 | /home/user/.local/share/hyprpm/Hyprspace/Hyprspace.so(pluginInit+0x17bd) [0x7c05880db5cd]
??
??:0
#6 | Hyprland(_ZN13CPluginSystem10loadPluginERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x3af) [0x5b8180ee8c2f]
CPluginSystem::loadPlugin(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)
??:?
#7 | Hyprland(_Z14dispatchPlugin20eHyprCtlOutputFormatNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x458) [0x5b8180db5928]
dispatchPlugin(eHyprCtlOutputFormat, std::__cxx11::basic_string<char, std::char_traits, std::allocator >)
??:?
#8 | Hyprland(ZNSt17_Function_handlerIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE20eHyprCtlOutputFormatS5_EPS7_E9_M_invokeERKSt9_Any_dataOS6_OS5+0x71) [0x5b8180daff91]
std::_Function_handler<std::__cxx11::basic_string<char, std::char_traits, std::allocator > (eHyprCtlOutputFormat, std::__cxx11::basic_string<char, std::char_traits, std::allocator >), std::__cxx11::basic_string<char, std::char_traits, std::allocator > ()(eHyprCtlOutputFormat, std::__cxx11::basic_string<char, std::char_traits, std::allocator >)>::_M_invoke(std::_Any_data const&, eHyprCtlOutputFormat&&, std::__cxx11::basic_string<char, std::char_traits, std::allocator >&&)
??:?
#9 | Hyprland(_ZN8CHyprCtl8getReplyENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x612) [0x5b8180db75f2]
CHyprCtl::getReply(std::__cxx11::basic_string<char, std::char_traits, std::allocator >)
??:?
#1 | Hyprland(_Z13hyprCtlFDTickijPv+0x4ed) [0x5b8180db7f2d]
hyprCtlFDTick(int, unsigned int, void
)
??:?
#11 | /usr/lib/libwayland-server.so.0(wl_event_loop_dispatch+0x1f2) [0x7c05e98ea112]
??
??:0
#12 | /usr/lib/libwayland-server.so.0(wl_display_run+0x37) [0x7c05e98ec1f7]
??
??:0
#13 | Hyprland(_ZN17CEventLoopManager9enterLoopEv+0x2d8) [0x5b8180eb17e8]
CEventLoopManager::enterLoop()
??:?
#14 | Hyprland(main+0xac8) [0x5b8180cff908]
main
??:?
#15 | /usr/lib/libc.so.6(+0x25e08) [0x7c05e8d45e08]
??
??:0
#16 | /usr/lib/libc.so.6(__libc_start_main+0x8c) [0x7c05e8d45ecc]
??
??:0
#17 | Hyprland(_start+0x25) [0x5b8180d2a575]
_start
??:?

Log tail:
[LOG] [AQ] drm: Modesetting eDP-1 with [email protected]
[ERR] [AQ] drm: Cannot commit when a page-flip is awaiting
[ERR] Couldn't commit output named eDP-1
[LOG] arrangeMonitors: 1 to arrange
[LOG] arrangeMonitors: eDP-1 auto [0, 0]
[LOG] arrangeMonitors: eDP-1 xwayland [0, 0]
[LOG] [CXDGOutputProtocol] updating all xdg_output heads
[LOG] Monitor eDP-1 data dump: res [email protected], scale 1.00, transform 0, pos 0x0, 10b 0
[LOG] [CXDGOutputProtocol] updating all xdg_output heads
[LOG] [AQ] drm: Cursor buffer imported into KMS with id 306
[LOG] Applying monitor rule for Unknown-1
[LOG] [CXDGOutputProtocol] updating all xdg_output heads
[LOG] [AQ] drm: Cursor buffer imported into KMS with id 306
[LOG] Searching for matching rules for discord (title: Discord Updater)
[LOG] Searching for matching rules for discord (title: Discord)
[LOG] Searching for matching rules for signal (title: Signal)
[LOG] [CXDGOutputProtocol] updating all xdg_output heads
[LOG] [AQ] drm: Cursor buffer imported into KMS with id 306
[LOG] [AQ] drm: Modesetting eDP-1 with [email protected]
[LOG] [CLinuxDMABBUFParamsResource] Creating a dmabuf, with id 43: size [Vector2D: x: 768, y: 1024], fmt AB24, planes 3
[LOG] [CLinuxDMABBUFParamsResource] | plane 0: mod 72057594037927944 fd 80 stride 3072 offset 0
[LOG] [CLinuxDMABBUFParamsResource] | plane 1: mod 72057594037927944 fd 154 stride 384 offset 3145728
[LOG] [CLinuxDMABBUFParamsResource] | plane 2: mod 72057594037927944 fd 170 stride 64 offset 3158016
[LOG] [CXDGSurfaceResource] xdg_surface 5b819a8f04d0 requests geometry 0x0 320x568
[LOG] Searching for matching rules for Mullvad VPN (title: Mullvad VPN)
[LOG] Searching for matching rules for signal (title: Signal)
[LOG] Set keyboard focus to surface 5b819a4c58c0, with [Window 5b819a35d570: title: "Mullvad VPN"]
[LOG] Searching for matching rules for Mullvad VPN (title: Mullvad VPN)
[LOG] Map request dispatched, monitor eDP-1, window pos: [800.00000, 256.00000], window size: [320.00000, 568.00000]
[LOG] [CForeignToplevelWlrManager] Newly mapped window 00005b819a35d570
[LOG] Searching for matching rules for discord (title: Discord Updater)
[LOG] Searching for matching rules for discord (title: Discord)
[LOG] Searching for matching rules for signal (title: Signal)
[LOG] Searching for matching rules for Mullvad VPN (title: Mullvad VPN)
[LOG] [CLinuxDMABBUFParamsResource] Creating a dmabuf, with id 47: size [Vector2D: x: 768, y: 1024], fmt AB24, planes 3
[LOG] [CLinuxDMABBUFParamsResource] | plane 0: mod 72057594037927944 fd 171 stride 3072 offset 0
[LOG] [CLinuxDMABBUFParamsResource] | plane 1: mod 72057594037927944 fd 172 stride 384 offset 3145728
[LOG] [CLinuxDMABBUFParamsResource] | plane 2: mod 72057594037927944 fd 173 stride 64 offset 3158016
[LOG] [CSHMPool] Resizing a SHM pool from 2304 to 6912
[LOG] [CSHMPool] Resizing a SHM pool from 6912 to 16128
[LOG] [CSHMPool] Resizing a SHM pool from 16128 to 34560
[LOG] [CXDGSurfaceResource] xdg_surface 5b819a8f06c0 requests geometry 0x0 930x991
[LOG] [CWLCompositorResource] New wl_region with id 38 at 5b819a719e40
[LOG] [CWLSeatProtocol] New seat resource bound at 5b819a8d7480
[LOG] [CWLDataDeviceProtocol] New datamgr resource bound at 5b819a76ba40
[LOG] [CWLDataDeviceManagerResource] New data device bound at 5b819a3d4890
[LOG] [CPrimarySelectionProtocol] New primary_seletion_manager at 5b819a3c8af0
[LOG] [CPrimarySelectionManager] New primary selection data device bound at 5b819a8e0f10
[LOG] [CXDGOutputProtocol] New xdg_output for eDP-1: client 5b819a8b8ce0 (not xwayland)
[LOG] [CSHMPool] Resizing a SHM pool from 34560 to 71424
[LOG] [CSHMPool] Resizing a SHM pool from 71424 to 145152
[LOG] [CSHMPool] Resizing a SHM pool from 145152 to 292608
[LOG] [CSHMPool] Resizing a SHM pool from 292608 to 587520
[LOG] [CSHMPool] Resizing a SHM pool from 587520 to 1177344
[LOG] [CSHMPool] Resizing a SHM pool from 1177344 to 2356992
[LOG] cursorImage request: shape 1 -> default
[LOG] [CWLCompositorResource] New wl_region with id 16 at 5b819a4c78a0
[LOG] Loading overview plugin

@myamusashi
Copy link
Contributor

myamusashi commented Jan 24, 2025

static SDispatchResult dispatchToggleOverview(std::string arg) {
    auto currentMonitor = g_pCompositor->getMonitorFromCursor();
    auto widget = getWidgetForMonitor(currentMonitor);
    if (widget) {
        if (arg.contains("all")) {
            if (widget->isActive()) {
                for (auto& widget : g_overviewWidgets) {
                    if (widget != nullptr)
                        if (widget->isActive())
                            widget->hide();
                }
            }
            else {
                for (auto& widget : g_overviewWidgets) {
                    if (widget != nullptr)
                        if (!widget->isActive())
                            widget->show();
                }
            }
        }
        else
            widget->isActive() ? widget->hide() : widget->show();
    }
    return SDispatchResult{};
}

static SDispatchResult dispatchOpenOverview(std::string arg) {
    if (arg.contains("all")) {
        for (auto& widget : g_overviewWidgets) {
            if (!widget->isActive()) widget->show();
        }
    }
    else {
        auto currentMonitor = g_pCompositor->getMonitorFromCursor();
        auto widget = getWidgetForMonitor(currentMonitor);
        if (widget)
            if (!widget->isActive()) widget->show();
    }
    return SDispatchResult{};
}

static SDispatchResult dispatchCloseOverview(std::string arg) {
    if (arg.contains("all")) {
        for (auto& widget : g_overviewWidgets) {
            if (widget->isActive()) widget->hide();
        }
    }
    else {
        auto currentMonitor = g_pCompositor->getMonitorFromCursor();
        auto widget = getWidgetForMonitor(currentMonitor);
        if (widget)
            if (widget->isActive()) widget->hide();
    }
    return SDispatchResult{};
}

This is the reason

@Jacobacon215
Copy link
Author

yeah this makes sense. hyprland was referencing monitor stuff in the text output before it crashed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants