Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange flicker/re-render problem in Chrome with Popover component #4672

Closed
SlowburnAZ opened this issue Jul 10, 2016 · 7 comments
Closed

Strange flicker/re-render problem in Chrome with Popover component #4672

SlowburnAZ opened this issue Jul 10, 2016 · 7 comments
Labels
component: Popover The React component. v0.x

Comments

@SlowburnAZ
Copy link

Problem description

Getting a flickering effect after a Popover closes, and sometimes as it opens. Seems that everything is re-rendered multiple times... watching the body element in the developer console confirms that it's being re-rendered several times when this happens. Doesn't happen every time, but enough that it's very distracting.

This happens both in my own project, and on the Material UI demo page.

This seems to be only happening for me in Chrome. Firefox (version 47.0) doesn't have the same problem.

Steps to reproduce

(In demo page): Go to the Popover component demo. Click button to open Popover, then click somewhere else to close it. Like I said, it doesn't happen every time, but a few clicks should get it to happen.

Versions

  • Material-UI: 0.15.2
  • React: 15.1.0
  • Browser: Google Chrome Version 51.0.2704.106 (64-bit)
  • OS: Ubuntu Gnome 16.04
@SlowburnAZ
Copy link
Author

Here's an example...

gifrecord_2016-07-10_120304

@SlowburnAZ
Copy link
Author

SlowburnAZ commented Jul 11, 2016

Hmmm... seems this is a known issue with Google Chrome on Linux (and in my case, Chromium and Vivaldi browsers, too).

A workaround that seems to work can be found here: https://productforums.google.com/forum/#!topic/chrome/CtKF2BiskT8

@aahan96
Copy link
Contributor

aahan96 commented Jul 11, 2016

@SlowburnAZ The link is broken

@SlowburnAZ
Copy link
Author

@aahan96 I'm not sure why the link isn't working from within Github, but if you copy that link into a new browser window, it should work.

The answer on that page that worked for me is in this comment: https://productforums.google.com/d/msg/chrome/CtKF2BiskT8/BBnijKhdBwAJ

(Again, you'll have to copy that link into a new browser window for it to work...)

@aahan96
Copy link
Contributor

aahan96 commented Jul 19, 2016

@SlowburnAZ I saw that link, but am unable to locate the comment. Can you please copy the solution and paste it in the comments box?

@SlowburnAZ
Copy link
Author

The comment is from Hector Jerezano:

"Found out that having this flags --disable-gpu-driver-bug-workarounds --enable-native-gpu-memory-buffers and also enable-zero-copy ENABLED with version 51 does a better job I am not seeing any flicker so far!"

So, he adds the flags to the Chrome executable, and in chrome://flags, he sets the "Zero-copy rasterizer Mac, Windows, Linux, Chrome OS, Android" flag to Enabled.

@mpontikes mpontikes mentioned this issue Aug 5, 2016
13 tasks
@aahan96
Copy link
Contributor

aahan96 commented Aug 17, 2016

@SlowburnAZ It's a browser issue and not a MUI issue. I think we should close it for now.

@aahan96 aahan96 closed this as completed Aug 17, 2016
@oliviertassinari oliviertassinari added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Dec 21, 2022
@zannager zannager added component: Popover The React component. v0.x and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: Popover The React component. v0.x
Projects
None yet
Development

No branches or pull requests

4 participants