1
Vote

python tools extension causing Visual Studio 2013 to crash

description

Visual Studio crashes when I open files in the editor or try to diff/merge files.

Here are the details of my system:
Python Tools 2.1 Beta 2
Visual Studio Premium 2013 Version 12.0.30501.00 Update 2

I am seeing multiple messages like below in my ActivityLog.xml from Visual Studio 2013 which points at a problem with Python Tools.

<entry>
<record>3124</record>
<time>2014/08/06 20:02:38.463</time>
<type>Error</type>
<source>Editor or Editor Extension</source>
<description>System.NullReferenceException: Object reference not set to an instance of an object.&#x000D;&#x000A;   at Microsoft.PythonTools.Extensions.GetAnalyzer(ITextBuffer buffer)&#x000D;&#x000A;   at Microsoft.PythonTools.PythonClassifier.GetTokenizer()&#x000D;&#x000A;   at Microsoft.PythonTools.PythonClassifier.GetClassificationSpans(SnapshotSpan span)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Classification.Implementation.ClassifierTagger.&lt;GetTags&gt;d__0.MoveNext()&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.&lt;GetTagsForBuffer&gt;d__5.MoveNext()</description>
</entry>

file attachments

comments

eroller wrote Aug 6 at 8:24 PM

Full system info below

Microsoft Visual Studio Premium 2013
Version 12.0.30501.00 Update 2
Microsoft .NET Framework
Version 4.5.50938

Installed Version: Premium

LightSwitch for Visual Studio 2013 06191-004-0454001-02357
Microsoft LightSwitch for Visual Studio 2013

Office Developer Tools - May 2014 Update ENU 06191-004-0454001-02357
Microsoft Office Developer Tools for Visual Studio 2013 - May 2014 Update ENU

Team Explorer for Visual Studio 2013 06191-004-0454001-02357
Microsoft Team Explorer for Visual Studio 2013

Visual Basic 2013 06191-004-0454001-02357
Microsoft Visual Basic 2013

Visual C# 2013 06191-004-0454001-02357
Microsoft Visual C# 2013

Visual C++ 2013 06191-004-0454001-02357
Microsoft Visual C++ 2013

Visual F# 2013 06191-004-0454001-02357
Microsoft Visual F# 2013

Visual Studio 2013 Code Analysis Spell Checker 06191-004-0454001-02357
Microsoft® Visual Studio® 2013 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.

ASP.NET and Web Tools 2013.2.50425
Microsoft Web Developer Tools contains the following components:
Support for creating and opening ASP.NET web projects
Browser Link: A communication channel between Visual Studio and browsers
Editor extensions for HTML, CSS, and JavaScript
Page Inspector: Inspection tool for ASP.NET web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Windows Azure Web Sites
Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Windows Azure

ASP.NET Web Frameworks and Tools 2012.2 4.1.21001.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013 5.1.20409.0
For additional information, visit http://www.asp.net/

Common Azure Tools 1.1
Provides common services for use by Azure Mobile Services and Windows Azure Tools.

JetBrains dotMemory 4.0 Full Edition build 4.0.5.148 on 2014-06-28T02:46:34
JetBrains dotMemory 4.0 package for Microsoft Visual Studio. For more information about dotMemory, visit http://www.jetbrains.com/dotmemory/. Copyright © 2003–2014 JetBrains, Inc.

JetBrains dotTrace Performance 5.5.5 Professional Edition build 5.5.5.346 on 2014-05-21T01:37:32
JetBrains dotTrace Performance 5.5.5 package for Microsoft Visual Studio. For more information about dotTrace Performance, visit http://www.jetbrains.com/profiler/. Copyright © 2005–2014 JetBrains, Inc.

NuGet Package Manager 2.8.50313.46
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer 1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

Python Tools for Visual Studio 2.1.20620.00
Python Tools for Visual Studio provides IntelliSense, projects, templates, Interactive windows, and other support for Python developers.

Python Tools for Visual Studio - Django Integration 2.1.20620.00
Provides templates and integration for the Django web framework.

Python Tools for Visual Studio - Profiling Support 2.1.20620.00
Profiling support for Python projects.

SQL Server Data Tools 12.0.30919.1
Microsoft SQL Server Data Tools

Windows Azure Mobile Services Tools 1.1
Windows Azure Mobile Services Tools

Windows Installer XML Toolset 3.8.1128.0
Windows Installer XML Toolset version 3.8.1128.0
Copyright (c) Outercurve Foundation. All rights reserved.

Windows Phone 8.1 SDK Integration 1.0
This package integrates the tools for the Windows Phone 8.1 SDK into the menus and controls of Visual Studio.

Workflow Manager Tools 1.0 1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

eroller wrote Aug 6 at 8:38 PM

same crash happens when I start devenv.exe in safe mode

attached python tools diagnostic info

Zooba wrote Aug 6 at 9:20 PM

Thanks for the report.

This should be fixed in our latest dev build. I inadvertently fixed it shortly after Beta 2 when I was concerned about performance. That said, since I wasn't actively trying to fix this bug, it's possible that I just moved the problem somewhere else.

Are you able to try with our latest dev build and see if it still occurs?

eroller wrote Aug 20 at 3:34 AM

I have updated to VS 2013 Update 3 and Python Tools 2.1 RC. So far I haven't been able to reproduce this issue. Thanks!