Primary thread hasn't been respond for more than 00:00:10

I have a special project with a lot of custom build steps (code generation) and also a reference to an extremely large NuGet packages (more than 300 MB). It just brings the IDE to its knees and become unresponsive. I constantly see `Cache Processing` messages that block a lot of UI operations. A few particular examples below:

 

When I look the idea.log trail I see a lot of logs like the following (anonymized):

2024-07-09 12:33:47,770 [1124997]   INFO - #c.j.r.RiderEnvironment - ClrStack.exe found at <installation_path>\Rider\lib\ReSharperHost\ClrStack.exe (bundled to IDEA)
2024-07-09 12:33:47,778 [1125005]   INFO - #c.j.r.c.ClrMdUtil - Thread dump collecting for pid: 18620 (Primary thread hasn't been respond for more than 00:00:10) started. File: <log_path>\BackendThreadDump\18620_2024-07-09_12-33-47.770_trimmed.tdump
2024-07-09 12:33:47,914 [1125141]   INFO - STDOUT - 1720553627914 - visibleTimer - Greetings
2024-07-09 12:33:48,361 [1125588]   INFO - #c.j.r.c.ClrMdUtil - Backend thread dump. 0th attempt getting thread dump for 18620 took 590 ms. ExitCode=0
2024-07-09 12:33:48,361 [1125588]   INFO - #c.j.r.c.ClrMdUtil - Thread dump collecting for pid: 18620, (Primary thread hasn't been respond for more than 00:00:10) finished successfully. Result ThreadDumpResult(trimmedFile=<log_path>\BackendThreadDump\18620_2024-07-09_12-33-47.770_trimmed.tdump, fullFile=<log_path>\BackendThreadDump\18620_2024-07-09_12-33-47.770_full.tdump)
2024-07-09 12:33:48,361 [1125588]   INFO - #c.j.r.c.ClrMdUtil - Backend thread dump took 590 ms (dump location: <log_path>\BackendThreadDump)

This happens when in at least four separate occasions which makes it even more frustrating:

1. I open the solution

2. When I start debugging the projects

3. At runtime when the assembly is loaded and debugger is attached

4. When a breakpoint is hit and debugger stops

Things I have tried, and none have helped:

1. I tried this with Visual Studio 2022 and it has zero problems loading and debugging this solution. I also tried the VS 2022 with Resharper installed and the whole VS freezes similar to Rider, so my guess is that it has to do with the Resharper backend.

2. Cleared cache in Rider

3. Deleted the `.idea` directory and started fresh.

4. Tried the most recent EAP on a different machine with a fresh install and it also had the same issue.

None of the above seem to help.

JetBrains Rider 2024.1.4
Build #RD-241.18034.76, built on June 23, 2024
Licensed to <Company Name> / <User Name>
You have a perpetual fallback license for this version.
Subscription is active until xyz, 2025.
Runtime version: 17.0.11+1-b1207.24 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11.0
.NET Core v8.0.1 x64
GC: G1 Young Generation, G1 Old Generation
Memory: 6000M
Cores: 6
Registry:
 ide.windowSystem.autoShowProcessPopup=true
 projectView.always.show.inner.classes=true
 ide.experimental.ui=true
 ide.new.project.model.index.case.sensitivity=true
 rider.show.loading.status.in.solution.explorer=true

 

0
11 comments

Could you please reproduce the issue and collect the full log bundle so we could take a closer look at the case? Include all the log folders.

Please upload the file to our server and share the ID.

 

 

0

Tao Sun The full log bundle contains too much information for me to feel comfortable submitting. Is there any other way I can assist you with debugging this issue?

0

Reza Investigate on the performance issue could be hard and complex to identify the root cause, restricted information will make the process harder. We will only focus on the IDE actions in your logs. Besides logs, if you can demonstrate a sample solution that always reproduces the performance issues, that would also help us.

You can create a support request for this problem in Help | Contact Support so we can provide private assistance with it.

 

0

Thank you. I agree with you. I will see what I can do with a sample project. it is challenging though as I need to create a pure code assembly with thousands of classes so that I can get it to be extremely large. I will see what I can do.

0

I've been having this issue too. I uploaded clean logs: 2024_09_12_rZA3bDY49Rk6pbDF2SDoSt

1

Thank you Randy . I still have this issue. Hopefully your logs would help the team find the issue.

0

Randy Have you tried to invalidate IDE caches (File | Invalidate Caches) and delete the .idea folder to rebuild the project index? I reviewed the logs but various actions tiggerred “Primary thread isn't responding” issue. Backend thread dumps also showing the different patterns. I cannot ensure what's the root cause. 

Also, please try to disable all downloaded plugins in Settings | Plugins, to see if it helps. 

Reza Have a check to see if disable all downloaded plugins works to you. If you can share the “BackendThreadDumps” folder and “threadDumps-freeze-xxx” folders, backend.2024-09-xx.log files and all idea.log files. I could check if you are in the similar situation.

 

0

Tao Sun  thank you for following up. I have noted in my original post that I tried the following and it did not help (for your reference repeated below):

Note that the issue happens even in ReSharper. This rules out the hypothesis that a Rider extension may be causing this.

0

Reza I'm suspecting if you are facing the same problem as Randy described. Logs of the reproduction would be very helpful.

0

Tao Sun did you look at the logs Randy uploaded? I would not be able to upload logs unfortunately.

0

Reza Yes, but the logs are showing different partterns and I cannot locate the exact problem. The backend dumps and idea logs will only show IDE information. 

If you have any privacy concerns, please feel free to create a support request in Help | Contact Support. We can provide support privately. 

0

Please sign in to leave a comment.