GNOME Bugzilla – Bug 631286
Automatic synchronisation causes tomboy 1.3.3 to crash
Last modified: 2010-10-04 15:17:54 UTC
OS: Windows 7 64bit Enterprise Tomboy 1.3.x (currently have 1.3.3 installed, but downgrading to 1.3.2 and 1.3.1 didn't help) crashes out periodically. I get the standard "This application has stopped working" dialog. It took me a while to track down because manually synchronising never fails but Tomboy would just crash out after some time of usage. This is also "relatively new", meaning that Tomboy on these versions used to work flawlessly (if a little slowly) for me all the time. I synchronise with Ubuntu One, so the idea might be that something in their API or response has changed in the last month or two. Though I would expect that should cause the manual sync to bomb out as well?
Try starting Tomboy from a command prompt with the --debug flag. When it crashes, you should get some error output we can use to figure out what's up.
Well, now I'm not even getting Tomboy to stay up whilst not synchronising. Running with --debug, I can see: [DEBUG 12:15:13.725] EnableDisable Called: enabling... True [DEBUG 12:15:13.733] Binding key '<Alt>F12' for '/apps/tomboy/global_keybindings/show_note_menu' [DEBUG 12:15:13.869] Binding key '<Alt>F11' for '/apps/tomboy/global_keybindings/open_start_here' [WARN 12:15:13.870] Preference key '/apps/tomboy/global_keybindings/open_search' does not exist, using default. [DEBUG 12:15:14.034] Unable to load icon 'tomboy-panel'. [INFO 12:15:14.364] Initializing Mono.Addins pp SCAN: SetupDomain ERROR: There was an error while scanning assembly: c:\Program Files (x86)\Tomboy\MonoPosixHelper.dll (The module was expected to contain an assembly manifest. (Exception from HRESULT: 0x80131018)) [DEBUG 12:15:18.172] AddinManager.OnAddinLoaded: Tomboy.Tomboy [DEBUG 12:15:18.173] Name: Tomboy.Tomboy,0.10 [DEBUG 12:15:18.173] Description: [DEBUG 12:15:18.174] Namespace: Tomboy [DEBUG 12:15:18.174] Enabled: True [DEBUG 12:15:18.174] File: c:\Program Files (x86)\Tomboy\Tomboy.exe pp SCAN: SetupDomain ERROR: There was an error while scanning assembly: c:\Program Files (x86)\Tomboy\MonoPosixHelper.dll (The module was expected to contain an assembly manifest. (Exception from HRESULT: 0x80131018)) Exception in Gtk# callback delegate Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception. System.InvalidOperationException: Could not read add-in description at Mono.Addins.Addin.get_Description() at Mono.Addins.TreeNode.ResetCachedData() at Mono.Addins.TreeNode.ResetCachedData() at Mono.Addins.TreeNode.ResetCachedData() at Mono.Addins.ExtensionContext.ResetCachedData() at Mono.Addins.AddinSessionService.ResetCachedData() at Mono.Addins.Database.AddinDatabase.ResetCachedData() at Mono.Addins.Database.AddinDatabase.Update(IProgressStatus monitor, String domain) at Mono.Addins.Database.AddinDatabase.Repair(IProgressStatus monitor, String domain) at Mono.Addins.AddinRegistry.Rebuild(IProgressStatus monitor) at Tomboy.AddinManager.InitializeMonoAddins(String old_conf_dir) in c:\Projects\Private\Tomboy\Tomboy\AddinManager.cs:line 94 at Tomboy.AddinManager..ctor(String tomboy_conf_dir, String old_tomboy_conf_dir) in c:\Projects\Private\Tomboy\Tomboy\AddinManager.cs:line 45 at Tomboy.NoteManager.Initialize() in c:\Projects\Private\Tomboy\Tomboy\NoteManager.cs:line 134 at Tomboy.Tomboy.<>c__DisplayClass4.<Main>b__0() in c:\Projects\Private\Tomboy\Tomboy\Tomboy.cs:line 99 at GLib.Timeout.TimeoutProxy.Handler() at GLib.ExceptionManager.RaiseUnhandledException(Exception e, Boolean is_terminal) at GLib.Timeout.TimeoutProxy.Handler() at Gtk.Application.gtk_main() at Gtk.Application.Run() at Tomboy.WindowsApplication.StartMainLoop() in c:\Projects\Private\Tomboy\Tomboy\WindowsApplication.cs:line 87 at Tomboy.Tomboy.StartTrayIcon() in c:\Projects\Private\Tomboy\Tomboy\Tomboy.cs:line 198 at Tomboy.Tomboy.Main(String[] args) in c:\Projects\Private\Tomboy\Tomboy\Tomboy.cs:line 156
Try again, please. The code path is different for --debug (it recreates the addin db, I've to admit I don't know why). Sometimes, rarely, that throws for me as well, on the first run. So tomboy.exe --debug <crash> tomboy.exe --debug <works for me, ~always> For you as well?
Ok, I did that and I think I have more useful information (notice how it only breaks after a few syncs): [DEBUG 13:12:59.777] BackgroundSyncChecker: Checking server for updates [DEBUG 13:12:59.969] Building web request for URL: http://one.ubuntu.com/notes//api/1.0/ [WARN 13:13:00.847] libproxy not installed [DEBUG 13:13:02.669] Building web request for URL: https://one.ubuntu.com/notes/api/1.0/user/ [DEBUG 13:23:00.219] BackgroundSyncChecker: Checking server for updates [DEBUG 13:23:00.219] Building web request for URL: http://one.ubuntu.com/notes//api/1.0/ [DEBUG 13:23:01.395] Building web request for URL: https://one.ubuntu.com/notes/api/1.0/user/ [DEBUG 13:33:00.315] BackgroundSyncChecker: Checking server for updates [DEBUG 13:33:00.315] Building web request for URL: http://one.ubuntu.com/notes//api/1.0/ [DEBUG 13:33:01.632] Building web request for URL: https://one.ubuntu.com/notes/api/1.0/user/ [DEBUG 13:42:59.893] BackgroundSyncChecker: Checking server for updates [DEBUG 13:42:59.893] Building web request for URL: http://one.ubuntu.com/notes//api/1.0/ [DEBUG 13:43:01.213] Building web request for URL: https://one.ubuntu.com/notes/api/1.0/user/ [DEBUG 13:53:00.021] BackgroundSyncChecker: Checking server for updates [DEBUG 13:53:00.021] Building web request for URL: http://one.ubuntu.com/notes//api/1.0/ [DEBUG 13:53:01.245] Building web request for URL: https://one.ubuntu.com/notes/api/1.0/user/ Unhandled Exception: System.DllNotFoundException: Unable to load DLL 'proxy': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at LibProxy.ProxyFactory.px_proxy_factory_free(HandleRef self) at LibProxy.ProxyFactory.Finalize() in c:\Projects\Private\Tomboy\Tomboy\Addins\WebSyncService\LibProxy\LibProxy.cs:line 80
Well, this is definitely a Windows-only bug. It looks like something I thought we'd already fixed, but it is interesting that it's showing up randomly. Will dig in and look for link to other bug later (unless Benjamin beats me to it).
Yep, this is a known bug (and even has a patch over there..). Davyd: Sorry for the inconvenience, Jeff over in bug 624885 already has a working fix and it was missed to be included so far.. There are several ways to move on: - Build Tomboy with the patch (scarier as it sounds, really) - Wait for the this fix to hit the source If you are completely, totally dependent and cannot build it yourself, drop me a line and I can provide you with a build that contains the patch. *** This bug has been marked as a duplicate of bug 624885 ***
I'm sure I could hack it -- unfortunately, grandma can't. Tomboy is the best x-platform note-taker I've found yet where I can have notes on my home machine (Ubuntu) sync'd with notes at work (win7). Please do a point-release. Pretty-please?