Skip to content

ArgumentException with WriteableBitmap.WritePixels #5855

@loicmorvan

Description

@loicmorvan
  • .NET Core Version: 6.0
  • Windows version: Windows 11 (21H2)
  • Does the bug reproduce also in WPF for .NET Framework 4.8?: I don't know
  • Is this bug related specifically to tooling in Visual Studio (e.g. XAML Designer, Code editing, etc...)? No.

Problem description:

Calling WriteableBitmap.WritePixels just crashes with an ArgumentException without paramName.

Reproduced in this repos: https://github.com/loicmorvan/BugWriteableBitmap

Actual behavior:

Crashes with an ArgumentException without paramName.

Expected behavior:

No crash, and pixels updated into the bitmap.

Minimal repro:

https://github.com/loicmorvan/BugWriteableBitmap

Metadata

Metadata

Assignees

Labels

InvestigateRequires further investigation by the WPF team.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions