wpf: Microsoft.WindowsDesktop.App (latest runtime) 5.0.0-preview.8.20330.4 cannot display
- .NET Core Version: Microsoft.WindowsDesktop.App 5.0.0-preview.8.20330.4
- Windows version: (
winver
) 18363.900 - Does the bug reproduce also in WPF for .NET Framework 4.8?: No
Problem description: Run sample WPF-Samples\Data Binding\SortFilter\ on Microsoft.WindowsDesktop.App 5.0.0-preview.8.20330.4 cannot display
Actual behavior:
I only get a tiny window
Expected behavior:
Minimal repro:
dotnet run on WPF-Samples\Data Binding\SortFilter with the latest SDK
I made sure this is not a tooling problem.
I use dotnet build
on an older SDK 5.0.100-preview.4.20258.7 (will repro use the higher SDK 5.0.100-preview.8.20351.5).
And install Microsoft.WindowsDesktop.App 5.0.0-preview.8.20330.4 and Microsoft.NETCore.App 5.0.0-preview.8.20328.6 on my machine.
Double click on the exe. It works since it runs on the lower runtime. Change the SortFilter.runtimeconfig.json to the following. Then double click. You will only see the tiny window
{
"runtimeOptions": {
"tfm": "net5.0",
"framework": {
"name": "Microsoft.WindowsDesktop.App",
"version": "5.0.0-preview.8.20330.4"
}
}
}
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 34 (33 by maintainers)
Looks like it was dotnet/runtime#38316. We’re going to look at reverting this, and in parallel track down where it went wrong.
Strongly suspect this is a jit issue. Does not require optimization to repro. We have a suspect change in mind. Bisecting now to confirm.
I’ve a feeling you’re all looking for an x64 (or a 64-bit) problem. Someone should try to repro this on x86 (my hasty 2 min check shows me that it doesn’t repro on x86) 😉
The issue appears to be fixed in dotnet-sdk-5.0.100-preview.8.20363.2-win-x64. Thank you for the fast investigation and fix.
The test team is running a test pass with this version of the SDK and will have more detailed results by tomorrow morning. Thanks.
@BruceForstall and I working on this now… will update status in a bit.