How to troubleshoot error ("Job stopped with an unexpected exit code: 0xC0000005") thrown from the terminal activities?
Issue Description
Error "Job stopped with an unexpected exit code: 0xC0000005" occurs while executing a process that contains terminal activities.
Root Cause
In the Event viewer, the following event is generally registered around the same time frame when the above error is observed: (version number in the error message might differ)
Security defending software like anti-virus or others installed in the machine might block ttermdotnet.dll and its dependencies causing the terminal activities to fail.
Also, if any of the below-mentioned dependencies (most of them are from Microsoft) of ttermdotnet.dll is not loaded or corrupted, the error is thrown.
KERNEL32.dll
USER32.dll
GDI32.dll
SHELL32.dll
ole32.dll
OLEAUT32.dll
ADVAPI32.dll
MSVCP140.dll
bcrypt.dll
VCRUNTIME140.dll
api-ms-win-crt-runtime-l1-1-0.dll
api-ms-win-crt-stdio-l1-1-0.dll
api-ms-win-crt-string-l1-1-0.dll
api-ms-win-crt-heap-l1-1-0.dll
api-ms-win-crt-locale-l1-1-0.dll
api-ms-win-crt-time-l1-1-0.dll
api-ms-win-crt-convert-l1-1-0.dll
api-ms-win-crt-environment-l1-1-0.dll
api-ms-win-crt-filesystem-l1-1-0.dll
api-ms-win-crt-utility-l1-1-0.dll
WS2_32.dll
Resolution
To repair the terminal activity and its dependencies,
Remove all the existing package version folders from %userprofile%\.nuget\packages\uipath.terminal.activities directory
Open Manage Packages in UiPath Studio and reinstall the latest version of UiPath.Terminal.Activities.
Retry to establish the terminal connection or execute the process.
Check if the above-mentioned dependency dlls exists using the command: