tomboy-notes / tomboy.osx

MonoMac-based version of Tomboy.
Other
20 stars 3 forks source link

Bugzilla: System.FormatException in AppDelegate.cs:87 #47

Open trepidity opened 9 years ago

trepidity commented 9 years ago

Mike Cherry [reporter] 2015-04-21 14:30:30 UTC Running a freshly compiled version from the current git repository as of April 21st, 2015

Application was crashing and Console was showing:

4/21/15 09:01:58.208 com.apple.xpc.launchd[1]: (org.gnome.Tomboy.118460[80050]) Service exited with abnormal code: 1

This happens at line 87 in AppDelegate.cs:

NoteEngine = new Engine (noteStorage);

The issue occurred while trying to load 500+ GNote files from an old set of notes on a linux box. I was able to track it down to the following xml fields being blank in 19 of the .note files:

<create-date></create-date>
<last-change-date></last-change-date>
<last-metadata-change-date></last-metadata-change-date>

After some shell trickery to give them all the same date value (I used the value "2009-06-30T19:44:30.000000Z" from one of the working notes) everything works as expected.

Suggested fixes/improvements:

https://bugzilla.gnome.org/show_bug.cgi?id=748250

rashoodkhan commented 9 years ago

I will look in to the issue this week, hopefully the fix should be pretty straight forward. @trepidity - I also fixed some stability bugs, please try out the new version and see if you are able to crash the application ;)