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

Any in-app blur/acrylic texture appears broken #9259

Open
marticliment opened this issue Jan 15, 2024 · 1 comment
Open

Any in-app blur/acrylic texture appears broken #9259

marticliment opened this issue Jan 15, 2024 · 1 comment
Labels
area-Materials Reveal, Acrylic, lighting, etc. bug Something isn't working team-Controls Issue for the Controls team

Comments

@marticliment
Copy link

Describe the bug

Any blur/acrylic texture (scrollbars, comboboxes, etc.) shown on the app does not show any transparency. It instead shows an opaque grey blur.

Moreover, a list of errors get printed on console. This is only a small part of it.

BVI-FullRender

BVI-CouldNotFindCachedBlur

BVI-CachedNewBlur
(1.00, 0.00, 0.00, 0.00), (0.00, 1.00, 0.00, 0.00), (0.00, 0.00, 1.00, 0.00), (10.00, 2.00, 32.00, 1.00)
0.00, 0.00, 200.00, 417.00 (200.00 x 417.00)
rcBackdropLocal=[0.00, 0.00, 200.00, 417.00 (200.00 x 417.00)], worldTransform=[(1.00, 0.00, 0.00, 0.00), (0.00, 1.00, 0.00, 0.00), (0.00, 0.00, 1.00, 0.00), (10.00, 2.00, 32.00, 1.00)]
BVI-Validate-DidNotInvalidateCache

BVI-RealizationIsDirty-NotUpdated
(1.00, 0.00, 0.00, 0.00), (0.00, 1.00, 0.00, 0.00), (0.00, 0.00, 1.00, 0.00), (10.00, 2.00, 32.00, 1.00)
0.00, 0.00, 200.00, 417.00 (200.00 x 417.00)
rcBackdropLocal=[0.00, 0.00, 200.00, 417.00 (200.00 x 417.00)], worldTransform=[(1.00, 0.00, 0.00, 0.00), (0.00, 1.00, 0.00, 0.00), (0.00, 0.00, 1.00, 0.00), (10.00, 2.00, 32.00, 1.00)]
BVI-Validate-InvalidatedCache

BVI-FullRender

BVI-CouldNotFindCachedBlur

BVI-CachedNewBlur
(1.00, 0.00, 0.00, 0.00), (0.00, 1.00, 0.00, 0.00), (0.00, 0.00, 1.00, 0.00), (10.00, 2.00, 32.00, 1.00)
0.00, 0.00, 200.00, 417.00 (200.00 x 417.00)
rcBackdropLocal=[0.00, 0.00, 200.00, 417.00 (200.00 x 417.00)], worldTransform=[(1.00, 0.00, 0.00, 0.00), (0.00, 1.00, 0.00, 0.00), (0.00, 0.00, 1.00, 0.00), (10.00, 2.00, 32.00, 1.00)]
BVI-Validate-DidNotInvalidateCache
(1.00, 0.00, 0.00, 0.00), (0.00, 1.00, 0.00, 0.00), (0.00, 0.00, 1.00, 0.00), (10.00, 2.00, 32.00, 1.00)
0.00, 0.00, 200.00, 417.00 (200.00 x 417.00)
rcBackdropLocal=[0.00, 0.00, 200.00, 417.00 (200.00 x 417.00)], worldTransform=[(1.00, 0.00, 0.00, 0.00), (0.00, 1.00, 0.00, 0.00), (0.00, 0.00, 1.00, 0.00), (10.00, 2.00, 32.00, 1.00)]
BVI-Validate-DidNotInvalidateCache
(1.00, 0.00, 0.00, 0.00), (0.00, 1.00, 0.00, 0.00), (0.00, 0.00, 1.00, 0.00), (10.00, 2.00, 32.00, 1.00)
0.00, 0.00, 200.00, 417.00 (200.00 x 417.00)
rcBackdropLocal=[0.00, 0.00, 200.00, 417.00 (200.00 x 417.00)], worldTransform=[(1.00, 0.00, 0.00, 0.00), (0.00, 1.00, 0.00, 0.00), (0.00, 0.00, 1.00, 0.00), (10.00, 2.00, 32.00, 1.00)]
BVI-Validate-DidNotInvalidateCache

Steps to reproduce the bug

Create a Window that hosts a control such as ComboBox.

Tested with:

  • Windows 11 Insider Beta Channel (22635.3061)
  • App Sdk 1.4.XXX (various versions to make surt)
  • Visual Studio 2022 preview

The bug persisted even when:

  • Mica was disabled and default background was set
  • Regular acrylic backdrop was set. (DesktopAcrylicBackdrop renders fine, controls still do not show properly)
  • Other libraries such as Pythonnet were not imported
  • The project was ran in both "Exe" and "WinExe" output types.
  • The project was executed from a release build
  • The project was debugged from a debug build

Expected behavior

Comboboxes and other widgets render properly and no messages appear on the console.

Screenshots

How it is rendering

image
image

How it should render

image

NuGet package version

Windows App SDK 1.4.3: 1.4.231115000

Packaging type

Unpackaged

Windows version

Insider Build (xxxxx)

IDE

Visual Studio 2022-preview

Additional context

This issue appears to be happening also to other App Sdk apps such as the WinUI 3 Gallery, also using App SDK 1.4:
image

image

(the WinUI 2 Gallery app renders comboboxes as expected)

@bpulliam bpulliam transferred this issue from microsoft/WindowsAppSDK Jan 18, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Jan 18, 2024
@bpulliam bpulliam added area-Materials Reveal, Acrylic, lighting, etc. team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Jan 18, 2024
@duncanmacmichael duncanmacmichael added the bug Something isn't working label Jan 18, 2024
@lolametro
Copy link

For completeness sake, this seems to be the case for at least:

In WinUI 2, it's Acrylic blurred by default, in WinUI 3 not.
Would be nice if they are fixed in a batch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Materials Reveal, Acrylic, lighting, etc. bug Something isn't working team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

4 participants