Troubleshooting Guide: To Monitor Unexpected Termination of UiPath Processes

How to monitor unexpected termination of UiPath processes?

Beginning with Windows 7, you can use the Silent Process Exit tab in Global Flags debugging tool to enter the name of a process that you want to monitor for silent exit.

1. Open Global Flags App and select the Silent Process Exit tab.
The application can be started from Windows Start menu or C:\Program Files (x86)\Windows Kits\10\Debuggers (on Windows 10)

2. Type the name of the process that is exiting unexpectedly.
3. Hit the TAB key on the keyboard to refresh the GUI.
4. Check the following boxes:
    a. Enable Silent Exit Process Monitoring 
        This enables the feature and tracks silent process exits in the application event log. 
        (Event ID: 3001)

     b. Enable Notification 
         This optionally creates a balloon popup with the same information in the event log.

      c. Ignore Self Exits 
          This prevents superfluous logging when the application exits gracefully, such as when File/Exit  is selected from a menu.

5. Click OK to save the change and exit the Global Flags tool.

NOTE: The changes will take effect immediately for any new processes launched after the change. A reboot is NOT required.

         

 

6. When another process forces termination of the monitored process, the offending process name is listed in a balloon popup and in the application event log. (if this option is selected)

       

 

7. Reading Process Exit Reports in Event Viewer

When a monitored process exits silently, the monitor creates an entry in Event Viewer. To open Event Viewer, enter the command eventvwr.msc. Navigate to Windows Logs > Application. Look for log entries that have a Source of Process Exit Monitor.

 

Silent Process Exit may also be configured through the registry remotely if the machine is not accessible via the console or a remote desktop session.

Example:

Windows Registry Editor Version 5.00 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\UiPath.Executor.exe] 
"GlobalFlag"=dword:00000200

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SilentProcessExit\UiPath.Executor.exe] 
"IgnoreSelfExits"=dword:00000001