VS2013 crashing with System.AccessViolationException

madd0madd0 USMember

Hi,

For no apparent reason, Visual Studio 2013 is no longer able to open my solution. It crashes after an unhandled exception:

Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
Stack:
   at Microsoft.VisualStudio.Shell.Interop.IVsSolution4.EnsureProjectIsLoaded(System.Guid ByRef, UInt32)
   at Mono.VisualStudio.Extension.ExtensionMethods.Load(Microsoft.VisualStudio.Shell.Interop.IVsHierarchy)
   at Mono.VisualStudio.Shell.ShellPackage.<HandleEntitlementsChanged>b__3()
   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)

Any ideas?

Posts

  • ataliatali GBMember

    I have the same exact issue. did you manage to fix it?

  • HugoFonsecaHugoFonseca USMember

    Also have the same problem. Any ideas?

  • madd0madd0 USMember

    For the moment, I totally uninstalled the Xamarin tools and reinstalled and it seems to be working. No idea on why, though.

  • xakpcxakpc RUUniversity ✭✭
    edited June 2014

    Same error here, VS2013 crashed on Android project opening with System.AccessViolationException

    Приложение: devenv.exe Версия платформы: v4.0.30319 Описание. Процесс был завершен из-за необработанного исключения. Сведения об исключении: System.AccessViolationException Стек: в Microsoft.VisualStudio.Shell.Interop.IVsSolution4.ReloadProject(System.Guid ByRef) в Xamarin.VisualStudio.ExtensionMethods.Load(Microsoft.VisualStudio.Shell.Interop.IVsHierarchy) в Xamarin.VisualStudio.Shell.ShellPackage.b__2() в System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) в MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) в System.Windows.Threading.DispatcherOperation.InvokeImpl() в System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object) в System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) в System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) в System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) в System.Windows.Threading.DispatcherOperation.Invoke() в System.Windows.Threading.Dispatcher.ProcessQueue() в System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) в MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) в MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object) в System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) в MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) в System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32) в MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)

  • xakpcxakpc RUUniversity ✭✭
    edited June 2014

    My workaround

    • rename project file or folder and open solution - project will fail to load.
    • delete it from solution
    • rename it back
    • add existing project to solution

    everything looks like ok for now.

  • I have the same issue. This only started happening after I performed an SDK Synchronization tonight.

  • Has anyone logged a bug report?

  • josemiguel.torresjosemiguel.torres ESXamarin Team Xamurai

    Hey guys,

    Please, feel free to log a new bug in bugzilla.xamarin.com providing as many details as possible in order to figure out what is going wrong here.

    thanks for your patience..

    josemiguel

  • Thanks Jose - Bug 20429 is logged.

  • josemiguel.torresjosemiguel.torres ESXamarin Team Xamurai

    Thanks @CraftyLogic‌ ;-)

  • BrendanZagaeskiBrendanZagaeski USForum Administrator, Xamarin Team Xamurai

    I've created a corresponding public bug report for this issue here:
    https://bugzilla.xamarin.com/show_bug.cgi?id=20516

    One temporary workaround is to delete the .suo file. Similarly, overwriting the .suo file with a backup copy of an "uncorrupted" version also works:

    1. Delete the .suo file.

    2. Open the solution in Visual Studio.

    3. Quit Visual Studio.

    4. Save a backup copy of the newly created .suo file.

    5. Every time before you open the solution, replace the .suo file with this backup version.

    It looks like somehow when Visual Studio saves the .suo the second time, it causes it to more than double in size incorrectly, and then this "corrupted" .suo file causes the crash.

  • AgedawAgedaw USMember

    Visual studio 2013 could,t Debug or build any solution after windows 10 has Updated. It displays Visual studio has stopped working.... so how can I solve this problem. any one who can fix it plz tell me the way to solve it

Sign In or Register to comment.