Dynamics AX 2012 R3 CU13 client stop working Crashing

Dynamics AX 2012 R3 Cu13 with 2 AOS. One dedicated to batch.
We have an average of 100 daily users.

For several months now the AX clients of all users have been unexpectedly closed randomly for no apparent reason.
A user can experience 0 or several closures in the same day
The crash can be in the middle of a post, a query, just by having the client open without doing anything, etc.

After spending a long time researching I have not been able to know why.
A few weeks ago I asked Microsoft for support and after reviewing the requested data, including a dump file, the Microsoft technician indicates that the problem is not with AX, that it is with .NET Framework and that I have to open a new support ticket with the .NET Framework department.
We have just changed AX partner and the new one seems to be having trouble opening the support ticket.
While I'm still investigating, but I need someone to help me.
I can't interpret the analysis of the DUMP file to see what might be happening.

I attach the analysis that I have performed with WinDbg


Please, can you help me?

Thanks in advance

AX Crash Analisys.txt
Microsoft (R) Windows Debugger Version 10.0.19041.685 X86
Copyright (c) Microsoft Corporation. All rights reserved.


Loading Dump File [D:\tmp\AXlog\Ax32.exe.14488.dmp]
User Mini Dump File with Full Memory: Only application data is available

Symbol search path is: srv*
Executable search path is: 
Windows 10 Version 18362 MP (4 procs) Free x86 compatible
Product: WinNt, suite: SingleUserTS
18362.239.x86fre.19h1_release_svc_prod1.190628-1641
Machine Name:
Debug session time: Fri Feb 12 11:51:22.000 2021 (UTC + 1:00)
System Uptime: 9 days 3:07:50.727
Process Uptime: 0 days 18:15:07.000
................................................................
................................................................
................................................................
.................................................
Loading unloaded module list
................................................................
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(3898.26ac): Access violation - code c0000005 (first/second chance not available)
For analysis of this file, run !analyze -v
eax=03a0043c ebx=00004000 ecx=5de90000 edx=ffffffff esi=03edf3b0 edi=03a014d0
eip=72e54e0a esp=03a0143c ebp=03a01440 iopl=0         nv up ei pl nz na pe nc
cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00010206
clr!DontCallDirectlyForceStackOverflow+0x12:
72e54e0a 832000          and     dword ptr [eax],0    ds:002b:03a0043c=????????
0:000> !analyze -v
*******************************************************************************
*                                                                             *
*                        Exception Analysis                                   *
*                                                                             *
*******************************************************************************

*** WARNING: Unable to verify checksum for WindowsBase.ni.dll
*** WARNING: Unable to verify checksum for System.Windows.Forms.ni.dll
Failed to request MethodData, not in JIT code range

KEY_VALUES_STRING: 1

    Key  : AV.Fault
    Value: Write

    Key  : Analysis.CPU.Sec
    Value: 157

    Key  : Analysis.DebugAnalysisProvider.CPP
    Value: Create: 8007007e on UHS0899

    Key  : Analysis.DebugData
    Value: CreateObject

    Key  : Analysis.DebugModel
    Value: CreateObject

    Key  : Analysis.Elapsed.Sec
    Value: 171

    Key  : Analysis.Memory.CommitPeak.Mb
    Value: 298

    Key  : Analysis.System
    Value: CreateObject

    Key  : CLR.Engine
    Value: CLR

    Key  : CLR.Version
    Value: 4.0.30319.0

    Key  : Timeline.OS.Boot.DeltaSec
    Value: 788870

    Key  : Timeline.Process.Start.DeltaSec
    Value: 65707


NTGLOBALFLAG:  0

PROCESS_BAM_CURRENT_THROTTLED: 0

PROCESS_BAM_PREVIOUS_THROTTLED: 0

APPLICATION_VERIFIER_FLAGS:  0

CONTEXT:  03bfd9cc -- (.cxr 0x3bfd9cc)
eax=00000000 ebx=01bb04a8 ecx=01bb04a8 edx=00000000 esi=01bb04a8 edi=01bb04e8
eip=0141cbc0 esp=03bfdeac ebp=03bfdeb0 iopl=0         nv up ei pl nz na pe nc
cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00010206
Ax32!std::_Tree<std::_Tmap_traits<formMessageSecurityRule::Message,formMessageSecurityRule *,std::less<formMessageSecurityRule::Message>,std::allocator<std::pair<formMessageSecurityRule::Message const ,formMessageSecurityRule *> >,0> >::_Lbound+0x7:
0141cbc0 8b7004          mov     esi,dword ptr [eax+4] ds:002b:00000004=????????
Resetting default scope

EXCEPTION_RECORD:  03bfd97c -- (.exr 0x3bfd97c)
ExceptionAddress: 0141cbc0 (Ax32!std::_Tree<std::_Tmap_traits<formMessageSecurityRule::Message,formMessageSecurityRule *,std::less<formMessageSecurityRule::Message>,std::allocator<std::pair<formMessageSecurityRule::Message const ,formMessageSecurityRule *> >,0> >::_Lbound+0x00000007)
   ExceptionCode: c0000005 (Access violation)
  ExceptionFlags: 00000000
NumberParameters: 2
   Parameter[0]: 00000000
   Parameter[1]: 00000004
Attempt to read from address 00000004

PROCESS_NAME:  Ax32.exe

WRITE_ADDRESS:  03a0043c 

ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%p referenced memory at 0x%p. The memory could not be %s.

EXCEPTION_CODE_STR:  c0000005

EXCEPTION_PARAMETER1:  00000001

EXCEPTION_PARAMETER2:  03a0043c

MISSING_CLR_SYMBOL: 0

RECURRING_STACK: From frames 0x9 to 0xd

FAULTING_THREAD:  ffffffff

STACK_TEXT:  
03bfdeac 0141cbc0 Ax32!std::_Tree<std::_Tmap_traits<formMessageSecurityRule::Message,formMessageSecurityRule *,std::less<formMessageSecurityRule::Message>,std::allocator<std::pair<formMessageSecurityRule::Message const ,formMessageSecurityRule *> >,0> >::_Lbound+0x7
03bfdeb8 0141e69b Ax32!std::_Tree<std::_Tmap_traits<formMessageSecurityRule::Message,formMessageSecurityRule *,std::less<formMessageSecurityRule::Message>,std::allocator<std::pair<formMessageSecurityRule::Message const ,formMessageSecurityRule *> >,0> >::lower_bound+0xc
03bfdec8 0141efa3 Ax32!std::_Tree<std::_Tmap_traits<formMessageSecurityRule::Message,formMessageSecurityRule *,std::less<formMessageSecurityRule::Message>,std::allocator<std::pair<formMessageSecurityRule::Message const ,formMessageSecurityRule *> >,0> >::find+0x15
03bfdeec 0141f589 Ax32!formMessageSecurity::DoMessageSecurity+0x4a
03bfdf34 01063610 Ax32!AxWnd::AxWndBase::ProcessViaMSGInterface+0x21
03bfe0a8 011ca960 Ax32!AxManagedWindowBase::ProcessWindowMessage+0x18
03bfe0b8 0106b6cc Ax32!ATL::CWindowImplBaseT<ATL::CWindow,ATL::CWinTraits<1442840576,0> >::WindowProc+0x44
03bfe108 76f847ab user32!_InternalCallWinProc+0x2b
03bfe134 76f652ac user32!UserCallWinProcCheckWow+0x3ac
03bfe218 76f64e4a user32!DispatchClientMessage+0xea
03bfe27c 76f6e4cf user32!__fnDWORD+0x3f
03bfe2b8 77d3537d ntdll!KiUserCallbackDispatcher+0x4d
03bfe2f0 75842bac win32u!NtUserPeekMessage+0xc
03bfe2f4 76f6a2ae user32!_PeekMessage+0x2e
03bfe348 76f6a220 user32!PeekMessageW+0x160
03bfe384 755d8797 combase!CCliModalLoop::MyPeekMessage+0x31
03bfe3dc 755d8642 combase!CCliModalLoop::HandlePendingMessage+0xad
03bfe420 755d8448 combase!CCliModalLoop::HandleWakeForMsg+0x57
03bfe480 755e3f1f combase!CCliModalLoop::BlockFn+0x26f
03bfe4ec 7564bf74 combase!ClassicSTAThreadWaitForHandles+0xb4
03bfe5a8 755da267 combase!CoWaitForMultipleHandles+0x77
03bfe5d4 72a35e0e clr!MsgWaitHelper+0x64
03bfe628 72a35d9e clr!Thread::DoAppropriateWaitWorker+0x1d8
03bfe6ac 72a941de clr!Thread::DoAppropriateWait+0x64
03bfe718 72a94327 clr!CLREventBase::WaitEx+0x121
03bfe764 729a333b clr!CLREventBase::Wait+0x1a
03bfe77c 72b46769 clr!WaitForEndOfShutdown_OneIteration+0x81
03bfe7f0 72b467cb clr!WaitForEndOfShutdown+0x1b
03bfe7f8 72b50062 clr!EEShutDown+0xad
03bfe838 72b3c60e clr!HandleExitProcessHelper+0x4d
03bfe844 72b3c66b clr!EEPolicy::HandleExitProcess+0x50
03bfe858 72b4ff19 clr!ForceEEShutdown+0x31
03bfe868 72b4ff6c clr!ExternalShutdownHelper+0x4f
03bfe878 72b4ff7f clr!ShutdownRuntimeWithoutExiting+0xf
03bfe884 7326cfc9 mscoreei!RuntimeDesc::ShutdownAllActiveRuntimes+0x12e
03bfeb04 73280c67 mscoreei!CorExitProcess+0x27
03bfeb10 73421c66 mscoree!ShellShim_CorExitProcess+0xa6
03bfeb24 668121ae msvcr90!__crtCorExitProcess+0x29
03bfeb30 6681232a msvcr90!doexit+0x24
03bfeb74 66812481 msvcr90!_exit+0x11
03bfeb88 00e0993f Ax32!axExit+0xc
03bfeb94 00f2c211 Ax32!HandleRpcException+0x10e
03bfebbc 00f4f9a1 Ax32!utilElement::Srv_versionOk+0x126
03bfec48 00d5cd98 Ax32!utilElement::versionOk+0x28
03bfed14 00dc4197 Ax32!processNode::versionOk+0x3c
03bfed1c 00dc444a Ax32!processNode::refresh+0x100
03bfed28 010975bf Ax32!ttdemon::nextOperation+0x2b
03bfed30 010975db Ax32!demonTimerTask+0x14
03bfed3c 00fa72f6 Ax32!xalTimerEvent::timerBgTaskRun+0x65
03bfed70 00fe60f8 Ax32!xApp::timerBgTaskRun+0xd
03bfed78 00fecd42 Ax32!AxWnd::AxMainFrame::OnXMTimer+0x22
03bfed98 00fecf47 Ax32!AxWnd::AxMainFrame::ProcessWindowMessage+0xcf
03bfedc0 00fed253 Ax32!WTL::CMDIFrameWindowImpl<AxWnd::AxMainFrame,WTL::CMDIWindow,ATL::CWinTraits<114229248,262400> >::MDIFrameWindowProc+0x46
03bfee0c 76f847ab user32!_InternalCallWinProc+0x2b
03bfee38 76f652ac user32!UserCallWinProcCheckWow+0x3ac
03bfef1c 76f647ff user32!CallWindowProcW+0x7f
03bfef54 01210391 Ax32!ATL::CContainedWindowT<ATL::CWindow,ATL::CWinTraits<1442840576,0> >::DefWindowProcW+0x17
03bfef70 01210626 Ax32!ATL::CContainedWindowT<ATL::CWindow,ATL::CWinTraits<1442840576,0> >::WindowProc+0x7f
03bfefb4 76f847ab user32!_InternalCallWinProc+0x2b
03bfefe0 76f652ac user32!UserCallWinProcCheckWow+0x3ac
03bff0c4 76f643fe user32!DispatchMessageWorker+0x20e
03bff138 76f641e0 user32!DispatchMessageW+0x10
03bff144 01071256 Ax32!AxWnd::AxApp::go+0x187
03bff178 01071e1b Ax32!AxWnd::AxApp::main+0x101
03bff1b0 00e29ac2 Ax32!wWinMain+0x14
03bff1c8 00d0d944 Ax32!__tmainCRTStartup+0x150
03bff25c 04111276 unknown!unknown+0x0
03bff290 7298f036 clr!CallDescrWorkerInternal+0x34
03bff29c 729922da clr!CallDescrWorkerWithHandler+0x6b
03bff2f0 7299859b clr!MethodDescCallSite::CallTargetWorker+0x16a
03bff360 72b192d7 clr!RunMain+0x19d
03bff484 72b3b7fa clr!Assembly::ExecuteMainMethod+0xf7
03bff6f0 72b3b727 clr!SystemDomain::ExecuteMainMethod+0x5ef
03bffbd4 72b3b8a8 clr!ExecuteEXE+0x4c
03bffc2c 72b3b9ce clr!_CorExeMainInternal+0xdc
03bffc6c 72b37305 clr!_CorExeMain+0x4d
03bffca8 7325fa84 mscoreei!_CorExeMain+0xd6
03bffce0 7341e80e mscoree!ShellShim__CorExeMain+0x9e
03bffcf0 73424338 mscoree!_CorExeMain_Exported+0x8
03bffcf8 768a6359 kernel32!BaseThreadInitThunk+0x19
03bffd08 77d28944 ntdll!__RtlUserThreadStart+0x2f
03bffd64 77d28914 ntdll!_RtlUserThreadStart+0x1b


SYMBOL_NAME:  Ax32!std::_Tree<std::_Tmap_traits<formMessageSecurityRule::Message,formMessageSecurityRule *,std::less<formMessageSecurityRule::Message>,std::allocator<std::pair<formMessageSecurityRule::Message const ,formMessageSecurityRule *> >,0> >::_Lbound+7

MODULE_NAME: Ax32

IMAGE_NAME:  Ax32.exe

STACK_COMMAND:  .cxr 3bfd9cc ; kb ; ** Pseudo Context ** Pseudo ** Value: 1c2bb0b8 ** ; kb

FAILURE_BUCKET_ID:  STACK_OVERFLOW_EXH_c0000005_Ax32.exe!std::_Tree_std::_Tmap_traits_formMessageSecurityRule::Message,formMessageSecurityRule_*,std::less_formMessageSecurityRule::Message_,std::allocator_std::pair_formMessageSecurityRule::Message_const_,formMessageSecurityRule_*___,0___::_Lbound

OS_VERSION:  10.0.18362.239

BUILDLAB_STR:  19h1_release_svc_prod1

OSPLATFORM_TYPE:  x86

OSNAME:  Windows 10

FAILURE_ID_HASH:  {59742f02-2e38-8793-3175-430501d152fb}

Followup:     MachineOwner
---------

Related
Recommended