StatLight hangs on my build server

May 10, 2012 at 8:14 PM

I'm executing StatLight as part of my TFS build process.  I was frequently seeing my builds hang, so I set a timeout on them, but that just led to a bunch of failed builds.  I added the -b and --debug flags, and the -b actually seemed to cut down on the number of hangs.  It also allowed me to finally see what was causing the hang.  The StatLight browser window is open saying that Navigation was cancelled by the user.  If I click the 'Refresh Page' link, it will refresh and continue along its merry way.

Anyone have any idea why this is happening? 

Screen cap:!941


How I invoke StatLight

"C:\Program Files (x86)\StatLight\StatLight.exe" -x="D:\Builds\1\xxx\CI Build\Binaries\xxx.Common.Tests.xap" -x="D:\Builds\1\xxx\CI Build\Binaries\xxx.Data.Tests.xap" -x="D:\Builds\1\xxx\CI Build\Binaries\xxx.Infrastructure.Tests.xap" -x="D:\Builds\1\xxx\CI Build\Binaries\xxx.Modules.AdministrationModule.Tests.xap" -x="D:\Builds\1\xxx\CI Build\Binaries\xxx.Modules.ProjectListModule.Tests.xap" -x="D:\Builds\1\xxx\CI Build\Binaries\xxx.Modules.WorkPlanModule.Tests.xap" -x="D:\Builds\1\xxx\CI Build\Binaries\xxx.Resource.Common.Tests.xap" -x="D:\Builds\1\xxx\CI Build\Binaries\xxx.Shell.Tests.xap"  -b --debug -r="D:\Builds\1\xxx\CI Build\Binaries\TestResult.xml"


Using version 1.6.4375.31960

May 10, 2012 at 10:05 PM

I'm afraid I've not seen this before...

Some things to consider trying.

  1. Read through the following
    2. The 'Continuous Integration' section of
  2. Make sure you can run it locally (on your dev machine)
  3. Log into the server and try to run it from your logged in U.I. account (I'm guessing you've already done that which is how you got the screenshot)
  4. Try running it with a very simple test project (sample test project with one passing test and one failing test)
  5. It may be trickier if any of your tests are trying to exercise the U.I. so make sure if this is true that the TFS process is running under a U.I. mode.
  6. Make sure you have the Silverlight Runtime installed on the build server

Beyond those items I'm just about out of ideas at this point.

Hope this helps.

May 10, 2012 at 11:44 PM

I'll take a look at those links, however the rest of the suggestions I fear won't help much.  I can run the same tests 10 times, 2 or 3 times they will hang, the rest they complete perfectly.

May 17, 2012 at 2:56 PM

Switched the browser to Firefox and it hasn't failed since.  Seems like there might be some issue in whatever 'browser' / browser wrapping that StatLight is using.