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

Notification

Icon
Error

NCrunch crashes more often with very high CPU/Memory
TimVisma
#1 Posted : Thursday, May 22, 2025 7:31:09 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/27/2024(UTC)
Posts: 9
Location: Netherlands

Hello,



I use NCrunch in combination with the latest Rider version. The last 2 months or so, I notice that Rider crashes completely and when I go to task manager, NCrunch uses a lot of Memory and also a lot of CPU. When I kill NCrunch, Rider responds immediately. It happens more often when opening multiple solutions.



I didn't have this problem that bad before. I also lowered the settings for the number of CPUs.



32GB Ram

CPU
11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
Base speed: 2.80 GHz
Sockets: 1
Cores: 4
Logical processors: 8

NCrunch: 5.14.0.5
Rider: 2025.1.2


My colleagues who use NCrunch don't really have this problem more often.



Greetings,



Tim
Remco
#2 Posted : Thursday, May 22, 2025 8:08:00 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 987 times
Was thanked: 1325 time(s) in 1228 post(s)
Hi Tim,

Thanks for sharing this issue.

Could you try the build referenced in this thread? There is a fix there for an issue that causes some diagnostic behaviour in Rider that seems to cause issues for some people. I'd be interested to see if this solves the problem for you.
TimVisma
#3 Posted : Thursday, May 22, 2025 8:32:43 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/27/2024(UTC)
Posts: 9
Location: Netherlands

I'll test it ;). Thanks in advance.
TimVisma
#4 Posted : Friday, May 23, 2025 8:08:27 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/27/2024(UTC)
Posts: 9
Location: Netherlands

Hello,

Installed yesterday, only this morning NCrunch started using up to 20 GB of RAM again... while I have 1 small solution open in Rider and wasn't even working in it at that moment. After killing NCrunch everything works again.

NCrunch use 20GB RAM

Greetz,

Tim
Remco
#5 Posted : Friday, May 23, 2025 8:44:40 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 987 times
Was thanked: 1325 time(s) in 1228 post(s)
Thanks. Let's try and deduct what is causing this. The screenshot helps as it confirms this is in the engine process (not the satellite test runners).

Can you try turning off RDI (if it's enabled)?

Also, can you share approx details of the solution you're on in terms of number of lines of code, tests and projects?
TimVisma
#6 Posted : Friday, May 23, 2025 9:05:09 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/27/2024(UTC)
Posts: 9
Location: Netherlands

I can't get the solution started anymore at the moment with NCrunch with the version of the other topic. I wanted to make a Report dump, but I can't do that today. I did "send" a dump yesterday.

It seems like it's writing a very large file or something. Can I throw out some data from certain folders for example? Where can I found the logfiles?

I have RDI turned off by default. The solution consists of approximately 13754 lines of code. Approximately 20 projects including test projects.
TimVisma
#7 Posted : Friday, May 23, 2025 9:08:46 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/27/2024(UTC)
Posts: 9
Location: Netherlands

This are my Global config file:

Quote:

<GlobalConfiguration>
<Settings>
<CPUCoresAssignedToIDE>0,1,2,3,4,5</CPUCoresAssignedToIDE>
<CPUCoresAssignedToNCrunch>6,7</CPUCoresAssignedToNCrunch>
<FastLaneThreads>0</FastLaneThreads>
<FrameworkUtilisationTypeForMSTest>UseDynamicAnalysis</FrameworkUtilisationTypeForMSTest>
<MaxNumberOfProcessingThreads>1</MaxNumberOfProcessingThreads>
<MaxTestRunnerProcessesToPool>1</MaxTestRunnerProcessesToPool>
<SystemConfigured>True</SystemConfigured>
<TerminateTestRunnerTasksOnExecutionComplete>False</TerminateTestRunnerTasksOnExecutionComplete>
<WizardAllowParallelTestExecution>False</WizardAllowParallelTestExecution>
<WizardEnableRdi>False</WizardEnableRdi>
<WizardEngineMode>Run all tests automatically</WizardEngineMode>
<WizardIgnoreTests>False</WizardIgnoreTests>
</Settings>
<EngineModes>
<EngineMode>
<Name>Run all tests automatically</Name>
<Settings>
<EngineModeColor>a255, r0, g128, b25</EngineModeColor>
</Settings>
</EngineMode>
<EngineMode>
<Name>Run all tests manually</Name>
<Settings>
<EngineModeColor>a255, r255, g0, b0</EngineModeColor>
<TestsToExecuteAutomatically>False</TestsToExecuteAutomatically>
</Settings>
</EngineMode>
<EngineMode>
<Name>Run impacted tests automatically, others manually</Name>
<Settings>
<AlignOutOfDateStatusWithImpactStatus>True</AlignOutOfDateStatusWithImpactStatus>
<EngineModeColor>a255, r128, g128, b0</EngineModeColor>
<TestsToExecuteAutomatically>IsImpacted</TestsToExecuteAutomatically>
</Settings>
</EngineMode>
<EngineMode>
<Name>Run pinned tests automatically, others manually</Name>
<Settings>
<AutoPinNewTests>True</AutoPinNewTests>
<EngineModeColor>a255, r0, g0, b255</EngineModeColor>
<TestsToExecuteAutomatically>IsPinned</TestsToExecuteAutomatically>
</Settings>
</EngineMode>
</EngineModes>
</GlobalConfiguration>
Remco
#8 Posted : Friday, May 23, 2025 9:25:35 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 987 times
Was thanked: 1325 time(s) in 1228 post(s)
Does deleting the NCrunch cache directory resolve the problem? Check it first to see how big it is.

You can view the logs by clicking the 'Submit bug report' menu option and choosing to save the report to disk (make sure to give it a few seconds to write the report in the background first)
TimVisma
#9 Posted : Friday, May 23, 2025 9:42:37 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/27/2024(UTC)
Posts: 9
Location: Netherlands

Where can I found the cache directory?

https://drive.google.com...RyINlL&usp=drive_fs is a report dump (from an other solution).

Cache folder
I have delete this files.

Greetz.

Tim
Remco
#10 Posted : Friday, May 23, 2025 10:15:39 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 987 times
Was thanked: 1325 time(s) in 1228 post(s)
Thanks for confirming this. The size of these files suggests the cache is not the source of the problem.

I don't expect the bug report will contain the information needed to isolate this problem, but it may be worth submitting one anyway using the submit bug report option. I wasn't able to access the report dump you've uploaded ("The organization that owns this item doesn't allow you to access it").

Can you tell me more about the memory allocation pattern? Does the engine rocket straight up to 20GB as soon as it's started? Or does it take a while to build up?
TimVisma
#11 Posted : Friday, May 23, 2025 10:48:33 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/27/2024(UTC)
Posts: 9
Location: Netherlands

I ran the configuration wizard again and put CPU IDE vs NCrunch in the middle. This allows me to work in the solution again with NCrunch ;).

RAM gradually increased, but within a few minutes (so starting NCrunch). I also saw no green dots from NCrunch in the files.

Greetz,

Tim
Remco
#12 Posted : Friday, May 23, 2025 11:43:14 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 987 times
Was thanked: 1325 time(s) in 1228 post(s)
TimVisma;18160 wrote:
I ran the configuration wizard again and put CPU IDE vs NCrunch in the middle. This allows me to work in the solution again with NCrunch ;).


Odd. This shouldn't cause the problem. If it happens again, could you submit a bug report for me?
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.065 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download