VS 2013 crash when creating/opening Python project

Aug 6 at 4:30 PM
As said in subject, when i try to create or open a project in VS 2013, i get an error that causes VS to close.

I've uninstalled and reinstalled PyTools. But problem continues.

Is there a log to see whats happening?

What directories/files must i delete to make a new clean installation?

Thanks.
Coordinator
Aug 6 at 6:23 PM
Edited Aug 6 at 6:24 PM
If VS is crashing, there should be an error event recorded in Windows event logs (Control Panel -> Administrative Tools -> View event logs), under Windows Logs -> Application. The Details tab will include the call stack - can you share that?

Also, which version of PTVS are you using?
Aug 7 at 8:32 AM
Hi,

I'm using PTVS 2.1 Beta 2

Software was working ok for some time. One of the last actions i remember was try to open a solution created with Sharpdevelop.

There are two events, but i can't see any call stack

1.- .NET Runtime
Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an internal error in the NET Runtime at IP address 7301303C (73000000) with exit code 80131506..

2.- Application Error
Name of application with errors: devenv.exe, version: 12.0.30723.0, time stamp: 0x53cf6f00
Faulting module name: clr.dll Version: 4.0.30319.18444, time stamp: 0x52717e84
Exception code: 0xc0000005
Displacement error: 0x0001303c
Faulting Process ID: 0x4f0
Start time of application errors: 0x01cfb20e8ddc4727
Path Faulting application: C: \ Program Files (x86) \ Microsoft Visual Studio 12.0 \ Common7 \ IDE \ devenv.exe
Path Fault Module: C: \ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ clr.dll
Report ID: 40285b75-1E02-11e4-BA1B-005056c00008
Coordinator
Aug 7 at 9:19 AM
The stack should be on the ".NET Runtime" event. In XML view (the default one), it's usually under <EventData> element that's collapsed by default and has to be expanded.

Another useful piece of info, especially if the above still doesn't produce the stack, is Tools -> Python Tools -> Diagnostic Info. I would recommend making a text file attachment - you can't do it here on the forum, but you can file an issue in the bug tracker, and attach a file there.
Aug 7 at 9:53 AM
The XML view does not add much. Copy+Paste is:
  • <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  • <System>
    <Provider Name=".NET Runtime" />
    <EventID Qualifiers="0">1023</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2014-08-07T07:27:20.000000000Z" />
    <EventRecordID>8287150</EventRecordID>
    <Channel>Application</Channel>
    <Computer>FS-E3721-RHS.cartago.es</Computer>
    <Security />
    </System>
  • <EventData>
    <Data>Aplicación: devenv.exe Versión de Framework: v4.0.30319 Descripción: el proceso terminó debido a un error interno en el runtime de .NET en la dirección IP 7301303C (73000000) con el código de salida 80131506.</Data>
    </EventData>
    </Event>
Description it's in spanish, but you have a translation in the first message of this thread.

I'll open an issue.

Thanks!
Coordinator
Aug 7 at 4:42 PM
Can you try uninstalling SharpDevelop? We've seen crash issues in the past when they are installed (mostly involving IronPython), so I'd like to know if there's a new one.

Also, what version of SharpDevelop do you have?
Aug 7 at 9:31 PM
Sharpdevelop version was 4.3.1.9430

After uninstalling Sharpdevelop, all remain the same.

But Windows offers me to debug. Using VS 2010 to debug, the following appears in the inmediate window. Hope this help


System.Transactions Critical: 0 : <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical"><TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier><Description>Excepción no controlada</Description><AppDomain>DefaultDomain</AppDomain><Exception><ExceptionType>System.ExecutionEngineException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Se produjo una excepción de tipo 'System.ExecutionEngineException'.</Message><StackTrace> en System.AppDomain.CreateInstanceAndUnwrap(String assemblyName, String typeName)
en Microsoft.IronPythonTools.Interpreter.IronPythonInterpreter.CreateDomain(RemoteInterpreterProxy&amp; remoteInterpreter)
en Microsoft.IronPythonTools.Interpreter.IronPythonInterpreter.InitializeRemoteDomain()
en Microsoft.IronPythonTools.Interpreter.IronPythonInterpreter..ctor(PythonInterpreterFactoryWithDatabase factory)
en Microsoft.IronPythonTools.Interpreter.IronPythonInterpreterFactory.MakeInterpreter(PythonInterpreterFactoryWithDatabase factory)
en Microsoft.PythonTools.Interpreter.PythonInterpreterFactoryWithDatabase.CreateInterpreter()
en Microsoft.PythonTools.Project.PythonProjectNode.CreateAnalyzer()
en Microsoft.PythonTools.Project.PythonProjectNode.GetAnalyzer()
en Microsoft.PythonTools.Navigation.PythonLibraryManager.OnNewFile(LibraryTask task)
en Microsoft.VisualStudioTools.Navigation.LibraryManager.OnNewFile(Object sender, HierarchyEventArgs args)
en Microsoft.VisualStudioTools.Navigation.LibraryManager.HierarchyListener.InternalScanHierarchy(UInt32 itemId)
en Microsoft.VisualStudioTools.Navigation.LibraryManager.HierarchyListener.InternalScanHierarchy(UInt32 itemId)
en Microsoft.VisualStudioTools.Navigation.LibraryManager.RegisterHierarchy(IVsHierarchy hierarchy)
en Microsoft.VisualStudioTools.Project.CommonProjectNode.Load(String filename, String location, String name, UInt32 flags, Guid&amp; iidProject, Int32&amp; canceled)
en Microsoft.VisualStudioTools.Project.ProjectNode.InitializeForOuter(String filename, String location, String name, UInt32 flags, Guid&amp; iid, IntPtr&amp; projectPointer, Int32&amp; canceled)
en Microsoft.VisualStudio.Shell.Interop.IVsCreateAggregateProject.CreateAggregateProject(String pszProjectTypeGuids, String pszFilename, String pszLocation, String pszName, UInt32 grfCreateFlags, Guid&amp; iidProject, IntPtr&amp; ppvProject)
en Microsoft.VisualStudioTools.Project.ProjectFactory.CreateProject(String fileName, String location, String name, UInt32 flags, Guid&amp; projectGuid, IntPtr&amp; project, Int32&amp; canceled)
en Microsoft.VisualStudio.Shell.Flavor.FlavoredProjectFactoryBase.Microsoft.VisualStudio.Shell.Interop.IVsProjectFactory.CreateProject(String fileName, String location, String name, UInt32 flags, Guid&amp; projectGuid, IntPtr&amp; project, Int32&amp; canceled)
en EnvDTE.SolutionClass.AddFromTemplate(String FileName, String Destination, String ProjectName, Boolean Exclusive)
en Microsoft.VisualStudio.TemplateWizard.Wizard.Execute(Object application, Int32 hwndOwner, Object[]&amp; ContextParams, Object[]&amp; CustomParams, wizardResult&amp; retval)
en EnvDTE100.Solution4.AddFromTemplateEx(String FileName, String Destination, String ProjectName, String SolutionName, Boolean Exclusive, UInt32 Options)
en Microsoft.VisualStudio.Dialogs.ServiceHelper.AddProjectFromSelectedTemplate(INewProjectDialogData dialog, String projectPath, Boolean isExclusive)
en Microsoft.VisualStudio.Dialogs.SVsDialogService.CreateProject(INewProjectDialogData npdd)
en Microsoft.VisualStudio.Dialogs.SVsDialogService.InvokeDialog(VSNEWPROJECTDLGINFO dlgInfo, String&amp; bstrLocation)
en Microsoft.VisualStudio.Shell.Interop.IVsUIDataSource.Invoke(String verb, Object pvaIn, Object&amp; pvaOut)
en Microsoft.Internal.VisualStudio.PlatformUI.DataSource.Invoke(String verb, Object pvaIn, Object&amp; pvaOut)
en Microsoft.VisualStudio.PlatformUI.VsCommand.Execute(Object parameter)
en MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
en System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
en System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
en MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
en System.Windows.Threading.DispatcherOperation.InvokeImpl()
en System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
en System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
en System.Windows.Threading.DispatcherOperation.Invoke()
en System.Windows.Threading.Dispatcher.ProcessQueue()
en System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean&amp; handled)
en MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean&amp; handled)
en MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
en System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
en MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
en System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
en MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
</StackTrace><ExceptionString>System.ExecutionEngineException: Se produjo una excepción de tipo 'System.ExecutionEngineException'.
</ExceptionString></Exception></TraceRecord>
Coordinator
Aug 7 at 9:41 PM
Okay, so IronPython is involved. See if this post helps.
Aug 7 at 9:53 PM
I'll try it.

Anyway, it doesn't matter project type.

I'll tell you something soon
Aug 7 at 10:12 PM
PROBLEM SOLVED

Uninstalling and reinstalling IronPython

Thank you very much!!!