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

Notification

Icon
Error

Rider prompts to install .net runtime 6.0.36 after every reboot
aledmorris2
#1 Posted : Monday, June 23, 2025 8:40:57 AM(UTC)
Rank: Member

Groups: Registered
Joined: 7/4/2015(UTC)
Posts: 10
Location: Barbados

Thanks: 1 times
Hi, I installed the latest rider and ncrunch, was prompted to install the .net runtime, restarted rider, everything worked.

Every time I restart the computer, I get the same prompt. NCrunch will not start if I do not install the .net runtime again.

This happens on both my work and personal machine.

Cheers, Aled.
Remco
#2 Posted : Monday, June 23, 2025 9:28:49 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 990 times
Was thanked: 1330 time(s) in 1233 post(s)
Hi Aled,

Thanks for sharing this issue.

Can you confirm precisely when you receive the prompt to install .NET? Is this when the NCrunch engine starts? Or when you open a solution in Rider? Or perhaps when you run a test?
aledmorris2
#3 Posted : Monday, June 23, 2025 10:35:33 AM(UTC)
Rank: Member

Groups: Registered
Joined: 7/4/2015(UTC)
Posts: 10
Location: Barbados

Thanks: 1 times
When I start rider, it comes up with a list of recent solutions. After I click a solution, the prompt appears (actually it appears twice). Presumably this is when the ncrunch engine starts? It is not when I run a test, as it hasn't loaded at this point.

If I click 'Yes' then the download starts (two times if I click yes to both prompts). After installation, it still doesn't work, but then if I restart Rider it does work (until the next reboot).
If I click 'No' then two messages are shown "NCrunch Encountered an error Failed to start the NCrunch engine" and "NCrunch Encountered an error The NCrunch task process failed to correctly initialise with the following exception: nCrunch.TaskRunner.Ipc.IpcConnectionClosedException: The NCrunch task process was unexpectedly terminated"

I have also tried installing the required .NET package outside of rider (directly downloaded from the Microsoft site) and that didn't make any difference.

Also this happened on both my PC's initially, but now it is only happening on one of them. I haven't done anything to the one that now works.

Remco
#4 Posted : Monday, June 23, 2025 10:44:39 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 990 times
Was thanked: 1330 time(s) in 1233 post(s)
Can you check the contents of your Program Files\dotnet\sdk directory and list for me the versions of .NET that you have installed?
aledmorris2
#5 Posted : Monday, June 23, 2025 4:52:24 PM(UTC)
Rank: Member

Groups: Registered
Joined: 7/4/2015(UTC)
Posts: 10
Location: Barbados

Thanks: 1 times
in C:\Program Files\dotnet\sdk I have versions 8.0.314, 8.0.411, 9.0.301

I also have versions 6.0.33, 6.0.35, 8.0.17 and 9.0.6 in C:\Program Files\dotnet\shared\Microsoft.NETCore.App (which is where the download that NCrunch requires is installed to)

So since my last post I installed the .NET runtime 6.0.36 again, and it was installed correctly in C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.36. After that Rider and NCrunch worked fine - I rebooted twice and each time Rider started up with no errors.

Just now (5 hours after that) the NCrunch process went rogue and used my entire RAM, making Rider unresponsive. I killed the process from task manager, restarted Rider, and then it prompted me to download the .NET runtime again. The 6.0.36 folder in C:\Program Files\dotnet\shared\Microsoft.NETCore.App is now missing.

No idea what is going on.


Remco
#6 Posted : Tuesday, June 24, 2025 12:11:36 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 990 times
Was thanked: 1330 time(s) in 1233 post(s)
NCrunch requires .NET 6 to be installed when working under Rider. I'm not sure how reliable the message prompts for installing this are, but downloading the SDK and installing it manually should definitely solve this.

aledmorris2;18205 wrote:

Just now (5 hours after that) the NCrunch process went rogue and used my entire RAM, making Rider unresponsive. I killed the process from task manager, restarted Rider, and then it prompted me to download the .NET runtime again. The 6.0.36 folder in C:\Program Files\dotnet\shared\Microsoft.NETCore.App is now missing.


I've never seen this problem before. I would suggest setting up your windows security so that no running application has the ability to modify or remove files in the SDK install path. In theory, this should cause whatever code is responsible for its deletion to throw an exception so we can discover where it is.

If you can submit an NCrunch bug report while your solution is open and running, I will then examine the report to see if you have any settings that might contribute to this.

Please also check any virus scanners or security software you have running. It's possible they might be flagging a false positive and putting files in quarantine.

When NCrunch used all your memory, was this caused by the engine process itself? Or was there a runner EXE or satellite process that was responsible?

Could you also check your Windows Event Viewer to see if there's anything interesting in there around the time the SDK disappeared?
aledmorris2
#7 Posted : Tuesday, June 24, 2025 2:42:00 PM(UTC)
Rank: Member

Groups: Registered
Joined: 7/4/2015(UTC)
Posts: 10
Location: Barbados

Thanks: 1 times
Remco;18206 wrote:
NCrunch requires .NET 6 to be installed when working under Rider. I'm not sure how reliable the message prompts for installing this are, but downloading the SDK and installing it manually should definitely solve this.

I've installed the SDK rather than the runtime but I'm expecting a visit from the software police in the near future who will tell me it's not allowed (out of support)
Quote:

When NCrunch used all your memory, was this caused by the engine process itself? Or was there a runner EXE or satellite process that was responsible?

It was nCrunch.Rider.EngineHost.exe

I'll try the rest of the stuff you suggest shortly.


Cheers
Remco
#8 Posted : Tuesday, June 24, 2025 10:53:39 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 990 times
Was thanked: 1330 time(s) in 1233 post(s)
aledmorris2;18207 wrote:

I've installed the SDK rather than the runtime but I'm expecting a visit from the software police in the near future who will tell me it's not allowed (out of support)


In theory, the runtime should be enough. I'll admit that I never tested it with just the runtime and not the SDK, but I'd expect that if this wasn't the case, there'd be a lot more complaints on the forum here.

Quote:

It was nCrunch.Rider.EngineHost.exe


Ok, that rules out any tests or builds. From here we'll need a way to narrow down the problem to identify what's causing it. Please let me know if you find a way to reproduce it. I can suggest a few things you can try, but they are probably only worth exploring if you're able to make the problem appear with at least some consistency.

There is a reasonable probability that the memory consumption and removal of the toolset are two entirely separate issues, or that the memory consumption is actually caused by the toolset being pulled out from under the engine.
aledmorris2
#9 Posted : Friday, June 27, 2025 8:35:24 AM(UTC)
Rank: Member

Groups: Registered
Joined: 7/4/2015(UTC)
Posts: 10
Location: Barbados

Thanks: 1 times
Just to update - since installing the .NET 6 SDK manually, NCrunch has worked as expected, so I haven't done any more debugging.

I think at this point I'll leave it as is, though the dependency on an unsupported .NET SDK will definitely make the IT department unhappy.

Thanks for your efforts in investigating this.
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.050 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download