Daily Usage Issues

Corrupt ncrunchproject files

Started by damianh on 5,556 views

Howdy!

I have this strange problem where I getting corrupted ncrunchproject files, resulting in "Error while reading from configuration file 'C:\dev\{snip}.v2.ncrunchproject', is the file corrupt or in use?"

It happens only in one particular git repository and only for 2 particular projects in the sln (out of 4). It's also repeatable on multiple machines. I can't for the life of me figure out why this is happening. The work around is to delete them and recreate, but then it happens again soon after. I am getting tired of doing this.

Any ideas?


<ProjectConfiguration>
਍  㰀䈀甀椀氀搀倀爀椀漀爀椀琀礀㸀㄀   㰀⼀䈀甀椀氀搀倀爀椀漀爀椀琀礀㸀ഀഀ
  <CopyReferencedAssembliesToWorkspace>false</CopyReferencedAssembliesToWorkspace>
਍  㰀䌀漀渀猀椀搀攀爀䤀渀挀漀渀挀氀甀猀椀瘀攀吀攀猀琀猀䄀猀倀愀猀猀椀渀最㸀昀愀氀猀攀㰀⼀䌀漀渀猀椀搀攀爀䤀渀挀漀渀挀氀甀猀椀瘀攀吀攀猀琀猀䄀猀倀愀猀猀椀渀最㸀ഀഀ
  <PreloadReferencedAssemblies>false</PreloadReferencedAssemblies>
਍  㰀䄀氀氀漀眀䐀礀渀愀洀椀挀䌀漀搀攀䌀漀渀琀爀愀挀琀䌀栀攀挀欀椀渀最㸀琀爀甀攀㰀⼀䄀氀氀漀眀䐀礀渀愀洀椀挀䌀漀搀攀䌀漀渀琀爀愀挀琀䌀栀攀挀欀椀渀最㸀ഀഀ
  <AllowStaticCodeContractChecking>false</AllowStaticCodeContractChecking>
਍  㰀䄀氀氀漀眀䌀漀搀攀䄀渀愀氀礀猀椀猀㸀昀愀氀猀攀㰀⼀䄀氀氀漀眀䌀漀搀攀䄀渀愀氀礀猀椀猀㸀ഀഀ
  <IgnoreThisComponentCompletely>false</IgnoreThisComponentCompletely>
਍  㰀刀甀渀倀爀攀䈀甀椀氀搀䔀瘀攀渀琀猀㸀昀愀氀猀攀㰀⼀刀甀渀倀爀攀䈀甀椀氀搀䔀瘀攀渀琀猀㸀ഀഀ
  <RunPostBuildEvents>false</RunPostBuildEvents>
਍  㰀倀爀攀瘀椀漀甀猀氀礀䈀甀椀氀琀匀甀挀挀攀猀猀昀甀氀氀礀㸀琀爀甀攀㰀⼀倀爀攀瘀椀漀甀猀氀礀䈀甀椀氀琀匀甀挀挀攀猀猀昀甀氀氀礀㸀ഀഀ
  <InstrumentAssembly>true</InstrumentAssembly>
਍  㰀倀爀攀瘀攀渀琀匀椀最渀椀渀最伀昀䄀猀猀攀洀戀氀礀㸀昀愀氀猀攀㰀⼀倀爀攀瘀攀渀琀匀椀最渀椀渀最伀昀䄀猀猀攀洀戀氀礀㸀ഀഀ
  <AnalyseExecutionTimes>true</AnalyseExecutionTimes>
਍  㰀䐀攀琀攀挀琀匀琀愀挀欀伀瘀攀爀昀氀漀眀㸀琀爀甀攀㰀⼀䐀攀琀攀挀琀匀琀愀挀欀伀瘀攀爀昀氀漀眀㸀ഀഀ
  <IncludeStaticReferencesInWorkspace>true</IncludeStaticReferencesInWorkspace>
਍  㰀䐀攀昀愀甀氀琀吀攀猀琀吀椀洀攀漀甀琀㸀㘀    㰀⼀䐀攀昀愀甀氀琀吀攀猀琀吀椀洀攀漀甀琀㸀ഀഀ
  <UseBuildConfiguration />
਍  㰀唀猀攀䈀甀椀氀搀倀氀愀琀昀漀爀洀 ⼀㸀ഀഀ
  <ProxyProcessPath />
਍  㰀唀猀攀䌀倀唀䄀爀挀栀椀琀攀挀琀甀爀攀㸀䄀甀琀漀䐀攀琀攀挀琀㰀⼀唀猀攀䌀倀唀䄀爀挀栀椀琀攀挀琀甀爀攀㸀ഀഀ
  <MSTestThreadApartmentState>STA</MSTestThreadApartmentState>
਍  㰀䈀甀椀氀搀倀爀漀挀攀猀猀䄀爀挀栀椀琀攀挀琀甀爀攀㸀砀㠀㘀㰀⼀䈀甀椀氀搀倀爀漀挀攀猀猀䄀爀挀栀椀琀攀挀琀甀爀攀㸀ഀഀ
</ProjectConfiguration>
Hi, thanks for sharing this issue.

It looks like the encoding of the file is being corrupted somehow. I can't think of anything NCrunch itself that would do this. Do you think it may be caused by Git not detecting the encoding of the file correctly? I understand it has some known issues when merging Unicode files.
Is this related to http://forum.ncrunch.net/yaf_postst1580_--ncrunchproject-and---ncrunchsolution-encoding-change.aspx ?
damianh wrote:Is this related to http://forum.ncrunch.net/yaf_postst1580_--ncrunchproject-and---ncrunchsolution-encoding-change.aspx ?


I strongly suspect it is.

Post a reply

Log in to reply.