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

Some electron apps flicker #8127

Closed
Akronix opened this issue Dec 2, 2016 · 15 comments
Closed

Some electron apps flicker #8127

Akronix opened this issue Dec 2, 2016 · 15 comments
Labels
blocked/need-info ❌ Cannot proceed without more information

Comments

@Akronix
Copy link

Akronix commented Dec 2, 2016

  • Electron version: Not applicable. Franz: 4.0.4, GitKraken: 1.9.1 Atom: 1.12.6
  • Operating system: Ubuntu 16.04

Actual behavior

Apps based on electron flicker sometimes.

How to reproduce

Web view blinks sometimes within electron apps. Apparently, when they are doing "heavy" graphics tasks.
For example, try using Telegram inside Franz and look for a gif (for instance, "Ralph") using @gif inline bot. Screen momentarily flickers as you're scrolling though the gif lists. Curiously, it seems to happen only when Franz window is maximized ("full size").

I have experienced same momentarily flickers in GitKraken or, less often, in Atom.

Seem to be related to chromium because I can reproduce this opening WebTelegram in a chromium browser tab but not in Firefox.

@MarshallOfSound
Copy link
Member

Without a consistently reproducible example their isn't much we can do.

FWIW though I've seen this before on my app and I fixed it my not calling app.disableHardwareAcceleration() on macOS

@MarshallOfSound MarshallOfSound added the blocked/need-info ❌ Cannot proceed without more information label Dec 2, 2016
@r4v5
Copy link

r4v5 commented Dec 19, 2016

If you are running with Intel graphics, you may be seeing the effects of an issue documented in chromium bug 606152.

@Akronix
Copy link
Author

Akronix commented Dec 19, 2016 via email

@alexeyten
Copy link

It looks like tiny horizontal lines. Here in Slack

screenshot from 2016-12-22 20 21 18

@kevinsawicki
Copy link
Contributor

If you are running with Intel graphics, you may be seeing the effects of an issue documented in chromium bug 606152.

Thanks for finding this @r4v5. I'm going to close this out since it looks to be an open Chrome bug, please subscribe to it there for updates.

@novoj
Copy link

novoj commented Mar 7, 2017

Problem in chrome can be fixed by appending these arguments:

--disable-gpu-driver-bug-workarounds --enable-native-gpu-memory-buffers

Unfortunatelly passing same arguments to Electron based app (Mattermost) doesn't help. Are arguments taken into account in Electron app?

@ccnokes
Copy link
Contributor

ccnokes commented Jun 20, 2017

@novoj how are you appending those arguments? Like app.commandLine.appendArgument('enable-native-gpu-memory-buffers')? appendSwitch doesn't seem to accept arbitrary arguments so just thought I'd double check.

@novoj
Copy link

novoj commented Jun 20, 2017

Directly to the commandline when running MaterMost application:

/opt/Mattermost/mattermost-desktop --hidden --disable-gpu-driver-bug-workarounds --enable-native-gpu-memory-buffers

@ethernomad
Copy link

ethernomad commented Nov 29, 2018

Ran

discord --disable-gpu-driver-bug-workarounds --enable-native-gpu-memory-buffers

and now discord no longer flickers on my ubuntu thinkpad with intel graphics!

Cheers @novoj

@novoj
Copy link

novoj commented Nov 29, 2018

Meanwhile I've upgraded to Ubuntu 18.04 and problem vanished. But because entire system was wiped, there are many things that could have affected the result (including MattermostMost/Electron upgrade). I can't verify your recommendation but nevertheless I thank you.

@betimbryma
Copy link

i still have the same problem on Fedora 29, i mean i use --disable-gpu-driver-bug-workarounds, but it's just interesting to see why this is still an issue.

@simform-solutions
Copy link

simform-solutions commented Aug 5, 2019

I am still facing flicking issue on macOS HighSierra 10.13.6 and Graphics .NVIDIA GeForce GT 710 2047 MB

Note: The App is frameless and has a transparent background

Using Electron version : 6.0.0
Expected behaviour was working fine on electron version: 4.2.8 but getting now as shown below in latest version

ezgif com-video-to-gif

Please help:
@MarshallOfSound @ccnokes

@floating
Copy link

@SimformSolutions I'm seeing this as well.

Have you found a solution for this other than downgrading? If not we should open a new issue for this particular case.

@bolatovumar
Copy link

I'm also experiencing this issue. See LN-Zap/zap-desktop#2938 for details (includes video). This started happening exactly when the project was upgraded from Electron v5 to v6.

@itsthisjustin
Copy link

@SimformSolutions I'm seeing this as well.

Have you found a solution for this other than downgrading? If not we should open a new issue for this particular case.

No we haven't found any fix. I see this issue is closed. Is there a fix inbound?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked/need-info ❌ Cannot proceed without more information
Projects
None yet
Development

No branches or pull requests