This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hello, This morning I found the LightSpeed designer to crash Visual Studio 2010 frequently (almost on every save). I can't provide you with the solution. Is there anything else I can do to give you the information so you can see why it happens. I upgraded to the nighly build 4.0.811.18502 yesterday. Werner PS If you provided the means to obfuscate a model such that it doesn't have actual names and properties in it, then I may be able to share it. For example, just rename each entity to Entity1, Entity2 etc and each property to Property1, Property2 etc. In any association rename it to association1. This way our IP is not shared (on a forum such as this) and you may be able to reproduce issues much faster. |
|
|
Does this happen with new models or only on your existing model? Which version were you on before the upgrade? (This will help us home in on when the bug was introduced.) Does the problem go away when you revert to the previous build? Do you have custom templates in play? We don't have a way of obfuscating a model, but if you're willing to share it with us, you can email it directly to support@mindscape.co.nz. We will treat it as confidential. If you can't even share it with us, then you'll need to obfuscate it manually. |
|
|
The previous version was 4.0.734.18278. The Lightspeed designer has always crashed intermittently. Its just doing so very often now. There are no custom NVelocity templates. I have a couple of T4 templates but they are not being executed. Its an existing model. I upgraded so I can implement the ability to "purge" previously deleted data. Reverting to a previous version is a tad complicated. What I am doing in essence is to manually add the existing EDMX file to an existing LSMODEL file. I tried the suggestion of dragging and dropping the EDMX file from the solution explorer into the design surface, but that does nothing. From Visual Studio Help:
Microsoft Visual Studio 2010 Version 10.0.40219.1 SP1Rel Microsoft .NET Framework Version 4.0.30319 SP1Rel
Installed Version: Premium
Microsoft Office Developer Tools 01021-532-2002102-70361 Microsoft Office Developer Tools
Microsoft Visual Basic 2010 01021-532-2002102-70361 Microsoft Visual Basic 2010
Microsoft Visual C# 2010 01021-532-2002102-70361 Microsoft Visual C# 2010
Microsoft Visual C++ 2010 01021-532-2002102-70361 Microsoft Visual C++ 2010
Microsoft Visual F# 2010 01021-532-2002102-70361 Microsoft Visual F# 2010
Microsoft Visual Studio 2010 Code Analysis Spell Checker 01021-532-2002102-70361 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 01021-532-2002102-70361 Microsoft Visual Studio 2010 Team Explorer
Microsoft Visual Studio LightSwitch 2011 01021-532-2002102-70361 Microsoft Visual Studio LightSwitch 2011
Microsoft Visual Web Developer 2010 01021-532-2002102-70361 Microsoft Visual Web Developer 2010
AppFabricWCFHTTPService 1.0 Information about my AppFabricWCFHTTPService package
Automated Build Studio AutomatedQA Automated Build Studio for Visual Studio. Version: 6.20.596.0
Automated Build Studio 2.0 Automated Build Studio Team Explorer Integration Package
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
Devart Template Editor 1.0 Editor for T4 and Devart template files with syntax coloring and IntelliSense.
Feature Extension Runtime Pro 1.0 Enables feature extensions to run on Visual Studio Pro and above.
Hotfix for Microsoft Visual Studio 2010 Premium - ENU (KB2522890) KB2522890 This hotfix is for Microsoft Visual Studio 2010 Premium - 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/2522890.
Hotfix for Microsoft Visual Studio 2010 Premium - ENU (KB2529927) KB2529927 This hotfix is for Microsoft Visual Studio 2010 Premium - 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/2529927.
Hotfix for Microsoft Visual Studio 2010 Premium - ENU (KB2547352) KB2547352 This hotfix is for Microsoft Visual Studio 2010 Premium - 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/2547352.
Hotfix for Microsoft Visual Studio 2010 Premium - ENU (KB2548139) KB2548139 This hotfix is for Microsoft Visual Studio 2010 Premium - 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/2548139.
Hotfix for Microsoft Visual Studio 2010 Premium - ENU (KB2549864) KB2549864 This hotfix is for Microsoft Visual Studio 2010 Premium - 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/2549864.
Hotfix for Microsoft Visual Studio 2010 Premium - ENU (KB2565057) KB2565057 This hotfix is for Microsoft Visual Studio 2010 Premium - 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/2565057.
JetBrains ReSharper 5 C# Edition build 5.0.1659.36 on 2010-04-13T21:19:06 JetBrains ReSharper 5 package for Microsoft Visual Studio. For more information about ReSharper, visit http://www.jetbrains.com/resharper/. Copyright © 2003–2011 JetBrains, Inc.
LightSpeed Designer for Visual Studio 2010 af67eb34-a276-4aad-9e7a-9a672c30f1f1 LightSpeed Model Designer for Visual Studio 2010 (c) Mindscape 2010
Microsoft Team Foundation Server 2010 Power Tools 3.2.40301.0 Power Tools that extend the Team Foundation Server integration with Visual Studio.
Microsoft Visual Studio 2010 Premium - ENU Service Pack 1 (KB983509) KB983509 This service pack is for Microsoft Visual Studio 2010 Premium - ENU. If you later install a more recent service pack, this service pack will be uninstalled automatically. For more information, visit http://support.microsoft.com/kb/983509.
Microsoft Visual Studio 2010 SharePoint Developer Tools 10.0.40219 Microsoft Visual Studio 2010 SharePoint Developer Tools
Microsoft Visual Studio Process Editor 1.0 Process Editor for Microsoft Visual Studio Team Foundation Server
Mindscape Web Workbench 1.0 Accelerate and simplify your Web development experience with Visual Studio integrated Sass, Less and CoffeeScript support
NTrace v2.0 2.0 NTrace is a library that provides flexible, high-performance, and zero-config trace logging for your C# applications using Event Tracing for Windows.
NuGet Package Manager 1.5.20902.9026 NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
Windows Installer XML Toolset 3.5 Windows Installer XML Toolset 3.5.2519.0 Copyright © Microsoft Corporation. All rights reserved.
Automated Build Studio For more information about Automated Build Studio Team Build Integration, see the website at http://www.automatedqa.com/products/abs Copyright (c) AutomatedQA |
|
|
Do you have any logging/tracing that I can enable and send you the file? Werner |
|
|
If you create a new model and a couple of dummy entities, does it crash on that? |
|
|
You can revert the designer while still keeping the latest version of the runtime (for the 'purge' functionality). Copy the Mindscape.LightSpeed and Mindscape.LightSpeed.Linq DLLs to a project Lib folder if you haven't done so already, and change the project to reference them at that location instead of the install location. Then uninstall LightSpeed and reinstall the older version. Your project will continue to use the runtime DLLs in the Lib directory, while the designer will be the older version. |
|
|
It does not crash on a new model. |
|
|
You should have the model in your support mailbox. Werner
|
|
|
If you have the Output window open before saving the model, does anything get written there? Or does VS crash so completely that you're not able to see? Are your model changes saved successfully? Is the generated code updated successfully? |
|
|
Visual Studio 2010 crashes and its not possible to see what is in the output window. Most of the times the model changes are saved succesfully. I cannot verify in those cases that the code was updated. That said, the last crash I had did not save my last changes and code was not updated. |
|
|
Thanks for the extra info. The fact that the timing is sometimes before and sometimes after suggests that there is an environmental factor, possibly involving an add-in which responds to saving changes and which LightSpeed is somehow conflicting with. If VS is sometimes crashing *before* the save, our code may not even be in play at this point, so I'm not sure we'll be able to log this. That said, I will try to add some logging around a couple of the places that we do control and we will see if that produces anything. I've just tested your model with the current nightly build of LightSpeed and I'm not able to reproduce a crash. This again points me towards a possible environmental factor. Another possibility is that the previous version of LightSpeed did not uninstall cleanly and the two versions are conflicting. Go into Control Panel and have a look in Add/Remove Programs for "Mindscape LightSpeed." If there is more than one entry there, uninstall them all, then reinstall the latest version. Finally, for more immediate diagnostics you could try attaching a debugger to your Visual Studio process just before doing the save, and turning on first-chance CLR exceptions. This *might* give you a stack trace that we can use to locate the problem. (Note that the designer does produce some legitimate first-chance exceptions -- some of the Visual Studio APIs we call don't have a 'try' variant -- which it catches internally, so the presence of first-chance exceptions doesn't necessarily indicate a smoking gun.) |
|
|
For the next nightly build I've added logging to our bits of the save code to save the exception details to %LocalAppData%\Mindscape. By the way, I just tried injecting an exception into the save process and Visual Studio caught it and displayed a "can't save" message. The fact that your VS dies hard makes me concerned that something access violationy is happening deep within the unmanaged part of VS, possibly outside the control of our code. Hopefully the logs or a debugger trace will reveal a bit more though. |
|