microsoft / azure-pipelines-tasks

Tasks for Azure Pipelines
https://aka.ms/tfbuild
MIT License
3.47k stars 2.6k forks source link

Coded UI Framework - DTAExecutionHost.exe Crashes #3583

Closed Cva2904 closed 7 years ago

Cva2904 commented 7 years ago

Hi All,

I am facing the below issue when scheduling the build Build using Test Agent.

Test agents have been running fine for a month then suddenly started crashing on VM Test Agent.

System is displaying the message "DTAExecutionHost.exe has stopped working".

Thanks in advance, Siva.

Cva2904 commented 7 years ago

Hi @SatishThareja,

I have seen your comments on issues #2213.

Could you please share the executable, so that I patch it.

Thanks in advance. Siva.

vimegh commented 7 years ago

@Cva2904 If you are using TFS 2015 U3 with coresponding Update 3 Test Agent and are seeing the issue after reboot with the convert exception shown in #2213 image

Then, can you try what Satish has sugessted in #2213 that is

-Set Update Test Agent option to true in Deploy Test Agent Task. -Queue a new build. While queuing the build, add a build variable ' ShouldPatchMSI ' and set it to 'true'. (remove spaces in the parameter name)

After the Deploy Test Agent Step completes, DTAExecutionHost executable will be updated with the required fix and should not throw exception on reboot.

If not: then please share following logs, so that we can further investigate: ( you can mail the logs at devops_tools@microsoft.com )

  1. C:\DtaLogs\DtaExecutionHost.exe.log (after clearing the older logs)
  2. %temp%\TestAgentConfig.Log

Thanks.

Cva2904 commented 7 years ago

@vimegh

i have tried the same.

@SatishThareja was talking about a exe that has to be patched.

I have tried sending mail to devops_tools@microsoft.com, but i am gettign postmaster error.

Could you please share the exe file.

Thanks

nigurr commented 7 years ago

@Cva2904 we did receive your mail :) Can you uninstall Test Agent from the machine and install manually from here https://go.microsoft.com/fwlink/?LinkId=615472 or from MSDN install Test Agents 2015 Update 3.

This should have the fix for this issue. please let us know if you are still facing the issue

nigurr commented 7 years ago

Please let us know if it fixed your issue

Cva2904 commented 7 years ago

@nigurr

The above solution is working for some times and is not working some times.

I will explain in detail that things I am performing.

I am scheduling multiple build definitions on the same remote machine, that are working fine earlier and started failing from a month or so throwing the error "DTAExecutionHost.exe is stopped working".

i have performed the same steps provided by you and the build definition are getting passed some times and failing some times.

I am not seeing any error logs for the build definition.

Please let me know if you need further information on this.

nigurr commented 7 years ago

@Cva2904 If the process gets crashed, it should generate logs in Events. Can you please send the Event Viewer\Windows\Application logs and you can find process logs in C:\DTALogs\ folder

Cva2904 commented 7 years ago

@nigurr

Please find attached DTA logs

DTAExecutionHost.exe.docx

nigurr commented 7 years ago

@Cva2904 Can you please clear the log and attach the only failed case log. Additionally please report crash logs [Event Viewer logs]?

Cva2904 commented 7 years ago

@nigurr

it was done by mistake...

Cva2904 commented 7 years ago

@nigurr

i am unable to upload the document.

nigurr commented 7 years ago

please send us the mail devops_tools at microsoft dot com

Cva2904 commented 7 years ago

@nigurr

DTA log file is getting updated as we are executing different builds on the same machine.

DTAExecutionHost.DOCX

Cva2904 commented 7 years ago

@nigurr

i have mailed dtaexecutionhost error logs.

nigurr commented 7 years ago

Closing this issue as it's not getting reproduced. please reopen if needed

NiharikaIqor commented 7 years ago

Hi I am getting the same error while queue the solution.

Please help me error