madskristensen / WebEssentials2013

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

Invalid access to memory location #1783

Open Leefrost opened 9 years ago

Leefrost commented 9 years ago

This issue happens when I trying to compile SCSS. Here is a log message:

26.02.2015 14:52:31: An exception was thrown when compiling D:\Repositories\Mercurial\WMT\code.sass\Content\scss\page_content.scss: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.NetworkInformation.NetworkInformationException: Invalid access to memory location at System.Net.NetworkInformation.SystemIPGlobalProperties.GetAllTcpConnections() at System.Net.NetworkInformation.SystemIPGlobalProperties.GetActiveTcpConnections() at MadsKristensen.EditorExtensions.ServerBase.SelectAvailablePort() at MadsKristensen.EditorExtensions.ServerBase..ctor(String processStartArgumentsFormat, String serverPath) at MadsKristensen.EditorExtensions.NodeServer..ctor() --- End of inner exception stack trace --- at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.Activator.CreateInstance[T]() at MadsKristensen.EditorExtensions.ServerBase.d2`1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MadsKristensen.EditorExtensions.NodeServer.d1b.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MadsKristensen.EditorExtensions.NodeServer.d1e.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MadsKristensen.EditorExtensions.NodeExecutorBase.d0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MadsKristensen.EditorExtensions.Scss.ScssCompiler.d0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MadsKristensen.EditorExtensions.Compilers.NodeCompilerRunner.d0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MadsKristensen.EditorExtensions.Compilers.CompilerRunnerBase.d0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MadsKristensen.EditorExtensions.Compilers.EditorCompilerInvoker.d4.MoveNext() 26.02.2015 14:52:31: An exception was thrown when compiling D:\Repositories\Mercurial\WMT\code.sass\Content\scss\page_content.scss: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.NetworkInformation.NetworkInformationException: Invalid access to memory location at System.Net.NetworkInformation.SystemIPGlobalProperties.GetAllTcpConnections() at System.Net.NetworkInformation.SystemIPGlobalProperties.GetActiveTcpConnections() at MadsKristensen.EditorExtensions.ServerBase.SelectAvailablePort() at MadsKristensen.EditorExtensions.ServerBase..ctor(String processStartArgumentsFormat, String serverPath) at MadsKristensen.EditorExtensions.NodeServer..ctor() --- End of inner exception stack trace --- at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.Activator.CreateInstance[T]() at MadsKristensen.EditorExtensions.ServerBase.d2`1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MadsKristensen.EditorExtensions.NodeServer.d1b.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MadsKristensen.EditorExtensions.NodeServer.d1e.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MadsKristensen.EditorExtensions.NodeExecutorBase.d0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MadsKristensen.EditorExtensions.Scss.ScssCompiler.d0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MadsKristensen.EditorExtensions.Compilers.NodeCompilerRunner.d0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MadsKristensen.EditorExtensions.Compilers.CompilerRunnerBase.d0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MadsKristensen.EditorExtensions.Compilers.EditorCompilerInvoker.d4.MoveNext()

Leefrost commented 9 years ago

Visual studio 12.0.31101.00 Update 4 .NET 4.5.51209 Web essentials 2013 for Update 4 ver 2.5.4

PhilPatchett commented 9 years ago

I get the same thing.. has this been resolved?

jps commented 9 years ago

Restarting visual studio as admin fixed it for me. Admin maybe not required...

jps commented 9 years ago

happened again, admin not required to resolve.

jhchau commented 9 years ago

happens to me alot. it is very frustrating... will this be fixed or is there we can do to minimize this?

jclementson commented 9 years ago

+1 Same versions as above. Restarting VS does work as a workaround.

KernelLeak commented 9 years ago

If you're using a 64-bit operating system older than Windows 8 this seems to be a Windows bug:

http://blogs.msdn.com/b/cie/archive/2013/10/31/compute-emulator-invalid-access-to-memory-location.aspx https://support.microsoft.com/en-us/kb/2588507

Haven't had time to try this yet, though...

EDIT: well, installing the hotfix got rid of the exceptions, but now Web Essentials spews a lot of "Looking for resource @ http://localhost.:12345/" and "Unable to start resource, aborting" messages, but that's probably a different bug...