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

Notification

Icon
Error

Rider freezes UI very often when combined with NCrunch
TimVisma
#1 Posted : Thursday, September 25, 2025 2:35:02 PM(UTC)
Rank: Member

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

Hello everyone,

I've been using NCrunch with Rider for quite some time now (more then a year and I love it). However, I've noticed Rider's UI freezing more and more often, which is becoming quite annoying. My colleagues aren't experiencing this issue. I also disabled NCrunch as a plugin (completely) for a while, and then I had no problems at all, and Rider works flawlessly.

Rider's UI freeze goes away fairly quickly when I click on another application.

I've shared the log files in a contact form because they might contain sensitive data.

Quote:
CPU

Intel(R) Core(TM) Ultra 7 255U

Base speed: 2,00 GHz
Sockets: 1
Cores: 12
Logical processors: 14
Virtualization: Enabled
L1 cache: 1,2 MB
L2 cache: 10,0 MB
L3 cache: 12,0 MB

Utilization 21%
Speed 3,70 GHz
Up time 2:07:17:53
Processes 434
Threads 8262
Handles 225518

32GB RAM

JetBrains Rider 2025.2.2 - Build #RD-252.26199.154, built on September 18, 2025 (same issue on older versions)
Ncrunch: 5.18.0.2


Configuration:
CPU: 7 cores for Rider and 7 for NCrunch
Max processing threads: 1
Engine Optimisation: Optimise for fastest test execution
Parallel: Off
RDI: Off

Hopefully you'll find something that will help me work normally again with Rider in combination with NCrunch ;).

Greetz,

Tim
Remco
#2 Posted : Friday, September 26, 2025 12:07:36 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 997 times
Was thanked: 1343 time(s) in 1246 post(s)
Hi Tim,

I've been trying to track down an issue which I suspect may be the same as this one.

Can you share any more detail on the nature of the freezes? How often do you get them, and how long do they show for? Do you sometimes have sessions that don't have them?

Also, can you confirm whether you enabled detailed logging to try and troubleshoot the freezing? I'm wondering if it still happens when Log Verbosity is set to Summary.
TimVisma
#3 Posted : Friday, September 26, 2025 9:26:45 AM(UTC)
Rank: Member

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

Hi Remco,

Where can I find the logfiles? I can not find them.

The freezes occur more quickly when I have larger solutions open, but they persist when I close the larger solutions (most don't even have NCrunch enabled). Only after restarting Rider does it initially improve. Unfortunately, I can't find any reason behind it, which is why the IDE freezes much more often.

The freezes are often short-lived, and I can now get back to them sooner by clicking on another program and returning to Rider. However, the CPU immediately reaches 100%.

What else can I do to determine the error/cause?

I've been enabling the 'Log to output window' setting for a while now to try and diagnose the problem, but where can I find this log?

Greetz, Tim
Remco
#4 Posted : Friday, September 26, 2025 9:33:08 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 997 times
Was thanked: 1343 time(s) in 1246 post(s)
Hi Tim,

The 'Log to output window' setting doesn't work under Rider, as it doesn't have an output window like VS does for reporting log details.

When logging is enabled under Rider, the logs are written into the backend Rider logs. I noticed in the data you sent through that you have a lot of data landing in these logs, and I'm not sure how efficiently the Rider backend can process this. It may be implicated in the freezes. I think it's best if we first try to rule it out.

Could you try setting your Log Verbosity to Summary and see if this has any affect on the freezes?
TimVisma
#5 Posted : Friday, September 26, 2025 10:23:05 AM(UTC)
Rank: Member

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

I've enabled Log Verbosity to Summary.

Which Rider log files could I view myself that are relevant? For example, Backend or threadDumps-freezes?
Remco
#6 Posted : Friday, September 26, 2025 10:25:44 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 997 times
Was thanked: 1343 time(s) in 1246 post(s)
TimVisma;18344 wrote:

Which Rider log files could I view myself that are relevant? For example, Backend or threadDumps-freezes?


At this stage, I'm not sure. It depends on whether the freeze is related to the vast amount of data being logged. If you can confirm whether changing the log verbosity has an effect, this will narrow the issue down somewhat.

Der-Albert.com
#7 Posted : Friday, September 26, 2025 1:41:01 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 5/17/2011(UTC)
Posts: 227

Thanks: 14 times
Was thanked: 56 time(s) in 52 post(s)
I can confirm that i also have freezes in Rider, NCrunch seems also be involved.

I had this extremly when the NCrunch Test Tool Window was just at the bottom the Window Window (Just the NCrunch Title or lesse was visible). Had to get the Windows Visible to have Rider stable again.

Will send logs when it happens again.
Remco
#8 Posted : Friday, September 26, 2025 9:32:16 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 997 times
Was thanked: 1343 time(s) in 1246 post(s)
Thanks for these extra details. I was wondering if I was the only one seeing this issue and that perhaps it was specific to my environment. I now know that is not the case.

There's a few things I've discovered about this problem in my efforts so far to resolve it:
- It's intermittent, and seems to happen regardless of the state of the NCrunch engine. Just by having NCrunch installed, it can happen
- It's originating from the Rider backend process. The problem appears when the main thread in Rider is waiting on the backend for something which seems to take a long time to appear
- There are no NCrunch stack traces directly implicated in the problem. When a debugger is attached to the backend process during a hang, there are no NCrunch threads that seem to be involved
- I seem to get sessions where the problem appears extremely often, enough to be infuriating. Then I get sessions where it never shows up at all. I have found it very hard to reproduce at will
- I suspected this might be caused by heap compactions but initial profiling results suggest they are not involved
- I haven't found log files to be any help here. Whatever is going wrong, the logs don't show it (neither NCrunch nor Rider)
- I really hate this problem

It's likely this needs to be solved deductively. Any patterns you can find to help narrow it down will really help me a lot.
TimVisma
#9 Posted : Monday, September 29, 2025 9:05:40 AM(UTC)
Rank: Member

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

Hello,

I have test it with log verbosity with summary, but unfortunately no difference.

Is it possible that NCrunch sometimes has issues with GitHub Copilot? (Other colleagues have this combination as well, but no problem.)

I also tried temporarily disabling copilot, but no difference.
idea log with error Github Copilot
Remco
#10 Posted : Monday, September 29, 2025 9:14:56 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 997 times
Was thanked: 1343 time(s) in 1246 post(s)
TimVisma;18349 wrote:

I have test it with log verbosity with summary, but unfortunately no difference.


Thanks for confirming this.

TimVisma;18349 wrote:

Is it possible that NCrunch sometimes has issues with GitHub Copilot? (Other colleagues have this combination as well, but no problem.)


No, or at least, I don't think this specific problem is being caused by Copilot. I have seen it before without Copilot being loaded.

Can you tell me more about the setup your colleagues are running? Are they also using Rider? If so, are there any notable configuration differences between your machine and theirs?
Der-Albert.com
#11 Posted : Wednesday, October 1, 2025 8:33:43 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 5/17/2011(UTC)
Posts: 227

Thanks: 14 times
Was thanked: 56 time(s) in 52 post(s)
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.054 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download