Screen tearing on Xorg-server master branch on firefox 71+
Categories
(Core :: Graphics, defect, P3)
Tracking
()
People
(Reporter: asasin7229, Unassigned)
Details
Attachments
(3 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0
Steps to reproduce:
Update xorg-server to git version from AUR. Follow https://gitlab.freedesktop.org/xorg/xserver/issues/914 to build it properly.
Actual results:
Launch and video and observe screen tearing. Firefox says its using OGL to render stuff but IDK for sure. It seems as if Hardware acceleration was disabled.
Expected results:
Launch a video and do not observe tearing
Oh and i forgot to mention that we don't observer this behavior in Chromium.
Updated•5 years ago
|
Comment 2•5 years ago
|
||
Please provide your "about:support" output.
Also, does it happen with "stock" Xorg server?
(In reply to Dzmitry Malyshau [:kvark] from comment #2)
Please provide your "about:support" output.
Also, does it happen with "stock" Xorg server?
And yes it happens on stock xorg server once you upgrade to master branch. I was on stock and it was OK. I upgraded to master and i saw tearing, Downgraded but the tearing remained. Now im running master again cause you never know if it gets fixed by accident.
When i look at the support data i see that its using webrenderer which is correct as i forced it. (Yes tearing is there even without webrenderer) and only way to get rid of the tearing is to use wayland GNOME shell. Firefox running under xwayland.
Also i forgot to say that tearing is not visible when video is not in fullscreen. When its fullscreen the tearing starts.
What might help is that this is an laptop. Integrated GPU which firefox runs on is VEGA 8 and dGPU is RX560X so its PRIME when using dGPU but iGPU is used for GUI and firefox.
Here is xorg log from master branch and i will also attach an old xorg log for comparasion.
Reporter | ||
Comment 10•5 years ago
|
||
I just tried and cleaned my profile for firefox (Not beta or anything. Just firefox so 70) and it produced tearing as expected. Then i enabled openGL composition and tearing went suprisingly away. Then webrender + openGL and tearing was gone too.
This is case for firefox ESR too (68).
Sadly this doesnt apply to nightly or beta or developer edition so 71, 72 and even with clean configs and then enabling openGL composition testing if tearing is gone (It was still there) and then enabling webrender it was still there.
It is weird why 71 didnt produce tearing for me on nightly but well this entire bug is weird.
Also here is link to mutter bug report as this happens only under mutter (GNOME) https://gitlab.gnome.org/GNOME/mutter/issues/927
And this is report to Xorg. https://gitlab.freedesktop.org/xorg/xserver/issues/924 I recommend reading the entire discussion there as most of what we learnt about this weird bug is documented there.
Reporter | ||
Comment 11•5 years ago
|
||
I have my old firefox-nightly builds and so i installed firefox-nighly 70 with new profile and just openGL compositing enabled all rest was default and no tearing. Upgraded to 71 and all was fine. Last 71 build i did was 26092019 and then i havent touched firefox-nightly for a while and next build was on 27102019 and 72 which produced the tearing im seeing up to today. But since firefox-developer-edition sees the same bug as nightly then it must have been introduced somewhere in that 1 month.
But now we at least have time window where it was introduced.
Reporter | ||
Comment 12•5 years ago
|
||
Also happens on 73.
And can somebody look at this ? Its not only me having this bug but it affects more people as can be seen in the xorg or mutter bug i posted and if you search on reddit there is a post about it too.
Im glad to help with fixing this and send all the logs you may need dammit but i cant since nobody seems to care about this.
Comment 13•5 years ago
|
||
Severe tearing here as well and willing to help, let me know if there is anything useful I can provide.
Comment 14•5 years ago
|
||
Same problem here. Screen tearing on fullscreen video only on Firefox 71 in Ubuntu with Intel integrated video. In about:config I have previously set the following:
layers.acceleration.force-enabled = true
layers.force-active = true
With these set, I added the following value to about:config
mozilla.widget.use-argb-visuals = false
This resolves the screen tearing. Setting it to true instead resumes the screen tearing for me.
Comment 15•5 years ago
|
||
(In reply to JayG from comment #14)
Same problem here. Screen tearing on fullscreen video only on Firefox 71 in Ubuntu with Intel integrated video. In about:config I have previously set the following:
layers.acceleration.force-enabled = true
layers.force-active = trueWith these set, I added the following value to about:config
mozilla.widget.use-argb-visuals = falseThis resolves the screen tearing. Setting it to true instead resumes the screen tearing for me.
Probably an unrelated bug, at least on my configuration those settings don't resolve the screen tearing. Nvidia proprietary drivers on Archlinux, Gnome 3.34.1.
Comment 16•5 years ago
|
||
Is at least a workaround available at the moment? In this state the browser functionality is heavily compromised, watching a simple video on YouTube is a pain.
Comment 17•5 years ago
|
||
Got the same problem. ThinkPad P53 with Intel+NVIDIA, latest beta Ubuntu 20, updated daily.
Firefox 71 (20191205220404), tearing in the full-screen mode.
Chromium does not have tearing in any mode.
Comment 18•5 years ago
|
||
(In reply to Andrew Kornilov from comment #17)
Got the same problem. ThinkPad P53 with Intel+NVIDIA, latest beta Ubuntu 20, updated daily.
Firefox 71 (20191205220404), tearing in the full-screen mode.
Chromium does not have tearing in any mode.
Forgot to mention tearing on regular text pages while scrolling. Disabling Smooth scrolling fixes this.
Comment 19•5 years ago
|
||
(In reply to Andrew Kornilov from comment #17)
Got the same problem. ThinkPad P53 with Intel+NVIDIA, latest beta Ubuntu 20, updated daily.
Firefox 71 (20191205220404), tearing in the full-screen mode.
Chromium does not have tearing in any mode.
And one more comment: disabling unredirecting in the Mutter seems to fix the issue. Please, try this command (for gnome-shell >=3.30, if <3.30, then replace "display" with "screen"):
gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval 'Meta.disable_unredirect_for_display(global.display);'
Comment 20•5 years ago
|
||
I am also experiencing sever screen tearing on Debian Buster 10.2 with proprietary nVidia drivers and stock Xorg. Happens when scrolling pages and watching videos (both embedded and fullscreen). Disabling smooth scrolling makes the problem go away when scrolling pages. Setting layers.acceleration.force-enabled
to true
makes the problem go away completely but then this causes https://bugzilla.mozilla.org/show_bug.cgi?id=1536396, which is even worse.
Reporter | ||
Comment 21•5 years ago
|
||
Needs more testing but it seems like 74 fixed it. But this is not 100% tho. Will run it for week and report here.
Reporter | ||
Comment 22•5 years ago
|
||
No need to run for a week. Pretty sure it has been fixed at least for me. Please people who had the same issue report if it is fixed for you too. Will leave it open until so/
Comment 23•5 years ago
|
||
(In reply to Haxk20 from comment #22)
No need to run for a week. Pretty sure it has been fixed at least for me. Please people who had the same issue report if it is fixed for you too. Will leave it open until so/
I confirm, fixed for me too.
Reporter | ||
Comment 24•5 years ago
|
||
(In reply to Claudio Cocciarelli from comment #23)
(In reply to Haxk20 from comment #22)
No need to run for a week. Pretty sure it has been fixed at least for me. Please people who had the same issue report if it is fixed for you too. Will leave it open until so/
I confirm, fixed for me too.
Amazing. Someone please close it as resolved from Mozilla !
Comment 25•5 years ago
|
||
I just tested the latest nightly build and on a clean profile I am still experiencing severe tearing when scrolling the pages and watching videos. Therefore, this is not fixed for me. This ticket should be reopened and we should make an attempt to figure out in which scenarios this bug no longer occurs (because clearly it has been fixed for some people) and in which ones it does.
That being said, can I ask for reopening of this ticket?
Reporter | ||
Comment 26•5 years ago
|
||
(In reply to jwstolarek from comment #25)
I just tested the latest nightly build and on a clean profile I am still experiencing severe tearing when scrolling the pages and watching videos. Therefore, this is not fixed for me. This ticket should be reopened and we should make an attempt to figure out in which scenarios this bug no longer occurs (because clearly it has been fixed for some people) and in which ones it does.
That being said, can I ask for reopening of this ticket?
In clean profile its expected to see tearing. Please turn on GPU acceleration and test again.
You can set it by layers.acceleration.force-enabled or just enable webrenderer. But enabling just GPU acceleration should make tearing go away. If not enable also webrenderer.
Comment 27•5 years ago
|
||
Indeed, with hardware acceleration enabled there's no tearing. I'm surprised to hear that this is the expected behaviour, i.e. that you must use hardware acceleration to eliminate tearing. That was not the case in the older versions of FF.
Updated•2 years ago
|
Updated•2 years ago
|
Description
•