See https://sourceforge.net/p/nicevs/discussion/general/thread/3d6baf01/?limit=50
I like your extension but unfortunately it makes my VS2012 crash quite often (like at least once every hour).
In the system event log I can see that an unhandled System.InvalidOperationException is thrown at Dzonny.NiceVS.ImageReplacer.BeginUse() method. Full stack trace on pastebin: http://pastebin.com/6qPmzLZB
Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidOperationException
Stack:
at Dzonny.NiceVS.ImageReplacer.BeginUse()
at Dzonny.NiceVS.NiceVSProcessor.ProcessElement(System.Windows.FrameworkElement, System.Object, Dzonny.NiceVS.ElementProcessingOptions)
at Dzonny.NiceVS.NiceVSProcessor.FrameworkElement_SizeChanged(System.Object, System.Windows.RoutedEventArgs)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
at System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs)
at System.Windows.FrameworkElement.OnRenderSizeChanged(System.Windows.SizeChangedInfo)
at System.Windows.ContextLayoutManager.fireSizeChangedEvents()
at System.Windows.ContextLayoutManager.UpdateLayout()
at System.Windows.ContextLayoutManager.UpdateLayoutCallback(System.Object)
at System.Windows.Media.MediaContext+InvokeOnRenderCallback.DoWork()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(System.Object)
at System.Windows.Media.MediaContext.RenderMessageHandler(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)
I've got the same problem, the only difference being that my stack trace goes on for 10 more lines up through a ThreadStart.
I have the same problem. VS 2012 crashes at least once per hour and must be restarted.
Additionally to this call stack I attached exact exception which many people seems to get.
Donny, please release some kind of fix ASAP, otherwise your great VS extension is unusable!
Thank you!
Konstantin
Added call stack as secondary instance of VS sees it.
I have the same issue. VS 2012 randomly crashes and I had to uninstall this extension:
Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidOperationException
Stack:
at Dzonny.NiceVS.ImageReplacer.BeginUse()
at Dzonny.NiceVS.NiceVSProcessor.ProcessElement(System.Windows.FrameworkElement, System.Object, Dzonny.NiceVS.ElementProcessingOptions)
at Dzonny.NiceVS.NiceVSProcessor.FrameworkElement_SizeChanged(System.Object, System.Windows.RoutedEventArgs)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
Yes, all of the above sadly.
I get the same stack trace as Markus and the exception message is "An implementation cannot be used twice".
Back to monochrome for the time being !
I also have this error. It's not random, it's usually when I press some keyboard combination (shift-F6, control-F6, etc).
Please fix ASAP otherwise your tool is not usable. Thanks
Stack:
System.InvalidOperationException was unhandled
HResult=-2146233079
Message=An implementation cannot be used twice
Source=NiceVS.Core
StackTrace:
at Dzonny.NiceVS.ImageReplacer.BeginUse()
at Dzonny.NiceVS.NiceVSProcessor.ProcessElement(FrameworkElement element, Object e, ElementProcessingOptions options)
at Dzonny.NiceVS.NiceVSProcessor.FrameworkElement_SizeChanged(Object sender, RoutedEventArgs e)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
at System.Windows.FrameworkElement.OnRenderSizeChanged(SizeChangedInfo sizeInfo)
at System.Windows.ContextLayoutManager.fireSizeChangedEvents()
at System.Windows.ContextLayoutManager.UpdateLayout()
at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.Run()
at Microsoft.Internal.VisualStudio.PlatformUI.BackgroundDispatcher.ThreadProc(Object arg)
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart(Object obj)
InnerException:
Hello
Is there any update on this please?
Your tool is great and I want to keep using it, but I cannot if it crashes every hour.
Thanks
I have finished an icon set for a new version. Due to major refactoring this bug is fixed. It just needs some more testing before I ship it.
Oh, wow! Great news! I was under impression that you dumped the project.
May be it makes sense to post a note on Q & A page to let people know that the new version is coming, otherwise many turn out because the project looks abandoned.
Thank you!
Konstantin
From: "Đonny" [mailto:dzonny@users.sf.net]
Sent: Friday, March 08, 2013 2:24 AM
To: [nicevs:tickets]
Subject: [nicevs:tickets] #1 VS Crashes every hour or so with InvalidOperationException at ImageReplacer.BeginUse at NiceVSProcessor.ProcessElement(FrameworkElement, Object, ElementProcessingOptions)
I have finished an icon set for a new version. Due to major refactoring this bug is fixed. It just needs some more testing before I ship it.
[tickets:#1]http://sourceforge.net/p/nicevs/tickets/1/ VS Crashes every hour or so with InvalidOperationException at ImageReplacer.BeginUse at NiceVSProcessor.ProcessElement(FrameworkElement, Object, ElementProcessingOptions)
Status: open
Labels: bug crash
Created: Mon Dec 24, 2012 03:21 PM UTC by Đonny
Last Updated: Fri Mar 08, 2013 08:28 AM UTC
Owner: nobody
See https://sourceforge.net/p/nicevs/discussion/general/thread/3d6baf01/?limit=50
I like your extension but unfortunately it makes my VS2012 crash quite often (like at least once every hour).
In the system event log I can see that an unhandled System.InvalidOperationException is thrown at Dzonny.NiceVS.ImageReplacer.BeginUse() method. Full stack trace on pastebin: http://pastebin.com/6qPmzLZB
Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidOperationException
Stack:
at Dzonny.NiceVS.ImageReplacer.BeginUse()
at Dzonny.NiceVS.NiceVSProcessor.ProcessElement(System.Windows.FrameworkElement, System.Object, Dzonny.NiceVS.ElementProcessingOptions)
at Dzonny.NiceVS.NiceVSProcessor.FrameworkElement_SizeChanged(System.Object, System.Windows.RoutedEventArgs)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
at System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs)
at System.Windows.FrameworkElement.OnRenderSizeChanged(System.Windows.SizeChangedInfo)
at System.Windows.ContextLayoutManager.fireSizeChangedEvents()
at System.Windows.ContextLayoutManager.UpdateLayout()
at System.Windows.ContextLayoutManager.UpdateLayoutCallback(System.Object)
at System.Windows.Media.MediaContext+InvokeOnRenderCallback.DoWork()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(System.Object)
at System.Windows.Media.MediaContext.RenderMessageHandler(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)
I've got the same problem, the only difference being that my stack trace goes on for 10 more lines up through a ThreadStart.
I have the same problem. VS 2012 crashes at least once per hour and must be restarted.
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/nicevs/tickets/1/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/prefs/
Related
Tickets:
#1Please can you tell us when the new version will ship? It's been a month now.
The new version is shipping in few minutes. There is a new architecture. Toolbars are replaced more VS-native way. But there is one issue in Visual Studio (at least in my, that causes the VS forgets toolbar customization). See connect#782662
the 0.9 also doesn't ix it. I compiled it myself and I still got the error. Also in Version 0.9 the new icons are lost after each restart. And I got no error, I closed the VS2012 in the regular way with the close button in the window.
ok, I voted for the VS bug on connect.
Currently I do the upgrade and Icon rebuild and I'll test if it works and if the crashes are gone.
// Edit: I get the issue again. The icons are lost. I'll check if the crashes are gone by using it a few days.
Last edit: André Ziegler 2013-04-23
because the 0.9 looses the icons all the time, I compiled the 0.8, but removed the throw of the invalid operation exception and VS runs fine. Why do you throw this exception?
I throw it because the condition under which it is thrown means that the replacer object is being used without being freed before. Because the object has some properties that change as it is used multiple simultaneous uses can lead to unpredictable results (especially when used from two threads). I wanted to avoid such situation. It seems that reason for the exception being thrown is threading not me forgetting to free the replacer. So, I have to somehow synchronize/dispatch replacer use.
BTW: It should be possible to "turn off" this bug in 0.9.0 by disabling runtime replacements. Well, but the issue with VS forgetting toolbar customization would persist :(.
Jan Záruba
Sent from my HTC Touch HD - last smart smartphone
-----Původní zpráva-----
Od: "André Ziegler" andreziegler@users.sf.net
Odesláno: 2. května 2013 8:09
Komu: [nicevs:tickets] 1@tickets.nicevs.p.re.sf.net
Předmět: [nicevs:tickets] #1 VS Crashes every hour or so with InvalidOperationException at ImageReplacer.BeginUse at NiceVSProcessor.ProcessElement(FrameworkElement, Object, ElementProcessingOptions)
because the 0.9 looses the icons all the time, I compiled the 0.8, but removed the throw of the invalid operation exception and VS runs fine. Why do you throw this exception?
[tickets:#1] VS Crashes every hour or so with InvalidOperationException at ImageReplacer.BeginUse at NiceVSProcessor.ProcessElement(FrameworkElement, Object, ElementProcessingOptions)
Status: open
Labels: bug crash
Created: Mon Dec 24, 2012 03:21 PM UTC by Đonny
Last Updated: Wed Apr 24, 2013 08:57 PM UTC
Owner: Đonny
See https://sourceforge.net/p/nicevs/discussion/general/thread/3d6baf01/?limit=50
I like your extension but unfortunately it makes my VS2012 crash quite often (like at least once every hour).
In the system event log I can see that an unhandled System.InvalidOperationException is thrown at Dzonny.NiceVS.ImageReplacer.BeginUse() method. Full stack trace on pastebin: http://pastebin.com/6qPmzLZB
Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidOperationException
Stack:
at Dzonny.NiceVS.ImageReplacer.BeginUse()
at Dzonny.NiceVS.NiceVSProcessor.ProcessElement(System.Windows.FrameworkElement, System.Object, Dzonny.NiceVS.ElementProcessingOptions)
at Dzonny.NiceVS.NiceVSProcessor.FrameworkElement_SizeChanged(System.Object, System.Windows.RoutedEventArgs)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
at System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs)
at System.Windows.FrameworkElement.OnRenderSizeChanged(System.Windows.SizeChangedInfo)
at System.Windows.ContextLayoutManager.fireSizeChangedEvents()
at System.Windows.ContextLayoutManager.UpdateLayout()
at System.Windows.ContextLayoutManager.UpdateLayoutCallback(System.Object)
at System.Windows.Media.MediaContext+InvokeOnRenderCallback.DoWork()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(System.Object)
at System.Windows.Media.MediaContext.RenderMessageHandler(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)
I've got the same problem, the only difference being that my stack trace goes on for 10 more lines up through a ThreadStart.
I have the same problem. VS 2012 crashes at least once per hour and must be restarted.
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/nicevs/tickets/1/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
Related
Tickets:
#1