Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

IndexOutOfRangeException

$
0
0

Hello,

I have a problem while decompiling the XNA Game Speedrunners.

 

It opened the .exe with ILSpy, it appears in the assembly list, but the Code it self is just an exeption:System.ArgumentException: Ein Element mit dem gleichen Schlüssel wurde bereits hinzugefügt.
   bei System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   bei Mono.Cecil.MetadataReader.AddNestedMapping(UInt32 declaring, UInt32 nested)
   bei Mono.Cecil.MetadataReader.InitializeNestedTypes()
   bei Mono.Cecil.MetadataReader.InitializeTypeDefinitions()
   bei Mono.Cecil.MetadataReader.GetMethodDefinition(UInt32 rid)
   bei Mono.Cecil.MetadataReader.ReadEntryPoint()
   bei Mono.Cecil.ModuleDefinition.Read[TItem,TRet](TRet& variable, TItem item, Func`3 read)
   bei Mono.Cecil.ModuleDefinition.get_EntryPoint()
   bei ICSharpCode.ILSpy.CSharpLanguage.DecompileAssembly(LoadedAssembly assembly, ITextOutput output, DecompilationOptions options)
   bei ICSharpCode.ILSpy.TreeNodes.AssemblyTreeNode.Decompile(Language language, ITextOutput output, DecompilationOptions options)
   bei ICSharpCode.ILSpy.TextView.DecompilerTextView.DecompileNodes(DecompilationContext context, ITextOutput textOutput)
   bei ICSharpCode.ILSpy.TextView.DecompilerTextView.<>c__DisplayClass16.<DecompileAsync>b__15()

That only appears right after I opened it. When selecting another file and going back to Speedrunners I get this


System.IndexOutOfRangeException: Der Index war außerhalb des Arraybereichs.
   bei Mono.Cecil.PE.ByteBuffer.ReadByte()
   bei Mono.Cecil.SignatureReader..ctor(UInt32 blob, MetadataReader reader)
   bei Mono.Cecil.MetadataReader.ReadMethod(UInt32 method_rid, Collection`1 methods)
   bei Mono.Cecil.MetadataReader.ReadMethods(TypeDefinition type)
   bei Mono.Cecil.ModuleDefinition.Read[TItem,TRet](TRet& variable, TItem item, Func`3 read)
   bei Mono.Cecil.MetadataReader.LookupMethod(UInt32 rid)
   bei Mono.Cecil.MetadataReader.ReadEntryPoint()
   bei Mono.Cecil.ModuleDefinition.Read[TItem,TRet](TRet& variable, TItem item, Func`3 read)
   bei Mono.Cecil.ModuleDefinition.get_EntryPoint()
   bei ICSharpCode.ILSpy.CSharpLanguage.DecompileAssembly(LoadedAssembly assembly, ITextOutput output, DecompilationOptions options)
   bei ICSharpCode.ILSpy.TreeNodes.AssemblyTreeNode.Decompile(Language language, ITextOutput output, DecompilationOptions options)
   bei ICSharpCode.ILSpy.TextView.DecompilerTextView.DecompileNodes(DecompilationContext context, ITextOutput textOutput)
   bei ICSharpCode.ILSpy.TextView.DecompilerTextView.<>c__DisplayClass16.<DecompileAsync>b__15()


I don't know why, decompiling Terrarria for example works perfectly fine. I just want to take a look at the source code of this game.
Can you help me with this or is this like unfixable?

Timbo


Viewing all articles
Browse latest Browse all 1764

Trending Articles