SOLVED

MDE ATP prevents Visual Studio 2019 16.9 from loading

%3CLINGO-SUB%20id%3D%22lingo-sub-2213927%22%20slang%3D%22en-US%22%3EMDE%20ATP%20prevents%20Visual%20Studio%202019%2016.9%20from%20loading%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2213927%22%20slang%3D%22en-US%22%3E%3CP%3EI%20recently%20began%20the%20deployment%20of%20Visual%20Studio%202019%2016.9.1%20to%20our%20developers%20and%20discovered%20that%20it%20will%20not%20correctly%20load%20or%20become%20usable%20due%20to%20ATP%20thrashing%20the%20application%20as%20it%20starts.%26nbsp%3B%20I'm%20not%20sure%20what%20it%20is%20about%2016.9%20but%20my%20guess%20is%20it's%20loading%20more%20threads%20at%20startup%20than%2016.8%20or%2016.7%20did%20and%20ATP%20aggressively%20scans%20all%20of%20the%20threads%20as%20it%20starts.%26nbsp%3B%20Because%20of%20how%20aggressive%20it%20is%20the%20threads%20fail%20to%20start%20in%20a%20timely%20fashion%20resulting%20in%20a%20ton%20of%20errors%20in%20the%20GUI%20when%20run%20as%20a%20normal%20user%20or%20not%20even%20loading%20when%20run%20as%20admin.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOn%20systems%20where%20VS%202019%2016.9.1%20won't%20load%20I%20reverted%20them%20back%20to%20the%2016.7%20and%2016.8%20branch%20to%20test%20and%20those%20load%20with%20ATP%20running.%26nbsp%3B%20I%20tested%20removing%20ATP%20and%2016.9%20works.%26nbsp%3B%20I%20also%20spun%20up%20a%20couple%20test%20VMs%20to%20verify%20combinations%20of%20applications%20and%20configs%20and%20in%20all%20cases%20ATP%20%2B%2016.9%20results%20in%20VS%202019%20failing%20to%20load%20or%20be%20usable.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EStart%20VS%202019%20as%20normal%20user%20error%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeithTussing_0-1615900763989.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F264334i2634D9D365B822AE%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeithTussing_0-1615900763989.jpeg%22%20alt%3D%22LeithTussing_0-1615900763989.jpeg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EStart%20VS%202019%20as%20admin%20error%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeithTussing_1-1615900782046.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F264335iC82309A69EBDD96F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeithTussing_1-1615900782046.jpeg%22%20alt%3D%22LeithTussing_1-1615900782046.jpeg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2220882%22%20slang%3D%22en-US%22%3ERe%3A%20MDE%20ATP%20prevents%20Visual%20Studio%202019%2016.9%20from%20loading%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2220882%22%20slang%3D%22en-US%22%3EWe%20updated%20some%20test%20systems%20to%20Visual%20Studio%2016.9.2%20and%20the%20issue%20continues%20to%20happen.%3C%2FLINGO-BODY%3E
New Contributor

I recently began the deployment of Visual Studio 2019 16.9.1 to our developers and discovered that it will not correctly load or become usable due to ATP thrashing the application as it starts.  I'm not sure what it is about 16.9 but my guess is it's loading more threads at startup than 16.8 or 16.7 did and ATP aggressively scans all of the threads as it starts.  Because of how aggressive it is the threads fail to start in a timely fashion resulting in a ton of errors in the GUI when run as a normal user or not even loading when run as admin.

 

On systems where VS 2019 16.9.1 won't load I reverted them back to the 16.7 and 16.8 branch to test and those load with ATP running.  I tested removing ATP and 16.9 works.  I also spun up a couple test VMs to verify combinations of applications and configs and in all cases ATP + 16.9 results in VS 2019 failing to load or be usable.

 

Start VS 2019 as normal user error

LeithTussing_0-1615900763989.jpeg

Start VS 2019 as admin error

LeithTussing_1-1615900782046.jpeg

 

4 Replies
We updated some test systems to Visual Studio 16.9.2 and the issue continues to happen.
Hi Leith,

1. Have you configured any ASR rule?
2. Are you able to see any alert in ATP portal?
We were just finally given access to the portal, there were no events. There are also no ASR rules configured. We do have a ticket with MS now for this.
best response confirmed by LeithTussing (New Contributor)
Solution
There were 2 issues going on. The recently installed MDE ATP was thrashing so MS's guidance from our case was the exclude the main VS2019 process. The other was a bug in VS2019 16.9.1 & 16.9.2 that 16.9.3 corrects causing one of the components to crash.