dotnet / dotnet/maui

ShadowExtensions.GetAlphaMaskAsync causing "Value does not fall within the expected range" on project start, crashing

Open
#30,965 5 comments 1 reaction 1 assignee Claimed by @jsuarezruiz View on GitHub
area-drawing high platform/windows t/bug
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 14h
Merged PRs (30d)
296

Description

### Description

This is a strange new error I am getting frequently on starting up my project in Windows on Debug. It looks like as follows. It crashes the project.

I am skeptical I will be able to reproduce this in a simple project. I am not sure what it represents. We certainly never had this before. I presume one of the shadow optimizations has a but.

### Steps to Reproduce

Image

### Link to public reproduction project repository

n/a

### Version with bug

9.0.90 SR9

### Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

### Last version that worked well

Unknown/Other

### Affected platforms

Windows

### Affected platform versions

_No response_

### Did you find any workaround?

_No response_

### Relevant log output

```shell

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.