Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Analyse Assembly Failure
jesuissur
#1 Posted : Wednesday, October 28, 2020 12:28:59 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/5/2012(UTC)
Posts: 4
Location: Canada

Thanks: 1 times
Was thanked: 2 time(s) in 2 post(s)
I got a new computer and what was working in NCrunch on my old computer, now have "Analyse Assembly" failures for our tests assemblies.
I'm not sure what to look for. The projects build fine in VS (and Resharper). I've disabled Windows Defender to no avail.

NCrunch version 4.4.0.12
VS2019 16.7.6
Projects are in .Net Core 2.2
We use x64 satellite hosting strategy (and tried x86) and Optimised Instrumentation mode.

Here is the log for one of our failing project in NCrunch.

Thanks a lot
Phil

Quote:

[13:29:44.5469-LocalAnalysisTask-37] Launching task: Analysing MyCompany.CommonTestLibrary
[13:29:44.5708-LocalAnalysisTask-37] Process could not be found in pool with signature matching: [ProcessSignature:
C:\Users\MyUser\AppData\Local\NCrunch\15796\12\test\MyCompany.CommonTestLibrary\bin\Debug\netcoreapp2.2\MyCompany.CommonTestLibrary.dll
nCrunch.TestExecution.RemoteTaskRunner
C:\Users\MyUser\AppData\Local\NCrunch\15796\12\test\MyCompany.CommonTestLibrary\bin\Debug\netcoreapp2.2\MyCompany.CommonTestLibrary.dll.config.ncrunchconfig
x64
(local)
nCrunch.Core.PlatformTypes.DotNetCore.DotNetCoreProcessLoader
C:\Users\MyUser\.nuget\packages\xunit.abstractions\2.0.3\lib\netstandard2.0\xunit.abstractions.dll
..........

]
[13:29:44.5748-LocalAnalysisTask-37] Adding external process with Id 'b2af5e44a3954158afb7a00d98f38244'
[13:29:44.5748-LocalAnalysisTask-37] Starting external process '"C:\Program Files\dotnet\dotnet.exe"' with arguments '"C:\Users\MyUser\AppData\Local\NCrunch\15796\12\test\MyCompany.CommonTestLibrary\bin\Debug\netcoreapp2.2\nCrunch.TaskRunner.DotNetCore.20.x64.dll" 15796 nCrunch_a6733edf667b463a8f5063a6ff8b82ba b2af5e44a3954158afb7a00d98f38244 "c:\program files (x86)\microsoft visual studio\2019\professional\common7\ide\extensions\remco software\ncrunch for visual studio 2019\nCrunch.TestExecution.DotNetCore.dll" nCrunch.TestExecution.RemoteTaskRunner "C:\Users\MyUser\AppData\Local\NCrunch\15796\12\test\MyCompany.CommonTestLibrary\bin\Debug\netcoreapp2.2" "False" "C:\Users\MyUser\AppData\Local\NCrunch\15796\12\test\MyCompany.CommonTestLibrary\bin\Debug\netcoreapp2.2\MyCompany.CommonTestLibrary.dll.config.ncrunchconfig"'
[13:29:44.5768-LocalAnalysisTask-37] Process ID '6456' initialised
[13:29:44.5768-LocalAnalysisTask-37] Connecting to external process 'b2af5e44a3954158afb7a00d98f38244' with id 6456
[13:29:44.6057-LocalAnalysisTask-37] Removing external process with Id 'b2af5e44a3954158afb7a00d98f38244'
[13:29:44.6057-LocalAnalysisTask-37] ERROR (Internal): nCrunch.TaskRunner.Ipc.IpcConnectionClosedException: The connection has been closed
at nCrunch.TaskRunner.Ipc.Fast.IpcReader.Initialise()
at nCrunch.TaskRunner.Ipc.Fast.IpcStream.Connect(String ipcName, Boolean isHost)
at nCrunch.TaskRunner.Ipc.Fast.FastIpcClient.Connect(String ipcName)
at nCrunch.Core.ProcessManagement.DefaultProcessLoader.ConnectToProcess(ExternalProcess externalProcess, ProcessLoadParameters parameters, Action`1 outOfBandMessageHandler)
at nCrunch.Core.ProcessManagement.ExternalProcessManager..()
at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
at nCrunch.Core.ProcessManagement.ExternalProcessManager.(EffectiveProcessorArchitecture , ProcessLoadParameters )

[13:29:44.6057-LocalAnalysisTask-37] Publishing Event: [ErrorEvent:[Error:
Context: (global)
Category: Internal
Message: The connection has been closed
Details: nCrunch.TaskRunner.Ipc.IpcConnectionClosedException: The connection has been closed
at nCrunch.TaskRunner.Ipc.Fast.IpcReader.Initialise()
at nCrunch.TaskRunner.Ipc.Fast.IpcStream.Connect(String ipcName, Boolean isHost)
at nCrunch.TaskRunner.Ipc.Fast.FastIpcClient.Connect(String ipcName)
at nCrunch.Core.ProcessManagement.DefaultProcessLoader.ConnectToProcess(ExternalProcess externalProcess, ProcessLoadParameters parameters, Action`1 outOfBandMessageHandler)
at nCrunch.Core.ProcessManagement.ExternalProcessManager..()
at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
at nCrunch.Core.ProcessManagement.ExternalProcessManager.(EffectiveProcessorArchitecture , ProcessLoadParameters )
]]
[13:29:44.6057-LocalAnalysisTask-37] Event [ErrorEvent:[Error:
Context: (global)
Category: Internal
Message: The connection has been closed
Details: nCrunch.TaskRunner.Ipc.IpcConnectionClosedException: The connection has been closed
at nCrunch.TaskRunner.Ipc.Fast.IpcReader.Initialise()
at nCrunch.TaskRunner.Ipc.Fast.IpcStream.Connect(String ipcName, Boolean isHost)
at nCrunch.TaskRunner.Ipc.Fast.FastIpcClient.Connect(String ipcName)
at nCrunch.Core.ProcessManagement.DefaultProcessLoader.ConnectToProcess(ExternalProcess externalProcess, ProcessLoadParameters parameters, Action`1 outOfBandMessageHandler)
at nCrunch.Core.ProcessManagement.ExternalProcessManager..()
at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
at nCrunch.Core.ProcessManagement.ExternalProcessManager.(EffectiveProcessorArchitecture , ProcessLoadParameters )
]] is being published on thread CoreThread to subscriber: ErrorHandler.<.ctor>b__1_0
[13:29:44.6077-LocalAnalysisTask-37] Event [ErrorEvent:[Error:
Context: (global)
Category: Internal
Message: The connection has been closed
Details: nCrunch.TaskRunner.Ipc.IpcConnectionClosedException: The connection has been closed
at nCrunch.TaskRunner.Ipc.Fast.IpcReader.Initialise()
at nCrunch.TaskRunner.Ipc.Fast.IpcStream.Connect(String ipcName, Boolean isHost)
at nCrunch.TaskRunner.Ipc.Fast.FastIpcClient.Connect(String ipcName)
at nCrunch.Core.ProcessManagement.DefaultProcessLoader.ConnectToProcess(ExternalProcess externalProcess, ProcessLoadParameters parameters, Action`1 outOfBandMessageHandler)
at nCrunch.Core.ProcessManagement.ExternalProcessManager..()
at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
at nCrunch.Core.ProcessManagement.ExternalProcessManager.(EffectiveProcessorArchitecture , ProcessLoadParameters )
]] is being published on thread UIThread to subscriber: SharedEventPump.
[13:29:44.6077-LocalAnalysisTask-37] Task processing complete for [LocalAnalysisTask: [SnapshotComponent: MyCompany.CommonTestLibrary, 18, 59734299], BeingProcessed, (local), 3e02a426-60e5-4347-929a-4bea1df13a20], processing time: 00:00:00
[13:29:44.6077-LocalAnalysisTask-37] Publishing Event: [ :[LocalAnalysisTask: [SnapshotComponent: MyCompany.CommonTestLibrary, 18, 59734299], BeingProcessed, (local), 3e02a426-60e5-4347-929a-4bea1df13a20]]
[13:29:44.6077-LocalAnalysisTask-37] Event [ :[LocalAnalysisTask: [SnapshotComponent: MyCompany.CommonTestLibrary, 18, 59734299], BeingProcessed, (local), 3e02a426-60e5-4347-929a-4bea1df13a20]] is being published on thread CoreThread to subscriber: ProcessingQueue.
[13:29:44.6077-LocalAnalysisTask-37] Event [ :[LocalAnalysisTask: [SnapshotComponent: MyCompany.CommonTestLibrary, 18, 59734299], BeingProcessed, (local), 3e02a426-60e5-4347-929a-4bea1df13a20]] is being published on thread UIThread to subscriber: SharedEventPump.

Remco
#2 Posted : Wednesday, October 28, 2020 11:18:04 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Hi Phil,

Thanks for sharing this problem.

The error described here is one kicked up by the engine when the test process disappears without warning and with no information available. Usually this is an install state issue (i.e. something is wrong in the configuration of the machine or something isn't installed when it should be). The lack of useful error information always makes this sort of thing very frustrating.

Can you check whether you have the runtime for the requested version of .NET Core installed? Make sure you have both the 32bit and 64bit variants if you are targeting specific processor architectures (they are installed separately). Sometimes you can find error information in the Windows Event Viewer.
jesuissur
#3 Posted : Thursday, October 29, 2020 12:53:19 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/5/2012(UTC)
Posts: 4
Location: Canada

Thanks: 1 times
Was thanked: 2 time(s) in 2 post(s)
Oh that was it. I had .Net core 3.1 installed but not .net core 2.2 🤦‍♂️.
No idea why it works fine in VS but not in NCrunch.

Thanks a lot for the tip
1 user thanked jesuissur for this useful post.
Remco on 10/29/2020(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.057 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download