[Bug] duplicate key exception when decompiling ScriptManager

3 posts, 1 answers
  1. sullivanst
    sullivanst avatar
    5 posts
    Member since:
    May 2007

    Posted 31 May 2011 Link to this post

    Just installed the May 16th build of JustDecompile and was going to planning to check out how much improvement has been made to the decompile accuracy since the first beta... I tried it on the framework v4 ScriptManager, and got the following exception:

    ---------------------------
    Error
    ---------------------------
    An error has occurred. Please, report this exception to the Telerik team (Use CTRL + C to copy the text). Thanks in advance!



    System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ---> System.AggregateException: One or more errors occurred. ---> System.ArgumentException: An item with the same key has already been added.

       at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)

       at Mono.Cecil.MetadataReader.InitializeProperties() in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\AssemblyReader.cs:line 1423

       at Mono.Cecil.MetadataReader.ReadProperties(TypeDefinition type) in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\AssemblyReader.cs:line 1371

       at Mono.Cecil.TypeDefinition.get_Properties() in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\TypeDefinition.cs:line 259

       at Mono.Cecil.Extensions.TypeDefinitionExtensions..ž.MoveNext()

       at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()

       at System.Collections.ObjectModel.ObservableCollection`1.CopyFrom(IEnumerable`1 collection)

       at Infrastructure.Structure.AssemblyMemberNode.GetChildNodes() in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\Infrastructure\Structure\AssemblyMemberNode.cs:line 89

       at System.Threading.Tasks.Task`1.InvokeFuture(Object futureAsObj)

       at System.Threading.Tasks.Task.Execute()

       --- End of inner exception stack trace ---

       at System.Threading.Tasks.Task`1.get_Result()

       at JustDecompile.Navigation.Views.CodeTreeView.†„(Task`1 task, RadTreeViewItem treeViewItem) in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile.Navigation\Views\CodeTreeView.xaml.cs:line 137

       at System.Threading.Tasks.Task.Execute()

       --- End of inner exception stack trace ---

       at System.Threading.Tasks.TaskExceptionHolder.Finalize()

    ---> (Inner Exception #0) System.AggregateException: One or more errors occurred. ---> System.ArgumentException: An item with the same key has already been added.

       at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)

       at Mono.Cecil.MetadataReader.InitializeProperties() in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\AssemblyReader.cs:line 1423

       at Mono.Cecil.MetadataReader.ReadProperties(TypeDefinition type) in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\AssemblyReader.cs:line 1371

       at Mono.Cecil.TypeDefinition.get_Properties() in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\TypeDefinition.cs:line 259

       at Mono.Cecil.Extensions.TypeDefinitionExtensions..ž.MoveNext()

       at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()

       at System.Collections.ObjectModel.ObservableCollection`1.CopyFrom(IEnumerable`1 collection)

       at Infrastructure.Structure.AssemblyMemberNode.GetChildNodes() in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\Infrastructure\Structure\AssemblyMemberNode.cs:line 89

       at System.Threading.Tasks.Task`1.InvokeFuture(Object futureAsObj)

       at System.Threading.Tasks.Task.Execute()

       --- End of inner exception stack trace ---

       at System.Threading.Tasks.Task`1.get_Result()

       at JustDecompile.Navigation.Views.CodeTreeView.†„(Task`1 task, RadTreeViewItem treeViewItem) in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile.Navigation\Views\CodeTreeView.xaml.cs:line 137

       at System.Threading.Tasks.Task.Execute()

    ---> (Inner Exception #0) System.ArgumentException: An item with the same key has already been added.

       at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)

       at Mono.Cecil.MetadataReader.InitializeProperties() in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\AssemblyReader.cs:line 1423

       at Mono.Cecil.MetadataReader.ReadProperties(TypeDefinition type) in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\AssemblyReader.cs:line 1371

       at Mono.Cecil.TypeDefinition.get_Properties() in c:\B\Behemoth\JustDecompile Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\TypeDefinition.cs:line 259

       at Mono.Cecil.Extensions.TypeDefinitionExtensions..ž.MoveNext()

       at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()

       at System.Collections.ObjectModel.ObservableCollection`1.CopyFrom(IEnumerable`1 collection)

       at Infrastructure.Structure.AssemblyMemberNode.GetChildNodes() in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\Infrastructure\Structure\AssemblyMemberNode.cs:line 89

       at System.Threading.Tasks.Task`1.InvokeFuture(Object futureAsObj)

       at System.Threading.Tasks.Task.Execute()<---

    <---


    ---------------------------
    OK   
    ---------------------------
  2. Answer
    Tsviatko Yovtchev
    Admin
    Tsviatko Yovtchev avatar
    408 posts

    Posted 07 Jun 2011 Link to this post

    Hello Matthew,

     Could you try out the latest version of JD, the one we released on teh 3rd of June? It seems we have fixed that problem there. Please, let me know how it works for you.

    Regards,
    Tsviatko Yovtchev
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  3. DevCraft banner
  4. sullivanst
    sullivanst avatar
    5 posts
    Member since:
    May 2007

    Posted 07 Jun 2011 Link to this post

    That did indeed fix it.
Back to Top