NAV client crashes without any error message

DamjanDamjan Member Posts: 94
Hi All,

our customer has some strange issue that NAV 2013 R2 client crashes for unknown reason.

I think the issue is with Page: "Interaction Log Entries" because it is opened from Page: "Contact List" where filtering is set on Table: "Interaction Log Entry", so page: Interaction Log Entries is opened with set filters as expected.
Strange issue is that user is able to sort records by clicking on column: "Validity Date" only if there are 18 records or less displayed on Page: "Interaction Log Entries", but if there are more then 18 records displayed and as user sorts on column: "Validity Date" then NAV client crashes without displaying any error.

There are 18 records displayed and user sorts on column: "Validity Date" -> the cursor changes to loading the data (cursor icon displayed with Sandtime icon) and NAV client crashes.
z5zyiscchm56.png



Funny thing is that same Page: "Interaction Log Entries" can be sorted on columns ("Validity Date", "Description", etc.) without any issues, but this time page is opened from Menu %CompanyName%/Departments/Sales & Marketing/Marketing/History/Interaction Log Entries.

- Page: "Interaction Log Entries" is displayed as expected
- user sets filter on Contact No. -> records are filtered as expected
- user sorts on column "Validity Date" -> records are sorted as expected, page remains active and NAV client works as expected
k5wf5w2ex7qw.png


There are some strange errors on EventVeiwer (errors are attached in TXT files):
Framework Version: v4.0.30319
Description: The application requested process termination through System.Environment.FailFast(string message).
Message: Binding manager cannot change state from InError to Filled.

full error logs in next thread

Thank you
BR Damjan

Best Answer

  • DamjanDamjan Member Posts: 94
    Answer ✓
    found issue in the code onOnAfterGetCurrRecord.

Answers

  • DamjanDamjan Member Posts: 94
    Error logs:
    Log Name: Application
    Source: Application Error
    Date: 08.06.2021 18:02:59
    Event ID: 1000
    Task Category: (100)
    Level: Error
    Keywords: Classic
    User: N/A
    Computer: FB-IT-DZ.WK.local
    Description:
    Faulting application name: Microsoft.Dynamics.Nav.Client.exe, version: 7.1.38053.0, time stamp: 0x542481ea
    Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
    Exception code: 0x80131623
    Fault offset: 0x121cf239
    Faulting process id: 0x5f74
    Faulting application start time: 0x01d75c7f710ac7ab
    Faulting application path: C:\Program Files (x86)\Microsoft Dynamics NAV\71\RoleTailored Client\Microsoft.Dynamics.Nav.Client.exe
    Faulting module path: unknown
    Report Id: de46c4f1-bf22-4539-b287-6d228369022b
    Faulting package full name:
    Faulting package-relative application ID:
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"&gt;
    <System>
    <Provider Name="Application Error" />
    <EventID Qualifiers="0">1000</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>100</Task>
    <Opcode>0</Opcode>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2021-06-08T16:02:59.6408502Z" />
    <EventRecordID>13901</EventRecordID>
    <Correlation />
    <Execution ProcessID="0" ThreadID="0" />
    <Channel>Application</Channel>
    <Computer>FB-IT-DZ.WK.local</Computer>
    <Security />
    </System>
    <EventData>
    <Data>Microsoft.Dynamics.Nav.Client.exe</Data>
    <Data>7.1.38053.0</Data>
    <Data>542481ea</Data>
    <Data>unknown</Data>
    <Data>0.0.0.0</Data>
    <Data>00000000</Data>
    <Data>80131623</Data>
    <Data>121cf239</Data>
    <Data>5f74</Data>
    <Data>01d75c7f710ac7ab</Data>
    <Data>C:\Program Files (x86)\Microsoft Dynamics NAV\71\RoleTailored Client\Microsoft.Dynamics.Nav.Client.exe</Data>
    <Data>unknown</Data>
    <Data>de46c4f1-bf22-4539-b287-6d228369022b</Data>
    <Data>
    </Data>
    <Data>
    </Data>
    </EventData>
    </Event>
  • DamjanDamjan Member Posts: 94
    Log Name: Application
    Source: MicrosoftDynamicsNAVClient
    Date: 08.06.2021 18:02:59
    Event ID: 0
    Task Category: None
    Level: Error
    Keywords: Classic
    User: N/A
    Computer: FB-IT-DZ.WK.local
    Description:
    Type: System.InvalidOperationException
    Message: Binding manager cannot change state from InError to Filled.
    StackTrace:
    at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.<>c__DisplayClass6.<DoRethrowWithCatchException>b__4()
    at Microsoft.Dynamics.Nav.Client.WinClient.NavClientErrorHandler.ExecuteAndCatchExceptions(Func`1 execute)
    at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.DoExecute(Func`1 execute)
    at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.DoRethrowWithCatchException(Exception exception, Boolean designMode)
    Source: Microsoft.Dynamics.Nav.Client.WinClient
    HResult: -2146233079
    Type: System.InvalidOperationException
    Message: Binding manager cannot change state from InError to Filled.
    StackTrace:
    at Microsoft.Dynamics.Framework.UI.BindingManager.set_State(BindingManagerState value)
    at Microsoft.Dynamics.Framework.UI.BindingManager.ChangeStateToFilled()
    at Microsoft.Dynamics.Framework.UI.BindingManager.DoFill(DataReaderFillOptions fillOptions)
    at Microsoft.Dynamics.Framework.UI.BindingManager.Fill(BindingManagerFillOptions options)
    at Microsoft.Dynamics.Framework.UI.BindingManagerDataRefresher.RefreshData()
    at Microsoft.Dynamics.Framework.UI.SortingController.TryRefreshing()
    at Microsoft.Dynamics.Framework.UI.SortingController.ApplySorting(SortOrder sortOrder, IEnumerable`1 columnsToSort)
    at Microsoft.Dynamics.Framework.UI.WinForms.GridColumnSortingController.ColumnAdapterOnSortClicked(Object sender, EventArgs eventArgs)
    at Microsoft.Dynamics.Framework.UI.WinForms.GridColumnControlAdapter.RaiseSortClicked()
    at Microsoft.Dynamics.Framework.UI.WinForms.GridColumnControlAdapter.OnHeaderCellSortClicked(Object sender, EventArgs eventArgs)
    at Microsoft.Dynamics.Framework.UI.WinForms.Controls.BusinessGridViewColumnHeaderCell.RaiseSortClicked()
    at Microsoft.Dynamics.Framework.UI.WinForms.Controls.BusinessGridViewColumnHeaderCell.OnClick(DataGridViewCellEventArgs e)
    at System.Windows.Forms.DataGridView.OnCellClick(DataGridViewCellEventArgs e)
    at Microsoft.Dynamics.Framework.UI.WinForms.Controls.BusinessGridView.OnCellClick(DataGridViewCellEventArgs e)
    at System.Windows.Forms.DataGridView.OnMouseClick(MouseEventArgs e)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.DataGridView.WndProc(Message& m)
    at Microsoft.Dynamics.Framework.UI.WinForms.Controls.BusinessGridView.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    Source: Microsoft.Dynamics.Framework.UI
    HResult: -2146233079

    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"&gt;
    <System>
    <Provider Name="MicrosoftDynamicsNAVClient" />
    <EventID Qualifiers="0">0</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2021-06-08T16:02:59.2552426Z" />
    <EventRecordID>13900</EventRecordID>
    <Correlation />
    <Execution ProcessID="0" ThreadID="0" />
    <Channel>Application</Channel>
    <Computer>FB-IT-DZ.WK.local</Computer>
    <Security />
    </System>
    <EventData>
    <Data>Type: System.InvalidOperationException
    Message: Binding manager cannot change state from InError to Filled.
    StackTrace:
    at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.<>c__DisplayClass6.<DoRethrowWithCatchException>b__4()
    at Microsoft.Dynamics.Nav.Client.WinClient.NavClientErrorHandler.ExecuteAndCatchExceptions(Func`1 execute)
    at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.DoExecute(Func`1 execute)
    at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.DoRethrowWithCatchException(Exception exception, Boolean designMode)
    Source: Microsoft.Dynamics.Nav.Client.WinClient
    HResult: -2146233079
    Type: System.InvalidOperationException
    Message: Binding manager cannot change state from InError to Filled.
    StackTrace:
    at Microsoft.Dynamics.Framework.UI.BindingManager.set_State(BindingManagerState value)
    at Microsoft.Dynamics.Framework.UI.BindingManager.ChangeStateToFilled()
    at Microsoft.Dynamics.Framework.UI.BindingManager.DoFill(DataReaderFillOptions fillOptions)
    at Microsoft.Dynamics.Framework.UI.BindingManager.Fill(BindingManagerFillOptions options)
    at Microsoft.Dynamics.Framework.UI.BindingManagerDataRefresher.RefreshData()
    at Microsoft.Dynamics.Framework.UI.SortingController.TryRefreshing()
    at Microsoft.Dynamics.Framework.UI.SortingController.ApplySorting(SortOrder sortOrder, IEnumerable`1 columnsToSort)
    at Microsoft.Dynamics.Framework.UI.WinForms.GridColumnSortingController.ColumnAdapterOnSortClicked(Object sender, EventArgs eventArgs)
    at Microsoft.Dynamics.Framework.UI.WinForms.GridColumnControlAdapter.RaiseSortClicked()
    at Microsoft.Dynamics.Framework.UI.WinForms.GridColumnControlAdapter.OnHeaderCellSortClicked(Object sender, EventArgs eventArgs)
    at Microsoft.Dynamics.Framework.UI.WinForms.Controls.BusinessGridViewColumnHeaderCell.RaiseSortClicked()
    at Microsoft.Dynamics.Framework.UI.WinForms.Controls.BusinessGridViewColumnHeaderCell.OnClick(DataGridViewCellEventArgs e)
    at System.Windows.Forms.DataGridView.OnCellClick(DataGridViewCellEventArgs e)
    at Microsoft.Dynamics.Framework.UI.WinForms.Controls.BusinessGridView.OnCellClick(DataGridViewCellEventArgs e)
    at System.Windows.Forms.DataGridView.OnMouseClick(MouseEventArgs e)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.DataGridView.WndProc(Message& m)
    at Microsoft.Dynamics.Framework.UI.WinForms.Controls.BusinessGridView.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    Source: Microsoft.Dynamics.Framework.UI
    HResult: -2146233079
    </Data>
    </EventData>
    </Event>
  • DamjanDamjan Member Posts: 94
    Log Name: Application
    Source: .NET Runtime
    Date: 08.06.2021 18:02:59
    Event ID: 1025
    Task Category: None
    Level: Error
    Keywords: Classic
    User: N/A
    Computer: FB-IT-DZ.WK.local
    Description:
    Application: Microsoft.Dynamics.Nav.Client.exe
    Framework Version: v4.0.30319
    Description: The application requested process termination through System.Environment.FailFast(string message).
    Message: Binding manager cannot change state from InError to Filled.
    Stack:
    at System.Environment.FailFast(System.String)
    at Microsoft.Dynamics.Nav.Client.WinClient.StartWinFormsClient.HandleGeneralException(System.Exception)
    at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.DoRethrowWithCatchException(System.Exception, Boolean)
    at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.DoHandleThreadException(System.Exception, Boolean)
    at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.WinFormsDispatcherUnhandledException(System.Object, Microsoft.Dynamics.Framework.UI.DispatcherUnhandledExceptionEventArgs)
    at Microsoft.Dynamics.Framework.UI.WinForms.WinFormsDispatcher.HandleDispatcherException(System.Object, System.Exception)
    at Microsoft.Dynamics.Framework.UI.WinForms.WinFormsDispatcher.OnThreadException(System.Object, System.Threading.ThreadExceptionEventArgs)
    at System.Windows.Forms.Application+ThreadContext.OnThreadException(System.Exception)
    at System.Windows.Forms.Control.WndProcException(System.Exception)
    at System.Windows.Forms.Control+ControlNativeWindow.OnThreadException(System.Exception)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
    at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef)
    at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)
    at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
    at System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
    at Microsoft.Dynamics.Nav.Client.WinClient.NavWinFormsClientSession.RunMessagePump()
    at Microsoft.Dynamics.Nav.Client.WinClient.NavWinFormsClientSession.RunCore()
    at Microsoft.Dynamics.Framework.UI.Windows.ClientSessionBase.Run()
    at Microsoft.Dynamics.Nav.Client.WinClient.NavClientErrorHandler.ExecuteAndCatchExceptions(System.Func`1<Int32>)
    at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.DoExecute(System.Func`1<Int32>)
    at Microsoft.Dynamics.Nav.Client.WinClient.StartWinFormsClient.RunCore()
    at Microsoft.Dynamics.Nav.Client.WinClient.StartWinFormsClient.Run(Boolean)
    at Microsoft.Dynamics.Nav.Client.WinClient.StartWinFormsClient.RunAndDispose()
    at Microsoft.Dynamics.Nav.Client.Program.ExecuteNormally(System.Func`1<Int32>)
    at Microsoft.Dynamics.Nav.Client.Program.Main(System.String[])

    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"&gt;
    <System>
    <Provider Name=".NET Runtime" />
    <EventID Qualifiers="0">1025</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2021-06-08T16:02:59.2542377Z" />
    <EventRecordID>13899</EventRecordID>
    <Correlation />
    <Execution ProcessID="0" ThreadID="0" />
    <Channel>Application</Channel>
    <Computer>FB-IT-DZ.WK.local</Computer>
    <Security />
    </System>
    <EventData>
    <Data>Application: Microsoft.Dynamics.Nav.Client.exe
    Framework Version: v4.0.30319
    Description: The application requested process termination through System.Environment.FailFast(string message).
    Message: Binding manager cannot change state from InError to Filled.
    Stack:
    at System.Environment.FailFast(System.String)
    at Microsoft.Dynamics.Nav.Client.WinClient.StartWinFormsClient.HandleGeneralException(System.Exception)
    at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.DoRethrowWithCatchException(System.Exception, Boolean)
    at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.DoHandleThreadException(System.Exception, Boolean)
    at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.WinFormsDispatcherUnhandledException(System.Object, Microsoft.Dynamics.Framework.UI.DispatcherUnhandledExceptionEventArgs)
    at Microsoft.Dynamics.Framework.UI.WinForms.WinFormsDispatcher.HandleDispatcherException(System.Object, System.Exception)
    at Microsoft.Dynamics.Framework.UI.WinForms.WinFormsDispatcher.OnThreadException(System.Object, System.Threading.ThreadExceptionEventArgs)
    at System.Windows.Forms.Application+ThreadContext.OnThreadException(System.Exception)
    at System.Windows.Forms.Control.WndProcException(System.Exception)
    at System.Windows.Forms.Control+ControlNativeWindow.OnThreadException(System.Exception)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
    at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef)
    at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)
    at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
    at System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
    at Microsoft.Dynamics.Nav.Client.WinClient.NavWinFormsClientSession.RunMessagePump()
    at Microsoft.Dynamics.Nav.Client.WinClient.NavWinFormsClientSession.RunCore()
    at Microsoft.Dynamics.Framework.UI.Windows.ClientSessionBase.Run()
    at Microsoft.Dynamics.Nav.Client.WinClient.NavClientErrorHandler.ExecuteAndCatchExceptions(System.Func`1<Int32>)
    at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.DoExecute(System.Func`1<Int32>)
    at Microsoft.Dynamics.Nav.Client.WinClient.StartWinFormsClient.RunCore()
    at Microsoft.Dynamics.Nav.Client.WinClient.StartWinFormsClient.Run(Boolean)
    at Microsoft.Dynamics.Nav.Client.WinClient.StartWinFormsClient.RunAndDispose()
    at Microsoft.Dynamics.Nav.Client.Program.ExecuteNormally(System.Func`1<Int32>)
    at Microsoft.Dynamics.Nav.Client.Program.Main(System.String[])
    </Data>
    </EventData>
    </Event>
  • DamjanDamjan Member Posts: 94
    Answer ✓
    found issue in the code onOnAfterGetCurrRecord.
Sign In or Register to comment.