csharpier accummulates memory on mac when hibernated
I'm using csharpier via Rider, but I have no idea if this is related to the extension.
Periodically cshapier's memory consumption is accummulation. It appear, somewhat, to be related to the mac being hibernated for multiple days. But sometimes it also happens over shorter time.
It appear is two ways: The mac get very slow in responding and opening the Activity log the dotnet-charpier process has accummulated sometimes up to 27 GB of memory. Normally in one single process, but lately I have seen three processes appear occupying the same amount of memory.
Selecting the process and aborting it frees the memoru and the computer is back to normal responsiveness.
This has been happening for some time and other of my colleagues using Rider are experience the same. Colleagues using VSCode does not.
Mac: MacBook Pro M1 16" 2021 32GB memory OS: Sequoia 15.3.1
Rider: JetBrains Rider 2024.3.4 Build #RD-243.23654.126, built on January 20, 2025 Runtime version: 21.0.5+8-b631.30 aarch64 (JCEF 122.1.9) macOS 15.3.1 .NET Core v8.0.11 ARM64 (Server GC) Non-Bundled Plugins: com.intellij.csharpier (2.1.0) aws.toolkit.core (3.55-243) com.jetbrains.space (243.23654.19) Abc.MoqComplete.Rider (2024.1.1.1) com.github.copilot (1.5.32-242) aws.toolkit (3.55-243)
I'm experiencing exactly same behavior.
Mac: Macbook Pro 16" 2023 M2 32GB OS: 15.3.1
Which version of csharpier is in use? My guess is that there is a memory leak in how the rider plugin handles the new csharpier server which is used by default on 0.29.0+. The code for communicating with older csharpier versions hasn't changed significantly for a while now.
There is an option "Disable CSharpier Server" that can be used to fallback to the older method of communicating. If you are on 0.29.0+ and that option fixes the problem then I believe that confirms my suspicion.
Do you have any co-workers not on Mac who are experiencing the problem?
Also on mac M1 and experiencing the same problem, have now tried to abort the process, uninstall/reinstall multiple times, but always get the same memory accumulation, these pictures are over a 2 day period. right after reinstalling and when the system started slowing down again and the Rider Ide gave me warnings about CSharpier
I had no issues in vsCode only in the Rider Plugin
This issue is stale because it has been open 180 days with no activity and was not assigned a label or milestone. Leave a comment if this still needs to be addressed or this will be closed in 7 days.