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

Notification

Icon
Error

Rider plugin: Unhandled AppDomain exception
grzechu81
#1 Posted : Wednesday, March 27, 2024 9:30:09 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/27/2024(UTC)
Posts: 7
Location: Poland

Hi,
I've tried to use Ncrunch rider plugin on sandbox console application but could not even 'start' it because Raider shows message saying 'A Critical Failure has Occured:'

Using Rider 2023.3.4
Windows 10 (compilation 19045.4170)

.NET SDKs installed:
6.0.420 [C:\Program Files\dotnet\sdk]
8.0.203 [C:\Program Files\dotnet\sdk]

When I look into the Rider log file I see below:



C:\Program Files\JetBrains\Rider\r2r\2023.3.4R\ED07083E52BE90D08259727F3D34791\windows-x64\Rider.Backend.exe --runtimeconfig C:\Program Files\JetBrains\Rider\r2r\2023.3.4R\ED07083E52BE90D08259727F3D34791\Rider.Backend.windows.runtimeconfig.json --Port=58092 --enablecpp
Warning: While cataloging the assembly "JetBrains.Debugger.Tools.MsClrProcessEnumerator.Core, Version=777.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325", could not load the assembly reference named "System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Warning: While cataloging the assembly "JetBrains.Platform.MsBuildTask, Version=777.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325", could not load the assembly reference named "Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Warning: While cataloging the assembly "JetBrains.Platform.MsBuildTask, Version=777.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325", could not load the assembly reference named "Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Error resolving type System.Windows.AttachedPropertyBrowsableForTypeAttribute from assembly "WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", request originating from assembly "WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35". Could not find the type by its FQN. Is assembly qualification specified? True! Is it of our own assembly? True! Is looking into referenced assemblies allowed? False! Was the qualified referenced assembly encountered during lookup? False! Tried loading an implicitly-referenced assembly? False! Were following a forwarder exported type's assembly ref? No!
Warning: While cataloging the assembly "JetBrains.ReSharper.Features.Internal, Version=777.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325", could not load the assembly reference named "Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Warning: While cataloging the assembly "JetBrains.EntityFramework.Runner620, Version=777.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325", could not load the assembly reference named "EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".
Warning: While cataloging the assembly "JetBrains.JITDebuggerLauncher, Version=777.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325", could not load the assembly reference named "System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Warning: While cataloging the assembly "Rider.SqlProj.Worker, Version=777.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325", could not load the assembly reference named "Microsoft.Data.Tools.Schema.Sql, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Warning: While cataloging the assembly "Rider.SqlProj.Worker, Version=777.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325", could not load the assembly reference named "Microsoft.SqlServer.TransactSql.ScriptDom, Version=16.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91".
Warning: While cataloging the assembly "Rider.SqlProj.Worker, Version=777.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325", could not load the assembly reference named "Microsoft.Data.Tools.Schema.Utilities.Sql, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Warning: While cataloging the assembly "Rider.SqlProj.Worker, Version=777.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325", could not load the assembly reference named "Microsoft.Data.Tools.Utilities, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Warning: While cataloging the assembly "Rider.SqlProj.Worker.Extensions, Version=777.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325", could not load the assembly reference named "Microsoft.Data.Tools.Schema.Sql, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Warning: While cataloging the assembly "JetBrains.Common.Util, Version=777.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325", could not load the assembly reference named "System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Warning: While cataloging the assembly "JetBrains.Platform.SDK.Helper, Version=777.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325", could not load the assembly reference named "Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Warning: While cataloging the assembly "JetBrains.Platform.SDK.MsBuild, Version=777.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325", could not load the assembly reference named "Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Warning: While cataloging the assembly "EasyHook, Version=2.7.5870.0, Culture=neutral, PublicKeyToken=4b580fca19d0b0c5", could not load the assembly reference named "System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".
Warning: While cataloging the assembly "nCrunch.Core, Version=5.3.0.2, Culture=neutral, PublicKeyToken=01d101bf6f3e0aea", could not load the assembly reference named "System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Error resolving type System.Windows.DependencyObject from assembly "WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", request originating from assembly "WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35". Could not find the type by its FQN. Is assembly qualification specified? True! Is it of our own assembly? True! Is looking into referenced assemblies allowed? False! Was the qualified referenced assembly encountered during lookup? False! Tried loading an implicitly-referenced assembly? False! Were following a forwarder exported type's assembly ref? No!
Error resolving type System.Windows.DependencyProperty from assembly "WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", request originating from assembly "WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35". Could not find the type by its FQN. Is assembly qualification specified? True! Is it of our own assembly? True! Is looking into referenced assemblies allowed? False! Was the qualified referenced assembly encountered during lookup? False! Tried loading an implicitly-referenced assembly? False! Were following a forwarder exported type's assembly ref? No!
Error resolving type System.Windows.DependencyProperty from assembly "WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", request originating from assembly "WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35". Could not find the type by its FQN. Is assembly qualification specified? True! Is it of our own assembly? True! Is looking into referenced assemblies allowed? False! Was the qualified referenced assembly encountered during lookup? False! Tried loading an implicitly-referenced assembly? False! Were following a forwarder exported type's assembly ref? No!
Error resolving type System.Windows.Size from assembly "WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", request originating from assembly "WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35". Could not find the type by its FQN. Is assembly qualification specified? True! Is it of our own assembly? True! Is looking into referenced assemblies allowed? False! Was the qualified referenced assembly encountered during lookup? False! Tried loading an implicitly-referenced assembly? False! Were following a forwarder exported type's assembly ref? No!
Error resolving type System.Windows.Threading.Dispatcher from assembly "WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", request originating from assembly "WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35". Could not find the type by its FQN. Is assembly qualification specified? True! Is it of our own assembly? True! Is looking into referenced assemblies allowed? False! Was the qualified referenced assembly encountered during lookup? False! Tried loading an implicitly-referenced assembly? False! Were following a forwarder exported type's assembly ref? No!
Error resolving type System.Windows.Size from assembly "WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", request originating from assembly "WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35". Could not find the type by its FQN. Is assembly qualification specified? True! Is it of our own assembly? True! Is looking into referenced assemblies allowed? False! Was the qualified referenced assembly encountered during lookup? False! Tried loading an implicitly-referenced assembly? False! Were following a forwarder exported type's assembly ref? No!
Error resolving type System.Windows.Point from assembly "WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", request originating from assembly "WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35". Could not find the type by its FQN. Is assembly qualification specified? True! Is it of our own assembly? True! Is looking into referenced assemblies allowed? False! Was the qualified referenced assembly encountered during lookup? False! Tried loading an implicitly-referenced assembly? False! Were following a forwarder exported type's assembly ref? No!
Warning: DemoText for C# contains '
'
Warning: DemoText for XAML contains '
'
Warning: DemoText for C++ contains '
'
Warning: Primary thread didn't respond for 0.626sec (CurrentTask: 'Create Solution Container Compose Task') QueueSize=8
Warning: Primary thread didn't respond for 0.828sec (CurrentTask: 'Create Solution Container Compose Task') QueueSize=9
Warning: Primary thread didn't respond for 1.032sec (CurrentTask: 'Create Solution Container Compose Task') QueueSize=11
Warning: Primary thread didn't respond for 1.247sec (CurrentTask: 'Create Solution Container Compose Task') QueueSize=12
Warning: Primary thread didn't respond for 1.452sec (CurrentTask: 'Create Solution Container Compose Task') QueueSize=13
Warning: Primary thread didn't respond for 1.656sec (CurrentTask: 'Create Solution Container Compose Task') QueueSize=15
Warning: Primary thread didn't respond for 1.858sec (CurrentTask: 'Create Solution Container Compose Task') QueueSize=15
Warning: Primary thread didn't respond for 2.060sec (CurrentTask: 'Create Solution Container Compose Task') QueueSize=15
Warning: Primary thread didn't respond for 2.264sec (CurrentTask: 'Create Solution Container Compose Task') QueueSize=15
Warning: Primary thread didn't respond for 2.472sec (CurrentTask: 'Create Solution Container Compose Task') QueueSize=15
Warning: Primary thread didn't respond for 2.677sec (CurrentTask: 'Create Solution Container Compose Task') QueueSize=15
Warning: Primary thread didn't respond for 2.883sec (CurrentTask: 'Create Solution Container Compose Task') QueueSize=15
Warning: Primary thread didn't respond for 3.087sec (CurrentTask: 'Create Solution Container Compose Task') QueueSize=15
Warning: Primary thread didn't respond for 3.291sec (CurrentTask: 'Create Solution Container Compose Task') QueueSize=15
Warning: Primary thread didn't respond for 3.492sec (CurrentTask: 'Create Solution Container Compose Task') QueueSize=15
Warning: Primary thread didn't respond for 3.698sec (CurrentTask: 'Create Solution Container Compose Task') QueueSize=15
Warning: Primary thread didn't respond for 3.902sec (CurrentTask: 'Create Solution Container Compose Task') QueueSize=15
Warning: Primary thread didn't respond for 4.105sec (CurrentTask: 'Create Solution Container Compose Task') QueueSize=15
Warning: Primary thread didn't respond for 4.311sec (CurrentTask: 'Create Solution Container Compose Task') QueueSize=15
Warning: Primary thread didn't respond for 4.515sec (CurrentTask: 'Create Solution Container Compose Task') QueueSize=15
Warning: Primary thread didn't respond for 4.721sec (CurrentTask: 'Create Solution Container Compose Task') QueueSize=16
Warning: Primary thread didn't respond for 4.923sec (CurrentTask: 'Create Solution Container Compose Task') QueueSize=21
Warning: Primary thread didn't respond for 5.127sec (CurrentTask: 'Create Solution Container Compose Task') QueueSize=22
Warning: Primary thread didn't respond for 5.329sec (CurrentTask: 'Create Solution Container Compose Task') QueueSize=24
Warning: Add analyzer: project reference manager not found for Sandbox-solution-console-01 85ba80ce-eb69-4925-bac8-d60c0cb4c1f9
Warning: Add analyzer: project reference manager not found for TestProject1 00331783-cc00-499d-bea9-66cc0da780b8
Warning: Primary thread didn't respond for 5.531sec (CurrentTask: 'Create Solution Container Compose Task') QueueSize=35
Warning: Primary thread didn't respond for 5.732sec (CurrentTask: 'Create Solution Container Compose Task') QueueSize=44
Warning: Primary thread didn't respond for 5.947sec (CurrentTask: 'Create Solution Container Compose Task') QueueSize=82
Warning: Primary thread was unresponsive for 5.947sec
Warning: PersistentIndexManager was requested about missing file: Sandbox-solution-console-01.csproj
Warning: PersistentIndexManager was requested about missing file: Program.cs
Warning: PersistentIndexManager was requested about missing file: Sandbox-solution-console-01.GlobalUsings.g.cs
Warning: PersistentIndexManager was requested about missing file: Sandbox-solution-console-01.AssemblyInfo.cs
Warning: PersistentIndexManager was requested about missing file: Sandbox-solution-console-01.GeneratedMSBuildEditorConfig.editorconfig
Warning: PersistentIndexManager was requested about missing file: analysislevel_8_default.globalconfig
Warning: PersistentIndexManager was requested about missing file: Sandbox-solution-console-01.csproj
Warning: PersistentIndexManager was requested about missing file: Program.cs
Warning: PersistentIndexManager was requested about missing file: Sandbox-solution-console-01.GlobalUsings.g.cs
Warning: PersistentIndexManager was requested about missing file: Sandbox-solution-console-01.AssemblyInfo.cs
Warning: PersistentIndexManager was requested about missing file: Sandbox-solution-console-01.GeneratedMSBuildEditorConfig.editorconfig
Warning: PersistentIndexManager was requested about missing file: analysislevel_8_default.globalconfig
Warning: PersistentIndexManager was requested about missing file: TestProject1.csproj
Warning: PersistentIndexManager was requested about missing file: TestProject1.GlobalUsings.g.cs
Warning: PersistentIndexManager was requested about missing file: TestProject1.AssemblyInfo.cs
Warning: PersistentIndexManager was requested about missing file: TestProject1.GeneratedMSBuildEditorConfig.editorconfig
Warning: PersistentIndexManager was requested about missing file: analysislevel_8_default.globalconfig
Warning: PersistentIndexManager was requested about missing file: UnitTest1.cs
Warning: PersistentIndexManager was requested about missing file: Microsoft.NET.Test.Sdk.Program.cs
Warning: PersistentIndexManager was requested about missing file: NUnit3.TestAdapter.dll
Warning: PersistentIndexManager was requested about missing file: NUnit3.TestAdapter.pdb
Warning: PersistentIndexManager was requested about missing file: nunit.engine.dll
Warning: PersistentIndexManager was requested about missing file: nunit.engine.api.dll
Warning: PersistentIndexManager was requested about missing file: nunit.engine.core.dll
Warning: PersistentIndexManager was requested about missing file: testcentric.engine.metadata.dll
Warning: PersistentIndexManager was requested about missing file: testhost.exe
Warning: PersistentIndexManager was requested about missing file: testhost.dll
Warning: PersistentIndexManager was requested about missing file: TestProject1.csproj
Warning: PersistentIndexManager was requested about missing file: TestProject1.GlobalUsings.g.cs
Warning: PersistentIndexManager was requested about missing file: TestProject1.AssemblyInfo.cs
Warning: PersistentIndexManager was requested about missing file: TestProject1.GeneratedMSBuildEditorConfig.editorconfig
Warning: PersistentIndexManager was requested about missing file: analysislevel_8_default.globalconfig
Warning: PersistentIndexManager was requested about missing file: UnitTest1.cs
Warning: PersistentIndexManager was requested about missing file: Microsoft.NET.Test.Sdk.Program.cs
Warning: PersistentIndexManager was requested about missing file: NUnit3.TestAdapter.dll
Warning: PersistentIndexManager was requested about missing file: NUnit3.TestAdapter.pdb
Warning: PersistentIndexManager was requested about missing file: nunit.engine.dll
Warning: PersistentIndexManager was requested about missing file: nunit.engine.api.dll
Warning: PersistentIndexManager was requested about missing file: nunit.engine.core.dll
Warning: PersistentIndexManager was requested about missing file: testcentric.engine.metadata.dll
Warning: PersistentIndexManager was requested about missing file: testhost.exe
Warning: PersistentIndexManager was requested about missing file: testhost.dll
Unhandled AppDomain exception. The NCrunch task process was unexpectedly terminated. For information on how to troubleshoot this problem, please see https://www.ncrunch.net/...inated-unexpected-error

--- EXCEPTION #1/3 [IpcConnectionClosedException]
Message = "The NCrunch task process was unexpectedly terminated. For information on how to troubleshoot this problem, please see https://www.ncrunch.net/...-unexpected-error"
ExceptionPath = Root.InnerException.InnerException
ClassName = nCrunch.TaskRunner.Ipc.IpcConnectionClosedException
HResult = COR_E_EXCEPTION=80131500
Source = nCrunch.TaskRunner
StackTraceString = "
at nCrunch.TaskRunner.Ipc.Fast.IpcWriter.Write(Byte* source, Int32 count) in Write.il:line IL_002E mvid 09EA or Write.il:line IL_0072 mvid 09EA
at nCrunch.TaskRunner.Ipc.Fast.IpcWriter.Write(Byte[] data, Int32 offset, Int32 count) in Write.il:line IL_002E mvid 09EA or Write.il:line IL_0072 mvid 09EA
at nCrunch.TaskRunner.Ipc.Fast.IpcStream.Write(Byte[] buffer, Int32 offset, Int32 count) in Write.il:line IL_0000 mvid 09EA
at nCrunch.TaskRunner.Ipc.Fast.FastIpcRequestHandler.MakeRequest(Byte[] request) in MakeRequest.il:line IL_001F mvid 09EA
at nCrunch.TaskRunner.Ipc.RemoteProxyCommunicator.Invoke(String methodName, Object[] args) in Invoke.il:line IL_011B mvid 09EA
at nCrunch.RiderIntegration.RiderRemoteBootstrapProxy.IsSolutionFullyLoaded() in IsSolutionFullyLoaded.il:line IL_0000 mvid 2209
at ReSharperPlugin.NCrunchForRider.NCrunchForRider.<>c__DisplayClass2_0.<.ctor>b__0() in NCrunchForRider.il:line IL_0009 mvid 6610
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in RunInternal.il:line IL_0087 mvid B342
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in RunInternal.il:line IL_0087 mvid B342
"

--- Outer ---

--- EXCEPTION #2/3 [OuterWorldException]
Message = "Unhandled AppDomain exception."
ExceptionPath = Root.InnerException
ClassName = JetBrains.Util.Logging.OuterWorldException
InnerException = "Exception #1 at Root.InnerException.InnerException"
HResult = COR_E_EXCEPTION=80131500

--- Outer ---

--- EXCEPTION #3/3 [LoggerException]
Message = "Unhandled AppDomain exception."
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
InnerException = "Exception #2 at Root.InnerException"
HResult = COR_E_APPLICATION=80131600
StackTraceString = "
at JetBrains.Util.LoggerBase.Log(LoggingLevel level, String message, Exception ex) in Log.il:line IL_0024 mvid 3379
at JetBrains.Diagnostics.LogEx.Error(ILog this, Exception ex, String message) in Error.il:line IL_0000 mvid CC54
at JetBrains.Util.Logging.Logger.LogException(Exception ex) in LogException.il:line IL_0000 mvid 3379
at JetBrains.Application.Environment.Components.ReportUnhandledExceptions.<>c.<.ctor>b__0_0(Object _, UnhandledExceptionEventArgs args) in ReportUnhandledExceptions.il:line IL_0024 mvid DE30
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in RunInternal.il:line IL_0080 mvid B342
"

Unhandled exception. nCrunch.TaskRunner.Ipc.IpcConnectionClosedException: The NCrunch task process was unexpectedly terminated. For information on how to troubleshoot this problem, please see https://www.ncrunch.net/...inated-unexpected-error
at nCrunch.TaskRunner.Ipc.Fast.IpcWriter.Write(Byte* source, Int32 count)
at nCrunch.TaskRunner.Ipc.Fast.IpcWriter.Write(Byte[] data, Int32 offset, Int32 count)
at nCrunch.TaskRunner.Ipc.Fast.IpcStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at nCrunch.TaskRunner.Ipc.Fast.FastIpcRequestHandler.MakeRequest(Byte[] request)
at nCrunch.TaskRunner.Ipc.RemoteProxyCommunicator.Invoke(String methodName, Object[] args)
at nCrunch.RiderIntegration.RiderRemoteBootstrapProxy.IsSolutionFullyLoaded()
at ReSharperPlugin.NCrunchForRider.NCrunchForRider.<>c__DisplayClass2_0.<.ctor>b__0()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
Warning: Primary thread didn't respond for 4.101sec (CurrentTask: 'ReentrancyGuardTaskScheduler::QueueTask') QueueSize=-1
Remco
#2 Posted : Wednesday, March 27, 2024 9:53:51 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 932 times
Was thanked: 1258 time(s) in 1171 post(s)
Hi, thanks for sharing this issue.

This problem is caused the NCrunch process being immediately torn down unexpectedly shortly after starting.

Do you have any information in the Windows Event Log? If the process was torn down by the O/S, there will often be a reason given for this.

If you're running any security software (i.e. virus scanner etc), can you check the logs to see if any enforcement action was taken?
grzechu81
#3 Posted : Wednesday, March 27, 2024 1:22:52 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/27/2024(UTC)
Posts: 7
Location: Poland

In windows Event logs I see three events:


##### FIRST (Source: Application Error, EventId : 1000 )

Faulting application name: nCrunch.Rider.EngineHost.exe, version: 0.0.0.0, time stamp: 0x65ab0000
Faulting module name: ntdll.dll, version: 10.0.19041.3996, time stamp: 0x39215800
Exception code: 0xc00000fd
Fault offset: 0x0000000000019780
Faulting process id: 0x2788
Faulting application start time: 0x01da8049636c1b02
Faulting application path: C:\Users\dell\AppData\Local\NCrunch\Engine\engine_897f7a3d-d479-4649-95fe-9ff835b7b483\nCrunch.Rider.EngineHost.exe
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
Report Id: 31c2db9b-fd1e-4a09-a1c4-04aae117f8fa
Faulting package full name:
Faulting package-relative application ID:

#### SECOND (Source: .NET Runtime, EventId 1026)

Application: Rider.Backend.exe
CoreCLR Version: 7.0.1023.36312
.NET Version: 7.0.10
Description: The process was terminated due to an unhandled exception.
Exception Info: nCrunch.TaskRunner.Ipc.IpcConnectionClosedException: The NCrunch task process was unexpectedly terminated. For information on how to troubleshoot this problem, please see https://www.ncrunch.net/...inated-unexpected-error
at nCrunch.TaskRunner.Ipc.Fast.IpcWriter.Write(Byte* source, Int32 count)
at nCrunch.TaskRunner.Ipc.Fast.IpcWriter.Write(Byte[] data, Int32 offset, Int32 count)
at nCrunch.TaskRunner.Ipc.Fast.IpcStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at nCrunch.TaskRunner.Ipc.Fast.FastIpcRequestHandler.MakeRequest(Byte[] request)
at nCrunch.TaskRunner.Ipc.RemoteProxyCommunicator.Invoke(String methodName, Object[] args)
at nCrunch.RiderIntegration.RiderRemoteBootstrapProxy.IsSolutionFullyLoaded()
at ReSharperPlugin.NCrunchForRider.NCrunchForRider.<>c__DisplayClass2_0.<.ctor>b__0()

### THIRD (Source: Application Error, EventId : 1000 )

Faulting application name: Rider.Backend.exe, version: 2023.3.4.0, time stamp: 0x64dca74d
Faulting module name: KERNELBASE.dll, version: 10.0.19041.3996, time stamp: 0xb756c9ff
Exception code: 0xe0434352
Fault offset: 0x000000000002cf19
Faulting process id: 0x2988
Faulting application start time: 0x01da80495c2b7254
Faulting application path: C:\Program Files\JetBrains\Rider\r2r\2023.3.4R\ED07083E52BE90D08259727F3D34791\windows-x64\Rider.Backend.exe
Faulting module path: C:\Windows\System32\KERNELBASE.dll
Report Id: de392467-d41b-40ce-81ff-39cd0118c4c2
Faulting package full name:
Faulting package-relative application ID:
grzechu81
#4 Posted : Wednesday, March 27, 2024 1:32:07 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/27/2024(UTC)
Posts: 7
Location: Poland

Funny thing , sometimes the first error shows Faulting module to be 'uknown' and sometimes 'ntdll.dll', or User32.dll, and sometimes like below System.Windows.Forms.Primitives.dll,

Faulting application name: nCrunch.Rider.EngineHost.exe, version: 0.0.0.0, time stamp: 0x65ab0000
Faulting module name: System.Windows.Forms.Primitives.dll, version: 6.0.2824.12004, time stamp: 0xdc6cbe02
Exception code: 0xc00000fd
Fault offset: 0x0000000000022569
Faulting process id: 0x3608
Faulting application start time: 0x01da804a62248374
Faulting application path: C:\Users\dell\AppData\Local\NCrunch\Engine\engine_5bd9460e-5f44-446c-9640-50ed73f8e1b3\nCrunch.Rider.EngineHost.exe
Faulting module path: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\6.0.28\System.Windows.Forms.Primitives.dll
Report Id: 9f47c346-4e30-4316-ac17-e566e6b3c3f4
Faulting package full name:
Faulting package-relative application ID:
michaelkroes
#5 Posted : Wednesday, March 27, 2024 1:40:07 PM(UTC)
Rank: NCrunch Developer

Groups: Registered
Joined: 9/22/2017(UTC)
Posts: 281
Location: Netherlands

Thanks: 125 times
Was thanked: 66 time(s) in 63 post(s)
Thanks for providing the event logs.

Did you ever see the Tests Window? Or is the error pretty much immediate?

Could you submit the idea.log and the backend.log via the contact form? https://www.ncrunch.net/support/contact

The logs can be found by going to the Rider Help Menu -> Diagnostic Tools -> Show log in Explorer.

I hope we can get some more information about when the process terminates.

Remco asked if you could check the virus scanning logs, these symptoms do match with virus scanners messing things up, did you get a chance to look at that?
grzechu81
#6 Posted : Wednesday, March 27, 2024 3:12:08 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/27/2024(UTC)
Posts: 7
Location: Poland

Hi michaelkroes,

I've created support ticket as per your recommendation.

I've attached a file with :rider logs+ exported window events + short video illustrating the problem.

To also answer your question:
1. I did not see the test window. It didn't manage to load. The error was immediate.
2. When it comes to virus scanning: I've disabled all virus scanners on my machine (Avast antivirus + WIndow defender) but it didn't help :(
3. I've also tried to run the Rider as from Administrator Account - issue still persists.

Let me know if you have some other ideas what I can do to investigate it more

Thanks
Remco
#7 Posted : Wednesday, March 27, 2024 10:38:41 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 932 times
Was thanked: 1258 time(s) in 1171 post(s)
Thanks for sharing the additional details. You've been very thorough with what you've provided here, which is a huge help.

The issue itself seems to be coming from a very low level exception being thrown in the engine process during bootstrap. What's particularly interesting here is the the nature of this exception - it's entirely unmanaged and the O/S and CLR provide no additional information.

This suggests that the problem is system/environment related rather than application related.

Possible causes include:
- Stability issues with the version(s) of .NET you have installed
- Hardware/driver related issue
- Problem in the O/S
- 3rd party interference with the process during bootstrap (You've ruled out virus scanners, but maybe there is something else)

The first thing I would try is to install some different versions of .NET. Make sure you have .NET8 installed, along with another (ideally recent) version of .NET6. If the problem is specific to the version of .NET running on your system, this may resolve it.

How is the stability of your system in general? Do you experience any instability while running other software?
grzechu81
#8 Posted : Monday, April 1, 2024 1:30:20 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/27/2024(UTC)
Posts: 7
Location: Poland

Ok. I found the cause of the problem, but first I'll write about what I went through to accomplish it... :)
After the last message on the forum, I continued searching. So, I have 5 computers at home: 3 laptops and 2 desktops. The problem occurred on ALL of them !
All of them had Windows 10 and a similar configuration (installed applications), except for one laptop which is for work and has a separate configuration (different VPN settings, different antivirus, group policies managed by my company, etc.). I couldn't understand how the same problem was happening everywhere. I didn't have any stability issues on any of the computers. So how is it possible that this issue occurs everywhere!

I thought maybe I should check in a 'neutral' hardware environment - that is, on a virtual machine. I had a virtual machine installed with Windows 10 that I had used before ,with the latest Windows updates (using VMware Workstation 16.2.5). I installed Rider + ncrunch on this machine and BOOM! The problem occurred again! WHAT ?!

I thought, okay - all these Windows 10 machines have the latest updates, and maybe it's the case that the problem arises in one of the Windows updates. If I could find out which update is causing it, at least that would be some clue. So, I installed a fresh Windows 10 on the VM, with the version after installation being 15063.0, then I went through updates 15063.0, 19045.4170, up to 19045.4239. Every time I opened Rider + ncrunch on this new VM, the error didn't occur!

Wait a minute... so now I had 2 virtual machines with Windows updated to the latest versions, and the problem occurred on one and not the other! So, I tried using VirtualBox instead of VMware, but after installing Windows 10 and updating to the latest updates, the problem also didn't occur. W

I even installed Windows 11 (enterprise evaluation) on VirtualBox, and there too the problem didn't occur! I had no idea what connected all the computers (+ one VM) where the problem was to these freshly installed virtual machines.

Having exhausted all the 'human' methods that came to my mind, I gave up.
I was left with one last option - to pray. I consider myself slightly religious, so I prayed to Jesus for an idea to come. And after some time, the idea came!
Namely: what connects all these computers that I have been using for a long time ? It's that I've been using them FOR A LONG TIME and I've customized them to my needs! For example, desktop settings, explorer settings, installed favorite applications, etc.

I experimented a bit and BOOM, I found it !!! The problem occurs when in Windows 10 we change the position of the taskbar, when the taskbar is located at the top or left edge. However, when it's at the bottom or right edge of the desktop, there's no problem!

I tried to reproduce this on a virtual machine (VirtualBox) with free Windows 11 enterprise (https://developer.microsoft.com/en-us/windows/downloads/virtual-machines/) , but it wasn't easy because Windows 11 doesn't allow changing the location of the taskbar by default. For this purpose, you need to install a special program (e.g., explorer patcher https://github.com/valinet/ExplorerPatcher) and then you can change the location of the taskbar just like in Windows 10. And then the problem also occurs on Windows 11.

I hope that what I've written will help in finding the cause of the ncrunch problem.

P.S. Let Jesus be praised!
Remco
#9 Posted : Monday, April 1, 2024 10:32:39 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 932 times
Was thanked: 1258 time(s) in 1171 post(s)
Wow! Brilliant work!!! I'm extremely impressed :)

At this stage it's not clear to me how the position of the taskbar could cause an internal problem like this, but at least we now have a path to potentially reproduce the problem and hopefully we can isolate it.

Thanks for putting so much time into this. It's looking like you've just saved many people a lot of frustration. We'll update you as soon as we have more information.
grzechu81
#10 Posted : Monday, April 8, 2024 7:24:18 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/27/2024(UTC)
Posts: 7
Location: Poland

Hi,
Were you able to reproduce the issue ?
Did you maybe happen to pinpoint the root cause of the problem ?
michaelkroes
#11 Posted : Monday, April 8, 2024 8:28:45 AM(UTC)
Rank: NCrunch Developer

Groups: Registered
Joined: 9/22/2017(UTC)
Posts: 281
Location: Netherlands

Thanks: 125 times
Was thanked: 66 time(s) in 63 post(s)
Hi,

We've tried to reproduce this. We've got a physical Windows 10 machine and several Windows 10 VM's where we've moved the taskbar. We haven't had seen it crash.

The suspicion is that it's somewhere in our form setup or one of our background runners that crash. So we've gone over the code and added some extra error handling in those areas and we try to extract a stack trace from the crashing process in the hope to get some more information.

This code is in this build:

NCrunch_Rider_5.5.0.4.7z
NCrunch_Rider_5.5.0.4.zip

Would you mind trying this build?
grzechu81
#12 Posted : Monday, April 8, 2024 8:49:50 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/27/2024(UTC)
Posts: 7
Location: Poland

Ok, so this is how the situation looks like:

1. The issue I've reported oringially refered to Ncrunch version: 5.3.0.2
I've didn't explicitly say so (my bad :( ), but you could read that from the log that I've posted, text saying

... Warning: While cataloging the assembly "nCrunch.Core, Version=5.3.0.2, Culture=neutral, PublicKeyToken=01d101bf6f3e0aea", could not load the assembly reference named "System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"....

2. Today when I've opened Rider, it suggested me an update to newer version of the plugin -> 5.5.0.1. When I've installed it, the issue did not occur and I was able to see ncurnch configuration. SO the 5.5.01. alrady fixed the issue. (Thanks !)

3. On the other hand, I wasn't even able to use the version you've sent 5.5.0.4. because Rider said that I've invalid Rider version (... Plugin 'NCrunch' (version '5.5.0.4') is not compatible with the current version of the IDE, because it requires build 241.14494 or newer but the current build is RD-233.14475.66).
I'm using lastest official Rider version (JetBrains Rider 2023.3.4, Build #RD-233.14475.66, built on March 6, 2024) so you probably use some new EAP version ?

Anyway...
The good news is that the issue is fixed with 5.5.0.1 plugin version. THANKS !
Remco
#13 Posted : Monday, April 8, 2024 9:04:51 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 932 times
Was thanked: 1258 time(s) in 1171 post(s)
grzechu81;17231 wrote:

1. The issue I've reported oringially refered to Ncrunch version: 5.3.0.2


That's perfectly OK. We've been pushing versions like crazy lately. The version you've reported from was likely to be our latest at the time you discovered the issue.

grzechu81;17231 wrote:

2. Today when I've opened Rider, it suggested me an update to newer version of the plugin -> 5.5.0.1. When I've installed it, the issue did not occur and I was able to see ncurnch configuration. SO the 5.5.01. alrady fixed the issue. (Thanks !)


We've made a few internal changes in response to your report of this problem (basically just hardening some areas of code). I suspect there may be more to this issue .. perhaps there is a race condition involved. I'm hopeful that we've seen the last of it though.

grzechu81;17231 wrote:


3. On the other hand, I wasn't even able to use the version you've sent 5.5.0.4. because Rider said that I've invalid Rider version (... Plugin 'NCrunch' (version '5.5.0.4') is not compatible with the current version of the IDE, because it requires build 241.14494 or newer but the current build is RD-233.14475.66).
I'm using lastest official Rider version (JetBrains Rider 2023.3.4, Build #RD-233.14475.66, built on March 6, 2024) so you probably use some new EAP version ?


Sorry, we forgot about this. 2024.1 of Rider is just about to hit RTM, so we've been preparing for this. It's a little bit messy as we only support the latest version of Rider at the time we release .. and we weren't planning to push any builds publicly until after 2024.1 hit RTM. You can still use this new build if you want to update your Rider to the RC (which seems fairly stable for us).

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.244 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download