tag:help.appveyor.com,2012-11-13:/discussions/problems/6499-test-fail-with-no-explanationAppVeyor: Discussion 2018-08-25T02:16:42Ztag:help.appveyor.com,2012-11-13:Comment/423858582017-04-19T06:18:17Z2017-04-19T06:19:47ZTest fail with no explanation<div><p>Hi,</p>
<p>One of the tests in my project keeps failing and there's no information except the error below.<br>
I assume the machine is out of resources. Is there anyway to understand why?</p>
<p>1) Error : C:\projects\abot\Abot.Tests.Unit\bin\Debug\Abot.Tests.Unit.dll<br>
An existing connection was forcibly closed by the remote host<br>
Server stack trace:<br>
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) at System.Runtime.Remoting.Channels.SocketStream.Read(Byte[] buffer, Int32 offset, Int32 size) at System.Runtime.Remoting.Channels.SocketHandler.ReadFromSocket(Byte[] buffer, Int32 offset, Int32 count) at System.Runtime.Remoting.Channels.SocketHandler.Read(Byte[] buffer, Int32 offset, Int32 count) at System.Runtime.Remoting.Channels.SocketHandler.ReadAndMatchFourBytes(Byte[] buffer) at System.Runtime.Remoting.Channels.Tcp.TcpSocketHandler.ReadAndMatchPreamble() at System.Runtime.Remoting.Channels.Tcp.TcpSocketHandler.ReadVersionAndOperation(UInt16& operation) at System.Runtime.Remoting.Channels.Tcp.TcpClientSocketHandler.ReadHeaders() at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream) at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg) Exception rethrown at [0]:<br>
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at NUnit.Engine.ITestEngineRunner.Run(ITestEventListener listener, TestFilter filter) at NUnit.Engine.Runners.ProcessRunner.RunTests(ITestEventListener listener, TestFilter filter)</p>
<p>This is the build:<br>
<a href="https://ci.appveyor.com/project/maozoomd/abot/build/1.0.24#L2009">https://ci.appveyor.com/project/maozoomd/abot/build/1.0.24#L2009</a></p></div>maoztag:help.appveyor.com,2012-11-13:Comment/423858582017-04-19T19:05:12Z2017-04-19T19:05:12ZTest fail with no explanation<div><p>Machine is not out of resources. I cloned your repository and reproduced build error. When I connect to build worker with <a href="https://www.appveyor.com/docs/how-to/rdp-to-build-worker/">RDP</a>, I see normal load until this exception thrown. At that moment 1 of 2 CPU Cores is being totally occupied by Windows Error Reporting (werfault) and the following message appears in Application log:<br></p>
<pre>
<code>Faulting application name: nunit-agent.exe, version: 3.6.1.0, time stamp: 0x58bdfcf4
Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc00000fd
Fault offset: 0x00007ff90381e8d6
Faulting process id: 0x694
Faulting application start time: 0x01d2b93bd74be517
Faulting application path: C:\Tools\NUnit3\nunit-agent.exe
Faulting module path: unknown
Report Id: 5efba4f1-252f-11e7-817b-00155d20c03a
Faulting package full name:
Faulting package-relative application ID:</code>
</pre>
Which means that it is stack overflow in <code>nunit-agent.exe</code>. I tried previous nunit versions and also using command line with <code>--workers=1</code> setting. Nothing helps.
<p>I wonder if it works locally for you from command line. And if yes, what specific command do you run and what specific nunit version do you use?</p>
<p>Ilya.</p></div>Ilya Finkelshteyn