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

Notification

Icon
Error

Enable NCrunch is disabled
DomsRoberts
#1 Posted : Tuesday, April 13, 2021 10:06:34 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 8/2/2018(UTC)
Posts: 5
Location: United Kingdom

Hello,
My instance of NCrunch was working fine until a few days ago. I am using VS 2019 and was using NCrunch 4.3.0.13 initially when the problem started ,so I upgraded to the latest version today and still have the same problem. I have uninstalled the previous version and installed the new one. Restarted the laptop and the VS instance multiple times.
The other options in the Menu are enabled but the Enable NCrunch option is disabled and the engine is not started.

Dominic
Remco
#2 Posted : Tuesday, April 13, 2021 10:57:57 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
Hi, thanks for sharing this problem.

Can you confirm whether you're using a preview version of VS?

Could you submit an NCrunch bug report after you've opened a solution in the IDE?
DomsRoberts
#3 Posted : Wednesday, April 14, 2021 11:06:30 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 8/2/2018(UTC)
Posts: 5
Location: United Kingdom

Hi,
No I am not using a Preview version of VS. It is the same version of VS that was working perfectly well with NCrunch last week.
I will raise a bug report through the IDE.

Thanks
Remco
#4 Posted : Wednesday, April 14, 2021 11:56:20 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
Thanks for submitting the bug report.

It looks like something is blocking the engine process from starting. If you haven't already, try reinstalling NCrunch. Check that the files in the NCrunch install directory aren't being blocked by the OS/Explorer (it's frustrating but it does often do this if you extracted the files from ZIP). If you're running a virus scanner, try deactivating it temporarily as it may be blocking the nCrunch.EngineHost462.x64.exe process from starting.

Running the nCrunch.EngineHost462.x64.exe file from the NCrunch install directory using Windows Explorer might give you a meaningful error that could give a useful clue as to the cause of the problem.
DomsRoberts
#5 Posted : Wednesday, April 28, 2021 12:39:30 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 8/2/2018(UTC)
Posts: 5
Location: United Kingdom

Uninstalling and Reinstalling multiple times made no difference it still wouldn't start.
I can start the EngineHost manually in a command window and then it runs ok with no error messages. Restarting the computer requires it to be restarted manually each time.
It started after a Windows Update had occurred. The same update has completely wiped out Docker Desktop as well.
michaelkroes
#6 Posted : Wednesday, April 28, 2021 4:23:37 PM(UTC)
Rank: NCrunch Developer

Groups: Registered
Joined: 9/22/2017(UTC)
Posts: 306
Location: Netherlands

Thanks: 138 times
Was thanked: 73 time(s) in 69 post(s)
Hi,

I'm sorry this problem is persisting for you.

Would you mind trying to close all VS instances and deleting the globalconfig.crunch.v3.xml file which is located here: C:\Users\[USER]\AppData\Roaming\NCrunch

DomsRoberts
#7 Posted : Tuesday, May 4, 2021 4:53:59 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 8/2/2018(UTC)
Posts: 5
Location: United Kingdom

I tried that but it made no difference.
I now can't even kick start it by running the Engine host myself, it won't start at all.
Remco
#8 Posted : Tuesday, May 4, 2021 11:55:30 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
DomsRoberts;15435 wrote:
I tried that but it made no difference.
I now can't even kick start it by running the Engine host myself, it won't start at all.


Running the EngineHost EXE directly will start the process and it will immediately self-terminate. I suggested this as a way to try and troubleshoot the problem, as if the O/S or a virus scanner is blocking the EXE from loading, often this can give a more useful error.

Do you see anything in your windows event viewer after NCrunch fails to start from inside the IDE? Something in your environment is either blocking the process or a critical component in the platform itself is failing.
DomsRoberts
#9 Posted : Thursday, May 6, 2021 11:34:46 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 8/2/2018(UTC)
Posts: 5
Location: United Kingdom

The Event Viewer has exceptions logged
Faulting Application nCrunch.EngineHost462.x64.exe
Faulting module ntdll.dll, version 10.0.18362
Exception code : 0xc0000005
Remco
#10 Posted : Friday, May 7, 2021 9:13:04 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
Could you try the following to see if any of these resolves the issue?

- Reinstall/repair .NET Framework 4.8
- Clear your Nuget package cache (i.e. C:\Users\Remco\.nuget)
- Install any pending Windows Updates
- Try installing and running the NCrunch console tool over your solution to see if it gives a useful result
- (if all else fails) Repair/reinstall your current version of VS

Unfortunately the error described is an unmanaged exception that usually shows up when something is going wrong in the platform itself, which means we need to treat this as a system/install/environment issue rather than a software bug.
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.053 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download