locked
Visual Studio 2010 crashes when "Create Parameterized Unit Tests" option is used

    Question

  • Whenever I try to get PEX to generate a new unit tests project for my existing (large) C# 2010 project, VS crashes out.
    I don't seem to have the same problem when running against other projects, but the large one is the one I'd like to add PEX unit testing to.

    I attempt to create my first unit tests by highlighting the name of one of my smaller classes and choosing "Create Parameterized Unit Tests".
    I leave all the options on the defaults for the 2 popups - "Create Parameterized Unit Tests" and "PEX: Add New Test Project".

    After I click "OK" on the 2nd popup, VS adds the 'MyProject.Tests" test project successfully, but then suddenly a popup appears which says "The build must be stopped before the solution can be closed."

    Once I hit OK, VS disappears and this popup comes up:

    "Microsoft Visual Studio has encountered a problem and needs to close."

    The event viewer detail is:

    Faulting application devenv.exe, version 10.0.30319.1, stamp 4ba1fab3, faulting module ntdll.dll, version 5.1.2600.6055, stamp 4d00f27d, debug? 0, fault address 0x0000100b.

    What could I do to workaround this problem?

    I get the same result if I run the PEX Explorations and then try to Save any of the results.

    Friday, March 18, 2011 12:02 AM

All replies

  • I'm getting the same issue. Anyone have any ideas as to what is happening?
    Tuesday, March 29, 2011 1:41 PM
  • Exactly same issue here. Bellow you may find all VS 2010 tool versions from about. In order to reproduce the issue

     

    Microsoft Visual Studio 2010

    Version 10.0.30319.1 RTMRel

    Microsoft .NET Framework

    Version 4.0.30319 RTMRel

     

    Installed Version: Ultimate

     

    Microsoft Office Developer Tools   

    Microsoft Office Developer Tools

     

    Microsoft Visual Basic 2010   

    Microsoft Visual Basic 2010

     

    Microsoft Visual C# 2010   

    Microsoft Visual C# 2010

     

    Microsoft Visual C++ 2010

    Microsoft Visual C++ 2010

     

    Microsoft Visual F# 2010   

    Microsoft Visual F# 2010

     

    Microsoft Visual Studio 2010 Architecture and Modeling Tools   

    Microsoft Visual Studio 2010 Architecture and Modeling Tools

     

    UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.

     

    Microsoft Visual Studio 2010 Code Analysis Spell Checker   

    Microsoft Visual Studio 2010 Code Analysis Spell Checker

     

    Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

     

    The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

     

    Microsoft Visual Studio 2010 Team Explorer   

    Microsoft Visual Studio 2010 Team Explorer

     

    Microsoft Visual Web Developer 2010   

    Microsoft Visual Web Developer 2010

     

    Add Reference Dialog Plus!   1.0

    An significantly enhanced Add Reference dialog for managed code projects.

     

    AlignAssignments   1.0

    Command for aligning assignments.

     

    AutoBraceComplete   1.0

    auto brace complete

     

    Coded UI Test Editor   1.0

    Enable editing of a UITest (*.uitest) file

     

    Crystal Reports Templates for Microsoft Visual Studio 2010   

    Crystal Reports Templates for Microsoft Visual Studio 2010

     

    Document Well 2010 Plus   1.0.10916.0

    This package provides configurable behavior for the Document Well and its tabs. Please be sure to let us know what you like/dislike about this extension.

     

    ExtensionUpdateCheck   1.0

    Shows a notification icon in the system tray after Visual Studio startup if there are updates available for any installed extensions.

     

    Hotfix for Microsoft Visual Studio 2010 Ultimate - ENU (KB2403277)   KB2403277

    This hotfix is for Microsoft Visual Studio 2010 Ultimate - ENU.

    If you later install a more recent service pack, this hotfix will be uninstalled automatically.

    For more information, visit http://support.microsoft.com/kb/2403277.

     

    Hotfix for Microsoft Visual Studio 2010 Ultimate - ENU (KB976272)   KB976272

    This hotfix is for Microsoft Visual Studio 2010 Ultimate - ENU.

    If you later install a more recent service pack, this hotfix will be uninstalled automatically.

    For more information, visit http://support.microsoft.com/kb/976272.

     

    Microsoft Moles   1.0.0.0

    Moles generator for Visual Studio

     

    Microsoft Pex   0.94.51023.0

    Microsoft Pex Visual Studio Extensions

     

    Microsoft Visual Studio 2010 SharePoint Developer Tools   10.0.30319

    Microsoft Visual Studio 2010 SharePoint Developer Tools

     

    Microsoft Visual Studio 2010 Visualization and Modeling Feature Pack   2.0

    Extends the visualization and modeling tools in Visual Studio Ultimate:  generate dependency graphs for Web sites and native projects, generate code from UML models, build UML models from Visual C# code, import UML from other tools, create and follow bidirectional links between work items and UML models, and add custom commands and validation code to layer diagrams.

     

    Microsoft.VisualStudio.QuickAccess.Package   1.0

    Awesome search bar. 

     

    NuGet Package Manager   1.1

    NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://nuget.codeplex.com.

     

    OptionsPageImpl   1.0

    Information about my package

     

    QuickFind   1.0

    Visual Studio 2010 Quick Incremental Find Extension

     

    Update for Microsoft Visual Studio 2010 Ultimate - ENU (KB2483190)   KB2483190

    This update is for Microsoft Visual Studio 2010 Ultimate - ENU.

    If you later install a more recent service pack, this update will be uninstalled automatically.

    For more information, visit http://support.microsoft.com/kb/2483190.

     

    VisualStudioIntegration2010   1.0

    Information about my package

     

    .NET Reflector

    Visual Studio add-in that integrates .NET Reflector into Visual Studio to allow you to seamlessly debug into third-party code and assemblies, even if you don't have the source code for them.

    Visit www.red-gate.com for more information.

    Copyright (c) 2009-2010 Red Gate Software Inc.

     


    Tuesday, March 29, 2011 9:20 PM
  • Has anyone been able to resolve this issue of Pex crashing VS2010 on "Create Parameterized Unit Test?  I too am running into it and have not figured out what is causing it yet.

    I'm using:

    Pex version 0.94.51023.0

    VS2010 version: 10.0.40219.1 SP1Rel

    Thursday, April 21, 2011 12:10 AM