-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Comments
@VShawn Thank you. And I am using 1Remote now. This is a very useful tool. And I can not repor this issues in my machine in 1Remote. Although I used the software for a long time. I do not think the first exception raise in KERNELBASE.dll, and I guess the KERNELBASE.dll just the final crash module, because no one to handle the exception. I can not get useful info from |
Update: I catch the native win32 exception and get the stacktrace here:
It means the But I do not know why the And the |
It would be good to know which particular import is it trying to delay load on Win11 though. @lindexi Does it repro without any special care? |
yes repros out of the box for me, but you need a computer to connect to via RDP |
The problem tbh is setting up a debug env inside VM with win11 as my main is still 10. Having VM to connect to is the easy part. Some thoughts tho, given the delayload being from If I remember correctly, without a manifest, WF will take the newest system version while WPF will take that old 5.8 iirc or whatever. So if you guys could test that theory by ensuring the same |
I just gave it a try, and forcing my WPF app to load version 6 of I also double-checked, and your memory is correct, WPF by default loads old 5.8 version. Seems like #6810 could be related. |
I am confident that here's the updated demo: |
Some days, I'm just on fire. What can I say? Fun part is that I don't think there's anything for WPF to do; sure it would be nice if some shared WindowsDesktop primitives would offer an easy activation context wrapper for common controls but if a developer is working with COM/ActiveX, he should be well aware about Eitherway, happy my thoughts have contributed to solving the issue, and that's an interesting project @VShawn! |
Agree there isn't anything for WPF to do. Even when considering TaskDialog API, I think the consensus was leaning towards developers having to include the manifest themselves. It sounds like |
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.)
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
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:
Report.wer.zip
The text was updated successfully, but these errors were encountered: