Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2010 crash when profiling, after analyzing report

I am profiling my C# WinForm project in VS 2010, SP1. IDE crashes after profilig is finished and analyzing is done, but results are not yet displayed. I can manualy process my report by cmd: >VSPerfReport.exe /summary:all "Report111229(4).vsp" but i would like to get analysis results in VS also, .csv files generated by tool are not so nice. Interesting is that VS will crash when I use Instrumentation and Sampling, but not when I use Concurrency. Some ideas or advices how to fix this?

like image 338
watbywbarif Avatar asked Dec 29 '11 12:12

watbywbarif


2 Answers

Some people are able to get around this using one of four techniques.

  1. disabling all visual experience options in VS 2010 by deselecting the option in Tools --> Options --> Environment --> General | Visual Experience

  2. disable HW Acceleration for WPF by setting the registry value HKEY_CURRENT_USER\SOFTWARE\Microsoft\Avalon.Graphics\DisableHWAcceleration to 1

  3. disable the Concurrency option Collect resource contention data

  4. select Enable source server support in Tools --> Options --> Debugging --> General

These all stink but may work long enough to allow you to do what you need

like image 99
JoeGeeky Avatar answered Nov 18 '22 15:11

JoeGeeky


Try excluding the Performance file from source control

What resolved the problem for me was excluding the Performance file (e.g. Performance.psess) from source control (in our case TFS) and ensuring that none of the .psess and .vsp files are marked read only.

I hope this helps someone else too.

like image 31
Chris Avatar answered Nov 18 '22 15:11

Chris