Visual Studio 2022 keeps crashing and locking the system
Asked Answered
B

7

21

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.

Barogram answered 3/1, 2022 at 20:49 Comment(6)
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.Malvina
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.Barogram
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?Bullhead
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....Pantisocracy
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.Amicable
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.Quent
S
6

I went back to VS 2019. No issues now.

Skean answered 17/5, 2022 at 16:31 Comment(2)
You also have Windows 10 home with 4GB ram?Wolfenbarger
It happens with Windows 11 32 GB ram.Aligarh
B
6

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.

Blackboard answered 5/12, 2022 at 11:53 Comment(2)
I have no idea why this would work, but it does. Thanks!Wits
Try this first, friends! We had recently upgraded Windows to Server 2016 (we have to use a shared machine). Cascade Mono is not supported on Server 2016.Violone
S
5

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.

Saberio answered 4/8, 2022 at 20:40 Comment(0)
D
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

Desired answered 20/7, 2022 at 5:51 Comment(0)
I
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

Inexpressible answered 28/2, 2022 at 11:22 Comment(2)
It is also happening to me,VS 2022 freeze , lock, i need to kill it in task managerBartlet
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.Briny
G
1

This solution worded for me. Turn off hardware graphics acceleration to switch to software rendering. To do this, follow these steps:

  1. In Visual Studio, click Tools > Options.
  2. In the Options dialog box, clear the Automatically adjust visual experience based on client performance check box. (Refer to the following screenshot for this step.)
  3. Clear the Use hardware graphics acceleration if available check box to prevent the use of hardware graphics acceleration.
  4. Select or clear the Enable rich client visual experience check box to make sure that rich visuals are always on or off, respectively. When this check box is selected, rich visuals are used independent of the computer environment. For example, rich visuals are used when you run Visual Studio locally on a rich client and over remote desktop.
Gaylord answered 22/9, 2023 at 8:12 Comment(0)
E
0

Saw similar issue, resolved finally.

Possible reasons:

1.Installed Cascade Mono font or its similar fonts by some reason.

2.Installed Windows Terminal, while Windows Terminal installs Cascade Mono font automatically.

Windows Terminal is this guy below:

Windows Terminal

3.The Inlay Hints function in ReSharper makes it stuck.

The workaround of point 3 can be referred to:

Sergey Kuks's reply - youtrack.jetbrains.com (screen shots for settings in "ReSharper Options" inside.)

Then uninstall Windows Terminal, uninstall Cascade Mono font, check again.

Extrovert answered 30/5 at 5:49 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.