Skip to content

With .NET 10 Preview 7, CanvasBitmap.LoadAsync of Win2D is broken. #119986

@Dev-Taehui

Description

@Dev-Taehui

Description

It sometimes throws exception (AggregatedException whose inner exception is IndexOutOfRangeException) when I call CanvasBitmap.LoadAsync method.

It works on .NET 8.0, .NET 9.0, until .NET 10 Preview 6. But, with .NET 10 Preview 7 (Includes .NET 10 RC1) It doesn't work properly.

Reproduction Steps

Call CanvasBitmap.LoadAsync method of Win2D.

Expected behavior

It doesn't throw exception on proper image.

Actual behavior

It sometimes throw exception.

Regression?

Yes. .NET 8.0, 9.0, 10.0 Preview 6 works. But, After Preview 7, it is broken. (Also RC1 too)

Known Workarounds

No response

Configuration

.NET 10 Preview 1
Windows 11 24H2
x64

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions