web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

AOS crashes on the Development box

(0) ShareShare
ReportReport
Posted on by 1,457

Starting about 2 weeks ago our AOS will crash, literally stopped and then I have to restart it.

It mostly happens in SalesTable adding a new line and with my login added as a retail channel user. We have found that in general when the userID is Retail, the automatic  populating of the order line is slower than when entering a sales order line as a non-retail user.

My form changes to unresponsive after I entered the itemID. For retail it usually takes a while before it populates the default quantity and price etc, but sometimes it is so slow that it becomes not responsive and the AOS crash at that point.

I had it crash while I am not even running code, I am just in the AOT saving my code changes.

I must also say that it happens more when I turn off the "Run business operations in CIL" flag under Tools -> Options -> Development tab. I do that when I test code and want to use breakpoints.

I installed DebugDiag2 and added a rule to monitor the specific process for AX32Serv.exe. I tried to include a full heap but that makes AX so slow that it doesn't even want to load the main menu. So I had to remove it.

The DebugDiag 2 analysis tool came back with the following error:

DebugAnalysis.jpg

The log-file that is generated with the dump file indicates the following regarding the exception 0xc0000374:

[11/16/2017 10:53:55 AM]
  Thread exited. Exiting thread - System ID: 23696. Exit code - 0x00000000
  Thread created. New thread - System ID: 23100
[11/16/2017 10:53:58 AM]
  Exception 0X80000003 on thread 4572. DetailID = 58
[11/16/2017 10:53:59 AM]
  Exception 0XC0000374 on thread 4572. DetailID = 59
[11/16/2017 10:56:47 AM]
  Second chance exception - 0XC0000374 caused by thread with System ID: 4572 DetailID = 59
  Thread exited. Exiting thread - System ID: 12832. Exit code - 0xffffffff
  Thread exited. Exiting thread - System ID: 11388. Exit code - 0xffffffff
  Thread exited. Exiting thread - System ID: 25300. Exit code - 0xffffffff
  Thread exited. Exiting thread - System ID: 15748. Exit code - 0xffffffff
  Thread exited. Exiting thread - System ID: 12536. Exit code - 0xffffffff
  Thread exited. Exiting thread - System ID: 10100. Exit code - 0xffffffff
  Thread exited. Exiting thread - System ID: 24744. Exit code - 0xffffffff
  Thread exited. Exiting thread - System ID: 4420. Exit code - 0xffffffff
  Thread exited. Exiting thread - System ID: 23204. Exit code - 0xffffffff
  Thread exited. Exiting thread - System ID: 492. Exit code - 0xffffffff
  Thread exited. Exiting thread - System ID: 8808. Exit code - 0xffffffff
  Thread exited. Exiting thread - System ID: 6860. Exit code - 0xffffffff
  Thread exited. Exiting thread - System ID: 18856. Exit code - 0xffffffff
  Thread exited. Exiting thread - System ID: 17996. Exit code - 0xffffffff
  Thread exited. Exiting thread - System ID: 9236. Exit code - 0xffffffff
  Thread exited. Exiting thread - System ID: 20280. Exit code - 0xffffffff
  Thread exited. Exiting thread - System ID: 20648. Exit code - 0xffffffff
  Thread exited. Exiting thread - System ID: 9112. Exit code - 0xffffffff
  Thread exited. Exiting thread - System ID: 15796. Exit code - 0xffffffff
  Thread exited. Exiting thread - System ID: 18824. Exit code - 0xffffffff
  Thread exited. Exiting thread - System ID: 23352. Exit code - 0xffffffff
  Thread exited. Exiting thread - System ID: 18516. Exit code - 0xffffffff
  Thread exited. Exiting thread - System ID: 15164. Exit code - 0xffffffff
  Thread exited. Exiting thread - System ID: 19124. Exit code - 0xffffffff
  Thread exited. Exiting thread - System ID: 6212. Exit code - 0xffffffff
  Thread exited. Exiting thread - System ID: 24248. Exit code - 0xffffffff
  Thread exited. Exiting thread - System ID: 23100. Exit code - 0xffffffff
  Thread exited. Exiting thread - System ID: 16976. Exit code - 0xffffffff
  Thread exited. Exiting thread - System ID: 19440. Exit code - 0xffffffff
  Thread exited. Exiting thread - System ID: 17136. Exit code - 0xffffffff
  Thread exited. Exiting thread - System ID: 5904. Exit code - 0xffffffff
  Thread exited. Exiting thread - System ID: 9240. Exit code - 0xffffffff
  Thread exited. Exiting thread - System ID: 20640. Exit code - 0xffffffff
  Thread exited. Exiting thread - System ID: 4340. Exit code - 0xffffffff
  Thread exited. Exiting thread - System ID: 5900. Exit code - 0xffffffff
  Process exited. Exit code - 0xffffffff

***********************
*  EXCEPTION DETAILS  *
***********************

DetailID = 1
 Count:    16
 Exception #:  0XE06D7363
 Stack:       
  KERNELBASE!RaiseException+0x6c
  MSVCR120_CLR0400!CxxThrowException+0xc3
  clr!TranslateSecurityAttributes+0x1d7ec
  clr!NGenCreateNGenWorker+0x95cc2
  clr!CreateAssemblyNameObject+0xfb5d
  clr!StrongNameFreeBuffer+0xff
  clr!GetPrivateContextsPerfCounters+0xd53b
  clr!GetMetaDataPublicInterfaceFromInternal+0x18a26
  mscorlib_ni+0x559c79
  mscorlib_ni+0x4b313e
  mscorlib_ni+0x4b30c6
  mscorlib_ni+0x4bccd2
  0x7ffe`fd33064c
  0x7ffe`fd3305ff
  0x7ffe`fd33f6bd
  clr!LogHelp_LogAssert+0x1bf3
  clr!LogHelp_LogAssert+0x1ac5
  clr!MetaDataGetDispenser+0x7935b
  clr!GetMetaDataPublicInterfaceFromInternal+0x19ff9
  clr!GetMetaDataPublicInterfaceFromInternal+0x1d7f8
  clr!GetMetaDataPublicInterfaceFromInternal+0x1d4b0
  clr!GetMetaDataPublicInterfaceFromInternal+0x1bb37
  clr!GetMetaDataPublicInterfaceFromInternal+0x1ba17
  clr+0x4945
  clr+0x21fe
  Ax32Serv+0x2f4b31
  Ax32Serv+0x2f51ed
  Ax32Serv+0x2f55c2
  Ax32Serv+0x2f640b
  Ax32Serv+0x2f6494
  Ax32Serv+0x5ce2b1
  Ax32Serv+0x5cea65
  Ax32Serv+0x24a012
  Ax32Serv+0x1b4469
  Ax32Serv+0x1b532b
  Ax32Serv+0x1b613c
  Ax32Serv+0x1b61bf
  Ax32Serv+0x251a67
  Ax32Serv+0x295d65
  Ax32Serv+0x251a67
  Ax32Serv+0x251ba8
  Ax32Serv+0x2fbd63
  Ax32Serv+0x1b18f3
  Ax32Serv+0x1b452a
  Ax32Serv+0x1b532b
  Ax32Serv+0x1b6010
  Ax32Serv+0x251a67
  Ax32Serv+0x251ba8
  Ax32Serv+0x2fbd63
  Ax32Serv+0x1b18f3
  Ax32Serv+0x1b452a
  Ax32Serv+0x1b532b
  Ax32Serv+0x1b6010
  Ax32Serv+0x251a67
  Ax32Serv+0x251ba8
  Ax32Serv+0x2fbd63
  Ax32Serv+0x1b18f3
  Ax32Serv+0x1b452a
  Ax32Serv+0x1b532b
  Ax32Serv+0x1b6010
  Ax32Serv+0x251a67
  Ax32Serv+0x251ba8
  Ax32Serv+0x2fbd63
  Ax32Serv+0x1b18f3
  Ax32Serv+0x1b452a
  Ax32Serv+0x1b532b
  Ax32Serv+0x1b6010
  Ax32Serv+0x251a67
  Ax32Serv+0x251ba8
  Ax32Serv+0x2fbd63
  Ax32Serv+0x1b18f3
  Ax32Serv+0x1b452a
  Ax32Serv+0x1b532b
  Ax32Serv+0x1b6010
  Ax32Serv+0x251a67
  Ax32Serv+0x295663
  Ax32Serv+0x251a67
  Ax32Serv+0x251ba8
  Ax32Serv+0x2fbd63
  Ax32Serv+0x1b18f3
  Ax32Serv+0x1b452a
  Ax32Serv+0x1b532b
  Ax32Serv+0x1b6010
  Ax32Serv+0x251a67
  Ax32Serv+0x251ba8
  Ax32Serv+0x2fbd63
  Ax32Serv+0x1b18f3
  Ax32Serv+0x1b452a
  Ax32Serv+0x1b532b
  Ax32Serv+0x1b613c
  Ax32Serv+0x1b6357
  Ax32Serv+0x250eb8
  Ax32Serv+0x173891
  Ax32Serv+0x287237
  Ax32Serv+0x2874f9
  Ax32Serv+0x28761d
  sechost!SubscribeServiceChangeNotifications+0x2ca
  KERNEL32!BaseThreadInitThunk+0x22
  ntdll!RtlUserThreadStart+0x34

Did anybody ran into this themselves and can shed some light on it? As I said I cannot run the tool with PageHeap Flags checked because it about kill AX performance, because the main menu can't even open, it just sits there with a grey screen.

If it was code related, then why would it crash even when I try to save X++ code in the AOT?

*This post is locked for comments

I have the same question (0)
  • Brandon Wiese Profile Picture
    17,788 on at

    Are you running the latest version of the kernel for your release?

  • Retha Profile Picture
    1,457 on at

    Yes. When we upgraded to cu12 in January we also upgraded the kernel.

    Kernel version: 6.3.5000.1468 and the application version: 6.3.5000.133

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    DebugDiag v2 is now not the best tool to collect a dump, the old version was more compatible with what AX was doing.

    Try setting the Windows Error Reporting (WER) registry flags, restart your box and try to generate a dump.

    I have experienced only client crashes with certain broken AOT objects mostly experienced with forms. The solution was always to entirely delete the object and recreate it from scratch. If you use a Version Control System, try bringing back an older change and see if that stabilizes the treenode, then apply subsequent changes manually and see at what point does it break.

  • Suggested answer
    Srini Ramidi Profile Picture
    2 on at

    Can you try to Reset the Usage Data and see if it makes any difference

  • Retha Profile Picture
    1,457 on at

    The UAT environment is fine, no issue there. So I exported all my projects. Then loaded the modelstore that was loaded into the UAT environment, to the DEV environment. DEv was also refreshed with the data in the UAT as well as the configuration keys file.

    Even though the modelstore has all the compiled code, I still did a full compile on DEV and a full CIL. I also synchronized the database.

    I went to File -> Tools -> Options -> Development Tab and unchecked the "Execute business operations in CIL".

    Then I created a sales order for customer 10003 and itemID 100005 without adding my userId to a call centre. It worked, no problem.

    Then I added my userID to a call centre so that I can be a retail user and created another salesorder for the same customer and itemID.

    The moment I entered the itemID AX took a while to do its background thing, but instead of populating the default quantity and unit price on the line, the AOS crashed.

    So it runs the exact same code and data and configuration keys as the UAt environment, but still crash the AOs while none of it happens in the UAT environment.

    I did clear my usage data.

    I restarted the AOS, went back to File -> Tools -> Options -> Development Tab and checked the "Execute business operations in CIL". I added a new sales order as a retail user and there was a bit of a delay but it did populate the line with the default quantity etc.

    So, I should be able to run the code without CIL but it clearly doesn't like it. Does speed on a server has anything to with the crash seeing that it takes longer to populate the line if it runs outside of CIL? 

    If so, what is the minimum specs we need for the DEV server to work correctly? Our DEV server is slower than the UAT server.

  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at

    Speed is not relevant for a crash. You could always try to capture a WER crashdump and upload it to Microsoft by opening a Support Incident for Dynamics AX to have a look at your environment and at the dump.

  • Retha Profile Picture
    1,457 on at

    We finally were able to create the WER dump file. The directory we entered at first didn't work. We will now upload the file to LCS and see what the analysis tells us. Fingers crossed we find the source.

  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at

    LCS crash analysis is discontinued. You can only do an investigation through the support team.

  • Retha Profile Picture
    1,457 on at

    Thanks Vilmos, we did that.

    It looks like when I tried to modify the PricingEngine months ago, when I backed out the code changes and put the original DLL back in place that it still left a finger in some DLL somewhere that is causing the crash. I think we didn't notice it back then because it was only recently that we started to heavily test customizations while logged in as a call centre user. And the crash mostly happens when testing as a call centre user.

    Microsoft suggested:

    Option 1:  

    1. un-install all AX components from the dev server

    2. remove the folders C:\Program Files\Microsoft Dynamics AX and C:\Program Files (x86)\Microsoft Dynamics AX

    3. re-install the AX components

    Option 2:

                   Preferred since I don’t know any of the customization or changes that were done

    1. Build out a new dev VM with the same components that match your working UAT environment

    My boss is looking into these options.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans