Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Steps to reproduce:
1. Select Multiplatform SpriteKit Game
2. Select "Use Xamarin Insights."
3. Click Create
Expected: Solution is created
Actual: XS freezes with Adding Xamarin.Insights
Using master XS + master XI + master XM
XS Info: https://gist.github.com/anonymous/128b9d1276083f0319ad
So it is actually a NuGet issue.
Matt, FWIW, I didn't repro it either until I installed master XI and XM (but I can't recall if I was using the right template at the time).
Managed to repro this. I had to install Xamarin Studio 6.0.3322 and then running the QA automation tests I hit the hang straight away. Testing my local copy of Xamarin Studio built from master seemed to be OK.
The UI thread is hung MonoDevelopWorkspace.ApplyDocumentTextChanged. The line that has locked the UI seems to be doing a .Result:
oldFile = document.GetTextAsync ().Result;
MonoDevelop.Ide.TypeSystem.MonoDevelopWorkspace.ApplyDocumentTextChanged (Microsoft.CodeAnalysis.DocumentId,Microsoft.CodeAnalysis.Text.SourceText) [0x0015f] in /Users/builder/data/lanes/432/4b3fe99a/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/MonoDevelopWorkspace.cs:720
Full callstacks for GUI Thread and NuGet are shown in the following Gist:
It does not look like the NuGet addin has hung the UI thread. It looks like its background thread is still waiting to run some code on the UI thread.
Also I am using Mono 4.2.2 so I am guessing that rules out Mono 4.3 as a cause of the hang.
Running some tests I can repro the problem most of the time with Xamarin Studio 184.108.40.20622. Out of 10 runs of the QA automation test TestCreateBuildMultiPlatformSpriteKitGame Xamarin Studio hangs 7 out of 10 times.
With Xamarin Studio 220.127.116.1105 I cannot reproduce a hang. 10 runs of the QA automation test TestCreateBuildMultiPlatformSpriteKitGame and everyone worked without a UI hang. Since nothing else in my environment has changed, just Xamarin Studio, it seems that the hang is due to Xamarin Studio and not due to Xamarin.iOS or Xamarin.Mac.
Looking at the commits for Xamarin Studio 18.104.22.16805 possibly a newer version of Roslyn has fixed a problem since I can see it has been updated recently.
XS 22.214.171.12405 commit:
Going to mark this as fixed. If it happens again please re-open this bug.
Xamarin Insights disable in C7 so I am going to remove the target milestone.
The issue was fixed on the XS UITest.