-
Notifications
You must be signed in to change notification settings - Fork 705
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
In-app acrylic brushes on MSIX apps fail #4504
Comments
This is related to issue #4496, a new ticket was opened after it was requested on #4480 (comment) |
If you turn off C++ exceptions as shown here, your app will continue to run: #4510 Regardless, such exceptions should not be leaking into a managed app and will have a significant drag on performance under the hood. Microsoft needs a better test suite. |
Yes, it will still run if you skip/disable the exception. But it will run without the brush applied - so, no support, unlike currently claimed. I personally don't know how C++ exceptions should be handled in managed apps, but I understand this one has a legitimate reason to be thrown. |
@pratikone FYI |
Yeah, I am aware of this noisy warning. It is not related to acrylic directly. Acrylic calls certain apis which only make sense in UWP apps (CoreWindow based) and not Desktop apps (no CoreWindow concept) and thus this warning appears. It is being tracked internally and will be removed in future releases. It is an harmless exception and can be ignored for now. |
@pratikone Isn't that the same issue though? Here, once skipping the thrown exceptions, the acrylic still doesn't render. Regardless, as stated, I opened up the ticket as it was requested, already acknowledging #4496. I understand if it's best to work over there. |
Describe the bug
In an MSIX-packaged Win32 project, if setting an in-app acrylic brush as a fill or background property on any element with support for the properties, the project halts during execution and throws an exception like the following:
The output contains information like the following:
Notice, specifically, the following message:
GetForCurrentView must be called on a thread that is associated with a CoreWindow.
. This implies there is no support for Win32 window handles, and only CoreWindows on WinRT are compatible.Steps to reproduce the bug
SystemControlAcrylicElementBrush
) as an element's background or fill property, like in e.g. https://gist.github.com/xerz-one/b8c8a53a837ba231b6814bbe495161b7Expected behavior
The program executes with no errors and displays an element with an acrylic brush applied. This should not be an issue, since in-app acrylic brushes are now supported.
Version Info
NuGet package version:
WinUI 3 - Project Reunion 0.5 Preview: 0.5.0-prerelease
Windows app type:
The text was updated successfully, but these errors were encountered: