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

Optical glitch with newer Electron versions #140

Open
Torom opened this issue Mar 22, 2021 · 16 comments
Open

Optical glitch with newer Electron versions #140

Torom opened this issue Mar 22, 2021 · 16 comments
Labels
bug Something isn't working electron Electron-related issues linux Linux-specific problems

Comments

@Torom
Copy link

Torom commented Mar 22, 2021

When using Electron 11.3.0, the background is moved along with the figures when they are dragged. I have attached two screenshots where you can see the difference.

release version, Electron 9.4.4:
nibbler_electron944
git master, Electron 11.3.0:
nibbler_electron1130

@rooklift
Copy link
Owner

That's annoying. Looks to only happen on Linux (I can't get this on Windows). I'll try and look into it.

Guess I'll stick to Electron 9 for future releases.

@rooklift rooklift added the linux Linux-specific problems label Mar 22, 2021
@Torom
Copy link
Author

Torom commented Mar 22, 2021

I have tested it with the overall latest version 12.0.1, there the same glitch occurs.

And yes, I forgot to write that. My OS: Manjaro Linux

@rooklift
Copy link
Owner

I'm out of ideas, but I might make some test repository that contains basically nothing except a piece you can drag around, just to check that a simple case still has it.

@Torom
Copy link
Author

Torom commented Mar 22, 2021

I have tested different Electron versions, 9.4.4 is the last version where the glitch does not occur. From Electron 10 onwards it does occur.

@krisan
Copy link
Contributor

krisan commented Mar 22, 2021

@rooklift, FYI, all is ok on MacOS (running from github master + [email protected]). I noticed some flickering, but it can be related to different issue (rendering fenbox/infobox)

@Torom, you can check more by enabling dev console and inspect element (but probably you are already there...).
Comparing side by side between working and not working version can help (if there is issue with html/css)
For example: image

@rooklift
Copy link
Owner

Can you try this: https://github.com/rooklift/electron_draggable_test

@Torom
Copy link
Author

Torom commented Mar 22, 2021

I have found one difference between the versions left side with glitch, right side without:

nibbler_dev

in the table section "text-indent: initial;" is set in the version with the glitch.

@Torom
Copy link
Author

Torom commented Mar 22, 2021

Exactly the same behavior:

Electron 11.3.0:
test_1130

Electron 9.4.4:
test_944

@rooklift
Copy link
Owner

Thanks. It's probably some Electron / Chromium bug on Linux. I wonder if it's known.

@Torom
Copy link
Author

Torom commented Mar 22, 2021

I found it:

"On Linux, users have to put --enable-transparent-visuals --disable-gpu in the command line to disable GPU and allow ARGB to make transparent window, this is caused by an upstream bug that alpha channel doesn't work on some NVidia drivers on Linux."

Source

@rooklift rooklift added bug Something isn't working electron Electron-related issues labels Mar 22, 2021
@Torom
Copy link
Author

Torom commented Mar 22, 2021

When I set these parameters the glitch disappears. However, I get this error message on startup:
error

@rooklift
Copy link
Owner

rooklift commented Mar 22, 2021

Try it now.

@Torom
Copy link
Author

Torom commented Mar 22, 2021

And that helped. Thank you for your efforts.

Do you have any idea how you would handle this in a release if you want to use Electron >9?

Repository owner deleted a comment from Torom Mar 22, 2021
Repository owner deleted a comment from Torom Mar 22, 2021
Repository owner deleted a comment from Torom Mar 22, 2021
Repository owner deleted a comment from Torom Mar 22, 2021
Repository owner deleted a comment from Torom Mar 22, 2021
Repository owner deleted a comment from Torom Mar 22, 2021
@rooklift
Copy link
Owner

I deleted some comments from both of us that were wild-goose chases.

@gokberkgunes
Copy link

gokberkgunes commented Jul 16, 2023

Is there any updates on this issue? It seems like above command-line tags do not work for my case. I looked up online for some information but could not get anything concrete. Nevertheless, I can say that, in my case GPU acceleration does not get turned off.

@rooklift
Copy link
Owner

I've no new information, no.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working electron Electron-related issues linux Linux-specific problems
Projects
None yet
Development

No branches or pull requests

4 participants