Skip to content

SpectralConverter.CommitConversion fails in Debug #1998

@antonfirsov

Description

@antonfirsov

ImageSharp version

2.0

Other ImageSharp packages and versions

N/A

Environment (Operating system, version and so on)

any

.NET Framework version

any

Description

The following assertion fails in almost all of our baseline jpeg tests:

public void CommitConversion()
{
DebugGuard.IsFalse(this.Converted, nameof(this.Converted), $"{nameof(this.CommitConversion)} must be called only once");

@br3aker any idea why is CommitConversion called multiple times? Could this lead to actual issues?

Steps to Reproduce

Run JpegDecoderTests.DecodeBaselineJpeg in Debug.

Images

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions