Visual Studio 2010 Premium SP1 Very Annoying Typing Lag - visual-studio-2010

I've recently noticed that after my projects grow a certain size I end up getting a lot of VERY annoying typing lag in VS2010. It affects every language and every word I type ends up taking around 5 seconds to render - the same with deletes, it also buffers them well enough as if I become unreasonably impatient and hit delete again 3 seconds later... it processes ALL my deletes.
So the obvious point is hardware: Intel Core2 6300 # 1.87GHz, 2GB RAM, 32-bit OS and a usual 7200rpm 8MB cache HDD, shouldn't experience this much lag surely! So I've decided to uninstall and re-install VS2010 to remove any plugins I may be using (the only one I personally installed was AnkhSVN for Subversion). Still the exact same problem.
Where I'm up to now, I've just attached a debugger to view the native code of my devenv.exe process and I see that every character I type throws a huge number of these First-chance exception at 0x757ed36f in devenv.exe: 0xE0434352: 0xe0434352. - anybody have any idea what this is / how I can find the source of these offsets?

I experienced the same issue when editing .cshtml files in Visual Studio 2010. At first I thought it was a memory issue, but MemTest showed no errors and it was a very isolated problem within Visual Studio, so I looked elsewhere.
I searched through some forums and got the idea to look at Extensions I had installed. For me, the only one that pertained to editing CSS/HTML that I was running was Web Essentials. I uninstalled it and restarted the IDE, and the lag was gone.
It is strange because I have been running this extension for awhile in multiple environments and never experienced any issues. I'm not sure what changed or why it broke, but for anyone having this problem, look at the extensions you have installed.
I have also heard a lot of people having issues with the CSS3/HTML5 Web Standards Update extension. I didn't have it installed but it might cause similar issues.

I experienced the same issue in VS2012. After reading mhornfeck's answer I tried uninstalling the following via Add/Remove Programs then restarting VS:
Microsoft Office Visual Web Developer 2007. Product Version: 12.0.4518.1066.
Microsoft ASP.NET Web Pages. Product Version: 1.0.20105.0.
And the lag is gone!

Related

Visual Studio 2022 randomly started freezing my system

I've been working with Visual Studio 2022 for a couple of months now, and I've used previous versions for years without any problems.
Today I copied a piece of code to rearrange it, saved right after and the program froze so bad I had to restart my whole system.
Ever since this happened I cant use the software, any time I try to do so it completely freezes my system after a couple of minutes, no matter which of my solutions I open or if I create a new one. I've also noticed it being much slower than it used to be.
I also don't use any extensions besides a color pack.
I use VS Code on the side as well, I don't experience any problems with it, I also doubt that my system is out of memory as I usually have 20+gbs of ram available.
Should I just reinstall Visual Studio completely? I really cant wrap my head around some corrupted files causing so much trouble.

Visual Studio 2015 Community Edition intellisense increasingly slower

I'm using VS2015 Community Edition for several ASP.Net MVC projects.
The editor was nice and fast and I could be very productive. But over a week or two the editor has started "pausing" more and more, not letting me type or do much of anything. Eventually it comes back and types some of what was in the buffer.
This has gotten worse and worse with time. To the point where it's almost unusable. I have disabled all of the extensions and tools that I have installed but that doesn't seem to make a difference.
Eventually I ran VS via Devenv.exe /resetskippkgs and everything started running faster again for a week or so then it gradually got worse.
Anyone have any ideas what it might be? I am not running Resharper but am running CodeMaid and Code Digger along with a few MS Powertools.
Your issue doesn't sound typical; what variables can we eliminate?
Extensions are a common culprit. Try the following:
Open the Developer Command Prompt (search for Developer)
Enter: devenv /safemode
Run in SafeMode for some time and see if the problem is eliminated.
VS ships with a number of built-in, required extensions as well as supporting third party extensions, and it's hard to identify which is which. SafeMode shuts off only the third-party extensions so your VS continues to operate normally.
If you do not experience the issue running in SafeMode, then try identifying the extension (or combination of extensions) at fault by elimination.
Another possible external cause of symptoms like this could be hardware failure; running a disk analyzer might be in order.
It's entirely possible you've encountered a VS bug, but I don't know of one in 2015 RTM with this profile. If you use Send-a-Frown (happy face in the upper right margin) when the UI is lagging, a Perf Watson report may be generated automatically. This would be a big help in trouble-shooting the problem.

Visual Studio 2010 (devenv) Hung Process After Closing

I have problem with Visual Studio 2010 on Windows 7 64-bit. After some time of work VS starts consuming ~50% CPU and UI responding slows down. When I close VS then UI disappear but process stay.
When I forgot to kill those hung processes at the end of day, I will end up with numerous devenv.exe processes.
I have reinstall Visual Studio and reinstall Windows and ended up with the same problem... doesn't change anything. Please help. :/
Remove and/or uninstall all third-party Visual Studio add-ins and extensions. Disabling is not good enough.
Visual Studio 2010 relies heavily on graphics. Therefore:
Update your video driver.
Turn off "Enable rich client visual
experience"
Turn off "Use Hardware graphics acceleration if
available"
There are also temporary files that Visual Studio uses that may need to be cleared out.
Clear out your %temp% folder.
Clear out %AppData%\Local\Microsoft\WebsiteCache
Clear out %AppData%\Local\Microsoft\VisualStudio\10.0\ProjectAssemblies
Your project and solution user settings may be corrupt due to so many "crashes".
Delete .user and .suo files (you will lose the startup project, bookmarks, breakpoints, and other user settings specific to projects and solutions.)
Begin where you began before - it may seem overkill but this is the only way to be sure we are addressing everything short of hardware issues.
Reinstall Windows - make sure you are using a validly licensed copy, and patch the hell out of it before installing Visual Studio.
Note: I doubt it is a GPU driver issue, but it never hurts to use the most up to date driver and this is the place to do it right after a fresh OS install.
Install Visual Studio .Net 2010 but do not start it up. Let it get the frameworks installed fresh.
Use Windows Update to install the VS 2010 SP1 patch, and any/all patches for .Net frameworks.
Make an images for yourself right here so you have something to build from if you need to try this again. It will save you lots of time.
Fire up Visual Studio, and test your closing before installing anything else.
If it does not work here, there's likely some conflict between PC hardware and window OS, and you should try to find this symptom in other applications to get more info.
Here's what i would be looking for:
Does it happen EVERY TIME?
Does it happen after you debug your project ? does it happen for ALL projects?
Does it also happen when you don't load any projects? (simply start the IDE and wait).
Does it happen after a debug session of your application? maybe the application is not closed properly?
Do you have any other apps running at the same time that may cause this? try reproducing with a minimal set of apps/services running.
What are you doing exactly when it starts freezing ? anything in particular?
I would try to get 2-3 memory dumps at the time of hanging, post it here as well as to MSFT people. That would be a good start.

Visual Studio 2010 suddenly slow

Recently, the editor for VS2010 suddenly became slow when I installed some extensions then uninstalled them. The program itself is running fine and starts up in seconds. Jumping around the menus is lightning fast, but editing code, there is a 1 second lag between the keyboard and the editor.
This happens on a brand new console application project with nothing in it. I have also uninstalled all extensions, resharper etc. The only extensions remaining are VisualHg, Ankh and Nuget.
I have an i7 with 16 gigs of RAM so hardware is NOT the issue.
Is there some sort of cache or files that VS could have locked onto?
How can I figure out what is causing the issue?
Well thanks to #jv42's suggestion, I installed the perfwatson extension and that sorted out the issue. I've since put some of the extensions back and VS2010 is running better than ever before.
I still don't know what caused the issue.
I would find a rollback point before you installed the plug ins. You could have malware that installed with the plugin but was not part of the uninstall. It could just be that the uninstall did not remove something it installed that was causing the problem. It is most likely going to be far faster for you to find a rollback point and start there than to try and figure out what process is causing you the problem and where it is hooked into the registry.
Try resetting your settings from the command line back to the factory default. Warning You will lose all your settings!
devenv /resetsettings
You can back them up, as well as reset, using this article.
finally refer this to fix my problem.
solution is:
Debug->Options and Settings->Debugging -> Symbols
change from All modules,unless excluded to Only specified modules
details:
here

Visual Studio 2010 SP1 Performance

I've noticed since installing Visual Studio 2010 SP1 that I'm having huge performance issues. It will randomly freeze up on me quite a bit.
I had no performance issues with Visual Studio 2010 before the upgrade. The only add-on I have running is ReSharper.
I'm wondering if anyone else is experiencing performance issues? If so have you found a way to fix them?
I emailed ReSharper support and they were helpful enough to point out that there is a known issue with the Productivity Power tools add-on not playing nice with ReSharper. They asked me to disable the Productivity Power Tools and see if performance returned to normal.
I disabled the Productivity Power Tools and my Visual Studio with SP1 seems to behave normally again. This is an acceptable solution for me since the only part of the tools I used was the Document Tab Well, the rest seem pretty worthless to me. JetBrains is a really good company so I'm sure they will work on resolving the issue, or at least work with MS to determine which the problem is caused by.
Though my own hunch has me thinking the Productivity Power Tools are the culprit and not ReSharper.
Kind of ironic that the "Productivity" Power Tools were making me much less productive.
I haven't noticed this problem, but Scott Guthrie's blog entry on SP1 indicated near the end that VS SP1 now uses software rendering rather than hardware rendering. This can cause perf issues for some. You may want to check this out. You can access the setting in Tools | Options on the Environment/General dialog.
Installing sp1 has definitely made visual studio 2010 slower. Finding VS 2010 a bit dissapointing. Having said that, sp1 by default turns off hardware graphics acceleration in the tools options dialog. If you turn that back on and turn off rich client visual experience then things get a bit faster (I think).
Try to remove resharper, I had problems like yours when I had it
For me, the SP1 setup was stuck for several hours so I searched the Internet and found lots of people complaining about SP1 being slow (once they manage to install it!) so I cancelled the upgrade. The rollback also remained stuck. After many hours, I had to shut down the computer. Then, Windows Update tried to update .NET 4 and the update was frozen. Even when shutting down won't resolve this as Windows needs to finish installing updates before shutting down, so the only way to unfreeze it was to do a physical reboot. Now my Visual Studio 2010 installation is broken, I'm currently re-installing it...
Considering my experience and everything I read about it, I would advise to stay away from this service pack. Microsoft used to have a bad reputation for reliability (Win95-WinME era) but has been doing great in the last years. They seem to have came back again to their unreliable releases problems. Lots of people criticize Bill Gates, but I have to say... software quality isn't the same since he left. He truly was a genius.
Edit: repairing Visual Studio reported several errors and 3 unimportant components failed to install. However, Visual Studio wouldn't open because SP1 was only partially installed. I went to the control panel and uninstalled the partial SP1. Visual Studio still doesn't open, so I need to repair the installation a second time. Lots of hassles for a service pack...
First, just to clarify -- when you say it freezes, does it eventually recover? Or do you have to kill & restart VS? If you have to kill & restart, then you most likely have a configuration problem of some sort, and the rest of my answer would be less relevant. :-)
If it does eventually recover, then I'd wonder where the performance bottleneck is. Is your disk busy the whole time it's frozen? Is CPU pegged at 100% (or perhaps a smaller number for multi-core environments)? Do you have enough RAM to support whatever programs are running without too much swapping to disk? Built-in Windows tools like Task Manager and Performance Monitor, or SysInternals tools like DiskMon and Process Monitor, can help you narrow it down.
Personally I've found disk to be the most frequent bottleneck for VS, Outlook, Eclipse, and many other resource-intensive programs. If you discover that disk is the problem, I'd strongly suggest upgrading to a solid-state drive -- if you haven't already done so and have the option to do so. That might sound drastic, and in a sense it's just "throwing hardware at the problem," but it's the single most significant performance boost I've experienced on a laptop or workstation in a LONG time.
For what it's worth, I haven't found a significant difference in performance between VS2010 and VS2010 SP1, and I'm running XP 32-bit on a ~2-year-old laptop with a solid-state drive. I'm not aware of any SP1 changes that would make VS substantially more disk-intensive.
The only extension I have in VS 2010 is Resharper. CPU is Intel Core2 Quad 6600, 4Gb RAM.
After installing SP1 I've noticed memory leakage, CPU time for devenv is 25% on standby, scrolling, changing the position of cursor and switching tabs take several seconds.
See blog post here
Trinition - I got te same problem of one of the core i7 cores running at 100% and it killed Vs 2010. But it was running at 100% even if vs wasn't loaded. Initially I thought it was a hardware problem so moved the disk to an identically configured PC. One core still ran at 100%. I ran malwarebytes across the system but It didn't report anything, and nor did my AV. My workstation was so slow, I had to scroll back through backups until i found one that was ok. It was really weird and I didn't find out the cause. I think something Malicious was the cause though.
What was worse was, shortly after this, vs went haywire: every time I loaded it, it replicated another copy of all the components in the toolbox. Uninstalling sp1 and repairing vs2010 ad them reinstalling sp1 and other components fixed, but all in all I lost two days to something for which I still have no explanation. Wish I'd found your entry about the 100% core at the time: it didn't show up on google 'cos that's exactly wat i searched for.
Barry

Resources