Synchronization causes tomboy to crash due to temp file not being found.

Bug #937038 reported by JasonH
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tomboy (Ubuntu)
New
Undecided
Unassigned

Bug Description

Primary cause of the error seems to be:
[ERROR 09:46:31.795] Exception while saving note: System.IO.FileNotFoundException: /home/jherr/.local/share/tomboy/f8670d08-de0d-468e-bd6a-720ef6998ee8.note.tmp does not exist

Full debug log will be at end of bug report.

Was synchronizing notes from home to work and work to home when I caused this. Was not paying attention to order so I cannot provide much help, just that I wrote a file on one machine, synced, looked at it on the other, synced, closed windows (or rather they crashed). Since then, every sync has caused my (second machine) laptop's run of tomboy to crash. Looks to be trying to reconcile the two touched files with close timestamps and has failed?

Wish I could give more data on that issue as it it the interesting part.

The boring part. I worked around this by reading the logs (using the --debug option and running from the commandline) deleting the offending note and getting on with life. If there is a way to handle this missing tmp note file or putting some defensive coding around handling this file being missing, I'd lurve it. (If I get free time, I'll try to look at it myself).

You might wish to split this into two issues. Tight synchronization to Ubuntu One with possible time issues and the defense against the temp file missing.

The whole log file from that session:
** Running Mono with --debug **
[DEBUG 09:45:16.155] NoteManager created with note path "/home/jherr/.local/share/tomboy".
[INFO 09:45:16.737] Initializing Mono.Addins
[DEBUG 09:45:17.145] AddinManager.OnAddinLoaded: Tomboy.Tomboy
[DEBUG 09:45:17.147] Name: Tomboy.Tomboy,0.10
[DEBUG 09:45:17.147] Description:
[DEBUG 09:45:17.148] Namespace: Tomboy
[DEBUG 09:45:17.148] Enabled: True
[DEBUG 09:45:17.148] File: /usr/lib/tomboy/Tomboy.exe
[DEBUG 09:45:18.986] AddinManager.OnAddinLoaded: Tomboy.NoteOfTheDayAddin
[DEBUG 09:45:18.986] Name: Note of the Day
[DEBUG 09:45:18.986] Description: Automatically creates a "Today" note for easily jotting down daily thoughts.
[DEBUG 09:45:18.987] Namespace: Tomboy
[DEBUG 09:45:18.987] Enabled: True
[DEBUG 09:45:18.987] File: /usr/lib/tomboy/addins/NoteOfTheDay.dll
[DEBUG 09:45:18.988] AddinManager.OnAddinLoaded: Tomboy.NoteDirectoryWatcher
[DEBUG 09:45:18.988] Name: Note Directory Watcher
[DEBUG 09:45:18.988] Description: Watch your Tomboy note directory for changes to your notes.
[DEBUG 09:45:18.988] Namespace: Tomboy
[DEBUG 09:45:18.989] Enabled: True
[DEBUG 09:45:18.989] File: /usr/lib/tomboy/addins/NoteDirectoryWatcher.dll
[DEBUG 09:45:19.061] AddinManager.OnAddinLoaded: Tomboy.WebSyncServiceAddin
[DEBUG 09:45:19.062] Name: Web Sync Service Add-in
[DEBUG 09:45:19.062] Description: Synchronize Tomboy Notes with Tomboy Online and other compatible web services
[DEBUG 09:45:19.062] Namespace: Tomboy
[DEBUG 09:45:19.062] Enabled: True
[DEBUG 09:45:19.062] File: /usr/lib/tomboy/addins/WebSyncServiceAddin.dll
[DEBUG 09:45:19.063] AddinManager.OnAddinLoaded: Tomboy.WebDavSyncServiceAddin
[DEBUG 09:45:19.064] Name: WebDav Sync Service Add-in
[DEBUG 09:45:19.064] Description: Synchronize Tomboy Notes to a WebDav URL
[DEBUG 09:45:19.064] Namespace: Tomboy
[DEBUG 09:45:19.064] Enabled: True
[DEBUG 09:45:19.064] File: /usr/lib/tomboy/addins/WebDavSyncService.dll
[DEBUG 09:45:19.094] Unable to locate 'gnomesu' in your PATH
[DEBUG 09:45:19.095] Using '/usr/bin/gksu' as GUI 'su' tool
[DEBUG 09:45:19.095] Successfully found all system tools
[DEBUG 09:45:19.095] Unable to locate 'wdfs' in your PATH
[DEBUG 09:45:19.096] AddinManager.OnAddinLoaded: Tomboy.FileSystemSyncServiceAddin
[DEBUG 09:45:19.096] Name: Local Directory Sync Service Add-in
[DEBUG 09:45:19.096] Description: Synchronize Tomboy Notes to a local file system path
[DEBUG 09:45:19.096] Namespace: Tomboy
[DEBUG 09:45:19.096] Enabled: True
[DEBUG 09:45:19.097] File: /usr/lib/tomboy/addins/FileSystemSyncService.dll
[DEBUG 09:45:23.140] AddinManager.OnAddinLoaded: Tomboy.TasqueAddin
[DEBUG 09:45:23.140] Name: Tasque
[DEBUG 09:45:23.140] Description: Create a task from the current line of text in Tasque.
[DEBUG 09:45:23.140] Namespace: Tomboy
[DEBUG 09:45:23.140] Enabled: True
[DEBUG 09:45:23.141] File: /usr/lib/tomboy/addins/Tasque.Addin.dll
[DEBUG 09:45:23.142] AddinManager.OnAddinLoaded: Tomboy.ExportToHtmlAddin
[DEBUG 09:45:23.142] Name: Export to HTML
[DEBUG 09:45:23.142] Description: Exports individual notes to HTML.
[DEBUG 09:45:23.142] Namespace: Tomboy
[DEBUG 09:45:23.142] Enabled: True
[DEBUG 09:45:23.142] File: /usr/lib/tomboy/addins/ExportToHtml.dll
[DEBUG 09:45:23.144] AddinManager.OnAddinLoaded: Tomboy.PrintNotesAddin
[DEBUG 09:45:23.144] Name: Printing Support
[DEBUG 09:45:23.145] Description: Allows you to print a note.
[DEBUG 09:45:23.145] Namespace: Tomboy
[DEBUG 09:45:23.145] Enabled: True
[DEBUG 09:45:23.145] File: /usr/lib/tomboy/addins/PrintNotes.dll
[DEBUG 09:45:23.146] AddinManager.OnAddinLoaded: Tomboy.BacklinksAddin
[DEBUG 09:45:23.147] Name: Backlinks
[DEBUG 09:45:23.147] Description: See which notes link to the one you're currently viewing.
[DEBUG 09:45:23.147] Namespace: Tomboy
[DEBUG 09:45:23.147] Enabled: True
[DEBUG 09:45:23.147] File: /usr/lib/tomboy/addins/Backlinks.dll
[DEBUG 09:45:23.148] AddinManager.OnAddinLoaded: Tomboy.EvolutionAddin
[DEBUG 09:45:23.148] Name: Evolution Mail Integration
[DEBUG 09:45:23.149] 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 09:45:23.149] Namespace: Tomboy
[DEBUG 09:45:23.149] Enabled: True
[DEBUG 09:45:23.149] File: /usr/lib/tomboy/addins/Evolution.dll
[DEBUG 09:45:23.268] AddinManager.OnAddinLoaded: Tomboy.FixedWidthAddin
[DEBUG 09:45:23.269] Name: Fixed Width
[DEBUG 09:45:23.269] Description: Adds fixed-width font style.
[DEBUG 09:45:23.269] Namespace: Tomboy
[DEBUG 09:45:23.269] Enabled: True
[DEBUG 09:45:23.269] File: /usr/lib/tomboy/addins/FixedWidth.dll
[DEBUG 09:45:23.270] AddinManager.OnAddinLoaded: Tomboy.InsertTimestampAddin
[DEBUG 09:45:23.271] Name: Insert Timestamp
[DEBUG 09:45:23.271] Description: Inserts current date and time at the cursor position.
[DEBUG 09:45:23.271] Namespace: Tomboy
[DEBUG 09:45:23.271] Enabled: True
[DEBUG 09:45:23.271] File: /usr/lib/tomboy/addins/InsertTimestamp.dll
[DEBUG 09:45:23.272] AddinManager.OnAddinLoaded: Tomboy.StickyNoteImportAddin
[DEBUG 09:45:23.272] Name: Sticky Notes Importer
[DEBUG 09:45:23.272] Description: Import your notes from the Sticky Notes applet.
[DEBUG 09:45:23.272] Namespace: Tomboy
[DEBUG 09:45:23.272] Enabled: True
[DEBUG 09:45:23.272] File: /usr/lib/tomboy/addins/StickyNoteImport.dll
[DEBUG 09:45:23.273] StickyNoteImporter: Sticky Notes XML file does not exist or is invalid!
[DEBUG 09:45:23.380] Unable to locate 'wdfs' in your PATH
[DEBUG 09:45:23.381] Autosync pref changed...restarting sync timer
[DEBUG 09:45:23.401] Tomboy remote control active.
** (Tomboy:4310): DEBUG: SyncDaemon already running, initializing SyncdaemonDaemon object
[DEBUG 09:46:06.217] SyncThread using SyncServiceAddin: Ubuntu One
[DEBUG 09:46:06.225] Building web request for URL: https://edge.one.ubuntu.com/notes//api/1.0/
[DEBUG 09:46:13.089] Building web request for URL: https://edge.one.ubuntu.com/notes/api/1.0/user/
[DEBUG 09:46:13.569] 8
[DEBUG 09:46:13.574] Sync: GetNoteUpdatesSince rev 370
[DEBUG 09:46:13.577] Building web request for URL: https://edge.one.ubuntu.com/notes/api/1.0/op/?include_notes=true&since=370
[DEBUG 09:46:14.037] Sync: 1 updates since rev 370
[DEBUG 09:46:14.052] Creating Buffer for 'New Note 90 (old)'...
[DEBUG 09:46:14.086] Matching Note title 'New Note 90' at 0-11...
[DEBUG 09:46:14.109] Creating Buffer for 'New Note 90'...
[DEBUG 09:46:14.148] Building web request for URL: https://edge.one.ubuntu.com/notes/api/1.0/op/
[DEBUG 09:46:31.775] Saving 'New Note 90 (old)'...
[DEBUG 09:46:31.775] Saving 'New Note 90 (old)'...
[DEBUG 09:46:31.791] Saving 'New Note 90'...
[ERROR 09:46:31.795] Exception while saving note: System.IO.FileNotFoundException: /home/jherr/.local/share/tomboy/f8670d08-de0d-468e-bd6a-720ef6998ee8.note.tmp does not exist
File name: '/home/jherr/.local/share/tomboy/f8670d08-de0d-468e-bd6a-720ef6998ee8.note.tmp'
  at System.IO.File.Move (System.String sourceFileName, System.String destFileName) [0x00000] in <filename unknown>:0
  at Tomboy.NoteArchiver.WriteFile (System.String write_file, Tomboy.NoteData note) [0x00000] in <filename unknown>:0
  at Tomboy.NoteArchiver.Write (System.String write_file, Tomboy.NoteData note) [0x00000] in <filename unknown>:0
  at Tomboy.Note.Save () [0x00000] in <filename unknown>:0
Stacktrace:

  at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x00004>
  at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x00004>
  at Gtk.Application.Run () <IL 0x00000, 0x0000a>
  at Gnome.Program.Run () <IL 0x00000, 0x0000a>
  at Tomboy.GnomeApplication.StartMainLoop () <IL 0x00001, 0x00016>
  at Tomboy.Application.StartMainLoop () <IL 0x00005, 0x0001c>
  at Tomboy.Tomboy.StartTrayIcon () <IL 0x00014, 0x00047>
  at Tomboy.Tomboy.Main (string[]) <IL 0x001a1, 0x00354>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <IL 0x0001d, 0x00043>

Native stacktrace:

 mono() [0x80d4d0b]
 mono() [0x810ffeb]
 [0xb78d840c]
 /usr/lib/libgtk-x11-2.0.so.0(+0x27c8d6) [0xb4c178d6]
 /usr/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x7c) [0xb4475f2c]
 /usr/lib/libgobject-2.0.so.0(+0xaa87) [0xb4464a87]
 /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x192) [0xb4466412]
 /usr/lib/libgobject-2.0.so.0(+0x227d6) [0xb447c7d6]
 /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x75c) [0xb447dfac]
 /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x32) [0xb447e452]
 /usr/lib/libgtk-x11-2.0.so.0(gtk_container_check_resize+0x8a) [0xb4a3eb3a]
 /usr/lib/libgtk-x11-2.0.so.0(+0xa3b90) [0xb4a3eb90]
 /usr/lib/libgdk-x11-2.0.so.0(+0x14998) [0xb4918998]
 /lib/libglib-2.0.so.0(+0x3b841) [0xb7829841]
 /lib/libglib-2.0.so.0(g_main_context_dispatch+0x1d5) [0xb782b855]
 /lib/libglib-2.0.so.0(+0x41668) [0xb782f668]
 /lib/libglib-2.0.so.0(g_main_loop_run+0x187) [0xb782fba7]
 /usr/lib/libgtk-x11-2.0.so.0(gtk_main+0xb9) [0xb4aca1d9]
 [0xb35ef57e]
 [0xb35ef543]
 [0xb35ef523]
 [0xb35ef507]
 [0xb35ef4e5]
 [0xb3f25760]
 [0xb591d5b5]
 [0xb591d764]
 mono() [0x8061328]
 mono(mono_runtime_invoke+0x40) [0x813c890]
 mono(mono_runtime_exec_main+0xde) [0x81403de]
 mono(mono_runtime_run_main+0x112) [0x81406e2]
 mono(mono_main+0x1679) [0x80b2f99]
 mono() [0x8059385]
 /lib/libc.so.6(__libc_start_main+0xe7) [0xb7659ce7]
 mono() [0x80592c1]

Debug info from gdb:

Could not attach to process. If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Other data:
$ lsb_release -rd
Description: Ubuntu 10.10
Release: 10.10

$ apt-cache policy tomboy
tomboy:
  Installed: 1.4.2-0ubuntu2
  Candidate: 1.4.2-0ubuntu2
  Version table:
 *** 1.4.2-0ubuntu2 0
        500 http://us.archive.ubuntu.com/ubuntu/ maverick-updates/main i386 Packages
        100 /var/lib/dpkg/status
     1.4.0-0ubuntu2 0
        500 http://us.archive.ubuntu.com/ubuntu/ maverick/main i386 Packages

Hope this helps.

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.