-
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
Microsoft.Win32.OpenFileDialog cause application crash After update .NET9 #10305
Comments
There is no information that we can act upon, and it might be impossible to figure out what's going on without a repro. What is the call stack from the crash? |
Not sure if you deleted the comment with video but that looks like the shell is crashing trying to load a thumbnail of one of the fails, doesn't look like a WPF issue. Does it crash when you try it from any other application? |
2025-01-18.19.19.54.mp4 |
It crash when update to .net9, it works fine on .net6,7and8. as the video show, It show the file dialog, but can't choose from it, the app crash. when packaged, use the following comand and run the applicaiton, it still crash. dotnet publish myapp -r win-x64 -c Release --self-contained /p:PublishSingleFile=true /p:DebugType=embedded os : Microsoft Windows 10.0.19045, |
I cannot replicate the behaviour (then again, I'm not lucky enough to have a chinese-locale VM available at the moment) running the same versions you are. Does it replicate only in that folder or it doesn't matter when you change the Could you share the full stacktrace from Event Viewer? I really wonder where the |
Could it be because packed/self-contained? But yeah, call stack would be helpful. You can also try to enable native debugging in VS. |
it doesn't matter when change the InitialDirectory to somewhere |
Hi @luchunminglu , did you find a solution? |
NO。 It occur on sone machine, not all machine. I return back to .net8 for that machine. |
@luchunminglu |
@luchunminglu Can you help us with the machine configuration and the crash dump for the issue? |
max allow file size 25MB, so zipped it |
@luchunminglu Could you try putting this into your project file and see whether this fixes the crash? As of .NET 9, shadow stack is enabled by default.
|
It works. Problem solved |
In that case, is that particular machine missing any Windows updates? AFAIK there were some fixes in the last month or two regarding to CET. |
It already updated. |
I'd wait for .NET 9.0.2 and re-test it there (which should come 11th February). The dump points to a crash with |
After update .NET9, dialog.ShowDialog() crash the application . It happens on some machine, not all machine.
The same code work on .net8.
The text was updated successfully, but these errors were encountered: