Closed Bug 1346384 Opened 7 years ago Closed 3 years ago

Flicker on resize when on second monitor

Categories

(Core :: Graphics, defect, P3)

Desktop
Windows 10
defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox86 --- affected

People

(Reporter: david, Unassigned)

Details

(Keywords: multi-monitors, Whiteboard: [gfx-noted])

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0
Build ID: 20170302120751

Steps to reproduce:

Computer layout is Windows 10 laptop with two monitors in a docking station.  Open or move firefox to second monitor and resize the window by dragging one of the edges around.


Actual results:

The window will flicker between the window and a black box. If you move the same window to the primary monitor and repeat test it does not flicker.


Expected results:

There should be no flickering in the browser window on any monitor.
Component: Untriaged → Graphics
Keywords: multi-monitors
Product: Firefox → Core
Could you give some details about your double monitor setup, please (HiDPI, resolution).
In addition, could you type about:support in the location bar and paste the section "graphics".
Flags: needinfo?(david)
I have tried changing monitor settings and found that duplicate display mode does not flicker. Also, it still flickers when set as main display or not as main display. it also flickers if it is the only monitor on the system.
The flickering monitor is a Dell E2311Hf/Aug 2011
The working monitor is a Dell E2213Hb
They both use DVI.

Graphics
Features
Compositing	Direct3D 11
Asynchronous Pan/Zoom	wheel input enabled; touch input enabled
WebGL Renderer	Google Inc. -- ANGLE (Intel(R) HD Graphics 530 Direct3D11 vs_5_0 ps_5_0)
WebGL2 Renderer	Google Inc. -- ANGLE (Intel(R) HD Graphics 530 Direct3D11 vs_5_0 ps_5_0)
Hardware H264 Decoding	Yes; Using D3D11 API
Audio Backend	wasapi
Direct2D	true
DirectWrite	true (10.0.14393.351)
GPU #1
Active	Yes
Description	Intel(R) HD Graphics 530
Vendor ID	0x8086
Device ID	0x191b
Driver Version	21.20.16.4574
Driver Date	12-23-2016
Drivers	igdumdim64 igd10iumd64 igd10iumd64 igd12umd64 igdumdim32 igd10iumd32 igd10iumd32 igd12umd32
Subsys ID	06d91028
RAM	Unknown
GPU #2
Active	No
Description	NVIDIA Quadro M1000M
Vendor ID	0x10de
Device ID	0x13b1
Driver Version	21.21.13.6972
Driver Date	11-10-2016
Drivers	C:\WINDOWS\System32\DriverStore\FileRepository\nvdm.inf_amd64_39fb009624c4bf28\nvd3dumx,C:\WINDOWS\System32\DriverStore\FileRepository\nvdm.inf_amd64_39fb009624c4bf28\nvwgf2umx,C:\WINDOWS\System32\DriverStore\FileRepository\nvdm.inf_amd64_39fb009624c4bf28\nvwgf2umx,C:\WINDOWS\System32\DriverStore\FileRepository\nvdm.inf_amd64_39fb009624c4bf28\nvwgf2umx C:\WINDOWS\System32\DriverStore\FileRepository\nvdm.inf_amd64_39fb009624c4bf28\nvd3dum,C:\WINDOWS\System32\DriverStore\FileRepository\nvdm.inf_amd64_39fb009624c4bf28\nvwgf2um,C:\WINDOWS\System32\DriverStore\FileRepository\nvdm.inf_amd64_39fb009624c4bf28\nvwgf2um,C:\WINDOWS\System32\DriverStore\FileRepository\nvdm.inf_amd64_39fb009624c4bf28\nvwgf2um
Subsys ID	06d91028
RAM	2048
Diagnostics
AzureCanvasAccelerated	0
AzureCanvasBackend	direct2d 1.1
AzureContentBackend	direct2d 1.1
AzureFallbackCanvasBackend	cairo
Decision Log
D3D9_COMPOSITING	
disabled by default: Disabled by default
I did some more tests by changing the two dvi cables and determined that it is the dvi cable that is causing the problem for some reason.  I was able to use the good dvi cable on both monitors. I was able to reproduce the problem with the bad dvi cable on both monitors.  I'll have to get a second good dvi cable or live with the problem.
Another round is hardware swapping with new cables and the problem is still there.  It appears to be the second port on the Dell PR02X docking station that is causing the flickering.  I'm using a dell port docking station (model PR02X) to have dual monitors.  It is only happening in firefox (not ie, edge, nor chrome).  Also, a coworker sees it on his setup too.  He has a similar setup except E2213Hb/E2213Hc monitor models.
It flickers at all available resolutions.  I use the recommended 1920 x 1080
:mchang, can you comment to the bug?
Flags: needinfo?(mchang)
Whiteboard: [gfx-noted]
Did this just start happening on 52 or has it always happened for you? Does it still happen on firefox nightly?
Flags: needinfo?(mchang)
I just started noticing it.  I have had this setup for years.  However, my coworker confirmed it on v51.  

More on the behavior.  If I change to duplicate windows, then open firefox and change back to extended display, the window does not flicker until I restart firefox.  Also, when moving from good monitor to bad monitor, the flicker will happen when half the window is on the bad display. 

Very rarely, there is no flicker problem on the bad monitor until firefox is restarted.  That behavior is not reproducible.

Side problem: I'm unable to change to nightly build.  I tried to change channel-prefs.js from release to nightly, start firefox, and go to about page. The update fails.  For debugging that, I tried rebooting, reinstalling firefox, going from release to beta, and 32-bit and 64-bit versions.
You can install firefox nightly side by side with release - https://www.mozilla.org/en-US/firefox/channel/desktop/

So are you saying it's always happened and you just noticed it? I'm not sure how far back you want to go... but maybe you can try like 40 and 45 - https://ftp.mozilla.org/pub/firefox/releases/ 

If you use your coworkers monitors, does it still have the same problem?

What if you go to:

1) about:config
2) Set the preference "layers.acceleration.disabled" to true, restart firefox. 

Does it still happen?
I just found that right clicking on the icon has an option to "Run with graphics processor" with two options.

The default is Integrated graphics (default).  The other is "High-performance NVIDIA processor".  When I choose NVIDIA, there is no flickering.

The Integrated graphics is Intel(R) HD Graphics 530. The NVIDIA is NVIDIA Quadro M1000M.

From the NVIDIA control panel: The Integrated graphics provides longer battery life, the NVIDIA processor provides the best performance.

All of my applications are using the Integrated graphics.
Changing layers.acceleration.disabled to true fixed the problem.  It also fixed the new bug I opened involving text size differences on two monitors.
confirmed that it happens on version 40.  Also confirmed that the layers.acceleration.disabled solution works on version 40.
confirmed that it happens on version 55.0a1 nightly.  Also confirmed that the layers.acceleration.disabled solution works on version 55.0a1 nightly.
Flags: needinfo?(david)

Reproduced the issue using latest Firefox 86.0a1 with Windows 10x84 laptop and two secondary monitors in a docking station, the window flickers on resize.

Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Unspecified → Windows 10
Hardware: Unspecified → Desktop
Version: 52 Branch → Trunk

Gabi, any chance you can try to post a screen capture of the issue?

Flags: needinfo?(gasofie)
Blocks: gfx-triage

I can't reproduce this on my Win10 machine.

I can't reproduce this in a two screen setup on Windows 10.

No longer blocks: gfx-triage

(In reply to Jim Mathies [:jimm] from comment #15)

Gabi, any chance you can try to post a screen capture of the issue?

I can't seem to reproduce the issue anymore, might've been an oversight from my part the 1st time reproducing.
I've verified on 2 different setups: Windows 10x64 laptop with 2 external monitors and Windows 10x64 PC with 2 monitors.

Flags: needinfo?(gasofie)
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.