Bug 11299 - Help system text decoder exception
Summary: Help system text decoder exception
Status: NEW
Alias: None
Product: Tools
Classification: Mono
Component: Doctools ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Jérémie Laval
URL:
Depends on:
Blocks:
 
Reported: 2013-03-20 14:26 UTC by Jeffrey Stedfast
Modified: 2013-03-21 10:35 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 for Bug 11299 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description Jeffrey Stedfast 2013-03-20 14:26:45 UTC
ERROR [2013-03-20 14:18:11Z]: Monodoc documentation tree could not be loaded.
System.Text.DecoderFallbackException: Exception of type 'System.Text.DecoderFallbackException' was thrown.
  at System.Text.DecoderExceptionFallbackBuffer.Fallback (System.Byte[] bytesUnknown, Int32 index) [0x00000] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/class/corlib/System.Text/DecoderExceptionFallbackBuffer.cs:46 
  at System.Text.UTF8Encoding.Fallback (System.Object provider, System.Text.DecoderFallbackBuffer& buffer, System.Byte[]& bufferArg, System.Byte* bytes, Int64 byteIndex, UInt32 size, System.Char* chars, System.Int32& charIndex) [0x00051] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/class/corlib/System.Text/UTF8Encoding.cs:622 
  at System.Text.UTF8Encoding.InternalGetChars (System.Byte* bytes, Int32 byteCount, System.Char* chars, Int32 charCount, System.UInt32& leftOverBits, System.UInt32& leftOverCount, System.Object provider, System.Text.DecoderFallbackBuffer& fallbackBuffer, System.Byte[]& bufferArg, Boolean flush) [0x0016b] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/class/corlib/System.Text/UTF8Encoding.cs:747 
  at System.Text.UTF8Encoding.InternalGetChars (System.Byte[] bytes, Int32 byteIndex, Int32 byteCount, System.Char[] chars, Int32 charIndex, System.UInt32& leftOverBits, System.UInt32& leftOverCount, System.Object provider, System.Text.DecoderFallbackBuffer& fallbackBuffer, System.Byte[]& bufferArg, Boolean flush) [0x0010b] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/class/corlib/System.Text/UTF8Encoding.cs:678 
  at System.Text.UTF8Encoding+UTF8Decoder.GetChars (System.Byte[] bytes, Int32 byteIndex, Int32 byteCount, System.Char[] chars, Int32 charIndex) [0x00004] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/class/corlib/System.Text/UTF8Encoding.cs:950 
  at System.IO.BinaryReader.ReadString () [0x00060] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/class/corlib/System.IO/BinaryReader.cs:488 
  at Monodoc.Node.LoadNode () [0x00050] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/tools/monodoc/Monodoc/provider.cs:223 
  at Monodoc.Node.System.IComparable.CompareTo (System.Object obj) [0x00049] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/tools/monodoc/Monodoc/provider.cs:394 
  at System.Array.qsort[Object,Object] (System.Object[] keys, System.Object[] items, Int32 low0, Int32 high0, IComparer`1 comparer) [0x000e8] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/class/corlib/System/Array.cs:1748 
  at System.Array.SortImpl[Object,Object] (System.Object[] keys, System.Object[] items, Int32 index, Int32 length, IComparer`1 comparer) [0x001b6] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/class/corlib/System/Array.cs:1652 
  at System.Array.Sort[Object] (System.Object[] array, Int32 index, Int32 length, IComparer`1 comparer) [0x00050] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/class/corlib/System/Array.cs:1560 
  at System.Array.Sort[Object] (System.Object[] array, Int32 index, Int32 length) [0x00000] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/class/corlib/System/Array.cs:1535 
  at System.Collections.ArrayList.Sort () [0x00000] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/class/corlib/System.Collections/ArrayList.cs:3173 
  at Monodoc.Node.Sort () [0x0000b] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/tools/monodoc/Monodoc/provider.cs:353 
  at Monodoc.RootTree.AddSourceFile (System.String sourceFile) [0x00225] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/tools/monodoc/Monodoc/provider.cs:1050 
  at Monodoc.RootTree.LoadTree (System.String indexDir, System.Xml.XmlDocument docTree, IEnumerable`1 sourceFiles) [0x000cc] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/tools/monodoc/Monodoc/provider.cs:950 
  at Monodoc.RootTree.LoadTree (System.String basedir) [0x000e9] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/tools/monodoc/Monodoc/provider.cs:904 
  at Monodoc.RootTree.LoadTree () [0x00000] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/tools/monodoc/Monodoc/provider.cs:861 
  at MonoDevelop.Projects.HelpService.InitializeHelpTree () [0x0002a] in /Users/fejj/src/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/HelpService.cs:77
Comment 1 Jérémie Laval 2013-03-21 10:35:48 UTC
This is usually a sign of using a documentation package that was compiled with a broken monodoc (circa one of the Mono 3.0 alpha).

Verification: using `mdoc dump-tree' on the .tree file associated with the bad source will throw the same exception.

Workaround: delete the offending doc source. 

Possible fixes:
   - Recompile the offending documentation source on a 2.10 or more recent 3.0 Mono
   - Run MonoDevelop on Mono 3.0
   - Use a Mono 3.0 monodoc.dll