This is Xamarin's bug tracking system. For product support, please use the support links listed in your Xamarin Account.
Bug 44549 - Ide Shuts down: System.ArgumentException: Item has already been added. Key in dictionary: 'XamlG' Key being added: 'XamlG'
Summary: Ide Shuts down: System.ArgumentException: Item has already been added. Key in...
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General (show other bugs)
Version: 6.1.0 (C8)
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: (C9)
Assignee: Ankit Jain
URL:
Depends on:
Blocks:
 
Reported: 2016-09-21 02:53 UTC by Cliff Cawley
Modified: 2016-12-09 06:47 UTC (History)
3 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
IdeLog (138.13 KB, text/plain)
2016-09-21 02:53 UTC, Cliff Cawley
Details

Description Cliff Cawley 2016-09-21 02:53:38 UTC
Created attachment 17624 [details]
IdeLog

I seem to be regularly getting the error:

System.ArgumentException: Item has already been added. Key in dictionary: 'XamlG'  Key being added: 'XamlG'

When I'm creating new classes or folders in the solution viewer. This causes Xamarin Studio to terminate and I have to restart it.

I'm not sure exactly what causes it, just that it happens quite regularly.

I've attached the full ide log which has callstacks.
Comment 1 Greg Munn 2016-11-16 20:23:31 UTC
Ankit, does this look like a mono / msbuild bug?
Comment 2 Ankit Jain 2016-11-16 23:01:15 UTC
PR: https://github.com/mono/mono/pull/3979
Comment 4 Greg Munn 2016-11-17 18:49:51 UTC
Thanks Ankit.
Comment 5 Danish Akhtar 2016-12-09 06:47:51 UTC
I have checked this issue with latest C9 builds and observed that I am successfully able to create new classes or folders in the solution viewer.

Screencast for the same: http://www.screencast.com/t/jITSIYgw4

I have also tried to reproduce this issue with builds mentioned in ide log but not able  to reproduce it. 

As of now I am closing this issue. Please feel free to reopen it, if you will encounter this issue again.

Thanks!

Env info: https://gist.github.com/danish360/c2be8ca442ca628158d03081cec0bf3b

Note You need to log in before you can comment on or make changes to this bug.