Bug 58312 - Build crash on documentation from xcode9 branch
Summary: Build crash on documentation from xcode9 branch
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Documentation ()
Version: XI 10.99 (xcode9)
Hardware: PC Mac OS
: --- normal
Target Milestone: Xcode9
Assignee: Manuel de la Peña [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2017-07-22 15:34 UTC by Miguel de Icaza [MSFT]
Modified: 2017-09-15 10:18 UTC (History)
2 users (show)

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

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:
Status:
RESOLVED FIXED

Description Miguel de Icaza [MSFT] 2017-07-22 15:34:59 UTC
Running make world when configured with --enable-xamarin aborts the build like this:

https://gist.github.com/migueldeicaza/f5950cb487d2dddb5150bfba720e7fad

Version information as requested:

=== Visual Studio Community 2017 for Mac (Preview) ===

Version Preview - Internal Dogfood (7.1 build 1251)
Installation UUID: 8956d53d-443d-454e-8cf3-e11cbc219f06
Runtime:
	Mono 5.2.0.143 (2017-04/bbad246) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 502000143

=== NuGet ===

Version: 4.3.0.2418

=== .NET Core ===

Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
	1.0.1
	1.0.0
	1.0.0-rc2-3002702
SDK: /usr/local/share/dotnet/sdk/1.0.0-preview3-004056/Sdks
SDK Versions:
	1.0.0-preview3-004056
	1.0.0-preview2-003121
	1.0.0-preview1-002702
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/msbuild/15.0/bin/Sdks

=== Xamarin.Profiler ===

Version: 1.5.4
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Xamarin.Android ===

Version: 7.3.1.1 (Visual Studio Community)
Android SDK: /Users/miguel/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		2.3   (API level 10)
		4.0.3 (API level 15)
		4.4   (API level 19)
		7.0   (API level 24)
		7.1   (API level 25)

SDK Tools Version: 25.2.5
SDK Platform Tools Version: 25.0.3
SDK Build Tools Version: 21.1.2

Java SDK: /usr
java version "1.8.0_112"
Java(TM) SE Runtime Environment (build 1.8.0_112-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.112-b16, mixed mode)

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Apple Developer Tools ===

Xcode 9.0 (13199.7)
Build 9M174d

=== Xamarin.Mac ===

Version: 3.99.1.6 (Visual Studio Community)

=== Xamarin Inspector ===

Version: 1.3.0-alpha2
Hash: fa030e0
Branch: master
Build date: Thu, 01 Jun 2017 20:55:26 GMT
Client compatibility: 1

=== Xamarin.iOS ===

Version: 10.99.1.6 (Visual Studio Community)
Hash: 218eee7c
Branch: xcode9
Build date: 2017-07-21 21:35:14-0400

=== Build Information ===

Release ID: 701001251
Git revision: 28fbd039cd660fa3b80906adba3008980c30eb88
Build date: 2017-06-23 09:37:13-04
Xamarin addins: b3555dade8157c8fdc5a10de355a93ee32ddeca7
Build lane: monodevelop-lion-dogfood-vNext

=== Operating System ===

Mac OS X 10.12.5
Darwin 16.6.0 Darwin Kernel Version 16.6.0
    Fri Apr 14 16:21:16 PDT 2017
    root:xnu-3789.60.24~6/RELEASE_X86_64 x86_64
Comment 1 Sebastien Pouliot 2017-07-24 13:08:08 UTC
@Manuel this should be done by the bots (wrench not jenkins) on each build. Please check if this works properly. Also double check with the same (or more recent mono) as Miguel's version is likely newer than the bots, Thanks!

> 	Mono 5.2.0.143 (2017-04/bbad246) (64-bit)
Comment 2 Rolf Bjarne Kvinge [MSFT] 2017-09-04 08:56:09 UTC
This happens on wrench (and seems to be the only thing keeping us from green builds):

Challenge with LoadInPlaceResult and MonoTouch.Foundation.LoadInPlaceResult
Improvement: If you document the delegate for the MonoTouch.Foundation.LoadInPlaceResult summary, you will get better async docs for MonoTouch.Foundation.NSItemProvider.LoadInPlaceFileRepresentationAsync
Document missing for type: MonoTouch.Foundation.NSProcessInfo_NSUserInformation (File missing=../../../xamarin-macios/../ios-api-docs/en/MonoTouch.Foundation/NSProcessInfo_NSUserInformation.xml), must run update-docs
ProcessNSO: Can not find docs for MonoTouch.Foundation.NSProcessInfo_NSUserInformation

Unhandled Exception:
System.Xml.XmlException: The ',' character, hexadecimal value 0x2C, cannot be included in a name. Line 1, position 239.
  at System.Xml.XmlTextReaderImpl.Throw (System.Exception e) [0x00027] in /private/tmp/source-mono-2017-04/bockbuild-2017-04/profiles/mono-mac-xamarin/build-root/mono-x64/mcs/class/referencesource/System.Xml/System/Xml/Core/XmlTextReaderImpl.cs:2503 
  at System.Xml.XmlTextReaderImpl.Throw (System.String res, System.String[] args) [0x00000] in /private/tmp/source-mono-2017-04/bockbuild-2017-04/profiles/mono-mac-xamarin/build-root/mono-x64/mcs/class/referencesource/System.Xml/System/Xml/Core/XmlTextReaderImpl.cs:2486 
  at System.Xml.XmlTextReaderImpl.Throw (System.Int32 pos, System.String res, System.String[] args) [0x0000c] in /private/tmp/source-mono-2017-04/bockbuild-2017-04/profiles/mono-mac-xamarin/build-root/mono-x64/mcs/class/referencesource/System.Xml/System/Xml/Core/XmlTextReaderImpl.cs:2461 
  at System.Xml.XmlTextReaderImpl.ParseElement () [0x002a0] in /private/tmp/source-mono-2017-04/bockbuild-2017-04/profiles/mono-mac-xamarin/build-root/mono-x64/mcs/class/referencesource/System.Xml/System/Xml/Core/XmlTextReaderImpl.cs:4051 
  at System.Xml.XmlTextReaderImpl.ParseElementContent () [0x0016f] in /private/tmp/source-mono-2017-04/bockbuild-2017-04/profiles/mono-mac-xamarin/build-root/mono-x64/mcs/class/referencesource/System.Xml/System/Xml/Core/XmlTextReaderImpl.cs:3830 
  at System.Xml.XmlTextReaderImpl.Read () [0x00085] in /private/tmp/source-mono-2017-04/bockbuild-2017-04/profiles/mono-mac-xamarin/build-root/mono-x64/mcs/class/referencesource/System.Xml/System/Xml/Core/XmlTextReaderImpl.cs:1166 
  at System.Xml.Linq.XContainer.ReadContentFrom (System.Xml.XmlReader r) [0x00201] in /private/tmp/source-mono-2017-04/bockbuild-2017-04/profiles/mono-mac-xamarin/build-root/mono-x64/mcs/class/referencesource/System.Xml.Linq/System/Xml/Linq/XLinq.cs:3085 
  at System.Xml.Linq.XContainer.ReadContentFrom (System.Xml.XmlReader r, System.Xml.Linq.LoadOptions o) [0x00005] in /private/tmp/source-mono-2017-04/bockbuild-2017-04/profiles/mono-mac-xamarin/build-root/mono-x64/mcs/class/referencesource/System.Xml.Linq/System/Xml/Linq/XLinq.cs:3090 
  at System.Xml.Linq.XElement.ReadElementFrom (System.Xml.XmlReader r, System.Xml.Linq.LoadOptions o) [0x000fe] in /private/tmp/source-mono-2017-04/bockbuild-2017-04/profiles/mono-mac-xamarin/build-root/mono-x64/mcs/class/referencesource/System.Xml.Linq/System/Xml/Linq/XLinq.cs:5110 
  at System.Xml.Linq.XElement..ctor (System.Xml.XmlReader r, System.Xml.Linq.LoadOptions o) [0x00006] in /private/tmp/source-mono-2017-04/bockbuild-2017-04/profiles/mono-mac-xamarin/build-root/mono-x64/mcs/class/referencesource/System.Xml.Linq/System/Xml/Linq/XLinq.cs:3542 
  at System.Xml.Linq.XElement.Load (System.Xml.XmlReader reader, System.Xml.Linq.LoadOptions options) [0x00044] in /private/tmp/source-mono-2017-04/bockbuild-2017-04/profiles/mono-mac-xamarin/build-root/mono-x64/mcs/class/referencesource/System.Xml.Linq/System/Xml/Linq/XLinq.cs:4048 
  at System.Xml.Linq.XElement.Parse (System.String text, System.Xml.Linq.LoadOptions options) [0x00016] in /private/tmp/source-mono-2017-04/bockbuild-2017-04/profiles/mono-mac-xamarin/build-root/mono-x64/mcs/class/referencesource/System.Xml.Linq/System/Xml/Linq/XLinq.cs:4101 
  at System.Xml.Linq.XElement.Parse (System.String text) [0x00000] in /private/tmp/source-mono-2017-04/bockbuild-2017-04/profiles/mono-mac-xamarin/build-root/mono-x64/mcs/class/referencesource/System.Xml.Linq/System/Xml/Linq/XLinq.cs:4071 
  at DocumentGeneratedCode.UpdateAsyncDocsFromMaster (System.String asyncResultTypeName, IKVM.Reflection.Type t, System.String name, System.String asyncName, System.Xml.Linq.XElement node, System.Xml.Linq.XElement nodeAsync) [0x001ca] in /Users/builder/data/lanes/5024/540044d9/source/maccore/tools/docfixer/document-generated-code.cs:637 
  at DocumentGeneratedCode.ProcessNSO (IKVM.Reflection.Type t, IKVM.Reflection.CustomAttributeData bta) [0x00345] in /Users/builder/data/lanes/5024/540044d9/source/maccore/tools/docfixer/document-generated-code.cs:823 
  at DocumentGeneratedCode.Main (System.String[] args) [0x0029c] in /Users/builder/data/lanes/5024/540044d9/source/maccore/tools/docfixer/document-generated-code.cs:1007 
[ERROR] FATAL UNHANDLED EXCEPTION: System.Xml.XmlException: The ',' character, hexadecimal value 0x2C, cannot be included in a name. Line 1, position 239.
  at System.Xml.XmlTextReaderImpl.Throw (System.Exception e) [0x00027] in /private/tmp/source-mono-2017-04/bockbuild-2017-04/profiles/mono-mac-xamarin/build-root/mono-x64/mcs/class/referencesource/System.Xml/System/Xml/Core/XmlTextReaderImpl.cs:2503 
  at System.Xml.XmlTextReaderImpl.Throw (System.String res, System.String[] args) [0x00000] in /private/tmp/source-mono-2017-04/bockbuild-2017-04/profiles/mono-mac-xamarin/build-root/mono-x64/mcs/class/referencesource/System.Xml/System/Xml/Core/XmlTextReaderImpl.cs:2486 
  at System.Xml.XmlTextReaderImpl.Throw (System.Int32 pos, System.String res, System.String[] args) [0x0000c] in /private/tmp/source-mono-2017-04/bockbuild-2017-04/profiles/mono-mac-xamarin/build-root/mono-x64/mcs/class/referencesource/System.Xml/System/Xml/Core/XmlTextReaderImpl.cs:2461 
  at System.Xml.XmlTextReaderImpl.ParseElement () [0x002a0] in /private/tmp/source-mono-2017-04/bockbuild-2017-04/profiles/mono-mac-xamarin/build-root/mono-x64/mcs/class/referencesource/System.Xml/System/Xml/Core/XmlTextReaderImpl.cs:4051 
  at System.Xml.XmlTextReaderImpl.ParseElementContent () [0x0016f] in /private/tmp/source-mono-2017-04/bockbuild-2017-04/profiles/mono-mac-xamarin/build-root/mono-x64/mcs/class/referencesource/System.Xml/System/Xml/Core/XmlTextReaderImpl.cs:3830 
  at System.Xml.XmlTextReaderImpl.Read () [0x00085] in /private/tmp/source-mono-2017-04/bockbuild-2017-04/profiles/mono-mac-xamarin/build-root/mono-x64/mcs/class/referencesource/System.Xml/System/Xml/Core/XmlTextReaderImpl.cs:1166 
  at System.Xml.Linq.XContainer.ReadContentFrom (System.Xml.XmlReader r) [0x00201] in /private/tmp/source-mono-2017-04/bockbuild-2017-04/profiles/mono-mac-xamarin/build-root/mono-x64/mcs/class/referencesource/System.Xml.Linq/System/Xml/Linq/XLinq.cs:3085 
  at System.Xml.Linq.XContainer.ReadContentFrom (System.Xml.XmlReader r, System.Xml.Linq.LoadOptions o) [0x00005] in /private/tmp/source-mono-2017-04/bockbuild-2017-04/profiles/mono-mac-xamarin/build-root/mono-x64/mcs/class/referencesource/System.Xml.Linq/System/Xml/Linq/XLinq.cs:3090 
  at System.Xml.Linq.XElement.ReadElementFrom (System.Xml.XmlReader r, System.Xml.Linq.LoadOptions o) [0x000fe] in /private/tmp/source-mono-2017-04/bockbuild-2017-04/profiles/mono-mac-xamarin/build-root/mono-x64/mcs/class/referencesource/System.Xml.Linq/System/Xml/Linq/XLinq.cs:5110 
  at System.Xml.Linq.XElement..ctor (System.Xml.XmlReader r, System.Xml.Linq.LoadOptions o) [0x00006] in /private/tmp/source-mono-2017-04/bockbuild-2017-04/profiles/mono-mac-xamarin/build-root/mono-x64/mcs/class/referencesource/System.Xml.Linq/System/Xml/Linq/XLinq.cs:3542 
  at System.Xml.Linq.XElement.Load (System.Xml.XmlReader reader, System.Xml.Linq.LoadOptions options) [0x00044] in /private/tmp/source-mono-2017-04/bockbuild-2017-04/profiles/mono-mac-xamarin/build-root/mono-x64/mcs/class/referencesource/System.Xml.Linq/System/Xml/Linq/XLinq.cs:4048 
  at System.Xml.Linq.XElement.Parse (System.String text, System.Xml.Linq.LoadOptions options) [0x00016] in /private/tmp/source-mono-2017-04/bockbuild-2017-04/profiles/mono-mac-xamarin/build-root/mono-x64/mcs/class/referencesource/System.Xml.Linq/System/Xml/Linq/XLinq.cs:4101 
  at System.Xml.Linq.XElement.Parse (System.String text) [0x00000] in /private/tmp/source-mono-2017-04/bockbuild-2017-04/profiles/mono-mac-xamarin/build-root/mono-x64/mcs/class/referencesource/System.Xml.Linq/System/Xml/Linq/XLinq.cs:4071 
  at DocumentGeneratedCode.UpdateAsyncDocsFromMaster (System.String asyncResultTypeName, IKVM.Reflection.Type t, System.String name, System.String asyncName, System.Xml.Linq.XElement node, System.Xml.Linq.XElement nodeAsync) [0x001ca] in /Users/builder/data/lanes/5024/540044d9/source/maccore/tools/docfixer/document-generated-code.cs:637 
  at DocumentGeneratedCode.ProcessNSO (IKVM.Reflection.Type t, IKVM.Reflection.CustomAttributeData bta) [0x00345] in /Users/builder/data/lanes/5024/540044d9/source/maccore/tools/docfixer/document-generated-code.cs:823 
  at DocumentGeneratedCode.Main (System.String[] args) [0x0029c] in /Users/builder/data/lanes/5024/540044d9/source/maccore/tools/docfixer/document-generated-code.cs:1007 
make[4]: *** [document-generated-code] Error 1
make[3]: *** [update-docs] Error 2
make[2]: *** [wrench-docs] Error 2
make[1]: *** [.test-docs] Error 2
Comment 3 Manuel de la Peña [MSFT] 2017-09-14 21:39:36 UTC
Fix in maccore here: https://github.com/xamarin/maccore/pull/561
Bump of maccore in xi here: https://github.com/xamarin/xamarin-macios/pull/2703
Comment 4 Manuel de la Peña [MSFT] 2017-09-15 10:06:34 UTC
PF was merged. Will close the bug as soon as I see a Wrench build that has test-docs passing.
Comment 5 Manuel de la Peña [MSFT] 2017-09-15 10:18:25 UTC
Closing bug after a correct build from Wrench here: https://wrench.internalx.com/Wrench/ViewLane.aspx?lane_id=5024&host_id=392&revision_id=912478

The log of the successful docs build is here: https://wrench.internalx.com/Wrench/WebServices/Download.aspx?workfile_id=19479719