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 NCrunch Developer
#8136
16 Dec 2015 21:08 UTC
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).
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).
Edited 16 Dec 2015 21:09 UTC
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
I did the /setup step. I will try /rootsuffix
I submitted a bug report
Remco NCrunch Developer
#8138
16 Dec 2015 21:24 UTC
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?
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?
Edited 16 Dec 2015 21:25 UTC
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
I updated to vs 2015 update 1 this morning after initially having the issue
Remco NCrunch Developer
#8140
16 Dec 2015 21:30 UTC
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.
Is temporarily disabling your virus scanner an option? This would at least allow us to rule it out.
Remco NCrunch Developer
#8141
16 Dec 2015 22:41 UTC
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.
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.
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.
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 NCrunch Developer
#8146
17 Dec 2015 21:24 UTC
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?
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?
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 NCrunch Developer
#8151
18 Dec 2015 22:44 UTC
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!
Post a reply
Log in to reply.