GNOME Bugzilla – Bug 586605
Tomboy crashes when opening popup menu on PPC or ARM
Last modified: 2009-10-04 00:48:03 UTC
Tomboy crashes when clicking on its icon in the doc If i switch to it via Apple-Tab it works. if i click on the dock or try to switch to it via quicksilver it crashes. Tomboy 0.15.1 Mono 2.4 OS X 10.4.11 jojoo@pea:$ /Applications/Tomboy.app/Contents/MacOS/Tomboy [DEBUG]: NoteManager created with note path "/Users/jojoo/.config/tomboy". [INFO]: Initializing Mono.Addins [DEBUG]: AddinManager.OnAddinLoaded: Tomboy.Tomboy [DEBUG]: Name: Tomboy.Tomboy,0.10 [DEBUG]: Description: [DEBUG]: Namespace: Tomboy [DEBUG]: Enabled: True [DEBUG]: File: /Applications/Tomboy.app/Contents/MacOS/Tomboy.exe [DEBUG]: AddinManager.OnAddinLoaded: Tomboy.ExportToHtmlAddin [DEBUG]: Name: Export to HTML [DEBUG]: Description: Exports individual notes to HTML. [DEBUG]: Namespace: Tomboy [DEBUG]: Enabled: True [DEBUG]: File: /Applications/Tomboy.app/Contents/MacOS/ExportToHtml.dll [DEBUG]: AddinManager.OnAddinLoaded: Tomboy.BacklinksAddin [DEBUG]: Name: Backlinks [DEBUG]: Description: See which notes link to the one you're currently viewing. [DEBUG]: Namespace: Tomboy [DEBUG]: Enabled: True [DEBUG]: File: /Applications/Tomboy.app/Contents/MacOS/Backlinks.dll [DEBUG]: AddinManager.OnAddinLoaded: Tomboy.FixedWidthAddin [DEBUG]: Name: Fixed Width [DEBUG]: Description: Adds fixed-width font style. [DEBUG]: Namespace: Tomboy [DEBUG]: Enabled: True [DEBUG]: File: /Applications/Tomboy.app/Contents/MacOS/FixedWidth.dll [DEBUG]: AddinManager.OnAddinLoaded: Tomboy.WebSyncServiceAddin [DEBUG]: Name: Web Sync Service Add-in [DEBUG]: Description: Synchronize Tomboy Notes with Tomboy Online and other compatible web services [DEBUG]: Namespace: Tomboy [DEBUG]: Enabled: True [DEBUG]: File: /Applications/Tomboy.app/Contents/MacOS/WebSyncServiceAddin.dll [DEBUG]: AddinManager.OnAddinLoaded: Tomboy.FileSystemSyncServiceAddin [DEBUG]: Name: Local Directory Sync Service Add-in [DEBUG]: Description: Synchronize Tomboy Notes to a local file system path [DEBUG]: Namespace: Tomboy [DEBUG]: Enabled: True [DEBUG]: File: /Applications/Tomboy.app/Contents/MacOS/FileSystemSyncService.dll [DEBUG]: Tomboy remote control active. [DEBUG]: EnableDisable Called: enabling... True [DEBUG]: Binding key '<Alt>F12' for '/apps/tomboy/global_keybindings/show_note_menu' [DEBUG]: Preference key '/apps/tomboy/global_keybindings/open_start_here' does not exist, using default. [DEBUG]: Binding key '<Alt>F11' for '/apps/tomboy/global_keybindings/open_start_here' [DEBUG]: Preference key '/apps/tomboy/global_keybindings/create_new_note' does not exist, using default. [DEBUG]: Preference key '/apps/tomboy/global_keybindings/open_search' does not exist, using default. [DEBUG]: Preference key '/apps/tomboy/global_keybindings/open_recent_changes' does not exist, using default. Marshaling clicked 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.NullReferenceException: Object reference not set to an instance of an object at (wrapper native-to-managed) GtkSharp.MenuPositionFuncWrapper.NativeCallback (intptr,int&,int&,byte,intptr) <0x00050> at (wrapper managed-to-native) Gtk.Menu.gtk_menu_popup (intptr,intptr,intptr,GtkSharp.MenuPositionFuncNative,intptr,uint,uint) <0x000f0> at Gtk.Menu.Popup (Gtk.Widget,Gtk.Widget,Gtk.MenuPositionFunc,uint,uint) <0x000d4> at Tomboy.GuiUtils.PopupMenu (Gtk.Menu,Gdk.EventButton,Gtk.MenuPositionFunc) [0x00012] in /Users/sandy/gnome-git/tomboy/Tomboy/Utils.cs:79 at Tomboy.TomboyTrayIcon.ShowMenu (bool) [0x00039] in /Users/sandy/gnome-git/tomboy/Tomboy/Tray.cs:188 at Tomboy.MacApplication.<StartMainLoop>m__D (object,System.EventArgs) [0x00028] in /Users/sandy/gnome-git/tomboy/Tomboy/MacApplication.cs:191 at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (object,object[],System.Exception&) <0x000e4> at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) [0x00057] in /private/tmp/monobuild/build/BUILD/mono-2.4/mcs/class/corlib/System.Reflection/MonoMethod.cs:159 --- 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) [0x00071] in /private/tmp/monobuild/build/BUILD/mono-2.4/mcs/class/corlib/System.Reflection/MonoMethod.cs:169 at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /private/tmp/monobuild/build/BUILD/mono-2.4/mcs/class/corlib/System.Reflection/MethodBase.cs:111 at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000b9] in /private/tmp/monobuild/build/BUILD/mono-2.4/mcs/class/corlib/System/Delegate.cs:430 at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00018] in /private/tmp/monobuild/build/BUILD/mono-2.4/mcs/class/corlib/System/MulticastDelegate.cs:71 at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in /private/tmp/monobuild/build/BUILD/mono-2.4/mcs/class/corlib/System/Delegate.cs:402 at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000] at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000] 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.WindowsApplication.StartMainLoop() at Tomboy.MacApplication.StartMainLoop() in /Users/sandy/gnome-git/tomboy/Tomboy/MacApplication.cs:line 195 at Tomboy.Application.StartMainLoop() in /Users/sandy/gnome-git/tomboy/Tomboy/Utils.cs:line 950 at Tomboy.Tomboy.StartTrayIcon() in /Users/sandy/gnome-git/tomboy/Tomboy/Tomboy.cs:line 169 at Tomboy.Tomboy.Main(System.String[] args) in /Users/sandy/gnome-git/tomboy/
Hmm, I'll have to see if I can reproduce this. My setup is just like yours, but I don't think I have this problem. Clicking the Tomboy dock icon brings up the notes menu that you see when you click on the icon in Linux or Windows, and that is what is crashing for you. Please let me know if each of these causes the crash: 1) Click the icon and make sure not to move your mouse at all 2) Click the icon while moving the mouse slightly over the icon 3) Click the icon while moving the mouse quickly *off* of the icon Thanks for reporting this!
it crashes in all three cases, i've testet twice. do you need the log for all of the crashes?
(In reply to comment #2) > it crashes in all three cases, i've testet twice. Okay, thank you for the additional info. > do you need the log for all of the crashes? No, I think the one you provided is sufficient. It may be a month or so before I look into this, as I'm going to be out of the country for the next few weeks.
I've recently been made aware of a similar crash on Linux for PPC and ARM users. Is your Mac PPC or Intel? Here are the related bugs: GNOME: bug #593422 Ubuntu: https://bugs.launchpad.net/ubuntu/karmic/+source/tomboy/+bug/391124 Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=544022 Thanks!
I've confirmed this on my PPC iBook (before I had only tested on my Intel iMac). Hopefully it can be fixed without changes to Mono or gtk-sharp. Of note, it worked fine on the same hardware with Mono 2.0 and Tomboy 0.13.0.
MonoDevelop exhibits the same problem (except it doesn't crash, it just pops up an error).
*** Bug 593422 has been marked as a duplicate of this bug. ***
Created attachment 142611 [details] [review] Work-around the gtk-sharp/mono bug, menu positioning may suffer a bit for PPC/ARM users The only big endian hardware I have available for testing is a PPC iBook running Mac OS X, so that's what I tested with. I'd appreciate if somebody with PPC Linux or ARM Linux would test this patch ASAP (I need to do a release tomorrow). Click on the Tomboy icon to bring up the note menu, and in a note window click on the Text, Tools, and Notebook toolbar buttons (they all bring up menus). Also right-click in various areas of the Search window. On the Mac, this bug did not exist in the Mono 2.0 package (which presumably had an older gtk+ and gtk-sharp as well) with Tomboy 0.13.0, so it appears to be a regression in either Mono or gtk-sharp. I filed a bug upstream here: https://bugzilla.novell.com/show_bug.cgi?id=537118
Comment on attachment 142611 [details] [review] Work-around the gtk-sharp/mono bug, menu positioning may suffer a bit for PPC/ARM users Tested by ARM users (see the LP bug), works for them, pushing.