Unhandled crashes

I’ve been getting a lot of crashes where Rhino just goes away, and I don’t get an error reporting window or emergency save. Often there there will be a RhinoDotNetCrash.txt on the desktop, but I’m not sure these are generated from Rhino crashing itself, or some other error handling. I’ve noticed it most in the past two WIPs, but that may be just be coincidence. Often it seem to be annotation related. I had one when trying to select a dimension for editing, or selecting a dimAngle to move, things like that.

Sam

Text of the RhinoDotNetCrash:

System.Windows.Threading.Dispatcher.CurrentDispatcher.UnhandledException

SENDER: System.Windows.Threading.Dispatcher

EXCEPTION: System.IO.IsolatedStorage.IsolatedStorageException
MESSAGE: IsolatedStorage operation failed. (Exception from HRESULT: 0x80131450)
SOURCE: "PresentationCore"
CALL STACK
at System.Windows.Media.Imaging.BitmapEncoder.SaveFrame(SafeMILHandle frameEncodeHandle, SafeMILHandle encoderOptions, BitmapFrame frame)
at System.Windows.Media.Imaging.BitmapEncoder.Save(Stream stream)
at System.Windows.Documents.WpfPayload.CreateImagePart(PackagePart sourcePart, BitmapSource imageSource, String imageContentType, Int32 imageIndex)
at System.Windows.Documents.WpfPayload.SaveImage(BitmapSource bitmapSource, String imageContentType)
at System.Windows.Documents.TextEditorCopyPaste.PasteContentData(TextEditor This, IDataObject dataObject, IDataObject dataObjectToApply, String formatToApply)
at System.Windows.Documents.TextEditorCopyPaste._DoPaste(TextEditor This, IDataObject dataObject, Boolean isDragDrop)
at System.Windows.Documents.TextEditorCopyPaste.Paste(TextEditor This)
at System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.Input.CommandManager.ExecuteCommandBinding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)
at System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
at System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
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.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)
at System.Windows.Input.CommandManager.TranslateInput(IInputElement targetElement, InputEventArgs inputEventArgs)
at System.Windows.UIElement.OnKeyDownThunk(Object sender, KeyEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
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.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Hi Sam, thanks, I’ll see what I can find out…

-Pascal

@SamPage - That call stack seems to point to possibly pasting an image into a text editor. Not really what you described.
Maybe it was from something else, but if you see a correlation or any more info about how we might see that, let us know.

Got another crash with no crash report, only error report being RhinoDotNetCrash.txt on the desktop, this time on ExtractMeshEdges. Not sure if sharing these is helpful, but here it is just in case:

System.Windows.Threading.Dispatcher.CurrentDispatcher.UnhandledException

SENDER: System.Windows.Threading.Dispatcher

EXCEPTION: System.ComponentModel.Win32Exception
MESSAGE: Invalid window handle
SOURCE: "WindowsBase"
CALL STACK
at MS.Win32.UnsafeNativeMethods.GetWindowText(HandleRef hWnd, StringBuilder lpString, Int32 nMaxCount)
at System.Windows.Automation.Peers.WindowAutomationPeer.GetNameCore()
at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
at System.Windows.ContextLayoutManager.fireAutomationEvents()
at System.Windows.ContextLayoutManager.UpdateLayout()
at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
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 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)