On Wed, Dec 05, 2007 at 11:40:36AM +0100, Mirco Bauer wrote:
> 
> I believe the cause of this new crash (after updating cli-common and
> reinstalling mono-addins) was caused by a partial upgrade of mono-addins
> and restarting tomyboy.

I had a full upgrade in Debian unstable, and still saw this bug.

> Chain of events:
> - upgraded cli-common to >= 0.5.1
> - reinstalled libmono-addins2.0-cil
> - re-started tomboy -> crash, mono-addins DB got into a incosistent
> state as an exception happened caused by the missing policy file for
> mono-addins-gui.
> - upgraded libmono-addins-gui2.0-cil, started tomboy -> stil crashes
> because of corrupted addin DB.

My chain of events:

- Upgrade cli-common from 0.4.9 to 0.5.0, and libmono-addins{,-gui}2.0-cil
  from 0.2-4 to 0.3~svn.r90520-1.
- Upgrade cli-common from 0.5.0 to 0.5.2.
- Tomboy still doesn't start.  I don't think I've tried using tomboy
  between the two upgrade.

My solution/workaround:

Run "dpkg-reconfigure" on all three packages: libmono-addins2.0-cil,
libmono-addins-gui2.0-cil, and tomboy.

After that my tomboy runs normally.  The full log of error messages is
attached.

> The deletion of ~/.tomboy deleted the addins DB, and it become rebuild
> during the next start, but this time with a clean mono-addins install.
> 
> I believe this is a corner-case which wouldn't happen in normal upgrade
> scenarios, thus I am closing the bug report.

I know unstable to unstable upgrades break now and then and sometimes
are not worth fixing.  But I don't think this is a corner case, and has
nothing to do with partial upgrade.

Ming
2007.12.05
$ tomboy
[DEBUG]: NoteManager created with note path "/home/minghua/.tomboy".

** (Tomboy:3778): WARNING **: The following assembly referenced from 
/usr/lib/tomboy/Tomboy.exe could not be loaded:
     Assembly:   Mono.Addins    (assemblyref_index=7)
     Version:    0.2.0.0
     Public Key: 0738eb9f132ed756
The assembly was not found in the Global Assembly Cache, a path listed in the 
MONO_PATH environment variable, or in the location of the executing assembly 
(/usr/lib/tomboy).


** (Tomboy:3778): WARNING **: Could not load file or assembly 'Mono.Addins, 
Version=0.2.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of 
its dependencies.

** (Tomboy:3778): WARNING **: Missing method .ctor in assembly 
/usr/lib/tomboy/Tomboy.exe, type Mono.Addins.AddinEventHandler

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or 
assembly 'Mono.Addins, Version=0.2.0.0, Culture=neutral, 
PublicKeyToken=0738eb9f132ed756' or one of its dependencies.
File name: 'Mono.Addins, Version=0.2.0.0, Culture=neutral, 
PublicKeyToken=0738eb9f132ed756'
  at <0x00000> <unknown method>
  at Tomboy.AddinManager..ctor (System.String tomboy_conf_dir) [0x00000] 
  at Tomboy.NoteManager.CreateAddinManager () [0x00000] 
  at Tomboy.NoteManager..ctor (System.String directory, System.String 
backup_directory) [0x00000] 
  at Tomboy.NoteManager..ctor (System.String directory) [0x00000] 
  at Tomboy.Tomboy.Main (System.String[] args) [0x00000]

$ sudo dpkg-reconfigure libmono-addins0.2-cil
Removing libmono-addins0.2-cil from Mono
* Installing 2 assemblies from libmono-addins0.2-cil into Mono

$ tomboy
[DEBUG]: NoteManager created with note path "/home/minghua/.tomboy".
[INFO]: Initializing Mono.Addins
Assembly not found: Mono.Addins.Gui, Version=0.2.0.0, Culture=neutral, 
PublicKeyToken=0738eb9f132ed756
WARNING: The add-in 'Tomboy.NoteOfTheDayAddin,0.1' is trying to extend 
'/Tomboy/ApplicationAddins', but there isn't any add-in defining this extension 
point
WARNING: The add-in 'Tomboy.NoteOfTheDayAddin,0.1' is trying to extend 
'/Tomboy/AddinPreferences', but there isn't any add-in defining this extension 
point
WARNING: The add-in 'Tomboy.ExportToHtmlAddin,0.1' is trying to extend 
'/Tomboy/NoteAddins', but there isn't any add-in defining this extension point
WARNING: The add-in 'Tomboy.PrintNotesAddin,0.1' is trying to extend 
'/Tomboy/NoteAddins', but there isn't any add-in defining this extension point
WARNING: The add-in 'Tomboy.BacklinksAddin,0.1' is trying to extend 
'/Tomboy/NoteAddins', but there isn't any add-in defining this extension point
WARNING: The add-in 'Tomboy.EvolutionAddin,0.1' is trying to extend 
'/Tomboy/NoteAddins', but there isn't any add-in defining this extension point
WARNING: The add-in 'Tomboy.SshSyncServiceAddin,0.1' is trying to extend 
'/Tomboy/SyncServiceAddins', but there isn't any add-in defining this extension 
point
WARNING: The add-in 'Tomboy.FixedWidthAddin,0.1' is trying to extend 
'/Tomboy/NoteAddins', but there isn't any add-in defining this extension point
WARNING: The add-in 'Tomboy.WebDavSyncServiceAddin,0.1' is trying to extend 
'/Tomboy/SyncServiceAddins', but there isn't any add-in defining this extension 
point
WARNING: The add-in 'Tomboy.StickyNoteImportAddin,0.1' is trying to extend 
'/Tomboy/NoteAddins', but there isn't any add-in defining this extension point
WARNING: The add-in 'Tomboy.FileSystemSyncServiceAddin,0.1' is trying to extend 
'/Tomboy/SyncServiceAddins', but there isn't any add-in defining this extension 
point
WARNING: The add-in 'Tomboy.BugzillaAddin,0.1' is trying to extend 
'/Tomboy/NoteAddins', but there isn't any add-in defining this extension point
WARNING: The add-in 'Tomboy.BugzillaAddin,0.1' is trying to extend 
'/Tomboy/AddinPreferences', but there isn't any add-in defining this extension 
point

Unhandled Exception: System.InvalidOperationException: Extension node not found 
in path: /Tomboy/ApplicationAddins
  at Mono.Addins.ExtensionContext.AddExtensionNodeHandler (System.String path, 
Mono.Addins.ExtensionNodeEventHandler handler) [0x00000] 
  at Mono.Addins.AddinManager.AddExtensionNodeHandler (System.String path, 
Mono.Addins.ExtensionNodeEventHandler handler) [0x00000] 
  at Tomboy.AddinManager.InitializeMonoAddins () [0x00000] 
  at Tomboy.AddinManager..ctor (System.String tomboy_conf_dir) [0x00000] 
  at Tomboy.NoteManager.CreateAddinManager () [0x00000] 
  at Tomboy.NoteManager..ctor (System.String directory, System.String 
backup_directory) [0x00000] 
  at Tomboy.NoteManager..ctor (System.String directory) [0x00000] 
  at Tomboy.Tomboy.Main (System.String[] args) [0x00000]

$ sudo dpkg-reconfigure libmono-addins-gui0.2-cil
Removing libmono-addins-gui0.2-cil from Mono
* Installing 1 assembly from libmono-addins-gui0.2-cil into Mono

$ tomboy
[DEBUG]: NoteManager created with note path "/home/minghua/.tomboy".
[INFO]: Initializing Mono.Addins

Unhandled Exception: System.InvalidOperationException: Extension node not found 
in path: /Tomboy/ApplicationAddins
  at Mono.Addins.ExtensionContext.AddExtensionNodeHandler (System.String path, 
Mono.Addins.ExtensionNodeEventHandler handler) [0x00000] 
  at Mono.Addins.AddinManager.AddExtensionNodeHandler (System.String path, 
Mono.Addins.ExtensionNodeEventHandler handler) [0x00000] 
  at Tomboy.AddinManager.InitializeMonoAddins () [0x00000] 
  at Tomboy.AddinManager..ctor (System.String tomboy_conf_dir) [0x00000] 
  at Tomboy.NoteManager.CreateAddinManager () [0x00000] 
  at Tomboy.NoteManager..ctor (System.String directory, System.String 
backup_directory) [0x00000] 
  at Tomboy.NoteManager..ctor (System.String directory) [0x00000] 
  at Tomboy.Tomboy.Main (System.String[] args) [0x00000]

$ sudo dpkg-reconfigure tomboy

Reply via email to