Skip to content

NullReferenceException in Imageflow BuildJobResult.From on x86 with Dynamic PGO #136844

Open

Description

@b24carl

Description

With PGO the attached minimal project running on x86 fails after ~60 iterations throwing NRE. Setting DOTNET_TieredPGO=0 or DOTNET_TieredCompilation=0 makes it pass.

Reproduction Steps

ImageflowPgoRepro.zip

dotnet run -c Release -- image.png

Expected behavior

200 iterations complete without error.

Actual behavior

After ~63 iterations, ImageJob.FinishAsync throws:

System.NullReferenceException: Object reference not set to an instance of an object.
   at Imageflow.Fluent.BuildJobResult.From(IJsonResponse response, Dictionary`2 outputs)
   at Imageflow.Fluent.ImageJob.FinishAsync(...)

The native JSON response at the failing iteration is valid and complete (code 200, all fields present).

Regression?

No response

Known Workarounds

DOTNET_TieredPGO=0 or DOTNET_TieredCompilation=0

Configuration

  • dotnet 10.0.403
  • Windows 11 (locally) + Azure Function App (deployed)
  • x86

Other information

No response

Activity

  1. added
    area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
    on Nov 2, 2026
  2. dotnet-policy-service commented on Nov 2, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
    See info in area-owners.md if you want to be subscribed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIuntriagedNew issue has not been triaged by the area owner

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions