madskristensen / WebEssentials2013

Visual Studio extension
http://vswebessentials.com
Other
944 stars 251 forks source link

WE makes VS2013.4 crash when opening a solution #1652

Open OllyHodgson opened 9 years ago

OllyHodgson commented 9 years ago

Hello,

I'm seeing Web Essentials crash when opening a particular solution. VS2013 Professional Update 4 and Web Essentials 2.5.1.

I visit File > Open Project > choose the .sln file and click OK. The files appear in the solution explorer pane, and the status bar says "Web Essentials: Solution settings applied", before crashing (I get the "Visual Studio is restarting" dialog). I can load the solution without issue if I disable or uninstall Web Essentials. Rolling back to 2.5 does not fix the problem.

A quick look in event viewer gives me this:

Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
Stack:
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__0(System.Object)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
   at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)

and:

Faulting application name: devenv.exe, version: 12.0.31101.0, time stamp: 0x54548724
Faulting module name: KERNELBASE.dll, version: 6.1.7601.18409, time stamp: 0x53159a86
Exception code: 0xe0434352
Fault offset: 0x0000c42d
Faulting process id: 0x9b0
Faulting application start time: 0x01d003279438e306
Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe
Faulting module path: C:\Windows\syswow64\KERNELBASE.dll
Report Id: 09b85a15-6f1c-11e4-856f-080027127277

Please let me know what other information I can provide.

andreviens commented 9 years ago

I'm having a similar problem, but a different error message in my Event Viewer:

Faulting application name: devenv.exe, version: 12.0.31101.0, time stamp: 0x54548724
Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc0000005
Fault offset: 0x3858073a
Faulting process id: 0x5ac0
Faulting application start time: 0x01d00331cc5a5396
Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe
Faulting module path: unknown
Report Id: 5ff12a15-6f25-11e4-9c1a-54f577efef14

and:

Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
Stack:
   at Microsoft.VisualStudio.JSON.Package.Schema.DropdownMargin.JSONSchemaDropdown.SetSelectedIndex(Int32)
   at Microsoft.VisualStudio.JSON.Package.Schema.DropdownMargin.JSONSchemaDropdown.OnSchemaChanged(System.Object, System.EventArgs)
   at System.EventHandler.Invoke(System.Object, System.EventArgs)
   at Microsoft.VisualStudio.JSON.Package.Schema.ActiveJSONSchema.OnSchemaAvailabilityChanged(System.Object, Microsoft.VisualStudio.JSON.Package.Schema.SchemaAvailabilityChangedEventArgs)
   at Microsoft.VisualStudio.JSON.Package.Schema.VsJSONSchemaStore+<>c__DisplayClass6.b__5()
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
   at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)

As the previous poster mentions, disabling WE 2013 for Update 4 prevents VS from crashing. This just started happening when I upgraded VS to Update 4 and then WE prompted me to update as a result.

OllyHodgson commented 9 years ago

OK, so in my case the problem was a .sprite file I'd copied in from elsewhere, which contained some incorrect paths. I corrected the paths and the crashing stopped! :-)

WE probably ought to handle that a bit more gracefully though.

ghost commented 9 years ago

Updated to the release posted on 11/20 and issue still persists.

madskristensen commented 9 years ago

What type of projects are you opening? Website, Web Application, Cordova etc.? We need more details to debug this issue.

ghost commented 9 years ago

All projects of all types immediate crash upon being loaded. I thought at first it must have been a totally random installation issue but it's the exact same on my work and home PCs. I ran VS with the /log switch and opened a project to produce this activity log for your review.

http://pastebin.com/YUH2T2G0 (Too long to post directly in Github.)

farazp commented 9 years ago

Hi, I have this error too , when I try to open WPF and WinForm or MVC I received this error I see this from Update 2 on WE

andreviens commented 9 years ago

It seemed my issue was related to JavaScript files that were being opened in my solution upon this version first being installed.

I disabled WE, opened the solution, closed out all my open files (had a lot of JS windows open), and then re-enabled WE and it has not crashed as it did before.

I'm going to monitor it and if I find a particular file causing the crash, I will keep this thread updated.

tetz2442 commented 9 years ago

I've highlighted similar problems in this issue https://github.com/madskristensen/WebEssentials2013/issues/1516

OllyHodgson commented 9 years ago

My particular issue has been fixed as of release 2.5.3.

ghost commented 9 years ago

My crashing issue still persists with 2.5.3 even after repairing Update 4.

test-in-prod commented 9 years ago

Had this happen today on me. Although it seems WE settings got corrupted. Going to Tools -> Options and then tree item for WE would crash VS. Opening a solution that contains a web project would crash VS immediately.

Possible work-around (reinstall WE):

  1. Open VS by itself (don't open via solution file)
  2. Extensions & Updates -> Uninstall WE
  3. Restart VS
  4. Extensions & Updates -> Search & Install WE
  5. Restart VS
  6. Open solution containing a web project.
  7. [Optional] verify you can access WE options via Tools -> Options and it won't crash VS.
ss27051980 commented 9 years ago

I had the exact issue with vs2013 update 4 however after uninstalling the web essentials seems to do the trick. Thanks CrytonZylog.

RoyTinker commented 9 years ago

I'm having this issue with VS 2013 update 5 and the latest WE (2013u4). VS crashes when opening a solution (I only tried 1 type - solutions containing at least 1 ASP.NET MVC project). Disabling WE solves the problem.