Jas-SinghFSU / HyprPanel

A Bar/Panel for Hyprland with extensive customizability.
MIT License
873 stars 60 forks source link

Browser notifications freezes hyprpanel and browser during media playback #440

Open amanhex opened 1 week ago

amanhex commented 1 week ago

Describe the bug When watching a YouTube video in Firefox, incoming notifications—such as Instagram alerts within the browser—cause both Firefox and hyprpanel to completely freeze. This freeze only resolves if AGS is manually terminated.

To Reproduce i. Open Firefox and start playing a video on YouTube. ii. Receive a browser notification from a site (e.g., Instagram). iii. Observe that Firefox and hyprpanel both freeze simultaneously.

Expected behavior Browser notifications should appear without impacting media playback or causing the hyprpanel or Firefox to freeze.

Screenshots None

Desktop (please complete the following information):

Additional context

(com.github.Aylur.ags:34968): Gjs-CRITICAL **: 20:14:42.086: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
The offending signal was destroy on Ags_Label 0x5f42939d4b80.
== Stack trace for context 0x5f428deefde0 ==
#0   5f428dfe3f88 i   resource:///org/gnome/gjs/modules/core/overrides/GLib.js:263 (72637c7c600 @ 139)
rubiin commented 1 week ago

can you also show your memory usage. I am trying a small html page i made to test notifications and bombarding with multiple notifs but could not replicate

image

rubiin commented 1 week ago

Here the link https://jsitor.com/vGOi-h09sc

amanhex commented 1 week ago

Browser notifications while watching a video on youtube etc causes hyprpanel and browser to freeze. You can try watching a youtube video and receive notifications from instagram to replicate it.

amanhex commented 1 week ago

Here is how I replicate the bug

https://github.com/user-attachments/assets/88df5de3-9b41-4e01-8f0d-cd1dce1b1cdd

rubiin commented 1 week ago

cool > will test it out

rubiin commented 1 week ago

Might be browser specific > have to investigate further. I am using vivaldi and tried but it didnt freeze Kooha-2024-11-05-23-15-38.webm

amanhex commented 1 week ago

Sure! I'm using Firefox in the demo. I'll try to replicate it with chromium too.

rubiin commented 1 week ago

In the mean time, i will try with firefox.

rubiin commented 1 week ago

Confirmed. It only occurs when on firefox. I tried the same thing as I did in the above video. It froze. Had to force kill the browser

amanhex commented 1 week ago

Confirmed with chromium too. This time only hyprpanel froze, the browser and video playback was working fine.

Jas-SinghFSU commented 6 days ago

Just replicated it and it's an AGS issue.

Jas-SinghFSU commented 6 days ago

https://github.com/Aylur/ags/issues/605