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

Microsoft.UI.Windowing.DisplayArea.FindAll() static method throws a System.ArgumentOutOfRangeException #9182

Open
NordsonDavid opened this issue Dec 21, 2023 · 2 comments
Labels
area-Windowing bug Something isn't working team-CompInput Issue for IXP (Composition, Input) team

Comments

@NordsonDavid
Copy link

Describe the bug

Calling Microsoft.UI.Windowing.DisplayArea.FindAll() will always throw a System.ArgumentOutOfRangeException

This appears to be due to an issue in TypeNameSupport.ParseGenericTypeName() where a call is made to ReadOnlySpan.Slice() with a 0 parameter.

Steps to reproduce the bug

Use the code:

IReadOnlyList<DisplayArea> displayAreas = DisplayArea.FindAll();

Expected behavior

A read only list of DisplayArea objects is returned

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.4.3: 1.4.231115000

Windows version

Windows 11 (22H2): Build 22621

Additional context

No response

@NordsonDavid NordsonDavid added the bug Something isn't working label Dec 21, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Dec 21, 2023
Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@NordsonDavid
Copy link
Author

This bug is not the same as #6454 as a different exception is thrown

@bpulliam bpulliam added area-Windowing and removed needs-triage Issue needs to be triaged by the area owners labels Jan 5, 2024
@bpulliam bpulliam added the team-CompInput Issue for IXP (Composition, Input) team label Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Windowing bug Something isn't working team-CompInput Issue for IXP (Composition, Input) team
Projects
None yet
Development

No branches or pull requests

2 participants