New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception at shutdown after editor window hangup #807

Open
TobiasKs opened this Issue Feb 16, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@TobiasKs

TobiasKs commented Feb 16, 2018

I often got a window hangup in SharpDevelop 5.1 as well as in version 4 after debugging with breakpoints. Then I only can set the cursor in the text editor field but cannot enter anything. The editor field hangs completely. After window resize it is only partially redrawn. Menu bars are drawn correctly but cannot be used, the tools and project explorer window can be used, but makes no sense without the editing area.
Informational: I also have these problems after suspending windows or standby: after next debug session end the editor hangs up. Closing SD ends up in several WPF exceptions (invalid window handle).

SharpDevelop Version : 5.1.0.5216-0e58df71
.NET Version : 4.7.02053
OS Version : Microsoft Windows NT 6.1.7601 Service Pack 1
Current culture : German (Germany) (de-DE)
Current UI language : en
Running under WOW6432, processor architecture: x86-64
Working Set Memory : 279856kb
GC Heap Memory : 96668kb

Unhandled exception terminated the workbench
Exception thrown:
System.NullReferenceException: Object reference not set to an instance of an object.
at MS.Internal.Data.DataBindEngine.GetDefaultValueConverter(Type sourceType, Type targetType, Boolean targetToSource)
at System.Windows.Data.BindingExpression.SetupDefaultValueConverter(Type type)
at MS.Internal.Data.ClrBindingWorker.SetupDefaultValueConverter(Type type)
at MS.Internal.Data.PropertyPathWorker.ReplaceItem(Int32 k, Object newO, Object parent)
at MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState(Int32 k, ICollectionView collectionView, Object newValue, Boolean isASubPropertyChange)
at MS.Internal.Data.PropertyPathWorker.OnDependencyPropertyChanged(DependencyObject d, DependencyProperty dp, Boolean isASubPropertyChange)
at MS.Internal.Data.ClrBindingWorker.OnSourceInvalidation(DependencyObject d, DependencyProperty dp, Boolean isASubPropertyChange)
at System.Windows.Data.BindingExpression.HandlePropertyInvalidation(DependencyObject d, DependencyPropertyChangedEventArgs args)
at System.Windows.Data.BindingExpressionBase.OnPropertyInvalidation(DependencyObject d, DependencyPropertyChangedEventArgs args)
at System.Windows.Data.BindingExpression.OnPropertyInvalidation(DependencyObject d, DependencyPropertyChangedEventArgs args)
at System.Windows.DependentList.InvalidateDependents(DependencyObject source, DependencyPropertyChangedEventArgs sourceArgs)
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
at CSharpBinding.CSharpTextEditorExtension.Detach()
at ICSharpCode.AvalonEdit.AddIn.CodeEditorAdapter.DetachExtensions()
at ICSharpCode.AvalonEdit.AddIn.CodeEditor.Dispose()
at ICSharpCode.AvalonEdit.AddIn.AvalonEditViewContent.Dispose()
at ICSharpCode.SharpDevelop.Workbench.AvalonWorkbenchWindow.<>c.b__29_0(IViewContent vc)
at System.Collections.Generic.List1.ForEach(Action1 action)
at ICSharpCode.SharpDevelop.Workbench.AvalonWorkbenchWindow.Dispose()
at ICSharpCode.SharpDevelop.Workbench.AvalonWorkbenchWindow.OnClosed()
at AvalonDock.DocumentContent.Close()
at ICSharpCode.SharpDevelop.Workbench.AvalonWorkbenchWindow.CloseWindow(Boolean force)
at ICSharpCode.SharpDevelop.Workbench.WpfWorkbench.CloseAllSolutionViews(Boolean force)
at ICSharpCode.SharpDevelop.Project.SDProjectService.CloseSolution(Boolean allowCancel)
at ICSharpCode.SharpDevelop.Gui.WorkbenchSingleton.OnWorkbenchUnloaded()
at ICSharpCode.SharpDevelop.Sda.CallHelper.RunWorkbenchInternal(Object settings)

---- Recent log messages:
12:53:42.850 [1] DEBUG - ActiveContentChanged to [AvalonEditViewContent c:\Users\Benutzer\Documents\PRGSOURCE\DEV_TOOLS\2014_MyProject_sharpdev\Utils\SpecializedLists.UpperCaseDictionary.cs]
12:53:43.356 [18] DEBUG - Resolved (Line 23, Col 31) to [CSharpInvocationResolveResult [Method System.String.ToUpper():System.String]]
12:53:45.991 [37] DEBUG - Resolved (Line 22, Col 50) to
12:53:46.231 [1] DEBUG - Resolved (Line 22, Col 50) to
12:53:46.231 [1] DEBUG - Resolved (Line 22, Col 50) to
12:53:57.943 [1] INFO - Debugger Command: Stop
12:53:57.967 [1] INFO - Saving layout file: C:\Users\Benutzer\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Debug.xml
12:53:57.971 [1] INFO - Loading layout file: C:\Users\Benutzer\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Default.xml, hideAllLostPads=False
12:53:58.115 [1] DEBUG - ChooseLayoutCommand.LayoutChanged(object,EventArgs)
12:53:58.115 [1] DEBUG - ChooseLayoutCommand.Run()
12:53:58.116 [1] INFO - Saving layout file: C:\Users\Benutzer\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Default.xml
12:54:20.245 [1] INFO - Loaded CodeCompletionDataUsageCache (329 items)
12:54:20.642 [1] DEBUG - ParseInformationUpdated C:\Users\Benutzer\Documents\PRGSOURCE\DEV_TOOLS\2014_MyProject_sharpdev\Utils\SpecializedLists.UpperCaseDictionary.cs (updated)
12:54:20.674 [30] DEBUG - Resolved (Line 22, Col 51) to
12:54:20.675 [1] DEBUG - Update Foldings
12:54:22.572 [1] DEBUG - ParseInformationUpdated C:\Users\Benutzer\Documents\PRGSOURCE\DEV_TOOLS\2014_MyProject_sharpdev\Utils\SpecializedLists.UpperCaseDictionary.cs (updated)
12:54:22.591 [1] DEBUG - Update Foldings
12:54:22.610 [30] DEBUG - Resolved (Line 22, Col 50) to
12:54:57.206 [1] INFO - Unloading services...
12:54:57.268 [1] DEBUG - Saving memento of '[AvalonEditViewContent c:\Users\Benutzer\Documents\PRGSOURCE\DEV_TOOLS\2014_MyProject_sharpdev\Utils\SpecializedLists.UpperCaseDictionary.cs]' to key '1e13ec5:C:\USERS\Benutzer\DOCUMENTS\PRGSOURCE\DEV_TOOLS\2014_MyProject_SHARPDEV\UTILS\SPECIALIZEDLISTS.UPPERCASEDICTIONARY.CS'
12:54:57.554 [1] DEBUG - ActiveViewContentChanged to
12:54:57.554 [1] DEBUG - ActiveContentChanged to [AvalonEditViewContent c:\Users\Benutzer\Documents\PRGSOURCE\DEV_TOOLS\2014_MyProject_sharpdev\EditObjects\CProjectDocument.cs]
12:54:57.555 [1] WARN - Exception during unloading
--> Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at MS.Internal.Data.DataBindEngine.GetDefaultValueConverter(Type sourceType, Type targetType, Boolean targetToSource)
at System.Windows.Data.BindingExpression.SetupDefaultValueConverter(Type type)
at MS.Internal.Data.ClrBindingWorker.SetupDefaultValueConverter(Type type)
at MS.Internal.Data.PropertyPathWorker.ReplaceItem(Int32 k, Object newO, Object parent)
at MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState(Int32 k, ICollectionView collectionView, Object newValue, Boolean isASubPropertyChange)
at MS.Internal.Data.PropertyPathWorker.OnDependencyPropertyChanged(DependencyObject d, DependencyProperty dp, Boolean isASubPropertyChange)
at MS.Internal.Data.ClrBindingWorker.OnSourceInvalidation(DependencyObject d, DependencyProperty dp, Boolean isASubPropertyChange)
at System.Windows.Data.BindingExpression.HandlePropertyInvalidation(DependencyObject d, DependencyPropertyChangedEventArgs args)
at System.Windows.Data.BindingExpressionBase.OnPropertyInvalidation(DependencyObject d, DependencyPropertyChangedEventArgs args)
at System.Windows.Data.BindingExpression.OnPropertyInvalidation(DependencyObject d, DependencyPropertyChangedEventArgs args)
at System.Windows.DependentList.InvalidateDependents(DependencyObject source, DependencyPropertyChangedEventArgs sourceArgs)
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
at CSharpBinding.CSharpTextEditorExtension.Detach()
at ICSharpCode.AvalonEdit.AddIn.CodeEditorAdapter.DetachExtensions()
at ICSharpCode.AvalonEdit.AddIn.CodeEditor.Dispose()
at ICSharpCode.AvalonEdit.AddIn.AvalonEditViewContent.Dispose()
at ICSharpCode.SharpDevelop.Workbench.AvalonWorkbenchWindow.<>c.b__29_0(IViewContent vc)
at System.Collections.Generic.List1.ForEach(Action1 action)
at ICSharpCode.SharpDevelop.Workbench.AvalonWorkbenchWindow.Dispose()
at ICSharpCode.SharpDevelop.Workbench.AvalonWorkbenchWindow.OnClosed()
at AvalonDock.DocumentContent.Close()
at ICSharpCode.SharpDevelop.Workbench.AvalonWorkbenchWindow.CloseWindow(Boolean force)
at ICSharpCode.SharpDevelop.Workbench.WpfWorkbench.CloseAllSolutionViews(Boolean force)
at ICSharpCode.SharpDevelop.Project.SDProjectService.CloseSolution(Boolean allowCancel)
at ICSharpCode.SharpDevelop.Gui.WorkbenchSingleton.OnWorkbenchUnloaded()
at ICSharpCode.SharpDevelop.Sda.CallHelper.RunWorkbenchInternal(Object settings)
12:54:59.191 [1] INFO - Finished running workbench.
12:54:59.191 [1] FATAL - System.NullReferenceException: Object reference not set to an instance of an object.
at MS.Internal.Data.DataBindEngine.GetDefaultValueConverter(Type sourceType, Type targetType, Boolean targetToSource)
at System.Windows.Data.BindingExpression.SetupDefaultValueConverter(Type type)
at MS.Internal.Data.ClrBindingWorker.SetupDefaultValueConverter(Type type)
at MS.Internal.Data.PropertyPathWorker.ReplaceItem(Int32 k, Object newO, Object parent)
at MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState(Int32 k, ICollectionView collectionView, Object newValue, Boolean isASubPropertyChange)
at MS.Internal.Data.PropertyPathWorker.OnDependencyPropertyChanged(DependencyObject d, DependencyProperty dp, Boolean isASubPropertyChange)
at MS.Internal.Data.ClrBindingWorker.OnSourceInvalidation(DependencyObject d, DependencyProperty dp, Boolean isASubPropertyChange)
at System.Windows.Data.BindingExpression.HandlePropertyInvalidation(DependencyObject d, DependencyPropertyChangedEventArgs args)
at System.Windows.Data.BindingExpressionBase.OnPropertyInvalidation(DependencyObject d, DependencyPropertyChangedEventArgs args)
at System.Windows.Data.BindingExpression.OnPropertyInvalidation(DependencyObject d, DependencyPropertyChangedEventArgs args)
at System.Windows.DependentList.InvalidateDependents(DependencyObject source, DependencyPropertyChangedEventArgs sourceArgs)
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
at CSharpBinding.CSharpTextEditorExtension.Detach()
at ICSharpCode.AvalonEdit.AddIn.CodeEditorAdapter.DetachExtensions()
at ICSharpCode.AvalonEdit.AddIn.CodeEditor.Dispose()
at ICSharpCode.AvalonEdit.AddIn.AvalonEditViewContent.Dispose()
at ICSharpCode.SharpDevelop.Workbench.AvalonWorkbenchWindow.<>c.b__29_0(IViewContent vc)
at System.Collections.Generic.List1.ForEach(Action1 action)
at ICSharpCode.SharpDevelop.Workbench.AvalonWorkbenchWindow.Dispose()
at ICSharpCode.SharpDevelop.Workbench.AvalonWorkbenchWindow.OnClosed()
at AvalonDock.DocumentContent.Close()
at ICSharpCode.SharpDevelop.Workbench.AvalonWorkbenchWindow.CloseWindow(Boolean force)
at ICSharpCode.SharpDevelop.Workbench.WpfWorkbench.CloseAllSolutionViews(Boolean force)
at ICSharpCode.SharpDevelop.Project.SDProjectService.CloseSolution(Boolean allowCancel)
at ICSharpCode.SharpDevelop.Gui.WorkbenchSingleton.OnWorkbenchUnloaded()
at ICSharpCode.SharpDevelop.Sda.CallHelper.RunWorkbenchInternal(Object settings)

---- Post-error application state information:
Installed 3rd party AddIns:
ProjectService.CurrentSolution: [Solution C:\Users\Benutzer\Documents\PRGSOURCE\DEV_TOOLS\2014_MyProject_sharpdev\Editor.sln with 18 projects]
ProjectService.CurrentProject: [CSharpProject: Types]
Workbench.ActiveContent: [AvalonEditViewContent c:\Users\Benutzer\Documents\PRGSOURCE\DEV_TOOLS\2014_MyProject_sharpdev\EditObjects\CProjectDocument.cs]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment