-
Notifications
You must be signed in to change notification settings - Fork 357
OOM Exception after project load #854
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for the report. It looks like there may be a memory leak in the analysis engine. Here are the Build instructions of NTVS. If you are working on NTVS 1.1, make sure to checkout the I'd start by trying to reproduce the issue with a local build. Then, using the the [Visual Studio Diagnostic Tools](visual studio diagnostic tools external code), you should also be able to observe memory usage over time, and take memory snapshots and memory diffs to see what objects are being leaked. The NTVS analysis engine code is complicated, but using the memory diagnostics tools will give you a good starting point for investigation. Did you get a chance to try out the NTVS 1.2 Alpha as well? I suspect that using the |
I took down the source and was able to build--the test projects failed though. I could not get included or latest versions of VSTestHost to install/work properly. Regardless of the tests, I might have time later this week to profile it but I can only attempt during any down time at work. However, I did try 1.2 Alpha, and no problems so far. |
Thanks you trying to look into this. Yes, VSTestHost is only required for the (ui based) tests. If you build the full solution, there will be VSTestHost related build errors, but the NTVS extension should build and run just fine without it installed. I've run into a similar problem installing the included VSTestHost MSI recently on a Win10 VM and will look into updating the included installer. No rush looking into the issue, and please let me know if you run into any other problems or could use any help with the investigation. Also, if the build instructions are unclear in any way, feel free to update them or let me know. |
In the last 15 mins, I had 4 restarts of VS launching the same project which just has 4 ts files. Not sure if all of the errors in the event viewer are errors from NodeJS tools itself. Event Viewer export. This is my VS configuration: Microsoft Visual Studio Enterprise 2015 Installed Version: Enterprise Architecture and Modeling Tools 00322-90000-92003-AA742 UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries. Visual Basic 2015 00322-90000-92003-AA742 Visual C# 2015 00322-90000-92003-AA742 Visual C++ 2015 00322-90000-92003-AA742 Visual F# 2015 00322-90000-92003-AA742 Windows Phone SDK 8.0 - ENU 00322-90000-92003-AA742 Application Insights Tools for Visual Studio Package 5.208.60602.2 ASP.NET and Web Tools 2015 (RC1 Update 1) 14.1.11106.0 ASP.NET Web Frameworks and Tools 2012.2 4.1.41102.0 ASP.NET Web Frameworks and Tools 2013 5.2.40314.0 Clang with Microsoft CodeGen 14.0.25317 Common Azure Tools 1.7 JavaScript Language Service 2.0 JavaScript Project System 2.0 KofePackagePackage Extension 1.0 Microsoft Azure HDInsight HQL Service 2.0.2900.0 Microsoft Azure HDInsight Tools for Visual Studio 2.0.2900.0 Microsoft Azure Mobile Services Tools 1.4 Microsoft Azure Tools 2.8 Microsoft MI-Based Debugger 1.0 Node.js Tools 1.2.40329.01 Node.js Tools - Profiling 1.2.40329.01 NuGet Package Manager 3.4.4 PreEmptive Analytics Visualizer 1.2 Python Tools for Visual Studio 2.2.40315.00 Python Tools for Visual Studio - Django Integration 2.2.40315.00 Python Tools for Visual Studio - Profiling Support 2.2.40315.00 SQL Server Data Tools 14.0.60311.1 TypeScript 1.8.31.0 Visual C++ for Cross Platform Mobile Development (Android) 14.0.25116.00 Visual C++ for Cross Platform Mobile Development (iOS) 14.0.25116.00 Visual Studio Spell Checker VSSpellChecker Visual Studio Tools for Apache Cordova Update 9 Visual Studio Tools for Universal Windows Apps 14.0.25219.00 Web Essentials 2015.2 2.0.214 Windows Installer XML Toolset 3.10.2.2516 Xamarin 4.0.3.214 (0dd817c) Xamarin.Android 6.0.3.5 (a94a03b) Xamarin.iOS 9.6.1.8 (3a25bf1) |
After deleting the .ntvs_analysis.dat, and relaunching VS it didn't crash. |
Issues like this with the analyzer should be fixed in NTVS 1.2. This release switches to a new IntelliSense engine by default that is much more performant and also offers better support for modern ES6 code. We do not have the resources to attempt to fixing the high memory usage on 1.1 with the old analysis engine. If you run into any performance problems with NTVS 1.2, please open new issues to track these. Thanks. |
@mjbvz Unless I am not mistaken, I was using NTVS 1.2 Alpha based on the version info above. Are you suggesting they will go away in the future ? or already fixed in the existing 1.2 Alpha |
@rkavalap Sorry, that comment was based on nearwood's original report. What IntelliSense level are you on? This error should only show up in NTVS 1.2 if you are using Full/quick IntelliSense, instead of ES6 preview IntelliSense. ES6 IntelliSense is the default with NTVS 1.2. |
@mjbvz Thanks for the update. Yes I use full Intellisense. |
See #820. I updated to VS2015 Update 2. Now I eventually receive a OOM error after opening the project, even if I just open a project and let VS sit for ~5 mins.
System.OutOfMemoryException was unhandled Message: An unhandled exception of type 'System.OutOfMemoryException' occurred in Microsoft.NodejsTools.Analysis.dll
Event log:
Think I'll pull the source and check it out.
The text was updated successfully, but these errors were encountered: