After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 556243 - beagle-search crashes when collapsing a category
beagle-search crashes when collapsing a category
Status: RESOLVED DUPLICATE of bug 547641
Product: beagle
Classification: Other
Component: General
0.3.8
Other All
: Normal critical
: ---
Assigned To: Beagle Bugs
Beagle Bugs
Depends on:
Blocks:
 
 
Reported: 2008-10-14 09:50 UTC by Alexander Hunziker
Modified: 2008-11-09 17:42 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Alexander Hunziker 2008-10-14 09:50:25 UTC
Steps to reproduce:
1. search something using beagle-search
2. collapse a category, such as documents, or images
3. beagle-search crashes


Stack trace:
Info printed to terminal:

Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.NullReferenceException: Object reference not set to an instance of an object
  at Beagle.Search.GroupView.OnCategoryToggle (ScopeType catScope) [0x00000] 
  at Beagle.Search.Category.OnActivated (System.Object obj, System.EventArgs args) [0x00000] 
  at GLib.Signal.voidObjectCallback (IntPtr handle, IntPtr data) [0x00000] 
   at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean is_terminal)
   at GLib.Signal.voidObjectCallback(IntPtr handle, IntPtr data)
   at GLib.Signal.voidObjectCallback(IntPtr , IntPtr )
   at Gtk.Application.gtk_main()
   at Gtk.Application.gtk_main()
   at Gtk.Application.Run()
   at Gnome.Program.Run()
   at Beagle.Search.Driver.Main(System.String[] args)


Other information:
Comment 1 Ivan Stetsenko 2008-10-24 21:11:23 UTC
Confirm here. Beagle Search 0.3.8, Ubuntu 8.10
Comment 2 sangu 2008-10-31 15:47:45 UTC
https://bugzilla.redhat.com/show_bug.cgi?id=469383 : System.DllNotFoundException: libgnome-desktop-2.so.2

*** Using mono runtime at mono ***
Warn: Inotify watches may be too low (8192) for some users!  Increase it to at
least 65535 by setting fs.inotify.max_user_watches in /etc/sysctl.conf
Debug: Using utf8 encoding for filenames
Error instantiating tile:
System.DllNotFoundException: libgnome-desktop-2.so.2
  at (wrapper managed-to-native)
Beagle.Search.Tiles.ApplicationActivator:gnome_desktop_item_new_from_uri
(string,int,intptr)
  at Beagle.Search.Tiles.ApplicationActivator.Validate (Beagle.Hit hit)
[0x00000] 
  at Beagle.Search.Tiles.TileActivatorOrg.MakeTile (Beagle.Hit hit,
Beagle.Query query) [0x00000] 
No tile found for: file:///usr/share/applications/gnome-bug-buddy.desktop
(File)
Error instantiating tile:
System.DllNotFoundException: libgnome-desktop-2.so.2
  at (wrapper managed-to-native)
Beagle.Search.Tiles.ApplicationActivator:gnome_desktop_item_new_from_uri
(string,int,intptr)
  at Beagle.Search.Tiles.ApplicationActivator.Validate (Beagle.Hit hit)
[0x00000] 
  at Beagle.Search.Tiles.TileActivatorOrg.MakeTile (Beagle.Hit hit,
Beagle.Query query) [0x00000] 
No tile found for: file:///usr/share/applications/emacs.desktop (File)
Error instantiating tile:
System.DllNotFoundException: libgnome-desktop-2.so.2
  at (wrapper managed-to-native)
Beagle.Search.Tiles.ApplicationActivator:gnome_desktop_item_new_from_uri
(string,int,intptr)
  at Beagle.Search.Tiles.ApplicationActivator.Validate (Beagle.Hit hit)
[0x00000] 
  at Beagle.Search.Tiles.TileActivatorOrg.MakeTile (Beagle.Hit hit,
Beagle.Query query) [0x00000] 
No tile found for: file:///usr/share/applications/emacs.desktop (File)
Debug: Scope changed: 프로그램 maps to 'filetype:application OR
source:applications'
Error instantiating tile:
System.DllNotFoundException: libgnome-desktop-2.so.2
  at (wrapper managed-to-native)
Beagle.Search.Tiles.ApplicationActivator:gnome_desktop_item_new_from_uri
(string,int,intptr)
  at Beagle.Search.Tiles.ApplicationActivator.Validate (Beagle.Hit hit)
[0x00000] 
  at Beagle.Search.Tiles.TileActivatorOrg.MakeTile (Beagle.Hit hit,
Beagle.Query query) [0x00000] 
No tile found for:
file:///home/sangu/rpmbuild/BUILD/emacs-23.0.60/etc/emacs.desktop (File)
Error instantiating tile:
System.DllNotFoundException: libgnome-desktop-2.so.2
  at (wrapper managed-to-native)
Beagle.Search.Tiles.ApplicationActivator:gnome_desktop_item_new_from_uri
(string,int,intptr)
  at Beagle.Search.Tiles.ApplicationActivator.Validate (Beagle.Hit hit)
[0x00000] 
  at Beagle.Search.Tiles.TileActivatorOrg.MakeTile (Beagle.Hit hit,
Beagle.Query query) [0x00000] 
No tile found for:
file:///home/sangu/Work/cvs/emacs/nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop
(File)
Error instantiating tile:
System.DllNotFoundException: libgnome-desktop-2.so.2
  at (wrapper managed-to-native)
Beagle.Search.Tiles.ApplicationActivator:gnome_desktop_item_new_from_uri
(string,int,intptr)
  at Beagle.Search.Tiles.ApplicationActivator.Validate (Beagle.Hit hit)
[0x00000] 
  at Beagle.Search.Tiles.TileActivatorOrg.MakeTile (Beagle.Hit hit,
Beagle.Query query) [0x00000] 
No tile found for:
file:///home/sangu/rpmbuild/BUILD/emacs-23.0.60/nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop
(File)
Error instantiating tile:
System.DllNotFoundException: libgnome-desktop-2.so.2
  at (wrapper managed-to-native)
Beagle.Search.Tiles.ApplicationActivator:gnome_desktop_item_new_from_uri
(string,int,intptr)
  at Beagle.Search.Tiles.ApplicationActivator.Validate (Beagle.Hit hit)
[0x00000] 
  at Beagle.Search.Tiles.TileActivatorOrg.MakeTile (Beagle.Hit hit,
Beagle.Query query) [0x00000] 
No tile found for: file:///home/sangu/Work/cvs/emacs/etc/emacs.desktop (File)
Error instantiating tile:
System.DllNotFoundException: libgnome-desktop-2.so.2
  at (wrapper managed-to-native)
Beagle.Search.Tiles.ApplicationActivator:gnome_desktop_item_new_from_uri
(string,int,intptr)
  at Beagle.Search.Tiles.ApplicationActivator.Validate (Beagle.Hit hit)
[0x00000] 
  at Beagle.Search.Tiles.TileActivatorOrg.MakeTile (Beagle.Hit hit,
Beagle.Query query) [0x00000] 
No tile found for: file:///usr/share/applications/emacs.desktop (File)
Marshaling activate 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 Beagle.Search.GroupView.OnCategoryToggle (ScopeType catScope) [0x00000] 
  at Beagle.Search.Category.OnActivated (System.Object obj, System.EventArgs
args) [0x00000] 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke
(object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00000] 
  --- 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) [0x00000] 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[]
parameters) [0x00000] 
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000] 
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args)
[0x00000] 
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] 
  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 Gnome.Program.Run()
   at Beagle.Search.Driver.Main(System.String[] args)

Then,
Building beagle package doesn't require gnome-deskop-sharp.

$ cat /usr/lib/mono/gac/gnomedesktop-sharp/2.20.0.0__35e10195dab3c99f/gnomedesktop-sharp.dll.config
<configuration>
  <dllmap dll="libglib-2.0-0.dll" target="libglib-2.0.so.0"/>
  <dllmap dll="libgobject-2.0-0.dll" target="libgobject-2.0.so.0"/>
  <dllmap dll="libgthread-2.0-0.dll" target="libgthread-2.0.so.0"/>
  <dllmap dll="libgtk-win32-2.0-0.dll" target="libgtk-x11-2.0.so.0"/>
  <dllmap dll="gnome-desktop-2" target="libgnome-desktop-2.so.7"/>
</configuration>

$ rpm -qf /usr/lib/mono/gac/gnomedesktop-sharp/2.20.0.0__35e10195dab3c99f/gnomedesktop-sharp.dll.config
gnome-desktop-sharp-2.24.0-3.fc10.i386
Comment 3 drago01 2008-11-08 18:54:34 UTC
This is a duplicate of 547641 (I backported the fix to the fedora package), as for the dll issue. The soname got bumped in gnome 2.24 and beagle-search hardcodes libgnome-desktop-2.so.2 while gnome-2.24 ships libgnome-desktop-2.so.7 (fixed this in fedora by renaming the hardcoded soname and require gnome-desktop >= 2.24.0 )
Comment 4 Debajyoti Bera 2008-11-09 17:42:29 UTC
r4877 - I have removed the hardcoded library name from the source and moved the mapping to a dll config file - it will be easy to patch that way.

*** This bug has been marked as a duplicate of 547641 ***