WesselKroos / youtube-ambilight

This browser extension adds ambient light to YouTube videos
MIT License
86 stars 8 forks source link

Flickering and stuck frames on Firefox 132.0 #270

Open joni999 opened 6 days ago

joni999 commented 6 days ago

Bug description

Ambient Light sporadically starts flickering

Steps to reproduce the behavior

unfortunately I can't reliably reproduce the issue. It just happens from time to time (but usually takes at least 15 Minutes of watching varying videos to appear. I last got it on this video: https://www.youtube.com/watch?v=CkHU2yXp36Y

Browser

Firefox

Operating system

Linux

Extension version

2.38.10

The bug still happens in these conditions

Additional context and/or screenshots

This is what the flickering looks like :

https://github.com/user-attachments/assets/42ace75e-2df0-466f-af06-992f20d38cfd

Even Page refresh via F5 doesn't fix it.

I'm using two 3440x1440 Ultra wide monitors. I'm using Linux - CachyOS distribution with latest updates.

PS: Thank you for making this add-on - it looks great and prevents "burn in" on my OLED.

WesselKroos commented 6 days ago

That's an annoying bug. Especially because it happens randomly. Since a refresh does not work, I think you have found a bug in the browser or the graphics driver.

Some things you could try when it happens:

What CPU and GPU do you have? In case you might need to report this bug to the Firefox developers to get it fixed.

This bug does seem similar to another glitch which was fixed in Firefox 132. But that bug happend directly instead of randomly. So it might be related to what they fixed for that bug. #265 If it is related you should see the same flicking randomly happen in 3D/180/360 YouTube videos with ambient light turned off. Then we should definitely report it to Firefox and probably in the same bugreport they thought they had fixed.

WesselKroos commented 6 days ago

This was the original bugreport to the Firefox developers for the glitch in Firefox 131: https://bugzilla.mozilla.org/show_bug.cgi?id=1922278

In the meantime it has gotten 2 additional related bugreports. I think you are experiencing bug 1924400, because that one is also happening randomly: https://bugzilla.mozilla.org/show_bug.cgi?id=1924400 The other one is: https://bugzilla.mozilla.org/show_bug.cgi?id=1924070

Apparently you might be able to workaround this bug by setting the widget.dmabuf.enabled flag to false.

joni999 commented 6 days ago

Thank you for looking into it! these are my specs: CPU: i7 13700k GPU: RTX 3090ti

bug 1924400 looks very similar to my issue - I will try the suggested workaround and report back. Thank you!