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

Notification

Icon
Error

5 Pages«<2345>
Rider freezes UI very often when combined with NCrunch
Remco
#62 Posted : Tuesday, March 10, 2026 4:57:59 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 1035 times
Was thanked: 1388 time(s) in 1288 post(s)
Some more questions:

- Do you have a lot of editor windows open when the freezes are happening? Does closing all but the one editor window have an effect on the problem?
- Is there any length of time that you're able to use the IDE after a fresh start before you notice the issue appearing?
mullerwashere
#63 Posted : Wednesday, March 11, 2026 1:02:57 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 10/15/2017(UTC)
Posts: 8
Location: Brazil

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
Remco;18720 wrote:
- Do you have a lot of editor windows open when the freezes are happening? Does closing all but the one editor window have an effect on the problem?

Windows? No. Tabs per instance in its single window? Yeah, quite a few, I'd say around 30-50 open file tabs at any given time.

I started the day by closing every instance, invalidating Rider's caches, and opening three solutions (medium to large size), one of which contains ~600 tests. Things felt smooth for a while, but it didn't take long before it became somewhat sluggish, freezing every 5 minutes or so for about 3–5 seconds. I might be biased, but whenever the freezes started, I'd close every tab in the instance I was working in. It felt like it helped — the freezes would still occur, but they seemed to take a bit longer to come back.


Remco;18720 wrote:
- Is there any length of time that you're able to use the IDE after a fresh start before you notice the issue appearing?

Iit really depends and feels somewhat random. Today it took about 1–2 hours before the freezing returned.
Remco
#64 Posted : Wednesday, March 11, 2026 7:42:49 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 1035 times
Was thanked: 1388 time(s) in 1288 post(s)
Would you be interested in trying the build below to see if it helps with the problem? This build contains a few optimisations to reduce memory traffic, particularly around editor window integration. It's a blind stab, but worth trying.

NCrunch_Rider_5.21.0.7.7z
NCrunch_Rider_5.21.0.7.zip
mullerwashere
#65 Posted : Wednesday, March 11, 2026 1:19:23 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 10/15/2017(UTC)
Posts: 8
Location: Brazil

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
Remco;18722 wrote:
Would you be interested in trying the build below to see if it helps with the problem? This build contains a few optimisations to reduce memory traffic, particularly around editor window integration. It's a blind stab, but worth trying.

NCrunch_Rider_5.21.0.7.7z
NCrunch_Rider_5.21.0.7.zip


When I try to install from disk I get:
"Plugin 'NCrunch' (version '5.21.0.7') is not compatible with the current version of the IDE, because it requires build 261.21525 or newer but the current build is RD-253.31033.136"
Remco
#66 Posted : Wednesday, March 11, 2026 10:38:23 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 1035 times
Was thanked: 1388 time(s) in 1288 post(s)
mullerwashere;18723 wrote:

When I try to install from disk I get:
"Plugin 'NCrunch' (version '5.21.0.7') is not compatible with the current version of the IDE, because it requires build 261.21525 or newer but the current build is RD-253.31033.136"


Ahh, sorry, I should have mentioned this. I've moved the Rider plugin up to the newer version, because it's set to drop soon. To try this build, you'll need to use the 2026.1 EAP build. This should be a free download from the JB site.
Der-Albert.com
#67 Posted : Thursday, March 12, 2026 7:05:32 AM(UTC)
Rank: Advanced Member

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

Thanks: 17 times
Was thanked: 60 time(s) in 56 post(s)
I also have this since the "later" Rider Versions (not EAP). Sometimes Rider freezes when opening the Solution and the NCrunch Test Runner Tool Windows is active. Or when i switch to it.
(had the latest NCrunch Forum Version installed). Was good a while, but godd worse in the last weeks. Maybe an Rider Update was not good for NCrunch.

Will upgrade die EAP and give this Version a try.
mullerwashere
#68 Posted : Friday, March 13, 2026 8:49:34 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 10/15/2017(UTC)
Posts: 8
Location: Brazil

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
@Remco, just sent you my findings via the contact form. Hopefully it can help you.
Remco
#69 Posted : Saturday, March 14, 2026 6:48:24 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 1035 times
Was thanked: 1388 time(s) in 1288 post(s)
Thanks for sharing this. It was very useful!

Here's my next try:
NCrunch_Rider_5.21.0.8.7z
NCrunch_Rider_5.21.0.8.zip
mullerwashere
#70 Posted : Monday, March 16, 2026 4:30:10 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 10/15/2017(UTC)
Posts: 8
Location: Brazil

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
Remco;18727 wrote:
Thanks for sharing this. It was very useful!

Here's my next try:
NCrunch_Rider_5.21.0.8.7z
NCrunch_Rider_5.21.0.8.zip


Hey, no luck, pretty bad freezes today, didn't take long to start happening. Sent you my findings in the contact form.
Remco
#71 Posted : Tuesday, March 17, 2026 6:31:18 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 1035 times
Was thanked: 1388 time(s) in 1288 post(s)
TimVisma
#72 Posted : Friday, April 17, 2026 10:42:00 AM(UTC)
Rank: Member

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

Thanks: 2 times
Unfortunately, I am experiencing the freeze problem again with the latest version of NCrunch 5.21.0.10 in combination with Rider 2026.1.0.1. So, when I click on another screen/window, it unfreezes again.

I have send in the contact form the Rider logs
Der-Albert.com
#73 Posted : Friday, April 17, 2026 2:26:44 PM(UTC)
Rank: Advanced Member

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

Thanks: 17 times
Was thanked: 60 time(s) in 56 post(s)
Can also say the freezes still happen. An NCrunch seems to be at least involved.
When I kill the nCrunch.Rider.EngineHost when the freeze is gone.
Remco
#74 Posted : Friday, April 17, 2026 9:58:30 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 1035 times
Was thanked: 1388 time(s) in 1288 post(s)
Does disabling the engine get rid of the freezes after they start happening?

Is there any correlation between the freezes and number of editor windows you have open?

Another question: Does recovery from the freeze happen on its own? Or do you absolutely need to click on another window? I'm wondering if it's a performance issue or some kind of temporary crash.
Remco
#75 Posted : Wednesday, June 24, 2026 12:49:45 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 1035 times
Was thanked: 1388 time(s) in 1288 post(s)
So this issue finally started happening for me with relative consistency, or at least, it started showing up when it felt like it.

I've been trying to analyse it for a few weeks now, and I'm presently working on a theory that it's being caused by NCrunch's CPU affinity handling. As with VS, NCrunch changes the processor affinity mask for the running Rider process (both the Intellij frontend and the ReSharper backend) so that it runs on different CPU cores to the NCrunch engine. The config wizard does this automatically and you have the ability to micromanage the distribution through the CPU core settings.

Under VS doing this is fairly harmless as long as the IDE has enough resources to do its work, though under Rider, when I have the IDE constrained, the freezes appear. If I set the CPU cores for Rider to be all available cores, the freezes so far haven't been happening.

So if you're experiencing this issue, make sure you have Rider set to use ALL cores on your system via NCrunch's config settings, then restart the IDE. I'm eager to hear if this solves the problem for you. If so, I'll modify the next build to make the CPU core settings ineffective for Rider sessions, since they then clearly aren't worth it.
Der-Albert.com
#76 Posted : Wednesday, June 24, 2026 10:13:38 AM(UTC)
Rank: Advanced Member

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

Thanks: 17 times
Was thanked: 60 time(s) in 56 post(s)
Ok, will try it.

Current Configuration (since I've got the new Laptop about 18 Month Ago)

Cores for IDE: 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19
Cores for NCrunch: 20,21,22,23,24,25,26,27

But I did not recollect an Issue in the last Weeks (but also I'm on the 2026.2 EAP Bandwagon). On the other side, the brain also ignores stuff ;)
Der-Albert.com
#77 Posted : Wednesday, June 24, 2026 10:16:32 AM(UTC)
Rank: Advanced Member

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

Thanks: 17 times
Was thanked: 60 time(s) in 56 post(s)
After I cleared the Cores for the IDE. The effective value is now: 0,1,2,3,4,5,6,7,8,9,10,11,12,13
Less then before ;)
Der-Albert.com
#78 Posted : Wednesday, June 24, 2026 10:19:18 AM(UTC)
Rank: Advanced Member

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

Thanks: 17 times
Was thanked: 60 time(s) in 56 post(s)
But in the last weeks I improved my excluding list for IDE Stuff from the Windows Defender Scan. That may be an a alternative reason I don't recall freezing Issue.
Remco
#79 Posted : Wednesday, June 24, 2026 1:42:38 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 1035 times
Was thanked: 1388 time(s) in 1288 post(s)
Try setting the cores for the IDE to EVERY core on your system (i.e 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27). It should be safe to overlap with NCrunch cores. The core splitting system was originally designed back when we were using quad-core machines. I doubt we'll see any difference on modern hardware.

If I'm right, you'll never freeze like this.

My theory is that something in the IDE is trying to allocate work onto specific cores, then is stalling when our core mask prevents it. The selected core might vary between sessions, which could explain why the problem seems so bad sometimes then at other times it never shows.

BTW 28 cores is pretty impressive for a laptop. That's some nice hardware.
Der-Albert.com
#80 Posted : Wednesday, June 24, 2026 2:48:12 PM(UTC)
Rank: Advanced Member

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

Thanks: 17 times
Was thanked: 60 time(s) in 56 post(s)
Ok, did that.

28 Cores... yeah,in theory fine. https://www.intel.com/co...ghz/specifications.html

Also in a beefy HP Laptop with better cooling.... but still no good. The plan was assign the effiency core to NCrunch.

Sounds like a plane taking off when working, it throttles after around 2 minutes of full load.

Without a power brick it constanlty complaing that i should plug in to get some speed out of it.

A beefy Desktop with that kind of Cores and excelent cooling i would prefer… but who pays say what it payed for.

On the other hand, at least we are getting Hardware were you can work on. Some companies are cheaping out.
Remco
#81 Posted : Thursday, June 25, 2026 12:04:45 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 1035 times
Was thanked: 1388 time(s) in 1288 post(s)
Der-Albert.com;18838 wrote:
Ok, did that.

28 Cores... yeah,in theory fine. https://www.intel.com/co...ghz/specifications.html

Also in a beefy HP Laptop with better cooling.... but still no good. The plan was assign the effiency core to NCrunch.

Sounds like a plane taking off when working, it throttles after around 2 minutes of full load.

Without a power brick it constanlty complaing that i should plug in to get some speed out of it.


Oh that does sound disappointing. Even on the specs, the TDP doesn't look too bad.

I'll admit that I haven't been terribly impressed with the later generations of Intel CPUs. The i9-13900ks I'm on right now tends to overheat at stock settings, even with around 10kg of custom cooling attached to it.

Please do let me know how you go with the CPU affinity settings change. Rider 2026.2 is quite close to RTM now and I'll need to make a decision on whether to disable affinity control for the IDE.
Users browsing this topic
Guest (7)
5 Pages«<2345>
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.079 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download