Jas-SinghFSU / HyprPanel

A Bar/Panel for Hyprland with extensive customizability.
448 stars 32 forks source link

[Bug] Notifications causes lag and crashes #170

Closed zDyanTB closed 1 week ago

zDyanTB commented 3 weeks ago

Describe the bug Notifications won't disappear and can cause stutters and crashes

To Reproduce Enable notifications

Expected behavior Appear/disappear properly

Video: https://streamable.com/6l1tz1

zDyanTB commented 3 weeks ago

It seems the whole bar is laggy image actual time: 01:10 PM

Jas-SinghFSU commented 3 weeks ago

Is this a new issue for you or has it always occurred?

zDyanTB commented 3 weeks ago

New, since it updated it

Jas-SinghFSU commented 3 weeks ago

Do you happen to know what your last updated version/commit was? I wonder if it's still an issue in the old version.

zDyanTB commented 3 weeks ago

I have it on Flakes "lastModified": 1723433930, "rev": "79bf05d9c99d04f4e93395de8d6477c8473eacaa",

The new one: "lastModified": 1724309181, "rev": "ff29790317003d4071205b303ce2ccc149f8cd21",

zDyanTB commented 3 weeks ago

note: hyprpanel --clear-cache solves it, but my config is gone..

Jas-SinghFSU commented 3 weeks ago

Are you referring to this command?

ags --clear-cache
zDyanTB commented 3 weeks ago
❯ hyprpanel -h
USAGE:
    /nix/store/0yw867srsmmjzlzbyrd3shjbabrp7jas-ags-1.8.2/bin/.ags-wrapped [OPTIONS]

OPTIONS:
......
    --clear-cache           Remove /home/zdyant/.cache/ags and exit
Jas-SinghFSU commented 3 weeks ago

If so then it deleted the directory where your config is stored that persists between sessions (hence the cache). I wonder if AGS's Preserve Actions is causing this behavior.

I'll paste what I wrote in the other comment and maybe it's applicable here as well:

If you are able to still replicate this, could you - once replicated - try deleting your ~/.cache/ags/notifications/ directory and disabling Preserve Actions in Settings > Configuration > Notifications?

Edit: Also, for your next config you can export it once you've got it where you want it. That way if you have to wipe your cache or set up hyprpanel on a different machine, you can just import it and be ready to go. I know that doesn't unfortunately help you in this case, but going forward.

Jas-SinghFSU commented 3 weeks ago

If that is indeed the culprit then I'll have to disable that feature by default and provide a warning against it.

Jas-SinghFSU commented 3 weeks ago
❯ hyprpanel -h
USAGE:
    /nix/store/0yw867srsmmjzlzbyrd3shjbabrp7jas-ags-1.8.2/bin/.ags-wrapped [OPTIONS]

OPTIONS:
......
    --clear-cache           Remove /home/zdyant/.cache/ags and exit

Ah yea, on nix hyprpanel is essentially running ags commands so that make sense.

Jas-SinghFSU commented 1 week ago

After further discussion in discord, it seems that this issue has been resolved by #199 for now.