- Status Assigned
- Percent Complete
- Task Type Bug Report
- Category General
- Priority Very Low
- Reported Version 1.0.0.4989
- Due in Version Undecided
- Votes
- Private
FS#118 - Extreme delay on solution open and high memory usage
I have VS 2017 and a solution here where Codinion is basically unusable. Loading the solution already takes several minutes instead of seconds if Codinion is enabled (even if all Codinion features are disabled).
In the log is nothing special:
[2018.04.05 13:52:27] [Info] Codinion (1.0.0.4989) started.
[2018.04.05 13:52:27] [Info] Codinion is up to date. [1.0.0.4989]
and in the debug-log:
[2018.04.05 13:53:15] [Debug] [Codinion.SyntaxHighlighting.SyntaxHighlightingManager.RegisterClassifier] E:\...\x.cs
[2018.04.05 13:53:15] [Debug] [Codinion.SyntaxHighlighting.Classifier.CSharp.CSharpClassifierBase.Init] x.cs
[2018.04.05 13:53:17] [Debug] [Codinion.VisualStudioManagement.TextView.TextViewManager.AddView] Added View:E:\...\x.cs
If I then enable Enhanced Syntax Highlighting the memory-usage jumps from ~1GB to 2.5GB and VS crashes regularly with out-of-memory exceptions.
The solution has 25 project and a few hundred files and 53k LoC (yes, I need all of them in the solution ;-P) which shouldn't be a problem or cause such high memory usage.
I do NOT have such big problems with some other solutions of equal size.
Why can one solution create such trobles and how can I find out whats causing this and avoid it?
regards & tahnks for your gread work
Christoph
P.S.: Aside from some minor extensions which should not cause interferences I have the following running: Productivity Power Tools, WebEssentials and ReSharper.
Hi,
thanks for reporting this. Can you explain a little more what projects are in the solution?
I will provide a trace version which will create a trace log file and hopefully we can find out what the problem is.
Hi,
thanks for your reply. I'm not aware of anything special in my solution. Its a WPF application with several plugins and shared libraries and unit-tests.
I'm happy to run a trace-version to track the problem down. I could improve the memory-usega by unloading all unit-test project as long as I "create new code" and only load them to run the tests. But the "load delay" is still annoying, as it takes ~5 Minutes to open a solution.
I can't tell you when this started exactly, but it definitely wasn't there a few minor VS versions ago (I always keep Vs up to date, so I already installed a few new versions this year)...
Ok, thanks i will try to create the trace version and upload it here if it is finished.
Hi,
could you install this version and enable the trace setting insdie the options and send me the trace log file?
Hm, ok. Good and bad news.
With the trace version the delay when loading a solution is gone, but the highlighting colors problem is back (default colors are used and I need to re-set all my custom colors).
Also the memory usage is still very high - ~2.4 GB for my solution (and it does not go down anymore if I disable syntax highlighting).
If I should still send you debug/trace logs please give me some alternative way (e-mail, FTP, ...) as they contain confidential company data I can't simply attach here.
If you like we could also make an appointment for a remote session (e.g. TeamViewer) if you would like to look into my situation directly.
Thanks for your efforts!
...also the highlighting is lost on all changed text. If highlighting is re-enabled it works fine, but as soon as I change some code it is not highlighted anymore (see attachment - there I changed the content of the method).
Hi,
Ok, i guess i need to merge Release into Beta :D to fix the highlighting problem.
you can send the logs to support@codinion.com if this works for you, otherwise i can provide you an ftp upload.
Thanks for suggesting the Teamviewer session, i will get back at you if needed.
Best Regards,
Martin
Hi,
i attached a new version which contains the bug fixes for the syntax highlighting. I couldn't reproduce the highlighting problem when chaning code.
I'm now using this version since Monday and it is looking good. Memory-usage is still pretty high (>1 GB) and some unresponsivenes for a few seconds from time to time, but thats something not uncommon to my VS (also happens with ReSharper or PPT from time to time)...
No "5 Minute delays" with this version :-).
Ok, good to hear, i will do a little more performance optimizations and after that release a new beta and go on to the memory optimizations :)
Great to here - you may can post a short note here when you release the beta and I will try it out then immediately.