Bug Report T758358
Visible to All Users

Performance – Slowdowns occur after the latest Visual Studio update

created 6 years ago (modified 6 years ago)

Since the last few latest updates to CodeRush we as a development team are experiencing slowdowns within Visual Studio, without any settings changes. Having briefly looked into this this morning, I believe the CodeIssues Catalog VS Registration system is broken, in the sense of it is running background analysis on items, even though they are either not enabled, or registered within Visual Studio.

Our memory usage since the latest update, is unpredictable and causing frequent crashes within visual studio. Because of this I have had to make the decision to disable the CodeRush extension for now.

Show previous comments (9)

    Also still seeing this in the logs:
    2019.07.19 16:14:49.6805 Error: Message: Object reference not set to an instance of an object.
    2019.07.19 16:14:49.6805 Error: Type: System.NullReferenceException
    2019.07.19 16:14:49.6805 Error: Source: DevExpress.CodeAnalysis.VisualBasic.Diagnostics
    2019.07.19 16:14:49.6805 Error: StackTrace:    at DevExpress.CodeAnalysis.VisualBasic.Diagnostics.AsyncAwait.TaskFactoryStartNewAnalyzer.AnalyzeNode(SyntaxNodeAnalysisContext context)
       at DevExpress.CodeAnalysis.Diagnostics.DiagnosticAnalyzerBase.AnalyzeNodeWithLogging(SyntaxNodeAnalysisContext context)

    DevExpress Support Team 6 years ago

      Hi Mark,

      Thank you for the assistance.
      Presence of this exception in the log file shows that the diagnostic is used by VS even if it is disabled.
      We suppose that we understand the cause of this behavior.

      Please give us some time to prepare the correction. We will contact you once the changes are ready.

        Of course Eugene, if you do require further information or detail, don't hesitate to ask.

        Answers approved by DevExpress Support

        created 6 years ago

        Hi Mark,

        Thank you for the reply.
        Please keep us updated if you face any difficulties with the hotfix.

          Show previous comments (3)
          DevExpress Support Team 6 years ago

              Eugene, I will attempt to install this latest hotfix tomorrow and let you know my results.

                Initial observations are promising. Having opened four different instances of Visual Studio, based on the logging entries, no analyzers are now being registered within Visual Studio. Should I see this behaviour again, I of course will let you know.

                created 6 years ago

                We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

                Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

                  Show previous comments (1)

                    Yes of course, feel free to mark this ticket as Public. In the meantime I will test your hotfix and provide results once I've had sufficient chance to review it.

                    DevExpress Support Team 6 years ago

                      Hi Mark,

                      Thanks for allowing us to make this ticket public.
                      We appreciate your cooperation.

                        Eugene, I just wanted to give you some initial early feedback, the signs are certainly promising with this hotfix. I have an extension monitor that shows me the percentage of time allocated to the Roslyn Analysis process within Visual Studio, and it's hardly twitched. Additionally the log file is now stating the following:

                        The 'CRR0019' analyzer is not registered by default…

                        Which I assume means that CodeRush/Visual Studio are treating the analyzers as not registered within the background process of visual studio.

                        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

                        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.