monodoc --edit crashes on newly created doc

Bug #370859 reported by Almacha
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
mono-tools (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I wanted to document my C# project so I did:
monodocer -assembly:path-to-the-DLL -path:docfiles

Then:
monodoc --edit docfiles

It opens and shows my library in the list, but when I try to look in it, monodoc crashes and I get these messages in the console:
node `embed' is not defined on the documentation map
Loading uncompiled help from docfiles
using GtkHtml
using GtkHtml
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.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.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)

To reproduce:
1. Download docfiles.tar.gz (attached) which are my project documentation
2. untar it
3. Do: monodoc --edit docfiles
4. Try to look in "AchaMachines"

Revision history for this message
Almacha (almacha) wrote :
Revision history for this message
Almacha (almacha) wrote :

I should add that I use monodoc-browser 2.0-0ubuntu2 under jaunty amd64.

Revision history for this message
!Falados (falados) wrote :

I am experiencing this same error on Ubuntu 9.04 (Intrepid Ibex)

Monodoc Version is (monodoc --about):

Mono Documentation Browser
2.0.0.0

Revision history for this message
!Falados (falados) wrote :

Scratch that, same version (Jaunty)

I have new updates though: It appears that the version packaged with Ubuntu only comes with one rendering engine (GtkHtml) which is the cause of this error. If the mono-doc browser were to use another rendering engine such as WebKit may fix this problem.

Revision history for this message
Jo Shields (directhex) wrote :

Bug exists on Karmic (Webkit engine)

Changed in mono-tools (Ubuntu):
status: New → Confirmed
Revision history for this message
Matthew Pirocchi (matthew-pirocchi) wrote :

I also see this bug on Karmic (Webkit engine).

Revision history for this message
Philip Peitsch (philip-peitsch) wrote :

Bug still exists in Lucid

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.