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

Notification

Icon
Error

Can no longer enable NCrunch - VS 2015
cschnepf
#1 Posted : Wednesday, December 16, 2015 7:14:06 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/16/2015(UTC)
Posts: 5
Location: United States of America

I have 2.19.04 installed with VS 2015.

NCrunch was working perfectly yesterday. Today NCrunch is disabled and the Enable option is not available in the menu. I've tried reinstalling NCrunch but that hasn't helped.

I do not see any errors in the output window.

What else should I try to fix this?
Remco
#2 Posted : Wednesday, December 16, 2015 9:08:29 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,987

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Hi, thanks for sharing this issue.

Does the bug report option still work for you? If you can submit a bug report, I can examine the log to see what's happened here.

Does this happen for all solutions?

Also it's worth trying to run "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe /setup" to see if this helps.

If that doesn't do the trick, try: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe /rootsuffix test" to see if this is being caused by VS registry corruption (does unfortunately happen sometimes).
cschnepf
#3 Posted : Wednesday, December 16, 2015 9:22:41 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/16/2015(UTC)
Posts: 5
Location: United States of America

I tried a few different solutions and ncrunch doesn't work in any of them.

I did the /setup step. I will try /rootsuffix

I submitted a bug report
Remco
#4 Posted : Wednesday, December 16, 2015 9:24:49 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,987

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Thanks for submitting the log file. There is a very interesting exception here:

System.InvalidOperationException: No process is associated with this object.
at System.Diagnostics.Process.EnsureState(State state)
at System.Diagnostics.Process.EnsureState(State state)
at System.Diagnostics.Process.get_Id()
at nCrunch.Core.ProcessManagement.ExternalProcessManager.(ExternalProcess )
at nCrunch.Core.ProcessManagement.ExternalProcessManager.(ProcessorArchitecture , ProcessLoadParameters )
at nCrunch.Core.ProcessManagement.ExternalProcessManager.LoadExternalProcess(ProcessLoadParameters parameters, GridClientId client)
at nCrunch.Client.EngineHosting.HostedEngineFactory.(EngineHostingStrategy , VisualStudioVersion )
at nCrunch.Client.EngineHosting.HostedEngineFactory.CreateHostedEngine(VisualStudioVersion visualStudioVersion)
at nCrunch.Client.EngineHosting.EngineHost.(SystemEnabledEvent )

This is being thrown in the code responsible for initialising the NCrunch engine host process. For whatever reason, the process is failing to initialise.

Are you running a virus scanner or do you have any kind of software that might interfere with a process being launched on your machine?

Changing your 'Engine hosting strategy' (global config setting) to set the engine to be hosted inside the IDE will allow you to work around this problem, though I expect that it will then fail downstream when it tries to launch build/test processes.

Can you confirm if you have VS2015 Update 1 installed?
cschnepf
#5 Posted : Wednesday, December 16, 2015 9:27:48 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/16/2015(UTC)
Posts: 5
Location: United States of America

We use mcafee but I haven't had issues prior to today.

I updated to vs 2015 update 1 this morning after initially having the issue
Remco
#6 Posted : Wednesday, December 16, 2015 9:30:26 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,987

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Can you check in the Windows Event Viewer to see if there are any errors being kicked up by the NCrunch process when it initialises?

Is temporarily disabling your virus scanner an option? This would at least allow us to rule it out.
Remco
#7 Posted : Wednesday, December 16, 2015 10:41:57 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,987

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Something else I'd suggest checking (especially if you've done a manual install) is that Windows is not blocking the installed files.

Check the file properties for C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Remco Software\NCrunch for Visual Studio 2015\nCrunch.EngineHost461.x64.exe by right clicking it in explorer and going to Properties. Is there an option to 'unblock' the file? Sometimes windows does this when files are manually extracted from a ZIP. It will then block any applications from accessing them.
cschnepf
#8 Posted : Thursday, December 17, 2015 1:24:57 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/16/2015(UTC)
Posts: 5
Location: United States of America

changing the engine hosting strat allows ncrunch to run but all of the projects get the following exception and a load failure:

System.InvalidOperationException: No process is associated with this object.
at System.Diagnostics.Process.EnsureState(State state)
at System.Diagnostics.Process.EnsureState(State state)
at System.Diagnostics.Process.get_Id()
at nCrunch.Core.ProcessManagement.ExternalProcessManager.(ExternalProcess )
at nCrunch.Core.ProcessManagement.ExternalProcessManager.(ProcessorArchitecture , ProcessLoadParameters )
at nCrunch.Core.ProcessManagement.ExternalProcessManager.LoadExternalProcess(ProcessLoadParameters parameters, GridClientId client)
at nCrunch.Core.BuildManagement.BuildProcessLauncher..()
at nCrunch.Common.PerformanceTracking.PerfTracker.TryTrackActivity(String name, Action activity)
at nCrunch.Core.BuildManagement.BuildProcessLauncher.(Action`1 , ProcessorArchitecture , GridClientId , IBuildableProject , IList`1 )
at nCrunch.Core.BuildManagement.BuildProcessLauncher.AnalyseComponentBuildInExternalProcess(FilePath projectFilePath, BuildXml buildXml, String useBuildConfiguration, String useBuildPlatform, DirectoryPath solutionDir, String solutionName, List`1 importExpressionsToEvaluate, ProcessorArchitecture processorArchitecture, VisualStudioVersion vsVersion, IList`1 customEnvironmentVariables)
at nCrunch.Client.ComponentLoader.SnapshotComponentFactory.(ProcessorArchitecture )
at nCrunch.Client.ComponentLoader.SnapshotComponentFactory.CreateSnapshotComponentFromXml(FilePath projectFilePath, BuildXml projectXml, FilePath solutionFilePath, String[] additionalFilesToIncludeAtSolutionLevel, Boolean isLoadedFromFile, ISnapshotConfig snapshotConfig, VisualStudioVersion vsVersion)


I am unable to disable mcafee.

I am running windows 10 in case you are curious.

event viewer has this error:

Log Name: Application
Source: .NET Runtime
Date: 12/16/2015 2:59:27 PM
Event ID: 1026
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: CSCHNEPF-M73.TAXCC.local
Description:
Application: git.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.MissingMethodException
at Microsoft.VisualStudio.GitCli.GitShim.clone(System.String, System.String, System.String)
at Microsoft.VisualStudio.GitCli.Program.Main(System.String[])


Event Xml:
<Event xmlns="(- BROKEN LINK -)">
<System>
<Provider Name=".NET Runtime" />
<EventID Qualifiers="0">1026</EventID>
<Level>2</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2015-12-16T21:59:27.000000000Z" />
<EventRecordID>10461</EventRecordID>
<Channel>Application</Channel>
<Computer>CSCHNEPF-M73.TAXCC.local</Computer>
<Security />
</System>
<EventData>
<Data>Application: git.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.MissingMethodException
at Microsoft.VisualStudio.GitCli.GitShim.clone(System.String, System.String, System.String)
at Microsoft.VisualStudio.GitCli.Program.Main(System.String[])

</Data>
</EventData>
</Event>

These go back to when I started having issues with NCrunch so this is probably the problem. I seem to be unable to disable or uninstall the git extension at this point for some reason though to test that theory.


Remco
#9 Posted : Thursday, December 17, 2015 9:24:59 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,987

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
At the moment I'm not sure how these Git related errors could be related to the inability of VS to be able to spawn a new process.

Do you have any other versions of VS installed that you can try running NCrunch on?

Something else worth trying:
1. Browse to the NCrunch install directory (usually C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Remco Software\NCrunch for Visual Studio 2015)
2. Look for a file called 'nCrunch.EngineHost461.x64.exe'
3. Try running this file directly
4. You should receive a NullReferenceException. Is this consistent with your observation?
cschnepf
#10 Posted : Friday, December 18, 2015 1:50:11 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/16/2015(UTC)
Posts: 5
Location: United States of America

I am not exactly sure what happened but last night my computer applied updates. This morning when I opened vs ncrunch was working again.
Remco
#11 Posted : Friday, December 18, 2015 10:44:18 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,987

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Probably this was being caused by a faulty component that was replaced by the windows update. Thanks for letting me know that you're back up and running!
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.079 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download