Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

NCrunch Engine crashing
Beaker
#1 Posted : Friday, July 8, 2016 9:38:33 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/13/2014(UTC)
Posts: 2
Location: Netherlands

Thanks: 1 times
On one project in VS2013 NCrunch suddenly stopped working.
The queue got filled with pending assemblies to build, but just doesn't processs them.
I didn't change any thing to the project, but at first I tried checking requirements of projects not being met.
Restarting VS, the computer, nothing solved it. And NCrunch works on all other projects.

Then I enabled logging to console and full logging and found this message:

ENGINE - [11:23:58.3492-Core-15] ERROR (Internal): System.NullReferenceException: Object reference not set to an instance of an object.
at nCrunch.Client.Model.ClientModelAlignmentAction.AlignModelComponentWithSnapshotComponent(ModelComponent modelComponent, SnapshotComponent snapshotComponent, CoverageDatabase coverageDatabase)
at nCrunch.Client.Model.ClientModelSynchroniser.(AllProjectsSynchronisedEvent )


How can I diagnose and solve this problem?
Remco
#2 Posted : Friday, July 8, 2016 10:33:45 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,145

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi,

Thanks for sharing this issue.

This is caused by cache file corruption. You can restore the state of the engine by deleting the _NCrunch_SOLUTIONNAME directory adjacent to your solution file (with the engine disabled).

Do you remember anything you may have done that could have triggered this? A few people have been hit by this problem and I'd like to try and reproduce and properly fix it.
1 user thanked Remco for this useful post.
Beaker on 7/12/2016(UTC)
Beaker
#3 Posted : Tuesday, July 12, 2016 9:43:30 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/13/2014(UTC)
Posts: 2
Location: Netherlands

Thanks: 1 times
Thanx. Removing the folder did work.

Unfortunately I cannot remember what I did.
Before removing the cache folder I zipped it. If you want I can sent it to you, so you can examine what is corrupt. Maybe this can help you.
Furthermore this is a BizTalk solution, thus during build there are a lot of special builds like Maps (*.btm), Orchestrations (*.odx) and such.
Remco
#4 Posted : Tuesday, July 12, 2016 10:29:30 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,145

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Beaker;8959 wrote:

Unfortunately I cannot remember what I did.
Before removing the cache folder I zipped it. If you want I can sent it to you, so you can examine what is corrupt. Maybe this can help you.
Furthermore this is a BizTalk solution, thus during build there are a lot of special builds like Maps (*.btm), Orchestrations (*.odx) and such.


I won't turn down an opportunity to look at a corrupt cache file - the details in this could very well yield a clue as to what happened. At the very least, I may be able to make the system more resilient to this form of corruption so that it can recover sensibly.

However, the cache file DOES contain elements of source code from your solution. I'm not sure if this would cause problems with the IP for your project. If this is a commercial project, I'd suggest checking with the IP holder first to see if they are OK with me obtaining it for diagnostic purposes only.
Remco
#5 Posted : Wednesday, July 20, 2016 7:54:10 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,145

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
v2.24 has just been released with a fallback to improve handling of the above cache corruption issue. Unfortunately, I still haven't been able to reproduce the issue itself, but at least NCrunch should now be able to recover itself and work normally (with some temporary loss of cached state) if it encounters the problem.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.039 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download