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
DebugSettings.EnableFrameRateCounter = true in Desktop causes an AccessViolation #2835
Labels
appModel-win32
Exclusive to WinUI 3 Win32 Desktop apps
bug
Something isn't working
product-winui3
WinUI 3 issues
team-Rendering
Issue for the Rendering team
Milestone
Comments
msft-github-bot
added
the
needs-triage
Issue needs to be triaged by the area owners
label
Jul 5, 2020
StephenLPeters
added
appModel-win32
Exclusive to WinUI 3 Win32 Desktop apps
product-winui3
WinUI 3 issues
and removed
needs-triage
Issue needs to be triaged by the area owners
labels
Jul 6, 2020
Also happens with Preview2 |
@RBrid Fyi |
Tracked by internal task 27649649 (and originally bug 27512832). |
This is still happening as of today. |
Also today |
Fixed in WinAppSDK 1.4-experimental1 on 05/23/23; @bpulliam can you please close this bug? |
microsoft-github-policy-service
bot
added
the
needs-triage
Issue needs to be triaged by the area owners
label
Jan 27, 2024
Fixed for the next 1.5 release. |
llongley
added
the
closed-Duplicate
Described behavior is already captured by another issue.
label
Feb 27, 2024
Automation error. This is fixed in the 1.5 release. |
bpulliam
added
fixed-internally
This bug has been fixed, and the fix will be shipped in the next version of WinUI 3.
and removed
closed-Duplicate
Described behavior is already captured by another issue.
labels
Feb 27, 2024
microsoft-github-policy-service
bot
added
the
needs-triage
Issue needs to be triaged by the area owners
label
Feb 27, 2024
bpulliam
removed
the
fixed-internally
This bug has been fixed, and the fix will be shipped in the next version of WinUI 3.
label
Feb 29, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
appModel-win32
Exclusive to WinUI 3 Win32 Desktop apps
bug
Something isn't working
product-winui3
WinUI 3 issues
team-Rendering
Issue for the Rendering team
Describe the bug
Create a new WinUI Desktop application and set the DebugSettings.EnableFrameRateCounter = true in the application constructor or the OnLaunched and an access violation exception will occur when the application is run.
Steps to reproduce the bug
Expected behavior
If by chance the DebugSettings.EnableFrameRateCounter setting cannot be used with Desktop applications, then a non-fatal exception message should be thrown. If this feature is supported in Desktop applications then it has a bug.
Screenshots
Version Info
.Net5.0 Preview 6
NuGet package version:
<PackageReference Include="Microsoft.WinUI" Version="3.0.0-preview1.200515.3" />
Note that I have been making WinUI work with Preview 6 by adding this additional direct package reference, a trick I learned from Scott Jones. Although I have been able to accomplish quite a bit of Window related work without any crashes, it was worth mentioning.
<PackageReference Include="Microsoft.Windows.CsWinRT" Version="0.1.0-prerelease.200623.5" />
Additional context
I have attached a solution for easy reproduction of the problem.
WinUIDesktop.zip
The text was updated successfully, but these errors were encountered: