electron icon indicating copy to clipboard operation
electron copied to clipboard

[Bug]: In MAS build, the transparent window is red (affects AMD graphics)

Open cpoile opened this issue 2 years ago • 8 comments

Preflight Checklist

Electron Version

24.1.2 (and as far back as 23.0.0)

What operating system are you using?

macOS

Operating System Version

macOS Ventura 13.0

What arch are you using?

x64

Last Known Working Electron version

v22.3.6

Expected Behavior

Transparent windows should be transparent.

Actual Behavior

Transparent windows are red tinged: image

Testcase Gist URL

https://gist.github.com/cpoile/97f08192e630291fcc9ea90e7f5b442f

Additional Information

Only appears to happen on Intel macs when using the AMD discreet GPU (turn off Automatic graphics switching in the Battery -> Options System preferences panel).

Thank you kindly!

cpoile avatar Apr 18 '23 20:04 cpoile

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

github-actions[bot] avatar Jul 27 '23 01:07 github-actions[bot]

bump

gaodeng avatar Jul 27 '23 12:07 gaodeng

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

bump

gaodeng avatar Oct 27 '23 02:10 gaodeng

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

bump

gaodeng avatar Jan 26 '24 02:01 gaodeng

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

bump

gaodeng avatar Apr 26 '24 02:04 gaodeng

This is still reproducible in Electron 30.

mikehearn avatar Jun 23 '24 19:06 mikehearn

The other weird thing is that this only affects the Mac App Store build. The darwin build does not have this issue. So the question is simple enough: what else is different between these builds, beyond not having Squirrel?

It's also only affecting Intel Macs. The MAS build tries to avoid Apple internal APIs and I see a few places in the code where the MAS build differs from a regular build that are graphics related. It's probably one of those.

mikehearn avatar Jun 23 '24 19:06 mikehearn

The issue is still present in Electron 31.

Jeepeng avatar Jul 25 '24 18:07 Jeepeng