-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
System.Diagnostics.DiagnosticSource Causing Error Evaluating the function timedout #44503
Comments
Tagging subscribers to this area: @tarekgh, @tommcdon, @pjanotti Issue meta data
|
Just wanted to add a bit more to this. I tried step 3, in the workaround link and still get the pop up error when I run the project. Only step 4 seems to prevent this error. |
CC @noahfalk |
@b3hdad To investigate help us investigate the expression evaluation timeout, it would be useful if you could send us a dump of the debuggee and debugger when the timeout occurs. These dumps can be automatically collected by enabling a VS specific regkey. From an admin command prompt (while VS is closed), navigate to the Common7\IDE folder under your VS installation and run:
This should cause dumps of the debugger and the debuggee to be created in your temp directory, and if you share those dumps with us we can use them to investigate why the timeout is occurring. The dump collection can be disabled by rerunning the same command, but using "dword 0" instead of "dword 1". One important note: that regkey will only enable dump collection for desktop framework applications. To enable collection for .NET Core applications replace To send the dumps to us, feel free to open a Visual studio feedback item and then attach the files to it and then send paste a link to the feedback item. |
The problem is related to ApplicationInsightsTraceListener. Removing it from the web.config "fixes" the problem...
|
@fcorbeil, yes, thank you, that fixed the issue. Will this affect my application insights? Should I put this back later on? Also thanks to everyone following it up. |
@b3hdad, I confirm it'll disable your Application Insights... This is the reason why I added quotation marks on "fixes". |
@fcorbeil, I see, thank you. Its early morning here on Saturday. Sorry, missed the quotation marks meaning. :) |
Experiencing same problem when updated .NET Framework 4.6.1 project to use the latest AI nuget. Step #4 in the workaround link works for me too. |
@panuoksala, will you be able to create the debug information for @tommcdon please? Working in environment subject to some regulations, I may not be able to get permissions soon enough to produce and post what is required. |
cc @cijothomas |
What those dump should look like? |
@panuoksala Whenever an evaluation is aborted a message will shown with the location and name of the dump files. |
@tommcdon > One important note: that regkey will only enable dump collection for desktop framework applications. To enable collection for .NET Core applications replace "FB0D4648-F776-4980-95F8-BB7F36EBC1EE" with "2E36F1D4-B23C-435D-AB41-18E608940038" Should there be different guid for webforms? |
@karelkrivanek I believe "FB0D4648-F776-4980-95F8-BB7F36EBC1EE" is the right guid, assuming that webforms is running on .NET Framework 4.x. |
When you say Temp directory do you mean the one at I have a .Net 4.7.2 WebApi project (not MVC) that has the same issue and I'm trying to get you some dumps to help diagnose this but can't find the dumps, or they were not created. |
I'm using Visual Studio 2019 Enterprise, project is .NET Framework 4.6.1 Web API project. |
I experienced the issue when I updated Application insights nuget to 2.16 and it auto-updated this nuget to 5.0.0 as a dependency. I can replicate the issue, but I'm also not sure where the dump files are located |
Not sure who posted and then removed the comment that the dumps are in |
It was me. I tried to search for actual filenames, but wasn't able to find them, glad you got it and hopefully we can get this fixed now. I have the same reason for update as @tiaan-lg. |
Thanks! Would it be possible to share a link to the community item? For others commenting on the location of the dump. VS should show a dialog similar to this which contains the path to the dump: |
FWIW: I didn't get the dialog you're showing here @tommcdon, I got the dialog that @panuoksala shows above. |
Thanks for opening the community issue! Unfortunately it doesn't have the dump of the debuggee (iisexpress.exe or dotnet.exe). When setting the reg key, 1) double check that the curly braces are around the guid, 2) vsregedit is running in the right instance of VS (if you have multiple installations), 3) try closing VS first, run vsregedit, then restart VS.
Alternatively, if there is a small, reproducible test project, please feel free to send that along. |
I generated the dump and sent it using the "Reconsider" button at https://developercommunity2.visualstudio.com/t/Upgrading-to-SystemDiagnosticsDiagnost/1270524?port=1025&fsid=248584ff-4927-4143-a95c-37d3cd710d93&entry=myfeedback. |
Just let you know I have created a new Visual Studio feedback item : https://developercommunity2.visualstudio.com/t/SystemDiagnosticsTraceInternalListen/1299563?entry=myfeedback Note 1 : I did this because sending a "Reconsider" feedback was done in less than a second with about 1.5GB of dump!? |
Thank you! I have received the dumps and we are investigating. |
This issue has been automatically marked |
Still active and dumps are posted. |
Still happening but I found out that it is only when debugging.
|
Step 4 worked for me also but I lost the ability to Debug with "Edit & Continue" and the "Diagnostic Tools". So I removed it from the web.config and I did the above. |
Given its only occurring with ApplicationInsights enabled, please report this in https://github.com/Microsoft/ApplicationInsights-dotnet repo too. (ApplicationInsights team already have access to the dumps shared earlier.) |
I am also having this issue, is there any eta on the fix? |
This issue has been automatically marked |
@cijothomas - Since there is an issue already created on the App Insights SDK GitHub repo with the information, do you need anything else to proceed with this? microsoft/ApplicationInsights-dotnet#2161 We have a developer community issue on the VS side - https://developercommunity2.visualstudio.com/t/SystemDiagnosticsTraceInternalListen/1299563, Should we just dupe it to the SDK issue? |
@cijothomas - Ping on this. Is it okay to close the devcommunity ticket in favor of the sdk issue? microsoft/ApplicationInsights-dotnet#2161 |
@vijayrkn Yes. |
This issue has been automatically marked |
Description
When I upgrade the package System.Diagnostics.DiagnosticSource from 4.7.1 to 5.0.0, I get the error saying:
Evaluating the function 'System.Diagnostics.TraceInternal.Listeners.get' timedout and needed to be aborted in a unsafe way. This may have corrupted the target process.
I undertand that this page shows how to disable the error but I still thought report it.
Currently I have stopped upgrading this package. Thank you for following up.
Configuration
.Net Framework 4.8
Windows 10
x64
The text was updated successfully, but these errors were encountered: