15

I got a new laptop for Christmas, upto date with Windows 10.

Installed Visual Studio 2022 and so far it's been crashing every day several times a day. It could be either on the coding screen, the design view, or simply in a menu.

It just freezes the whole screen and the mouse stops and no keyboard responses work. I have to turn off the laptop via the power button.

It's happened about 15-20 times in the last few days. Any ideas?

It's Windows 10 Home, and 4GB RAM. No other programs crash it's only Visual Studio.

Thanks in advance Mark.

MarkUK8
  • 153
  • 1
  • 1
  • 5
  • Check for driver updates, run a memory test. It could be VS is stressing the system more than anything else you've installed and thus showing up problems. Given it is a new laptop I would suspect a hardware issue. – Richard Jan 04 '22 at 12:05
  • Hi Richard. Thanks for your reply. I checked all that and it was still freezing the system and I couldn't even do basic coding before it froze. I have since installed the previous version, Visual Studio 2019 and not had a single problem! Am making exactly the same program I was coding in vs2022 (in C#) and not had a single freeze or crash! So.. am going to continue using VS2019. – MarkUK8 Jan 04 '22 at 12:39
  • 1
    I didn't think new laptops came with less than 8GB RAM these days? :) You may struggle with only 4GB. VS2022 is now 64bit and will use more resources. What is your memory usage and CPU usage when you get the crashes? Do you have any extensions installed in VS? What size projects are you working on? – Piers Myers Jan 06 '22 at 17:25
  • 1
    I've got same problem and started also about 3 weeks ago. Just crash on typing (C#). Done memory ect. test and no problemo. Downgrading back to VS2019.... – Weissu Jan 24 '22 at 04:30
  • My vs is doing the same thing with my solution. 8 fairly small projs, one of which contains typescript spa. all projs contain a dockerfile. Running on a really beefy workstation. – Snazzie Apr 16 '22 at 23:21
  • I used to leave my laptop with the back end and front end projects in VS2022 open from one day to another and I always got a blue screen of death with the `DRIVER_POWER_STATE_FAILURE` stop code in the middle of the night; sometimes during development too. Both projects had node processes running, but my laptop is pretty capable. I switched back to VS2019 and never had this problem again. Btw, I maintain everything up to date, every week. I suggest everyone go back to VS2019. – Raphael Setin Jul 20 '22 at 13:13

5 Answers5

5

I went back to VS 2019. No issues now.

Paul Parker
  • 51
  • 1
  • 2
5

I had this problem too and I solved changing the Visual Studio font.

Go to Tools->Options->Font and colors and change the default Cascade Mono font to Consoles

After that change zero crashes.

Tomás Crespo
  • 76
  • 1
  • 5
3

It may be the antivirus. Following Eliot Jones' solution to exclude VsDebugConsole.exe worked for me:

Open the Windows Security app, then go to Virus & threat protection > Virus & threat protection settings Manage Settings > Exclusions Add or remove exclusions > Add an exclusion

Examath
  • 176
  • 9
3

For some time now, my entire computer freezes when opening solution. In my case it seems to be caused by a corrupted .vs directory. Deleting this folder fixed the problem. Problems like these never happened in VS2019, I only started noticing them since I switched to VS2022.

Krzysztofz01
  • 432
  • 5
  • 13
1

i just using repair system visual studio installer, maybe too much extension installed impacted to you system performance, i do had 16gb , but after repair the vs22 never crash or freeze again

Tama
  • 11
  • 1
  • 1
    It is also happening to me,VS 2022 freeze , lock, i need to kill it in task manager – user1820451 Apr 19 '22 at 06:50
  • 4
    Fresh install right out-of-the-box, VS 2022 locks up frequently (5-10 times per hour or more, depending on usage). .NET 6, 24GB RAM, SSD with lots of space, Intel I5. – Option May 16 '22 at 18:36