GNOME Bugzilla – Bug 625246
PDFMod crashes when performing Menu > Open or Menu > Save As
Last modified: 2010-10-06 19:59:08 UTC
Just did a fresh install of Ubuntu Lucid. PDFMod now crashes any time I try to open a file using the Menu > Open sequence or if I try to save a file using Menu > Save As sequence. I can drag and drop PDF files into PDFMod just fine. Just can open or save as. Everything worked fine in Karmic.
What version of PDF Mod? Can you run it from a terminal, with `pdfmod --debug` and reproduce your crash(es) and attach the terminal output/log? Thanks!
Here's the log when I do a Menu > Open command: [Debug 18:09:55.583] Starting PdfMod [Debug 18:09:55.612] Initializing i18n catalog from /usr/local/share/locale/ [Debug 18:09:55.886] Loaded custom AccelMap from /home/stephensjc/.config/pdfmod/gtk_accel_map [Debug 18:09:56.005] Cache directory set to /home/stephensjc/.cache/pdfmod Marshaling activate 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: path2 at System.IO.Path.Combine (System.String path1, System.String path2) [0x00000] at Hyena.XdgBaseDirectorySpec.GetXdgDirectoryUnderHome (System.String key, System.String fallback) [0x00000] at PdfMod.Gui.Client.<CreateChooser>m__A (System.String s) [0x00000] at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10`2[System.String,System.String].MoveNext () [0x00000] at System.Linq.Enumerable+<CreateWhereIterator>c__Iterator1D`1[System.String].MoveNext () [0x00000] at System.Collections.Generic.List`1[System.String].AddEnumerable (IEnumerable`1 enumerable) [0x00000] at System.Collections.Generic.List`1[System.String]..ctor (IEnumerable`1 collection) [0x00000] at System.Linq.Enumerable.ToArray[String] (IEnumerable`1 source) [0x00000] at PdfMod.Gui.Client.CreateChooser (System.String title, FileChooserAction action) [0x00000] at PdfMod.Gui.Actions.OnOpen (System.Object o, System.EventArgs args) [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 PdfMod.Gui.Client..ctor(Boolean loadFiles) at PdfMod.PdfMod.Main(System.String[] args) Here's the log when I drag and drop two separate files into PFDMod and then try to Menu > Save As: [Debug 18:12:51.913] Starting PdfMod [Debug 18:12:51.931] Initializing i18n catalog from /usr/local/share/locale/ [Debug 18:12:51.993] Loaded custom AccelMap from /home/stephensjc/.config/pdfmod/gtk_accel_map [Debug 18:12:52.007] Cache directory set to /home/stephensjc/.cache/pdfmod Author = CreationDate = 7/25/2010 6:13:01 PM Creator = cairo 1.7.4 (http://cairographics.org) Keywords = ModificationDate = 7/25/2010 6:13:01 PM Producer = cairo 1.7.4 (http://cairographics.org) Subject = Title = Page Layout = SinglePage Page Mode = UseNone SecurityLevel = None Settings.TrimMgns= PdfSharp.Pdf.TrimMargins Version = 14 # Outlines = 0 NoCompression = False ViewPreferences: CenterWindow = False Direction = DisplayDocTitle = False FitWindow = False HideMenubar = False HideToolbar = False HideWindowUI = False [Debug 18:13:41.338] Inserting pages from file:///home/stephensjc/Linux/How to save and restore package list.pdf to index 1 [Debug 18:13:41.636] Saved tmp file to /home/stephensjc/.cache/pdfmod/tmpfile-0 Marshaling activate 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: path2 at System.IO.Path.Combine (System.String path1, System.String path2) [0x00000] at Hyena.XdgBaseDirectorySpec.GetXdgDirectoryUnderHome (System.String key, System.String fallback) [0x00000] at PdfMod.Gui.Client.<CreateChooser>m__A (System.String s) [0x00000] at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10`2[System.String,System.String].MoveNext () [0x00000] at System.Linq.Enumerable+<CreateWhereIterator>c__Iterator1D`1[System.String].MoveNext () [0x00000] at System.Collections.Generic.List`1[System.String].AddEnumerable (IEnumerable`1 enumerable) [0x00000] at System.Collections.Generic.List`1[System.String]..ctor (IEnumerable`1 collection) [0x00000] at System.Linq.Enumerable.ToArray[String] (IEnumerable`1 source) [0x00000] at PdfMod.Gui.Client.CreateChooser (System.String title, FileChooserAction action) [0x00000] at PdfMod.Gui.Actions.OnSaveAs (System.Object o, System.EventArgs args) [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 PdfMod.Gui.Client..ctor(Boolean loadFiles) at PdfMod.PdfMod.Main(System.String[] args) Cairo.Context: called from finalization thread, programmer is missing a call to Dispose Cairo.Context: called from finalization thread, programmer is missing a call to Dispose Cairo.Context: called from finalization thread, programmer is missing a call to Dispose
(In reply to comment #1) > What version of PDF Mod? > > Can you run it from a terminal, with `pdfmod --debug` and reproduce your > crash(es) and attach the terminal output/log? Thanks! Here's the log when I do a Menu > Open command: [Debug 18:09:55.583] Starting PdfMod [Debug 18:09:55.612] Initializing i18n catalog from /usr/local/share/locale/ [Debug 18:09:55.886] Loaded custom AccelMap from /home/stephensjc/.config/pdfmod/gtk_accel_map [Debug 18:09:56.005] Cache directory set to /home/stephensjc/.cache/pdfmod Marshaling activate 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: path2 at System.IO.Path.Combine (System.String path1, System.String path2) [0x00000] at Hyena.XdgBaseDirectorySpec.GetXdgDirectoryUnderHome (System.String key, System.String fallback) [0x00000] at PdfMod.Gui.Client.<CreateChooser>m__A (System.String s) [0x00000] at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10`2[System.String,System.String].MoveNext () [0x00000] at System.Linq.Enumerable+<CreateWhereIterator>c__Iterator1D`1[System.String].MoveNext () [0x00000] at System.Collections.Generic.List`1[System.String].AddEnumerable (IEnumerable`1 enumerable) [0x00000] at System.Collections.Generic.List`1[System.String]..ctor (IEnumerable`1 collection) [0x00000] at System.Linq.Enumerable.ToArray[String] (IEnumerable`1 source) [0x00000] at PdfMod.Gui.Client.CreateChooser (System.String title, FileChooserAction action) [0x00000] at PdfMod.Gui.Actions.OnOpen (System.Object o, System.EventArgs args) [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 PdfMod.Gui.Client..ctor(Boolean loadFiles) at PdfMod.PdfMod.Main(System.String[] args) Here's the log when I drag and drop two separate files into PFDMod and then try to Menu > Save As: [Debug 18:12:51.913] Starting PdfMod [Debug 18:12:51.931] Initializing i18n catalog from /usr/local/share/locale/ [Debug 18:12:51.993] Loaded custom AccelMap from /home/stephensjc/.config/pdfmod/gtk_accel_map [Debug 18:12:52.007] Cache directory set to /home/stephensjc/.cache/pdfmod Author = CreationDate = 7/25/2010 6:13:01 PM Creator = cairo 1.7.4 (http://cairographics.org) Keywords = ModificationDate = 7/25/2010 6:13:01 PM Producer = cairo 1.7.4 (http://cairographics.org) Subject = Title = Page Layout = SinglePage Page Mode = UseNone SecurityLevel = None Settings.TrimMgns= PdfSharp.Pdf.TrimMargins Version = 14 # Outlines = 0 NoCompression = False ViewPreferences: CenterWindow = False Direction = DisplayDocTitle = False FitWindow = False HideMenubar = False HideToolbar = False HideWindowUI = False [Debug 18:13:41.338] Inserting pages from file:///home/stephensjc/Linux/How to save and restore package list.pdf to index 1 [Debug 18:13:41.636] Saved tmp file to /home/stephensjc/.cache/pdfmod/tmpfile-0 Marshaling activate 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: path2 at System.IO.Path.Combine (System.String path1, System.String path2) [0x00000] at Hyena.XdgBaseDirectorySpec.GetXdgDirectoryUnderHome (System.String key, System.String fallback) [0x00000] at PdfMod.Gui.Client.<CreateChooser>m__A (System.String s) [0x00000] at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10`2[System.String,System.String].MoveNext () [0x00000] at System.Linq.Enumerable+<CreateWhereIterator>c__Iterator1D`1[System.String].MoveNext () [0x00000] at System.Collections.Generic.List`1[System.String].AddEnumerable (IEnumerable`1 enumerable) [0x00000] at System.Collections.Generic.List`1[System.String]..ctor (IEnumerable`1 collection) [0x00000] at System.Linq.Enumerable.ToArray[String] (IEnumerable`1 source) [0x00000] at PdfMod.Gui.Client.CreateChooser (System.String title, FileChooserAction action) [0x00000] at PdfMod.Gui.Actions.OnSaveAs (System.Object o, System.EventArgs args) [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 PdfMod.Gui.Client..ctor(Boolean loadFiles) at PdfMod.PdfMod.Main(System.String[] args) Cairo.Context: called from finalization thread, programmer is missing a call to Dispose Cairo.Context: called from finalization thread, programmer is missing a call to Dispose Cairo.Context: called from finalization thread, programmer is missing a call to Dispose
OK, that's exactly the same crash as reported in bug #619073. What about the log for Saving?
(In reply to comment #4) > OK, that's exactly the same crash as reported in bug #619073. What about the > log for Saving? Here's the log from when I drag two different files into PDFMod and then try to save the combined file as some new file using Save As: [Debug 16:26:46.894] Starting PdfMod [Debug 16:26:46.916] Initializing i18n catalog from /usr/local/share/locale/ [Debug 16:26:47.179] Loaded custom AccelMap from /home/stephensjc/.config/pdfmod/gtk_accel_map [Debug 16:26:47.297] Cache directory set to /home/stephensjc/.cache/pdfmod Author = CreationDate = 8/4/2010 4:27:11 PM Creator = cairo 1.7.4 (http://cairographics.org) Keywords = ModificationDate = 8/4/2010 4:27:11 PM Producer = cairo 1.7.4 (http://cairographics.org) Subject = Title = Page Layout = SinglePage Page Mode = UseNone SecurityLevel = None Settings.TrimMgns= PdfSharp.Pdf.TrimMargins Version = 15 # Outlines = 0 NoCompression = False ViewPreferences: CenterWindow = False Direction = DisplayDocTitle = False FitWindow = False HideMenubar = False HideToolbar = False HideWindowUI = False [Debug 16:27:20.426] Inserting pages from file:///home/stephensjc/Linux/HomePartition.pdf to index 5 [Debug 16:27:20.706] Saved tmp file to /home/stephensjc/.cache/pdfmod/tmpfile-0 Marshaling activate 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: path2 at System.IO.Path.Combine (System.String path1, System.String path2) [0x00000] at Hyena.XdgBaseDirectorySpec.GetXdgDirectoryUnderHome (System.String key, System.String fallback) [0x00000] at PdfMod.Gui.Client.<CreateChooser>m__A (System.String s) [0x00000] at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10`2[System.String,System.String].MoveNext () [0x00000] at System.Linq.Enumerable+<CreateWhereIterator>c__Iterator1D`1[System.String].MoveNext () [0x00000] at System.Collections.Generic.List`1[System.String].AddEnumerable (IEnumerable`1 enumerable) [0x00000] at System.Collections.Generic.List`1[System.String]..ctor (IEnumerable`1 collection) [0x00000] at System.Linq.Enumerable.ToArray[String] (IEnumerable`1 source) [0x00000] at PdfMod.Gui.Client.CreateChooser (System.String title, FileChooserAction action) [0x00000] at PdfMod.Gui.Actions.OnSaveAs (System.Object o, System.EventArgs args) [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 PdfMod.Gui.Client..ctor(Boolean loadFiles) at PdfMod.PdfMod.Main(System.String[] args) Cairo.Context: called from finalization thread, programmer is missing a call to Dispose Cairo.Context: called from finalization thread, programmer is missing a call to Dispose Cairo.Context: called from finalization thread, programmer is missing a call to Dispose Cairo.Context: called from finalization thread, programmer is missing a call to Dispose
Thanks for taking the time to report this bug. This particular bug has already been reported into our bug tracking system, but we are happy to tell you that the problem has already been fixed. It should be solved in the next software version. You may want to check for a software upgrade. *** This bug has been marked as a duplicate of bug 619073 ***