|  Login
share this page - email email | del.icio.us del.icio.us | digg digg | technorati technorati | reddit reddit | stumbleupon stumbleupon | facebook facebook | google bookmarks google bookmarks | yahoo bookmarks yahoo bookmarks | slashdot slashdot | backflip backflip | live live | twitter twitter
Search Blogs
 
 
   
     
Blog Archives
   
   
     
Blog List
   
   
     
Blogs
 
Oct 5

Written by: Shawn Bass
Monday, October 05, 2009 6:57:56 AM 

If you follow me via Twitter, you're probably aware that I've been working on a bug in the Microsoft App-V 4.5 Client for the last few weeks.  This particular bug has been occurring randomly at a client site of mine.  User's that have a particular App-V application will sporadically receive the following error message when trying to start the application:


The text of the error message is "This application has failed to start because the application configuration is incorrect.  Reinstalling the application may fix the problem.  Error code: 4505CD-1F702639-000036B1"

At the same time as this launch failure, the following event log entry is logged in the System Event Log

The details of this event log entry are this:

Source: SideBySide
Category: None
Type: Error
EventID: 59
User: N/A
Description: Resolve Partial Assembly failed for Microsoft.VC80.CRT.mui.  Reference error message: The system cannot find the path specified"

Background on the error:

This issue would randomly occur with Office 2007 SP1 App-V package, but the issue was very rare.  However, we had one sequenced application (BMC Control-M) that it would occur around 1 in 5 launches.  At first we suspected some kind of software conflict.  When you're in an environment with 2000+ applications across 20k desktops, it's not unheard of that some broken package might be overwriting some key DLLs, etc.  This suspicion was raised because the launch failures were not occurring for all users of the application.  More on why later.  Anyway, we began with the typical things like re-installing the .NET Framework, re-installing the VC++ 2005 SP1 runtime and while we had limited success after doing so then problem was still there.  After messing around re-instaling a few applications, we decided to take our desktop build down to the absolute minimums and try to repro the issue.  Even with the build at the very basic OS components, we could still reproduce it.  I decided to try an OS build straight from media to avoid any kind of customer OS modifications.  To my delight, the problem did not recur on my fresh OS build from media.  We later discovered that it had more to do with this system being a VM than it did with the system being a fresh OS install.

On to the problem discovery:

One of the guys that I work with at this cilent site (we'll call him Bob) had an ancient laptop that was already lifecycled off the books, but he still had possession of it.  When Bob ran the Control-M package on his ancient laptop, he couldn't reproduce the issue once.  When Bob informed me of this, we both started thinking "Is it because this machine is slower and therefore the client is taking longer seeking the hard drive and preventing the problem from occurring?  Or is it because this system has a single CPU whereas everything else is running at least two CPUs due to Hyperthreading or Dual Core?"

Let's test the multiple CPU theory:

The first test for the multiple CPU condition was an easy one.  Simply add a second CPU to my VM that was consistently working and see what happens.  I did just that and voila the problem began occuring on my VM (not as frequently as on the physical desktop hardware though so system speed appears to have something to do with it too).

The second test was to take one of our dual processor systems (in this case a hyperthreading machine not a true dual core) and alter the boot.ini to include the /onecpu switch which forces Windows to ignore the 2nd logical processor.  To our excitement, this system began working 100% of the time despite having failed regularly before.

Now we've proven it, now what?

Before we give up and call Microsoft, I wanted to ensure this wasn't fixed in CU1 or any post-CU1 hotfix rollups otherwise that would be a wasted premier support incident.  I downloaded and installed CU1 and the July hotfix rollup.  No difference in error frequency.

On to Microsoft support:

Now that we've confirmed this isn't something that's already fixed, we opened an incident with MS Premier support.  We provided all the details on how to reproduce the issue and even sent our problem package off for testing at Microsoft.  They were able to repro the issue in their labs.  After about a week of back and forth and the issue going up through escalation, Microsoft confirmed the existence of a race condition bug in the App-V File System in three different places and that they would be working on a hotfix.

And the fix....

Microsoft created a fix for the three race condition bugs and they will be including it into the September 2009 Hotfix Rollup Pack which currently has KB974278 This KB is not currently public, but I would expect it to go public in a few weeks.  If you desperately need this fix before then, you should contact Microsoft Support to obtain it as I will not hand out any non-public hotfixes.

 

 

Tags:

7 comment(s) so far...

Re: App-V 4.5 File System race condition found and fixed

Great work Shawn.I posted it here; social.technet.microsoft.com/Forums/en-US/appvgeneralsequencing/thread/f5410057-58b7-42ec-bf15-443fe09dfea9 Hopefully a few people will benefit from this!

By Nicke Källén on   Friday, October 23, 2009 9:08:31 AM

Re: App-V 4.5 File System race condition found and fixed

Shawn, great story. I specifically like the happy ending ;-)

By Ment van der Plas on   Tuesday, October 06, 2009 3:29:26 AM

Re: App-V 4.5 File System race condition found and fixed

Thanks for posting! Saved a client of mine (and me) some go ol head bashing against the desk.

By Kevin Kaminski on   Thursday, October 08, 2009 9:05:09 AM

Re: App-V 4.5 File System race condition found and fixed

I am so glad I stumbled across your post. I just began experiencing this with one of my apps and was beginning to go nuts. Thanks for the detailed post Shawn.

By C Edwards on   Thursday, October 22, 2009 9:39:42 PM

Re: App-V 4.5 File System race condition found and fixed

Really Thanks, HyperThreading seems to do exactly the same (disabled in the bios and not application 100% effective)

By PhtiNIX on   Tuesday, November 03, 2009 11:36:21 AM

Re: App-V 4.5 File System race condition found and fixed

I havent any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us.
Web Design India

By John on   Tuesday, March 16, 2010 12:50:09 AM

Dollar Shops

Apple bush Phoebe Prince's body Promotional gifts was found hanging Animal polymer clay ball pen in the stairway leading to Baby Items her family's second-floor Animal polymer clay ballpoint apartment in South Hadley, Chinese Wholesaler Northwestern District Animal polymer clay children's ball pen Attorney Elizabeth D. Scheibel told Arificial plants reporters in the western Dollar Stores Massachusetts town of Northampton Bathroom Scales.

By Dollar Shops on   Tuesday, March 30, 2010 12:02:44 AM

Your name:
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Security Code
Enter the code shown above in the box below
Add Comment   Cancel