Tomboy crashes when creating new notebook with previously deleted name

Bug #920567 reported by Andreas Jonsson on 2012-01-23
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tomboy (Ubuntu)

Bug Description

When I try to create a new notebook (right-click notebook area, select "New Notebook...") and give it a name that has previously been used (but has since been deleted) Tomboy crashes with the following errors. When creating new notebooks with any previously unused names Tomboy works as expected.

** Running Mono with --debug **
[DEBUG 12:37:34.531] NoteManager created with note path "/home/andreas/.local/share/tomboy".
[INFO 12:37:35.062] Initializing Mono.Addins
[DEBUG 12:37:35.198] AddinManager.OnAddinLoaded: Tomboy.Tomboy
[DEBUG 12:37:35.198] Name: Tomboy.Tomboy,0.10
[DEBUG 12:37:35.199] Description:
[DEBUG 12:37:35.199] Namespace: Tomboy
[DEBUG 12:37:35.199] Enabled: True
[DEBUG 12:37:35.199] File: /usr/lib/tomboy/Tomboy.exe
[DEBUG 12:37:35.819] AddinManager.OnAddinLoaded: Tomboy.ExportToHtmlAddin
[DEBUG 12:37:35.820] Name: Export to HTML
[DEBUG 12:37:35.820] Description: Exports individual notes to HTML.
[DEBUG 12:37:35.820] Namespace: Tomboy
[DEBUG 12:37:35.820] Enabled: True
[DEBUG 12:37:35.820] File: /usr/lib/tomboy/addins/ExportToHtml.dll
[DEBUG 12:37:35.823] AddinManager.OnAddinLoaded: Tomboy.WebDavSyncServiceAddin
[DEBUG 12:37:35.823] Name: WebDav Sync Service Add-in
[DEBUG 12:37:35.823] Description: Synchronize Tomboy Notes to a WebDav URL
[DEBUG 12:37:35.824] Namespace: Tomboy
[DEBUG 12:37:35.824] Enabled: True
[DEBUG 12:37:35.824] File: /usr/lib/tomboy/addins/WebDavSyncService.dll
[DEBUG 12:37:35.826] Unable to locate 'gnomesu' in your PATH
[DEBUG 12:37:35.826] Using '/usr/bin/gksu' as GUI 'su' tool
[DEBUG 12:37:35.826] Successfully found all system tools
[DEBUG 12:37:35.827] Unable to locate 'wdfs' in your PATH
[DEBUG 12:37:35.827] AddinManager.OnAddinLoaded: Tomboy.FileSystemSyncServiceAddin
[DEBUG 12:37:35.827] Name: Local Directory Sync Service Add-in
[DEBUG 12:37:35.827] Description: Synchronize Tomboy Notes to a local file system path
[DEBUG 12:37:35.827] Namespace: Tomboy
[DEBUG 12:37:35.827] Enabled: True
[DEBUG 12:37:35.827] File: /usr/lib/tomboy/addins/FileSystemSyncService.dll
[DEBUG 12:37:35.828] AddinManager.OnAddinLoaded: Tomboy.WebSyncServiceAddin
[DEBUG 12:37:35.828] Name: Web Sync Service Add-in
[DEBUG 12:37:35.828] Description: Synchronize Tomboy Notes with Tomboy Online and other compatible web services
[DEBUG 12:37:35.828] Namespace: Tomboy
[DEBUG 12:37:35.829] Enabled: True
[DEBUG 12:37:35.829] File: /usr/lib/tomboy/addins/WebSyncServiceAddin.dll
[DEBUG 12:37:35.832] Loading notes
[DEBUG 12:37:36.172] AddinManager.OnAddinLoaded: Tomboy.StickyNoteImportAddin
[DEBUG 12:37:36.172] Name: Sticky Notes Importer
[DEBUG 12:37:36.174] Description: Import your notes from the Sticky Notes applet.
[DEBUG 12:37:36.174] Namespace: Tomboy
[DEBUG 12:37:36.175] Enabled: True
[DEBUG 12:37:36.175] File: /usr/lib/tomboy/addins/StickyNoteImport.dll
[DEBUG 12:37:36.176] StickyNoteImporter: Sticky Notes XML file does not exist or is invalid!
[DEBUG 12:37:36.176] AddinManager.OnAddinLoaded: Tomboy.PrintNotesAddin
[DEBUG 12:37:36.176] Name: Printing Support
[DEBUG 12:37:36.176] Description: Allows you to print a note.
[DEBUG 12:37:36.176] Namespace: Tomboy
[DEBUG 12:37:36.176] Enabled: True
[DEBUG 12:37:36.176] File: /usr/lib/tomboy/addins/PrintNotes.dll
[DEBUG 12:37:36.177] AddinManager.OnAddinLoaded: Tomboy.InsertTimestampAddin
[DEBUG 12:37:36.177] Name: Insert Timestamp
[DEBUG 12:37:36.177] Description: Inserts current date and time at the cursor position.
[DEBUG 12:37:36.177] Namespace: Tomboy
[DEBUG 12:37:36.177] Enabled: True
[DEBUG 12:37:36.178] File: /usr/lib/tomboy/addins/InsertTimestamp.dll
[DEBUG 12:37:36.178] AddinManager.OnAddinLoaded: Tomboy.BacklinksAddin
[DEBUG 12:37:36.178] Name: Backlinks
[DEBUG 12:37:36.178] Description: See which notes link to the one you're currently viewing.
[DEBUG 12:37:36.178] Namespace: Tomboy
[DEBUG 12:37:36.178] Enabled: True
[DEBUG 12:37:36.179] File: /usr/lib/tomboy/addins/Backlinks.dll
[DEBUG 12:37:36.179] AddinManager.OnAddinLoaded: Tomboy.FixedWidthAddin
[DEBUG 12:37:36.179] Name: Fixed Width
[DEBUG 12:37:36.179] Description: Adds fixed-width font style.
[DEBUG 12:37:36.179] Namespace: Tomboy
[DEBUG 12:37:36.180] Enabled: True
[DEBUG 12:37:36.180] File: /usr/lib/tomboy/addins/FixedWidth.dll
[DEBUG 12:37:36.181] AddinManager.OnAddinLoaded: Tomboy.EvolutionAddin
[DEBUG 12:37:36.181] Name: Evolution Mail Integration
[DEBUG 12:37:36.181] Description: Allows you to drag an email from Evolution into a Tomboy note. The message subject is added as a link in the note with an envelope icon next to it.
[DEBUG 12:37:36.181] Namespace: Tomboy
[DEBUG 12:37:36.181] Enabled: True
[DEBUG 12:37:36.181] File: /usr/lib/tomboy/addins/Evolution.dll
[DEBUG 12:37:36.298] Unable to locate 'wdfs' in your PATH
[DEBUG 12:37:36.324] Tomboy remote control active.
[DEBUG 12:37:39.653] Loading notebooks
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.Exception: A note with this title already exists: Work Notebook Template
  at Tomboy.NoteManager.CreateNewNote (System.String title, System.String xml_content, System.String guid) [0x00000] in <filename unknown>:0
  at Tomboy.NoteManager.Create (System.String title, System.String xml_content) [0x00000] in <filename unknown>:0
  at Tomboy.Notebooks.Notebook.GetTemplateNote () [0x00000] in <filename unknown>:0
  at Tomboy.Notebooks.NotebookManager.GetOrCreateNotebook (System.String notebookName) [0x00000] in <filename unknown>:0
  at Tomboy.Notebooks.NotebookManager.PromptCreateNewNotebook (Gtk.Window parent, System.Collections.Generic.List`1 notesToAdd) [0x00000] in <filename unknown>:0
  at Tomboy.Notebooks.NotebookManager.PromptCreateNewNotebook (Gtk.Window parent) [0x00000] in <filename unknown>:0
  at Tomboy.NoteRecentChanges.OnNewNotebook (System.Object sender, System.EventArgs args) [0x00000] in <filename unknown>:0
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,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] in <filename unknown>:0
  --- 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] in <filename unknown>:0
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <filename unknown>:0
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0
  at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000] in <filename unknown>:0
   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 Tomboy.GnomeApplication.StartMainLoop()
   at Tomboy.Application.StartMainLoop()
   at Tomboy.Tomboy.StartTrayIcon()
   at Tomboy.Tomboy.Main(System.String[] args)

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: tomboy 1.8.0-1ubuntu1.1
ProcVersionSignature: Ubuntu 3.0.0-15.25-generic 3.0.13
Uname: Linux 3.0.0-15-generic x86_64
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Mon Jan 23 12:40:59 2012
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
 PATH=(custom, user)
SourcePackage: tomboy
UpgradeStatus: Upgraded to oneiric on 2011-10-13 (101 days ago)

Andreas Jonsson (sonofjon) wrote :
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers