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

Reloading hyprland with this plugin active freezes hyprland #12

Open
matejdro opened this issue Jul 4, 2024 · 0 comments
Open

Reloading hyprland with this plugin active freezes hyprland #12

matejdro opened this issue Jul 4, 2024 · 0 comments

Comments

@matejdro
Copy link

matejdro commented Jul 4, 2024

Hello,

I have tried installing this plugin but I'm experiencing quite a severe issue: after installing and enabling this plugin, reloading Hyprland (either via saving config or via manual hyprctl reload) will have a high likelihood of freezing the screen. Audio still plays, but display, including mouse cursor, is frozen. I can recover by sshing into the machine and killing Hyprland.

Logs in between reloading and freezing:

[LOG] Using config: /home/matej/.config/hypr/hyprland.conf
[LOG] ApplyConfigToKeyboard for "power-button", hasconfig: 0
[LOG] Applying monitor rule for DP-2
[LOG] Not applying a new rule to DP-2 because it's already applied!
[LOG] Applying monitor rule for DP-4
[LOG] Not applying a new rule to DP-4 because it's already applied!
[LOG] Registered signal for owner 604a2013c190: 604a21a288c8 -> 604a2013c248 (owner: CPointerManager)
[LOG] Registered signal for owner 604a21abd170: 604a21470928 -> 604a21abd180 (owner: CRenderbuffer)
[LOG] Callback 604a21abd1a8 -> 604a21abd1a0, CRenderbuffer removed.
[LOG] Registered signal for owner 604a21abd170: 604a2157cc68 -> 604a21abd180 (owner: CRenderbuffer)
[LOG] Callback 604a21abd1a8 -> 604a21abd1a0, CRenderbuffer removed.
[LOG] Searching for matching rules for org.kde.konsole (title: hypr : zsh — Konsole)
[LOG] Window rule suppressevent maximize ->  class:.* matched [Window 604a21ae52d0: title: "hypr : zsh — Konsole"]
[LOG] Searching for matching rules for firefox (title: Restore Session — Mozilla Firefox)
[LOG] Window rule workspace 5 silent -> firefox matched [Window 604a21ad1f20: title: "Restore Session — Mozilla Firefox"]
[LOG] Window rule suppressevent maximize ->  class:.* matched [Window 604a21ad1f20: title: "Restore Session — Mozilla Firefox"]
[LOG] Searching for matching rules for org.telegram.desktop (title: Telegram)
[LOG] Window rule workspace 9 silent -> org.telegram.desktop matched [Window 604a21098320: title: "Telegram"]
[LOG] Window rule group set -> org.telegram.desktop matched [Window 604a21098320: title: "Telegram"]
[LOG] Window rule suppressevent maximize ->  class:.* matched [Window 604a21098320: title: "Telegram"]
[LOG] Searching for matching rules for WebApp-Messenger7916 (title: Messenger — Mozilla Firefox)
[LOG] Window rule workspace 9 silent -> WebApp-.* matched [Window 604a219f49a0: title: "Messenger — Mozilla Firefox"]
[LOG] Window rule group set -> WebApp-.* matched [Window 604a219f49a0: title: "Messenger — Mozilla Firefox"]
[LOG] Window rule suppressevent maximize ->  class:.* matched [Window 604a219f49a0: title: "Messenger — Mozilla Firefox"]
[LOG] Searching for matching rules for WebApp-Whatsapp8278 (title: WhatsApp — Mozilla Firefox)
[LOG] Window rule workspace 9 silent -> WebApp-.* matched [Window 604a21a8e030: title: "WhatsApp — Mozilla Firefox"]
[LOG] Window rule group set -> WebApp-.* matched [Window 604a21a8e030: title: "WhatsApp — Mozilla Firefox"]
[LOG] Window rule suppressevent maximize ->  class:.* matched [Window 604a21a8e030: title: "WhatsApp — Mozilla Firefox"]
[LOG] Searching for matching rules for discord (title: Friends - Discord)
[LOG] Window rule workspace 9 silent -> discord matched [Window 604a21215ff0: title: "Friends - Discord"]
[LOG] Window rule group set -> discord matched [Window 604a21215ff0: title: "Friends - Discord"]
[LOG] Window rule suppressevent maximize ->  class:.* matched [Window 604a21215ff0: title: "Friends - Discord"]
[LOG] Searching for matching rules for org.strawberrymusicplayer.strawberry (title: Strawberry Music Player)
[LOG] Window rule workspace 10 silent -> strawberry matched [Window 604a219f6a20: title: "Strawberry Music Player"]
[LOG] Window rule suppressevent maximize ->  class:.* matched [Window 604a219f6a20: title: "Strawberry Music Player"]
[LOG] Searching for matching rules for obsidian (title: QuickNote - Notes - Obsidian v1.6.5)
[LOG] Window rule workspace 7 silent -> obsidian matched [Window 604a21a94710: title: "QuickNote - Notes - Obsidian v1.6.5"]
[LOG] Window rule suppressevent maximize ->  class:.* matched [Window 604a21a94710: title: "QuickNote - Notes - Obsidian v1.6.5"]
[LOG] Window is already in the required fullscreen state
[LOG] Window is already in the required fullscreen state

I noticed in the similar threads that attaching gdb to Hyprland and providing output of the bt --full can help:

#0  0x00006049e17473b0 in ?? ()
No symbol table info available.
#1  0x00006049e173da7e in CWindow::getGroupHead() ()
No symbol table info available.
#2  0x00006049e16966db in CCompositor::updateWindowAnimatedDecorationValues(Hyprutils::Memory::CSharedPointer<CWindow>) ()
No symbol table info available.
#3  0x00006049e1697828 in CCompositor::updateAllWindowsAnimatedDecorationValues() ()
No symbol table info available.
#4  0x00006049e1740bdb in CWindow::setGroupCurrent(Hyprutils::Memory::CSharedPointer<CWindow>) ()
No symbol table info available.
#5  0x00006049e178c470 in CHyprMasterLayout::onWindowCreatedTiling(Hyprutils::Memory::CSharedPointer<CWindow>, eDirection) ()
No symbol table info available.
#6  0x00006049e1780ceb in IHyprLayout::onWindowCreated(Hyprutils::Memory::CSharedPointer<CWindow>, eDirection) ()
No symbol table info available.
#7  0x000072f7eeb3e21b in CWorkspaceLayout::onWindowCreated (this=0x604a21657420, pWindow=..., direction=DIRECTION_DEFAULT)
    at ./workspaceLayout.cpp:64
        WDATA = 0x604a210a3cb0
        WSID = 9
        layout = 0x604a20121bb8
#8  0x000072f7eeb419ce in CWorkspaceLayout::setLayoutForWorkspace (this=0x604a21657420, layout=0x604a20121bb8, 
    ws=@0x604a21ad3100: 9, isDefault=true) at ./workspaceLayout.cpp:532
        win = @0x604a21584d90: {impl_ = 0x604a212742e0}
        __for_range = std::vector of length 8, capacity 8 = {{impl_ = 0x604a20fed7d0}, {impl_ = 0x604a210a72a0}, {
            impl_ = 0x604a212742e0}, {impl_ = 0x604a20f6e340}, {impl_ = 0x604a21a95790}, {impl_ = 0x604a20fc0100}, {
            impl_ = 0x604a20fb5390}, {impl_ = 0x604a20e67f90}}
        __for_begin = {impl_ = 0x604a212742e0}
        __for_end = {impl_ = 0xa303132346334}
        w = @0x604a21ad3100: {workspaceID = 9, layout = 0x604a20121bb8, previousLayout = 0x604a20121bb8, isDefault = true}
        __for_range = std::vector of length 6, capacity 8 = {{workspaceID = 1, layout = 0x604a20121bb8, 
            previousLayout = 0x604a20121bb8, isDefault = true}, {workspaceID = 5, layout = 0x604a20121bb8, 
            previousLayout = 0x604a20121bb8, isDefault = true}, {workspaceID = 9, layout = 0x604a20121bb8, 
            previousLayout = 0x604a20121bb8, isDefault = true}, {workspaceID = 10, layout = 0x604a20121bb8, previousLayout = 0x0, 
            isDefault = true}, {workspaceID = 7, layout = 0x604a20121bb8, previousLayout = 0x0, isDefault = true}, {
            workspaceID = 2, layout = 0x604a20121bb8, previousLayout = 0x0, isDefault = true}}
        __for_begin = {workspaceID = 9, layout = 0x604a20121bb8, previousLayout = 0x604a20121bb8, isDefault = true}
        __for_end = {workspaceID = 0, layout = 0x0, previousLayout = 0x20000000000040, isDefault = 65}
        WSENTRY = 0x7fff2518e220
#9  0x000072f7eeb41d9a in CWorkspaceLayout::setDefaultLayout (this=0x604a21657420, name="master") at ./workspaceLayout.cpp:556
        w = @0x604a21ad3100: {workspaceID = 9, layout = 0x604a20121bb8, previousLayout = 0x604a20121bb8, isDefault = true}
        __for_range = std::vector of length 6, capacity 8 = {{workspaceID = 1, layout = 0x604a20121bb8, 
            previousLayout = 0x604a20121bb8, isDefault = true}, {workspaceID = 5, layout = 0x604a20121bb8, 
            previousLayout = 0x604a20121bb8, isDefault = true}, {workspaceID = 9, layout = 0x604a20121bb8, 
            previousLayout = 0x604a20121bb8, isDefault = true}, {workspaceID = 10, layout = 0x604a20121bb8, previousLayout = 0x0, 
            isDefault = true}, {workspaceID = 7, layout = 0x604a20121bb8, previousLayout = 0x0, isDefault = true}, {
            workspaceID = 2, layout = 0x604a20121bb8, previousLayout = 0x0, isDefault = true}}
        __for_begin = {workspaceID = 9, layout = 0x604a20121bb8, previousLayout = 0x604a20121bb8, isDefault = true}
        __for_end = {workspaceID = 0, layout = 0x0, previousLayout = 0x20000000000040, isDefault = 65}
        layout = 0x604a20121bb8
#10 0x000072f7eeb13a3b in (anonymous namespace)::WSConfigReloaded () at ./main.cpp:26
        DEFAULTLAYOUT = 0x604a21656640

This is with

Hyprland, built from branch  at commit 918d8340afd652b011b937d29d5eea0be08467f5  (flake.lock: update).
Date: Tue Jun 25 12:06:02 2024
Tag: v0.41.2, commits: 4886

Any ideas?

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

1 participant