Bug Report T289408
Visible to All Users

CodeRush crashes both VS 2013 and VS 2015

created 10 years ago

[DevExpress Support Team: CLONED FROM T269994: Visual Studio 2015 Enterprise hangs when opening up a solution after installing CodeRush 15.1.5]
Hi,
I have followed all instructions in this thread and still both VS2013 & 2015 are crashing if CodeRush is loaded.  Here are the steps I tried:
1-Uninstall previous version of CodeRush.
2-Delete the ComponentModelCache folder for both VS versions.
3-Reboot my computer.
4-Installed hotfix DevExpressCodeRush-15.1.6.15253.exe
5-Tried opening different solutions in VS2013 & 2015.  They both crashed.
See attached files for both VS versions.
Please let me know if you need more information.

Show previous comments (27)
DevExpress Support Team 10 years ago

    Hi Edhy,

    I have researched the dump you provided. The stack trace is different from previous ones:

    CR_Visualize_All.dll!CR_CodeIssueUI.ScopeLocation.GetElementLocation(DevExpress.CodeRush.StructuralParser.IElement element = {unknown}) C#
      CR_Visualize_All.dll!CR_CodeIssueUI.ProviderSuppressionEngine.GetScopesToCheck(DevExpress.CodeRush.StructuralParser.IElement element = {unknown}) C#
      CR_Visualize_All.dll!CR_CodeIssueUI.ProviderSuppressionEngine.IsSuppressed(DevExpress.CodeRush.Core.CodeIssueProvider provider = {unknown}, DevExpress.CodeRush.StructuralParser.IElement element = {unknown}) C#
      CR_Visualize_All.dll!CR_CodeIssueUI.CodeSmellEnginePlugIn.IsSuppressed(DevExpress.CodeRush.Core.CodeIssueProvider provider = {unknown}, DevExpress.CodeRush.StructuralParser.IElement element = {unknown}) C#
      CR_DuplicateCodeUI.dll!CR_DuplicateCodeUI.DuplicateCodeEnginePlugIn.RemoveSuppressedItems(DevExpress.CodeRush.StructuralParser.CodeAnalysis.Duplication.DuplicateCodeSearchTaskResult result = {unknown}) C#

    I have prepared another build for you: CodeRush-15.1.7.15265.exe. Install it and let us know if the issue goes away.

    I wanted to share the details of my research. In .NET 4 and later, the CLR exception system will not deliver corrupted state exceptions to manage code unless the code has expressly indicated that it can handle them.
    The only way to mark that application can handle such an exception - add the HandleProcessCorruptedStateExceptions attribute for each method where the exception occurs.
    So, if the provided build does not help you, we will need time to review all our code and add the HandleProcessCorruptedStateExceptions attribute where it is required.

    We are looking forward to your results.

      Hi Pavel,
      Sorry, but this build will crash VS right away with this exception:
      System.AccessViolationException was unhandled
      Message: An unhandled exception of type 'System.AccessViolationException' occurred in DevExpress.CodeRush.StructuralParser.dll
      Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
      Here is the video:
      http://screencast.com/t/IuOtGbAU1Vt

      DevExpress Support Team 10 years ago

        Hi Edhy,
        I am concerned to hear that the crash persists.
        Would you provide us with an iTrace file for the crash as you did before?
        It will help us understand where the issue occurred.

        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.