Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The WPF program caused a KERNELBASE.dll exception on Windows11 #10306

Open
VShawn opened this issue Jan 17, 2025 · 0 comments
Open

The WPF program caused a KERNELBASE.dll exception on Windows11 #10306

VShawn opened this issue Jan 17, 2025 · 0 comments

Comments

@VShawn
Copy link

VShawn commented Jan 17, 2025

Description

I developed an RDP desktop program using WPF + WindowsFormsHost + MSTSCLib.dll(.NET6 and .NET8), and everything worked fine on the Win10. However, in Win11, whenever I click on the information button in the RDP connection bar, it causes the WPF program to crash. (Tests have shown that any pop-up of RDP will cause a crash.)

Image

Initially, I thought it was an issue with WindowsFormsHost, so I rewrote a complete Winform RDP window and opened it in the WPF project, but the problem persisted.

Then, I moved this Winform RDP window to a Winform project, and now clicking on the information button in the RDP connection bar does not cause the software to crash.

You can see the difference between Winform and WPF in this video:

1.mp4

related

related ticket: 1Remote/1Remote#559

Reproduction Steps

Image

Open the solution I uploaded in Win11, change the account password to fit your server, run it, and click the information button in the connection bar. You will find that it only crashes in the WPF project. (The RDP sections of the two test projects have exactly the same code.)

Demo Upload.zip

Expected behavior

No crash with WPF.

Actual behavior

crash with WPF.

Log in the event viewer:

错误应用程序名称: WpfRDPHost6.exe,版本: 0.0.0.0,时间戳: 0x65cd0000
错误模块名称: KERNELBASE.dll,版本: 10.0.22621.4249,时间戳: 0x0cf64c6a
异常代码: 0xc000041d
错误偏移量: 0x000000000005fe4c
错误进程 ID: 0x0x7FAC
错误应用程序启动时间: 0x0x1DB68BFFE406869
错误应用程序路径: D:\Project\Upload\WpfRDPHost6\bin\Debug\net8.0-windows10.0.17763.0\WpfRDPHost6.exe
错误模块路径: C:\Windows\System32\KERNELBASE.dll
报告 ID: 0037c9ba-27af-481f-a4f0-af1324548f1d
错误程序包全名: 
错误程序包相对应用程序 ID: 

Report.wer.zip

@jeffschwMSFT jeffschwMSFT transferred this issue from dotnet/runtime Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant