Rank: Newbie
Groups: Registered
Joined: 8/19/2021(UTC) Posts: 3 Location: Canada
Thanks: 1 times Was thanked: 1 time(s) in 1 post(s)
|
Hi, i was having index out of bound problem with the new instrumentation type. I was using the legacy one and it worked completely. Since 4.9, access to the legacy instrumentation is not possible anymore and i have the same problem in vs 2022 as in vs 2019. Here is the stack trace: Quote: [PID:2952 09:43:30.7497 LocalBuildTask-43] ERROR: nCrunch.Compiler.StaticManipulation.CilTypeHashException: Unable to hash type ********.****GoogleAdsConfig' due to exception: System.IndexOutOfRangeException: Index was outside the bounds of the array. at nCrunch.Compiler.Cil.Types.CilNestedClassTable..ctor(CilModule module, CilTableInfo tableInfo) at nCrunch.Compiler.Cil.CilModule..ctor(CilAssembly assembly, CilMetadataRoot metadataRoot, CilPeHeaders peHeaders, CilContext context, DirectoryPath workingDirectory, UInt32 entryPointToken) at nCrunch.Compiler.Cil.CilAssembly..ctor(Byte[] , CilContext , DirectoryPath ) at nCrunch.Compiler.Cil.CilAssembly.Load(FilePath assemblyFile, CilContext context) at nCrunch.Compiler.Cil.CachedCilAssembly..ctor(FilePath assemblyFilePath, CilContext context, Boolean isInstrumentationTarget) at nCrunch.Compiler.Cil.CilContext.LoadAssembly(FilePath assemblyFilePath) at nCrunch.Compiler.Cil.CilSession.LoadAssembly(FilePath assemblyFilePath, Boolean isInstrumentationTarget) at nCrunch.Compiler.Cil.CilSession.(String , String , UInt16 , UInt16 , UInt16 , UInt16 , String , String ) at nCrunch.Compiler.Cil.CilSession.LoadAssembly(CilAssemblyReference assemblyReference) at nCrunch.Compiler.Cil.CilSession.GetReferencedModule(CilModule referencingModule, UInt32 assemblyRefTableRowIndex) at nCrunch.Compiler.Cil.AssemblyIdentity.CilAssemblyRefTable.GetAssemblyModuleByRowIndex(UInt32 tableIndex) at nCrunch.Compiler.Cil.Types.CilTypeReference.(CilModule ) at nCrunch.Compiler.Cil.Types.CilTypeDefinition.ResolveBaseType() at nCrunch.Compiler.StaticManipulation.CilMethodHashGenerator.HashType(FNV64& hash, CilTypeDefinition type) at nCrunch.Compiler.StaticManipulation.BuiltCilAssembly.ExtractClassMethodData(TestFrameworkDescription[] applicableTestFrameworks, IDictionary`2 codeFileIDsByForegroundFilePath, Boolean storeImpactHashes) at nCrunch.Compiler.StaticManipulation.BuiltCilAssembly.ExtractClassMethodData(TestFrameworkDescription[] applicableTestFrameworks, IDictionary`2 codeFileIDsByForegroundFilePath, Boolean storeImpactHashes) at nCrunch.Compiler.CilProcessingTasks.CilMethodHashingTask..() at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity) at nCrunch.Compiler.CilProcessingTasks.ConcurrentCilTaskProcessor.()
|