SBX - Search With Button

SBX - Forum Post Title

Nav Client crashing after being minimized on laptops with docking stations

Microsoft Dynamics NAV Forum

Paul Bishop asked a question on 10 Oct 2018 5:28 AM

Question Status

Suggested Answer

We are having an issue with some of our machines where the NAV client crashes after it is either minimised or not in focus for a period.

This issue only seems to be our laptops with docking stations.

When the Nav window is tried to be re-focused you see the processing circle followed by the application closing with the following 3 entries in the application event log.

Log Name: Application
Source: MicrosoftDynamicsNAVClient
Date: 10/10/2018 11:10:21
Event ID: 0
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: 
Description:
Type: System.ArgumentException
Message: <ii>Value does not fall within the expected range.</ii>

StackTrace:
at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.<>c__DisplayClass11_0.<DoRethrowWithCatchException>b__0()
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: -2147024809

----------------------------------
Type: System.ArgumentException
Message: <ii>Value does not fall within the expected range.</ii>
StackTrace:
at Microsoft.WindowsAPICodePack.Taskbar.TabbedThumbnailNativeMethods.SetIconicThumbnail(IntPtr hwnd, IntPtr hBitmap)
at Microsoft.Dynamics.Framework.UI.WinForms.FormWindow.SetThumbnail(Bitmap bitmap)
at Microsoft.Dynamics.Framework.UI.WinForms.FormWindow.OnDwmSendIconicThumbnail(Size requestedSize)
at Microsoft.Dynamics.Framework.UI.WinForms.FormWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Source: Microsoft.Dynamics.Framework.UI.WinForms
HResult: -2147024809

Log Name: Application
Source: .NET Runtime
Date: 10/10/2018 11:10:21
Event ID: 1025
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: 
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: Value does not fall within the expected range.

Stack:
at System.Environment.FailFast(System.String)
at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.DoRethrowWithCatchException(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 System.Windows.Forms.Application+ThreadContext.OnThreadException(System.Exception)
at System.Windows.Forms.Control.WndProcException(System.Exception)
at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.NativeWindow.DefWndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef)
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.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.Program.Main(System.String[])

Log Name: Application
Source: Application Error
Date: 10/10/2018 11:10:21
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: 
Description:
Faulting application name: Microsoft.Dynamics.Nav.Client.exe, version: 10.0.13682.0, time stamp: 0x580f9fe5
Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0x80131623
Fault offset: 0x00007ffec5ab6c86
Faulting process ID: 0x3908
Faulting application start time: 0x01d4607f13ba77dc
Faulting application path: C:\Program Files (x86)\Microsoft Dynamics NAV\100\RoleTailored Client\Microsoft.Dynamics.Nav.Client.exe
Faulting module path: unknown
Report ID: 38caf6d7-bb96-4d07-a741-9aed09045bf7
Faulting package full name:
Faulting package-relative application ID:

Reply
Raheel Khan responded on 11 Oct 2018 5:54 AM
My Badges
Suggested Answer

Hi Paul Bishop,

Hope you fine!

I'll recommend you to install a fresh client.

Reply
Manish Sharma responded on 12 Oct 2018 7:58 AM
My Badges

Are you using some kind of session killer for applications.

Reply
Alexander Ermakov responded on 12 Oct 2018 8:18 AM
My Badges
Suggested Answer

Do you have any customizations applied, especially any web-services that are periodically used by users?

Reply
Paul Bishop responded on 12 Oct 2018 8:25 AM

Hi All,

Thanks for the updates so far:

The issue occurs on a fresh windows 10 install with just the Navision Client installed in this configuration

The issue is "resolved" by disconnecting the external screens - this ofc isn't a solution as the users want to use multiple screens.

We don't have any session killing setup

In this test state we are not even using any AV other than Windows Defender.

The issue does seem to be related to the application loosing track of what screen to display on - the latest Intel gfx drivers are installed.

Reply
cherabomb responded on 15 Oct 2018 7:32 AM

Hi All,

We are running NAV 2018 CU04 On-Premise and have the same problem with one of our RTC clients. The problem seems to be caused by the Dell D6000 Docking Station. As described above, when we unplug the second monitor from the docking station NAV behaves normally, but with both monitors plugged into the D6000 we have the problem and log entries exactly as described above.

We are using the D6000 with driver 8.5.3361.0 and Intel UHD Graphics 620 with driver 23.20.16.4973

Please let us know any solutions you find.

Reply
cherabomb responded on 16 Oct 2018 8:13 AM
Suggested Answer

We updated the display drivers on the machine and the problems stopped.

Reply
Suresh Kulla responded on 16 Oct 2018 9:08 AM
Suggested Answer

Another thing you coulld try  chaning the DPI Settings on the application on the Comptability Tab of the properties window.

Reply
Raheel Khan responded on 11 Oct 2018 5:54 AM
My Badges
Suggested Answer

Hi Paul Bishop,

Hope you fine!

I'll recommend you to install a fresh client.

Reply
Alexander Ermakov responded on 12 Oct 2018 8:18 AM
My Badges
Suggested Answer

Do you have any customizations applied, especially any web-services that are periodically used by users?

Reply
cherabomb responded on 16 Oct 2018 8:13 AM
Suggested Answer

We updated the display drivers on the machine and the problems stopped.

Reply
Suresh Kulla responded on 16 Oct 2018 9:08 AM
Suggested Answer

Another thing you coulld try  chaning the DPI Settings on the application on the Comptability Tab of the properties window.

Reply

SBX - Two Col Forum

SBX - Migrated JS