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

FocusVisualKind.Reveal crashes app in 1.6 #9966

Closed
NGeras opened this issue Sep 9, 2024 · 1 comment
Closed

FocusVisualKind.Reveal crashes app in 1.6 #9966

NGeras opened this issue Sep 9, 2024 · 1 comment
Labels
area-Styling bug Something isn't working closed-Fixed Described behavior has been fixed. fix-released The fix has been in a release (experimental, preview, stable, or servicing). Regression team-Markup Issue for the Markup team
Milestone

Comments

@NGeras
Copy link

NGeras commented Sep 9, 2024

Describe the bug

After upgrading from stable 1.5 to stable 1.6 app crashes when FocusVisualKind is set to FocusVisualKind.Reveal and focus is applied second or third time.
Error:

Exception thrown at 0x75F88FA4 (KernelBase.dll) in TestApp.exe: WinRT originate error - 0x80070057 : 'An invalid Duration is specified. It must be >= 1ms and <= 24 days'.
Microsoft.UI.Xaml.dll!7BF484EA: 80070057 - E_INVALIDARG
'TestApp.exe' (Win32): Loaded 'C:\Windows\SysWOW64\MsSpellCheckingFacility.dll'.
Unhandled exception at 0x7B817E41 (Microsoft.ui.xaml.dll) in TestApp.exe: 0xC000027B: An application-internal exception has occurred (parameters: 0x1EF7D870, 0x00000002).

Steps to reproduce the bug

  1. Create a WinUI3 app
  2. Apply FocusVisualKind in App.xaml.cs like this
public App()
{
    this.InitializeComponent();
    FocusVisualKind = FocusVisualKind.Reveal;
}
  1. Launch the app and move focus through the app with TAB key

Expected behavior

App should not crash as it was in 1.5

Screenshots

Screen.Recording.2024-09-09.223702.mp4

NuGet package version

WinUI 3 - Windows App SDK 1.6.0: 1.6.240829007

Windows version

No response

Additional context

No response

@NGeras NGeras added the bug Something isn't working label Sep 9, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Sep 9, 2024
@codendone codendone added area-Styling team-Markup Issue for the Markup team Regression and removed needs-triage Issue needs to be triaged by the area owners labels Sep 11, 2024
@JesseCol JesseCol added the closed-Fixed Described behavior has been fixed. label Sep 23, 2024
@codendone codendone added this to the WinAppSDK 1.6 milestone Sep 23, 2024
@JesseCol
Copy link

Thanks for filing! This will be fixed in the next WinAppSDK 1.6 release.

@codendone codendone added the fix-released The fix has been in a release (experimental, preview, stable, or servicing). label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Styling bug Something isn't working closed-Fixed Described behavior has been fixed. fix-released The fix has been in a release (experimental, preview, stable, or servicing). Regression team-Markup Issue for the Markup team
Projects
None yet
Development

No branches or pull requests

3 participants