Issue with il2cpp

Hello, I am having an issue with il2cpp, and I was not able to debug it. The output of the run is:

Additional information: The given key was not present in the dictionary.
il2cpp.exe didn't catch exception: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Unity.IL2CPP.Metadata.VTableBuilder.OverrideInterfaceMethods(Dictionary`2 interfaceOffsets, List`1 slots, Dictionary`2 overrides, Dictionary`2 overrideMap)
at Unity.IL2CPP.Metadata.VTableBuilder.VTableForType(MinimalContext context, TypeDefinition typeDefinition, Dictionary`2 interfaceOffsets, Int32 currentSlot)
at Unity.IL2CPP.Metadata.VTableBuilder.VTableFor(MinimalContext context, TypeReference typeReference)
at Unity.IL2CPP.Metadata.VTableBuilder.VTableFor(MinimalContext context, TypeReference typeReference)
at Unity.IL2CPP.Metadata.VTableBuilder.VTableFor(MinimalContext context, TypeReference typeReference)
at Unity.IL2CPP.Metadata.VTableBuilder.IndexFor(MinimalContext context, MethodDefinition method)
at Unity.IL2CPP.MethodBodyWriter.VirtualCallFor(IGeneratedMethodCodeWriter writer, MethodReference method, MethodReference unresolvedMethod, IEnumerable`1 args, TypeResolver typeResolver, IRuntimeMetadataAccess runtimeMetadataAccess, IVTableBuilder vTableBuilder)
at Unity.IL2CPP.MethodBodyWriter.GetMethodCallExpression(IGeneratedMethodCodeWriter writer, MethodReference callingMethod, MethodReference methodToCall, MethodReference unresolvedMethodtoCall, TypeResolver typeResolverForMethodToCall, MethodCallType callType, IRuntimeMetadataAccess runtimeMetadataAccess, IVTableBuilder vTableBuilder, IEnumerable`1 argumentArray, Boolean useArrayBoundsCheck, Func`2 addUniqueSuffix)
at Unity.IL2CPP.MethodBodyWriter.CallExpressionFor(MethodReference callingMethod, MethodReference unresolvedMethodToCall, MethodCallType callType, List`1 argsFor, Func`2 addUniqueSuffix, Boolean emitNullCheckForInvocation)
at Unity.IL2CPP.MethodBodyWriter.ProcessInstruction(Node node, InstructionBlock block, Instruction& ins)
at Unity.IL2CPP.MethodBodyWriter.GenerateCodeRecursive(Node node)
at Unity.IL2CPP.MethodBodyWriter.Generate()
at Unity.IL2CPP.CodeWriterExtensions.WriteMethodWithMetadataInitialization(IGeneratedMethodCodeWriter writer, String methodSignature, String methodFullName, Action`2 writeMethodBody, String uniqueIdentifier, MethodReference methodRef)
at Unity.IL2CPP.MethodWriter.WriteMethodDefinition(AssemblyWriteContext context, IGeneratedMethodCodeWriter writer, MethodReference method, Boolean addToMethodCollection)
at Unity.IL2CPP.SourceWriter.<>c__DisplayClass7_0.<WriteMethodSourceFiles>b__0(IGeneratedMethodCodeWriter writer, TypeReference type, NPath filePath)
at Unity.IL2CPP.SourceWriter.WriteEqualSizedChunks[T](SourceWritingContext context, IEnumerable`1 items, String fileName, Int64 chunkSize, Action`1 writeHeaderAction, Action`3 writeItemAction, Action`1 writeFooterAction, Action`2 writeEnd)
at Unity.IL2CPP.SourceWriter.WriteEqualSizedChunks[T](SourceWritingContext context, IEnumerable`1 items, String fileName, Int64 chunkSize, Action`3 writeItemAction, Action`2 writeEnd)
at Unity.IL2CPP.SourceWriter.WriteMethodSourceFiles(SourceWritingContext context, String fileName, IEnumerable`1 typeList, Boolean writeMarshalingDefinitions, Boolean addToMethodCollection)
at Unity.IL2CPP.SourceWriter.Write(AssemblyWriteContext context)
at Unity.IL2CPP.AssemblyConversion.Steps.PrimaryWriteSteps.WriteAllAssemblies(GlobalWriteContext context)
at Unity.IL2CPP.AssemblyConversion.Phases.PrimaryWritePhase.Run(AssemblyConversionContext context, AssemblyDefinition singleAssembly, Boolean includeGenerics, Boolean includeDriver)
at Unity.IL2CPP.AssemblyConversion.Classic.ClassicConverter.Run(AssemblyConversionContext context)
at Unity.IL2CPP.AssemblyConversion.AssemblyConverter.ConvertAssemblies(AssemblyConversionInputData data, AssemblyConversionInputDataForMonoRuntime monoRuntimeData, AssemblyConversionParameters parameters, AssemblyConversionInputDataForTopLevelAccess dataForTopLevel)
at il2cpp.Program.DoRun(String[ ] args, RuntimePlatform platform, BuildingOptions buildingOptions)
at il2cpp.Program.Run(String[ ] args, Boolean setInvariantCulture)
at il2cpp.Program.Main(String[ ] args)

Unhandled Exception: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Unity.IL2CPP.Metadata.VTableBuilder.OverrideInterfaceMethods(Dictionary`2 interfaceOffsets, List`1 slots, Dictionary`2 overrides, Dictionary`2 overrideMap)
at Unity.IL2CPP.Metadata.VTableBuilder.VTableForType(MinimalContext context, TypeDefinition typeDefinition, Dictionary`2 interfaceOffsets, Int32 currentSlot)
at Unity.IL2CPP.Metadata.VTableBuilder.VTableFor(MinimalContext context, TypeReference typeReference)
at Unity.IL2CPP.Metadata.VTableBuilder.VTableFor(MinimalContext context, TypeReference typeReference)
at Unity.IL2CPP.Metadata.VTableBuilder.VTableFor(MinimalContext context, TypeReference typeReference)
at Unity.IL2CPP.Metadata.VTableBuilder.IndexFor(MinimalContext context, MethodDefinition method)
at Unity.IL2CPP.MethodBodyWriter.VirtualCallFor(IGeneratedMethodCodeWriter writer, MethodReference method, MethodReference unresolvedMethod, IEnumerable`1 args, TypeResolver typeResolver, IRuntimeMetadataAccess runtimeMetadataAccess, IVTableBuilder vTableBuilder)
at Unity.IL2CPP.MethodBodyWriter.GetMethodCallExpression(IGeneratedMethodCodeWriter writer, MethodReference callingMethod, MethodReference methodToCall, MethodReference unresolvedMethodtoCall, TypeResolver typeResolverForMethodToCall, MethodCallType callType, IRuntimeMetadataAccess runtimeMetadataAccess, IVTableBuilder vTableBuilder, IEnumerable`1 argumentArray, Boolean useArrayBoundsCheck, Func`2 addUniqueSuffix)
at Unity.IL2CPP.MethodBodyWriter.CallExpressionFor(MethodReference callingMethod, MethodReference unresolvedMethodToCall, MethodCallType callType, List`1 argsFor, Func`2 addUniqueSuffix, Boolean emitNullCheckForInvocation)
at Unity.IL2CPP.MethodBodyWriter.ProcessInstruction(Node node, InstructionBlock block, Instruction& ins)
at Unity.IL2CPP.MethodBodyWriter.GenerateCodeRecursive(Node node)
at Unity.IL2CPP.MethodBodyWriter.Generate()
at Unity.IL2CPP.CodeWriterExtensions.WriteMethodWithMetadataInitialization(IGeneratedMethodCodeWriter writer, String methodSignature, String methodFullName, Action`2 writeMethodBody, String uniqueIdentifier, MethodReference methodRef)
at Unity.IL2CPP.MethodWriter.WriteMethodDefinition(AssemblyWriteContext context, IGeneratedMethodCodeWriter writer, MethodReference method, Boolean addToMethodCollection)
at Unity.IL2CPP.SourceWriter.<>c__DisplayClass7_0.<WriteMethodSourceFiles>b__0(IGeneratedMethodCodeWriter writer, TypeReference type, NPath filePath)
at Unity.IL2CPP.SourceWriter.WriteEqualSizedChunks[T](SourceWritingContext context, IEnumerable`1 items, String fileName, Int64 chunkSize, Action`1 writeHeaderAction, Action`3 writeItemAction, Action`1 writeFooterAction, Action`2 writeEnd)
at Unity.IL2CPP.SourceWriter.WriteEqualSizedChunks[T](SourceWritingContext context, IEnumerable`1 items, String fileName, Int64 chunkSize, Action`3 writeItemAction, Action`2 writeEnd)
at Unity.IL2CPP.SourceWriter.WriteMethodSourceFiles(SourceWritingContext context, String fileName, IEnumerable`1 typeList, Boolean writeMarshalingDefinitions, Boolean addToMethodCollection)
at Unity.IL2CPP.SourceWriter.Write(AssemblyWriteContext context)
at Unity.IL2CPP.AssemblyConversion.Steps.PrimaryWriteSteps.WriteAllAssemblies(GlobalWriteContext context)
at Unity.IL2CPP.AssemblyConversion.Phases.PrimaryWritePhase.Run(AssemblyConversionContext context, AssemblyDefinition singleAssembly, Boolean includeGenerics, Boolean includeDriver)
at Unity.IL2CPP.AssemblyConversion.Classic.ClassicConverter.Run(AssemblyConversionContext context)
at Unity.IL2CPP.AssemblyConversion.AssemblyConverter.ConvertAssemblies(AssemblyConversionInputData data, AssemblyConversionInputDataForMonoRuntime monoRuntimeData, AssemblyConversionParameters parameters, AssemblyConversionInputDataForTopLevelAccess dataForTopLevel)
at il2cpp.Program.DoRun(String[ ] args, RuntimePlatform platform, BuildingOptions buildingOptions)
at il2cpp.Program.Run(String[ ] args, Boolean setInvariantCulture)
at il2cpp.Program.Main(String[ ] args)```

This happens when I add the IKVM* dlls as managed dlls to the project.
The dlls can be found here: https://github.com/windward-studios/ikvm8/releases/download/8.5.0.2/IKVM-Windward-bin-8.5.0.2.zip

Any ideas, what is the problem here?

Running the same command with 2020.1.4f1 version, netcoreapp3.0, I get the following issue:
Additional information: The given key 'System.IDisposable' was not present in the dictionary.

This looks like a bug in IL2CPP. Can you report a bug?

Yes, I’ve submitted a bug report.