Crashes from profile editor

Discussions about Diving Log 6.0 - questions and hints
Post Reply
Tow Mater
Posts: 1
Joined: Mon Nov 21, 2022 07:33

Crashes from profile editor

Post by Tow Mater »

When attempting to edit a dive profile, if I delete a section of the dive (say surface portion at end of dive using click-drag to select that portion of the dive) then again delete a little more from the profile (say another piece of the surface portion at the end), Diving Log 6 presents an error box claiming an unhandled exception, with the following details:
System.NullReferenceException: Object reference not set to an instance of an object.

at Divinglog.frmProfileEditor.Grid1_CustomColumnDisplayText(Object sender, CustomColumnDisplayTextEventArgs e)
at DevExpress.Xpf.Grid.GridControl.RaiseCustomDisplayTextCore(CustomColumnDisplayTextEventArgs e)
at DevExpress.Xpf.Grid.GridControl.RaiseCustomDisplayText(Nullable`1 rowHandle, Nullable`1 listSourceIndex, ColumnBase column, Object value, String displayText)
at DevExpress.Xpf.Grid.GridControl.RaiseCustomDisplayText(Nullable`1 rowHandle, Nullable`1 listSourceIndex, ColumnBase column, Object value, String originalDisplayText, String& displayText)
at DevExpress.Xpf.Grid.GridViewBase.RaiseCustomDisplayText(Nullable`1 rowHandle, Nullable`1 listSourceIndex, ColumnBase column, Object value, String originalDisplayText, String& displayText)
at DevExpress.Xpf.Grid.Native.GridViewInplaceEditorOwner.GetDisplayText(InplaceEditorBase inplaceEditor, String originalDisplayText, Object value, String& displayText)
at DevExpress.Xpf.Editors.InplaceEditorBase.DevExpress.Xpf.Editors.IDisplayTextProvider.GetDisplayText(String originalDisplayText, Object value, String& displayText)
at DevExpress.Xpf.Editors.InplaceBaseEdit.CalcDisplayText(Object value, String valueText)
at DevExpress.Xpf.Editors.InplaceBaseEdit.AssignTextBlockValues()
at DevExpress.Xpf.Editors.InplaceBaseEdit.AssignValues()
at DevExpress.Xpf.Editors.InplaceBaseEdit.DevExpress.Xpf.Editors.IBaseEdit.UpdateDisplayText()
at DevExpress.Xpf.Grid.GridCellData.UpdateValue(Boolean forceUpdate)
at DevExpress.Xpf.Grid.GridDataBase.OnDataChanged()
at DevExpress.Xpf.Grid.GridColumnData.OnDataChanged()
at DevExpress.Xpf.Grid.CellEditorBase.UpdateEditorDataContext()
at DevExpress.Xpf.Editors.InplaceEditorBase.UpdateContent(Boolean updateDisplayTemplate)
at DevExpress.Xpf.Grid.CellEditorBase.UpdateContent(Boolean updateDisplayTemplate)
at DevExpress.Xpf.Editors.InplaceEditorBase.OnOwnerChanged(IInplaceEditorColumn oldValue)
at DevExpress.Xpf.Grid.CellEditorBase.OnColumnChanged(ColumnBase oldValue, ColumnBase newValue)
at DevExpress.Xpf.Grid.LightweightCellEditor.OnColumnChanged(ColumnBase oldValue, ColumnBase newValue)
at DevExpress.Xpf.Grid.CellEditorBase.<.cctor>b__2(DependencyObject d, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at DevExpress.Xpf.Core.DataContentPresenter.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
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 DevExpress.Xpf.Grid.CellsControl.ValidateElementCore(FrameworkElement element, GridCellData cellData)
at DevExpress.Xpf.Grid.CellItemsControlBase.ValidateElement(FrameworkElement element, Object item)
at DevExpress.Xpf.Core.CachedItemsControl.ValidateVisualTree()
at DevExpress.Xpf.Grid.CellItemsControlBase.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
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.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget)
at System.Windows.Interop.HwndTarget.OnResize()
at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(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 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Diving Log Version: 6.0.26.0
Windows Version: Windows 10 (21H2 | Build 19044)
Upon hitting close on the error box the Diving Log program closes. It can then be restarted from where it was. Doesn't seem to matter if I hit "apply changes" or not after deleting the first portion from the dive profile.

If I hit apply changes, close the profile editor, then go back into it, I can delete another portion of the dive without generating the error.
divinglog
Site Admin
Posts: 5606
Joined: Sat Feb 08, 2003 21:02
Location: Coburg
Contact:

Re: Crashes from profile editor

Post by divinglog »

Thank you for the information, I try to reproduce and fix this bug!
Post Reply