Pipeline fails to generate spritefont.

Just setup a new project. Pipeline fails to generate spritefont from font file. It is a standart spritefont file(xml) for Arial.
Try to change CharacterRegions but no luck. It is a systems default Arial and also tried with other fonts. What did I wrong?

Using:

  • Mac
  • Xamarin + MonoGame Addin v3.6.0.906
  • Pipeline 3.3 (Build on 30.03.2016)

From system:
/Users/selimanac/Development/MonoGame/MacMonoGameTest/Content/Fonts/Arial-12.spritefont
Building Font /Library/Fonts/Arial.ttf
System.NullReferenceException: Object reference not set to an instance of an object
at (wrapper unknown) SharpFont.Internal.GlyphSlotRec:PtrToStructure (intptr,object)
at (wrapper managed-to-native) System.Runtime.InteropServices.Marshal:PtrToStructure (intptr,System.Type)
at SharpFont.PInvokeHelper.PtrToStructure[T] (IntPtr reference) <0x10af7dc70 + 0x00032> in :0
at SharpFont.GlyphSlot.set_Reference (IntPtr value) <0x10af7fe50 + 0x0002d> in :0
at SharpFont.GlyphSlot…ctor (IntPtr reference, SharpFont.Face parentFace, SharpFont.Library parentLibrary) <0x10af7fd80 + 0x0002c> in :0
at SharpFont.Face.get_Glyph () <0x10af7fc80 + 0x0006e> in :0
at Microsoft.Xna.Framework.Content.Pipeline.Graphics.SharpFontImporter.ImportGlyph (Char character, SharpFont.Face face) <0x10af7ec30 + 0x00094> in :0
at Microsoft.Xna.Framework.Content.Pipeline.Graphics.SharpFontImporter.Import (Microsoft.Xna.Framework.Content.Pipeline.Graphics.FontDescription options, System.String fontName) <0x10af7ca10 + 0x00161> in :0
at Microsoft.Xna.Framework.Content.Pipeline.Processors.FontDescriptionProcessor.ImportFont (Microsoft.Xna.Framework.Content.Pipeline.Graphics.FontDescription options, System.Single& lineSpacing, System.Int32& yOffsetMin, Microsoft.Xna.Framework.Content.Pipeline.ContentProcessorContext context, System.String fontName) <0x10af7c3b0 + 0x001ce> in :0
at Microsoft.Xna.Framework.Content.Pipeline.Processors.FontDescriptionProcessor.Process (Microsoft.Xna.Framework.Content.Pipeline.Graphics.FontDescription input, Microsoft.Xna.Framework.Content.Pipeline.ContentProcessorContext context) <0x10af7ab20 + 0x004ea> in :0
/Users/selimanac/Development/MonoGame/MacMonoGameTest/Content/Fonts/Arial-12.spritefont: error: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

From folder (Content/Fonts/Arial.ttf):
/Users/selimanac/Development/MonoGame/MacMonoGameTest/Content/Fonts/Arial-12.spritefont
Building Font /Users/selimanac/Development/MonoGame/MacMonoGameTest/Content/Fonts/Arial.ttf
System.NullReferenceException: Object reference not set to an instance of an object
at (wrapper unknown) SharpFont.Internal.GlyphSlotRec:PtrToStructure (intptr,object)
at (wrapper managed-to-native) System.Runtime.InteropServices.Marshal:PtrToStructure (intptr,System.Type)
at SharpFont.PInvokeHelper.PtrToStructure[T] (IntPtr reference) <0x1066e3c70 + 0x00032> in :0
at SharpFont.GlyphSlot.set_Reference (IntPtr value) <0x1066e5e50 + 0x0002d> in :0
at SharpFont.GlyphSlot…ctor (IntPtr reference, SharpFont.Face parentFace, SharpFont.Library parentLibrary) <0x1066e5d80 + 0x0002c> in :0
at SharpFont.Face.get_Glyph () <0x1066e5c80 + 0x0006e> in :0
at Microsoft.Xna.Framework.Content.Pipeline.Graphics.SharpFontImporter.ImportGlyph (Char character, SharpFont.Face face) <0x1066e4c30 + 0x00094> in :0
at Microsoft.Xna.Framework.Content.Pipeline.Graphics.SharpFontImporter.Import (Microsoft.Xna.Framework.Content.Pipeline.Graphics.FontDescription options, System.String fontName) <0x1066e2a10 + 0x00161> in :0
at Microsoft.Xna.Framework.Content.Pipeline.Processors.FontDescriptionProcessor.ImportFont (Microsoft.Xna.Framework.Content.Pipeline.Graphics.FontDescription options, System.Single& lineSpacing, System.Int32& yOffsetMin, Microsoft.Xna.Framework.Content.Pipeline.ContentProcessorContext context, System.String fontName) <0x1066e23b0 + 0x001ce> in :0
at Microsoft.Xna.Framework.Content.Pipeline.Processors.FontDescriptionProcessor.Process (Microsoft.Xna.Framework.Content.Pipeline.Graphics.FontDescription input, Microsoft.Xna.Framework.Content.Pipeline.ContentProcessorContext context) <0x1066e0b20 + 0x004ea> in :0
/Users/selimanac/Development/MonoGame/MacMonoGameTest/Content/Fonts/Arial-12.spritefont: error: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

I had this same question. Looks like this issue has now been fixed (see thread: https://github.com/MonoGame/MonoGame/pull/5908)

Try downloading the latest pipeline tool. Helped me solve the problem.