[Mono-list] Problem using monodocer

alan battersby alan.battersby at ntlworld.com
Mon Feb 2 14:05:15 EST 2009


Hi ,
I followed the online info to generate some documentation using
monodocer, see below

 monodocer -path:docs -assembly:OTPaths/bin/Debug/basic.dll

This seemed to work ok in that files where created. I then ran monodoc
to edit these files.

monodoc --edit docs

I could see the links in the treeview but whenever I select a link
monodoc crashes with a segmentation fault

Loading uncompiled help from docs
using Gecko
using Gecko
Segmentation fault

I chased a link on the web that seemed to suggest the problem was with
Gecko so I tried

monodoc --engine GtkHtml --edit docs

but still crashes with trace shown below.

Am I doing something wrong or is there a major bug here?

Alan

Loading uncompiled help from docs
using GtkHtml
using GtkHtml
Trying: root:/extra-help-source-basic
Trying: N:Utils
#########
Error loading url N:Utils - excpetion below:
#########
System.ArgumentNullException: Argument cannot be null.
Parameter name: path
  at System.IO.FileStream..ctor (System.String path, FileMode mode,
FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous,
FileOptions options) [0x00000]
  at System.IO.FileStream..ctor (System.String path, FileMode mode,
FileAccess access, FileShare share) [0x00000]
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor
(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
  at System.IO.File.OpenRead (System.String path) [0x00000]
  at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor (System.String name)
[0x00000]
  at Monodoc.HelpSource.GetHelpXmlWithChanges (System.String id) [0x00000]
  at Monodoc.EcmaHelpSource.RenderNamespaceLookup (System.String nsurl,
Monodoc.Node& match_node) [0x00000]
  at Monodoc.RootTree.RenderUrl (System.String url, Monodoc.Node&
match_node) [0x00000]
  at Monodoc.Browser.LoadUrl (System.String url) [0x00000]
+----------------------------------------------+
| Here we should locate the provider for the   |
| link.  Maybe using this document as a base?  |
| Maybe having a locator interface?   The short|
| urls are not very useful to locate types     |
+----------------------------------------------+
Marshaling changed signal
Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to
handle the exception.
System.Reflection.TargetInvocationException: Exception has been thrown
by the target of an invocation. ---> System.NullReferenceException:
Object reference not set to an instance of an object
  at Monodoc.EcmaHelpSource.GetTextFromUrl (System.String url) [0x00000]
  at Monodoc.EcmaHelpSource.RenderTypeLookup (System.String prefix,
System.String ns, System.String type, System.String member,
Monodoc.Node& match_node) [0x00000]
  at Monodoc.RootTree.TypeLookup (System.String url, Monodoc.Node&
match_node) [0x00000]
  at Monodoc.RootTree.RenderUrl (System.String url, Monodoc.Node&
match_node) [0x00000]
  at Monodoc.TreeBrowser.RowActivated (System.Object sender,
System.EventArgs a) [0x00000]
  at (wrapper managed-to-native)
System.Reflection.MonoMethod:InternalInvoke
(object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj,
BindingFlags invokeAttr, System.Reflection.Binder binder,
System.Object[] parameters, System.Globalization.CultureInfo culture)
[0x00000]
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj,
BindingFlags invokeAttr, System.Reflection.Binder binder,
System.Object[] parameters, System.Globalization.CultureInfo culture)
[0x00000]
  at System.Reflection.MethodBase.Invoke (System.Object obj,
System.Object[] parameters) [0x00000]
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000]
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args)
[0x00000]
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000]
  at GLib.Signal.ClosureInvokedCB (System.Object o,
GLib.ClosureInvokedArgs args) [0x00000]
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000]
  at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr
return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr
invocation_hint, IntPtr marshal_data) [0x00000]
   at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e,
Boolean is_terminal)
   at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr
return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr
invocation_hint, IntPtr marshal_data)
   at Gtk.Application.gtk_main()
   at Gtk.Application.Run()
   at Monodoc.Driver.Main(System.String[] args)



More information about the Mono-list mailing list