dotnet / dotnet/wpf

D3DCompiler_47_cor3.dll fails to load in RC1 tests

Open
#9,670 1 comment 1 reaction 0 assignees View on GitHub
Investigate
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

In rc1, the following error shows up in some tests:

![image](https://github.com/user-attachments/assets/564158c0-dc83-431c-8738-038ea8dc5000)

Upon further investigation, between builds https://dev.azure.com/dnceng/internal/_build/results?buildId=2516540 and https://dev.azure.com/dnceng/internal/_build/results?buildId=2517162 of WPF, a change occurred on the build machine that moved the d3d compiler located at `C:\Program Files (x86)\Windows Kits\10\Redist\D3D\\` to a newer version. WPF redists this binary as part of the windows desktop shared framework layout. I don't know whether the bug manifests across all releases, but the d3d compiler redisted with the windows desktop shared framework is the same across all releases.

**Older version without issue:**

![image](https://github.com/user-attachments/assets/15ca41a2-fadf-4695-9262-32a40245c7f9)

**Newer version that causes issue:**

![image](https://github.com/user-attachments/assets/6959cc97-3d72-4a13-85a1-b6b4ab194133)

My local copy matches the old version, but I did manage to get the new version to install by adding the Win11 SDK `10.0.26100.0` component in VS. @dotnet/dnceng's rollout schedule shows an update started on 8/14 (https://dev.azure.com/dnceng/internal/_git/dotnet-helix-machines/pullrequest/41664?_a=files&path=/definitions/shared/windows.yaml), but that new SDK version is not in our images. So maybe it came in via some other path. My hunch is some patch for the windows SDK

@Kuldeep-MS for more details on the failure.

**Failure Details**

All WPF application will encounter this error. Since wpfgfx depends on D3DCompiler_47_cor3.dll, if D3DCompiler_47_cor3.dll fails to load, wpfgfx will also fail to load, leading to the application's crash.

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.