Tuesday, March 01, 2011 4:55 PM Jim Wang

Keyboard locking up in Visual Studio 2010, Part 2

Last week I posted about looking into the keyboard locking up issue in Visual Studio.  So far it looks like not a lot of people have replied to provide concrete repro steps, which confirms my suspicion that this is somewhat of a random issue.

So at this point, I have a couple of choices.  I can either wait for somebody in the community to provide a repro of the problem that I can reliably run into, or I can do the work myself.

I’m going to do both, so while I’m waiting for more possible bug reports, I’m going to write a tool that models the behavior of a typical Visual Studio user and use that to hopefully isolate the problem.

I’ve chosen to go with this path since given the information in the bug reports, it seems people hit the issue with many different configurations in many different scenarios.  This means that me sitting down without any solid repro steps is likely not going to be a good use of time.  Instead, I’m going to go with a model-based testing approach where I will define a series of actions that a user in VS can do, and then proceed to run my model.  I’ll let you guys know how this works out for isolating bugs :)

I’m using an internal tool for the model engine and AutoIt for the UI automation (I want something lightweight for a one-off).  One of the challenges will be getting feedback: AutoIt is great at driving, but not so great at understanding what success and failure means.

Filed under: , , , ,

Comments

# re: Keyboard locking up in Visual Studio 2010, Part 2

Tuesday, March 01, 2011 9:45 PM by Jack Dough

The reason you did not get any repro steps for this is because there are no specific repro steps.

here are some of the symptoms (and possibly causes) for this issue:

- It seems that whenever the keyboard locks up it's usually at the same time that multiple instances of the csharp-compiler (csc.exe) (or vb-compiler - or for that matter any compiler) are running. - this usually happens when attempting to save changes to a file. the issue is that it's not consistent but once it starts happening it does not usually stop until you restart visual studio.

- It seems that the compiler starts taking longer to run when the memory-usage for visual studio starts getting higher - though this is not guaranteed, I've had cases where VS was using a large amount of Memory but did not encounter this issue.

- The issue is not limited to the keyboard locking, at some points it seems that the entire visual studio locks for the same reasons.

# re: Keyboard locking up in Visual Studio 2010, Part 2

Wednesday, March 02, 2011 4:20 PM by Jim Wang

@Jack: Yeah basically I think it's a combination of multiple issues, and the push for model based testing is one of the ways to isolate issues individually as the model grows out and simulates user interaction, which is why this is interesting.  It is possible that it's a timing problem though, but hopefully there is a series of steps that can be isolated that lead to higher repro instances.

# re: Keyboard locking up in Visual Studio 2010, Part 2

Wednesday, March 02, 2011 4:20 PM by Jim Wang

@Jack: Thanks for the additional feedback though, I'll be sure to consider adding stress scenarios to the model.

# re: Keyboard locking up in Visual Studio 2010, Part 2

Wednesday, March 02, 2011 4:26 PM by Koistya `Navin

One more guess... what if it's somehow related to recent Win7 to SP1 updates?

# re: Keyboard locking up in Visual Studio 2010, Part 2

Wednesday, March 02, 2011 4:36 PM by Jim Wang

Not a bad thought Koistya...perhaps some of the issues are, but we had a lot of bug reports prior as well so the majority of the problems likely happened before.

# re: Keyboard locking up in Visual Studio 2010, Part 2

Thursday, March 03, 2011 1:04 AM by Jack Dough

I've been having this issue on multiple machines, some running win7 and some running xp, all different configurations, some newer some older. Another thing to consider is extensions, on some of the machines I've seen ReSharper installed (which I believe can add to these issues).

my guess as to why the compiler was running every time I pressed save (and some times even after making a simple change without pressing save) was so that the IDE can give feedback as to scripting errors / issues. - though you'd think that such a thing is not necessary, this was the only explanation I could think of as to why the compiler had to run so often. - another possible explanation would be that the compiler runs for ReSharper. (though not all machines had ReSharper installed)

# re: Keyboard locking up in Visual Studio 2010, Part 2

Friday, March 04, 2011 4:00 AM by Maxi Oong

I has read the locking keyboard of Jimmy Wang Blog. It is happen to operations usually. It was adding of #define On_Click()=hWnd (formform1) set operaName = my.name; operaVersion = my.system;

formform1=newform.propertySystem(){wtConsole=newConsole{"operaName";"operaVersion"}} open Console.wtConsole();

# re: Keyboard locking up in Visual Studio 2010, Part 2

Wednesday, May 25, 2011 4:14 PM by rls

this happens to me when I am creating/modifying html attributes.

# re: Keyboard locking up in Visual Studio 2010, Part 2

Thursday, May 26, 2011 8:27 AM by mactheknife

For me, it always happens whenever I open an aspx/ascx page, though not ONLY then. It locks for 30-60s without any significant CPU on XP SP3.

I was beginning to suspect network DLLs/TFS/anti-virus combination. As one morning I had an error message about Intelli-sense & network referenced DLLs, but then copying locally did not seem to improve it...

# Wang keyboard | Kenskeysandloc

Wednesday, July 20, 2011 3:11 AM by Wang keyboard | Kenskeysandloc

Pingback from  Wang keyboard | Kenskeysandloc

# re: Keyboard locking up in Visual Studio 2010, Part 2

Thursday, August 18, 2011 5:36 AM by abercrombie and fitch outlet uk

abercrombie and fitch uk store

# re: Keyboard locking up in Visual Studio 2010, Part 2

Thursday, August 18, 2011 5:46 AM by burberry online

burberry online shop

# re: Keyboard locking up in Visual Studio 2010, Part 2

Thursday, August 18, 2011 5:47 AM by chloe

一切不以结婚为前提的恋爱,都是耍牛氓

# re: Keyboard locking up in Visual Studio 2010, Part 2

Friday, September 02, 2011 7:01 PM by KnKron

Абсолютно новенький Asus за 453 рубля. LG телефоны по 277 рублей. <a href=most-profit.ru>most-profit.ru</a>

# re: Keyboard locking up in Visual Studio 2010, Part 2

Saturday, November 05, 2011 3:48 AM by SandraruwTaylornc

hi all,  I am in the development of finalizing my meaningful beauty purchasing. I've gone reading innumerable sites and for all timethis <a href=www.grilledhotdogstand.com/.../>meaningful beauty</a> website appears worth trusting. Any member here have an idea regarding them?                            

Thanks everyone for listening.

# re: Keyboard locking up in Visual Studio 2010, Part 2

Wednesday, December 14, 2011 6:18 AM by dmmaseoseoseo

Ive been meaning to read this and just never acquired a chance.  Its an issue that Im really interested in, I just started reading and Im glad I did.  Youre a fantastic blogger, one of the ideal that Ive seen.  This blog absolutely has some information on topic that I just wasnt aware of.  Thanks for bringing this stuff to light.

# re: Keyboard locking up in Visual Studio 2010, Part 2

Monday, December 19, 2011 10:33 AM by Welding Electrodes

Hah, seriously? That's rediculous. No way

# re: Keyboard locking up in Visual Studio 2010, Part 2

Thursday, January 05, 2012 9:22 AM by sildenafil citrate

Good deal. I really hope you won't stop writing such interesting and great posts!  <a href="medsildenafil.com/">sildenafil citrate</a>

# re: Keyboard locking up in Visual Studio 2010, Part 2

Tuesday, January 17, 2012 1:54 PM by Psymnunsell

treatments for premature ejaculation,  http://gkkglglrrr.hpage.com/ - hoodia

# re: Keyboard locking up in Visual Studio 2010, Part 2

Sunday, January 29, 2012 3:09 AM by pohippyi

# re: Keyboard locking up in Visual Studio 2010, Part 2

Monday, January 30, 2012 8:26 PM by chat in

Hello. Nice work. How can I subscribe to your site?  online chat  <a href="stardustwebcams.com/.../">live chat adult finder</a> good chat rooms for adults

# re: Keyboard locking up in Visual Studio 2010, Part 2

Wednesday, February 01, 2012 1:32 PM by Polisq

Что Вы думаете о вашей родословной?          

Вы никогда не думали, как тайна родословной влияет на жизнь людей и влияет ли вообще?            

Ученые долгое время пытались вычислить, почему периодически судьбы современных людей повторяют судьбы наших предков, в чем таится виновник похожих судеб в веках и как связанна фамилия с будущей жизнью человека. Для того, чтобы понять причину и найти ответы на все эти вопросы, ученые проводили исследование большого количества архивов, которые сохранились в наш период.          

<a href=http://amalerxonsrp17.fromru.su>история фамилии</a>

история фамилий бабичев

# re: Keyboard locking up in Visual Studio 2010, Part 2

Friday, February 03, 2012 7:11 AM by ReageasencyuI

Насчет тонкого юмора поняли... А бывает толстый юмор?    

<a href=http://xn--c1aeb8eua.xn--p1ai/>картинки праздничных тортов</a>

# re: Keyboard locking up in Visual Studio 2010, Part 2

Wednesday, February 22, 2012 6:33 PM by Paurndar

to buy <a href=www.burberryoutlet-saleonline.com/burberry-scarves-c-28.html>burberry scarf</a>   and check coupon code available

# re: Keyboard locking up in Visual Studio 2010, Part 2

Monday, March 05, 2012 12:59 PM by FeessSag

order an <a href=www.thechanelbags2012.com/>chanel handbags 2011</a>   to take huge discount

# re: Keyboard locking up in Visual Studio 2010, Part 2

Thursday, March 08, 2012 11:44 PM by ecigaretteurp

What Backpacks are  the Right Choice to Quit blazing? A few Types Involving Electronic cigarettes.  <a href=http://www.ecigarettedirect.co.uk>e-cigarettes</a> The capsule which contain the smell is supplied in the real estate market within flavors and tastes. Thus you'll be able to drink the real nicotine, or fruits or flower scents set for your cartridges. E-cigarette kits address most of the negative aspects of a standard tobacco based cigarette, while still delivering an identical taste and sensual pleasure that will be derived from conventional one.

# re: Keyboard locking up in Visual Studio 2010, Part 2

Friday, April 27, 2012 9:14 PM by pauleyip

<a href=http://katspace.net/>diet solution</a>

# re: Keyboard locking up in Visual Studio 2010, Part 2

Saturday, April 28, 2012 10:48 AM by Nuptlypeteace

# re: Keyboard locking up in Visual Studio 2010, Part 2

Saturday, April 28, 2012 11:09 AM by pauleyip

<a href=http://katspace.net/>diet solution</a>

# re: Keyboard locking up in Visual Studio 2010, Part 2

Saturday, April 28, 2012 5:32 PM by pauleyip

<a href=http://katspace.net/>diet solution</a>

# re: Keyboard locking up in Visual Studio 2010, Part 2

Friday, May 18, 2012 4:07 PM by IodineeDophep

# re: Keyboard locking up in Visual Studio 2010, Part 2

Saturday, May 19, 2012 9:26 AM by senepreli

Leave a Comment

(required) 
(required) 
(optional)
(required)