-
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
.net 5 trimming causes crash on copying text #3903
Comments
I checked your .csproj file and add |
But there is already publish trimmed in the publish profile. |
I didn't see |
I have updated my repo to show the code you have shown. After publishing and running the file it has the same issue. |
TestWPF.zip |
Did you clean and rebuild your project after the update?Did you try to publish your project in other device?By the way, my visual studio version is 16.8.1.Here is my file. |
Your file is 142MB, which is not trimmed. My file is 70MB. Make sure you are using the publish profile and not just building. But yes, if you don't trim, it will work fine. But this is not the issue. |
The csproj does not matter. Make sure you are publishing it using the publish profile. You should get console output while building that says you are trimming. And it should take abnormally long to "build" |
The Member-Level Trimming part points out: Member-level trimming( |
While true, should we not still report these bugs somewhere? |
@CarbonNeuron: Thank you for the report. WPF has not done any work to support trimming yet. Please continue reporting any issues. All of this feedback is taken in to account during planning for the next release. |
I just reproduced this error in .Net 5.0.3. This only occurs with I fixed it by including |
Problem description: I am building a self-contained trimmed publish release of a project using .net 5, and using trimming. If you try to copy from the Text boxes in the GUI it will crash. This only happens with trimming.
Actual behavior:
Faulting application name: TestWPF.exe, version: 1.0.0.0, time stamp: 0x5fbf1139 Faulting module name: ntdll.dll, version: 10.0.19041.662, time stamp: 0x5f641e44 Exception code: 0xc0000409 Fault offset: 0x00087160 Faulting process id: 0x342c Faulting application start time: 0x01d6cfff6daa978a Faulting application path: C:\Users\Carbon\source\repos\TestWPF\TestWPF\bin\Release\net5.0-windows\publish\TestWPF.exe Faulting module path: C:\Windows\SYSTEM32\ntdll.dll Report Id: e5c5c421-412f-4a5f-aa52-d412120410da Faulting package full name: Faulting package-relative application ID:
Expected behavior: it copies the text to clipboard.
Minimal repro: https://github.com/CarbonNeuron/WPFCopyCrash make sure to run the published file and not the debug one.
The text was updated successfully, but these errors were encountered: