aahook.dll Crashes Intermittently

How to resolve when the Robot crashes intermittently with the below error - Faulting application name: UiPath.Executor.exe, version: 20.4.1.0, time stamp: 0xf7c2a164 Faulting module name: aahook.dll, version: 21.4.25.3292, time stamp: 0x60adbbb8 ?

Issue Description: Robot crashes intermittently with the below error

Faulting application name: UiPath.Executor.exe, version: 20.4.1.0, time stamp: 0xf7c2a164

Faulting module name: aahook.dll, version: 21.4.25.3292, time stamp: 0x60adbbb8

Resolution: aahook.dll is a dynamic link library file that is part of developed by Deskover. DLL files are a file format for dynamic link libraries that is used to store several codes and procedures for Windows programs. DLL files have been created to allow several programs to use their information simultaneously, thus preserving memory. As per the design, UiPath loads aahook.dll to interact with the UI element in target applications. Hence, it is needed to make sure that UiPath.UiAutomation package version used in a process should be compatible with the UiPath Robot/ Studio version.

There are two ways to fix the issue.

  • Upgrade or Downgrade the Studio/ Robot to match the version of UiPath.UiAutomation
  • Upgrade or Downgrade UiPath.UiAutomation package to 2020.4.3. However, downgrading the activity will require rework on the existing projects.