Skip to main content
InSource Solutions

TN - 1433 Capturing AVEVA Application Crash Using DebugDiag

Description

 

This article from InSource shows how to configure DebugDiag to capture AVEVA application crash events. 

  • Author: Mario Meza
  • Published: 03/30/24
  • Applies to: AVEVA Products

Details

DebugDiag is a powerful tool used to create detailed dump files. These dump files help in diagnosing and resolving crashes, memory leaks, and other unexpected software behaviors

 

Download and Install DebugDiag2

1. Download DebugDiag2.

           a. Choose 64 bit for 64 bit machines or 32 bit for 32 bit machines.

                      i. The bit type of the system can be confirmed in the System control panel or in Settings>System>About.

           b. Download link:

                     i. https://www.microsoft.com/en-us/download/details.aspx?id=58210

 

2. Install DebugDiag2.

a. Only Dump Collection is required to be installed.

clipboard_e51fa23eb57a60d3e6c8e46d7939793cf.png

 

Create a Crash Rule in DebugDiag2

1. Open the Start menu, click Debug Diagnostics Tools 2, click DebugDiag 2 Collection.

2. Click Add Rule if the wizard does not pop up

3. Choose Crash and click Next.

clipboard_e7fe9453710076a8fa4543dd35fc6cce8.png

 

4. Choose A specific process and click Next.

5. Select or type the name of the process you wish to monitor, in this case we will use Studio Manager.exe or Viewer.exe and click Next.

 For the focus of this article we will use IWS however this could be any AVEVA product .exe that is manifesting unexpected software behaviors.

       a. The InduSoft Web Studio runtime needs to be running in order to see Studio Manager.exe or Viewer.exe in the process list. It can simply be typed in however.    

         clipboard_e8c336b792827fec069a347b270d6bc11.png

 

6. For Action type for unconfigured first chance exceptions choose Full Userdump.

a. Set Action limit for unconfigured first chance exceptions to 5.

             b. Set Maximum number of userdumps created by this rule to 25.

clipboard_e758ad71919ecc24072f4a0804f682abe.png

           c. Click Exceptions, click Add Exception.

           d. Choose Access Violation.

           e. Set Action Type to Full Userdump and Action Limit to 10.

clipboard_ea1c8e4739be6c7139d2198cd3a83ec17.png

f. Click OK.

g. Repeat steps d through g but this time choose Stack Overflow.

clipboard_ea337a826859b656a0cae03fb22304947.png

h. Once configured the First Chance Exception Configuration should look like this:

clipboard_e79fc88ef05cd17745f6ed915c3403623.png

i. Click Save & Close.

j. Click Next. Click Yes to any popups

7. Under Rule Output Location, click Browse, and choose a folder to store the DebugDiag dumps.

a. Going to the C drive and creating a folder called DebugDiagDumps is recommended.

8. Keep Activate the rule now checked and click Finish.

a. If it asks about setting the symbol path, click Yes. aveva.com

 

9. You should now see the rule just created in DebugDiag.

clipboard_e240bac8ae39aca894acdc31a6e9a5e39.png

10. Repeat steps 5-9 and create a Crash Rule for more processes as required.

 

11. DebugDiag is now setup to create full userdumps when exceptions or crashes occur

 

 

  • Was this article helpful?