[Bsd-sharp-list]
beagle on FreeBSD: contents indexing ; frontend bug
Must Karu
mustikas008 at yahoo.com
Thu Mar 15 15:46:03 MDT 2007
Hi,
This concerns FreeBSD: I installed beagle (beagle
version: 0.2.16, mono-1.2.3.1_1) on my FreeBSD 6.2 but
noticed that it does not index file contents. It
gives:
[must at localhost ~]$ beagle-extract-content file.txt
Filename: file:///file.txt
Debug: Loaded 51 filters from
/usr/local/lib/beagle/Filters/Filters.dll
Unable to filter file:///file.txt: posix_fadvise
So it seemed FreeBSD is unable to extract file
contents because of posix_fadvise -- and this turns
out to be not implemented on FreeBSD.
Now, Im not a programmer, but I found this patch for
opensolaris
http://www.genunix.org/wiki/index.php/patch_for_beagle
which replaces a call to posix_fadvise in GiveAdvice()
by a dummy return 0. (It's a hack for now to be fixed
later -- until posix_fadvise is implemented on
FreeBSD. . .) I patched FreeBSD beagle the same way
(diff is attached), and it does index contents now! So
it's kind of more usable.
BUT: there appears a different bug now, affecting
beagle-search frontend. The search tool crashes
systematically when one highlights the search result
(after search has been made). Beagle crash result
below.
hope this might help,
must
--
Beagle frontend crash gives:
Unhandled Exception: System.NullReferenceException: A
null value was found where an object instance was
required.
at Beagle.SnippetRequest..ctor (Beagle.Query query,
Beagle.Hit hit) [0x00007] in
/usr/ports/deskutils/beagle/work/beagle-0.2.16/BeagleClient/Snippet.cs:44
at Search.Tiles.Tile.RequestSnippet () [0x00016] in
/usr/ports/deskutils/beagle/work/beagle-0.2.16/search/Tiles/Tile.cs:261
at Search.Tiles.Tile.get_Details () [0x00088] in
/usr/ports/deskutils/beagle/work/beagle-0.2.16/search/Tiles/Tile.cs:308
at Search.MainWindow.ShowInformation
(Search.Tiles.Tile tile) [0x00007] in
/usr/ports/deskutils/beagle/work/beagle-0.2.16/search/Search.cs:464
at (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_Tile
(Search.Tiles.Tile)
at Search.GroupView.OnTileSelected (System.Object
tile, System.EventArgs args) [0x00018] in
/usr/ports/deskutils/beagle/work/beagle-0.2.16/search/GroupView.cs:127
at (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_object_EventArgs
(object,System.EventArgs)
at Search.Tiles.Tile.OnFocusInEvent (Gdk.EventFocus
f) [0x0000b] in
/usr/ports/deskutils/beagle/work/beagle-0.2.16/search/Tiles/Tile.cs:228
at Gtk.Widget.focusinevent_cb (IntPtr widget, IntPtr
evnt) [0x00000]
at (wrapper native-to-managed)
Gtk.Widget:focusinevent_cb (intptr,intptr)
at <0x00000> <unknown method>
at (wrapper managed-to-native)
Gtk.Widget:gtk_widget_grab_focus (intptr)
at Gtk.Widget.GrabFocus () [0x00000]
at Search.Tiles.Tile.OnButtonPressEvent
(Gdk.EventButton b) [0x00000] in
/usr/ports/deskutils/beagle/work/beagle-0.2.16/search/Tiles/Tile.cs:210
at Gtk.Widget.buttonpressevent_cb (IntPtr widget,
IntPtr evnt) [0x00000]
at (wrapper native-to-managed)
Gtk.Widget:buttonpressevent_cb (intptr,intptr)
at <0x00000> <unknown method>
at (wrapper managed-to-native)
Gtk.Application:gtk_main ()
at Gtk.Application.Run () [0x00000]
at Gnome.Program.Run () [0x00000]
at Search.MainWindow.Main (System.String[] args)
[0x00075] in
/usr/ports/deskutils/beagle/work/beagle-0.2.16/search/Search.cs:72
____________________________________________________________________________________
Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains.
http://farechase.yahoo.com/promo-generic-14795097
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-Util_FileAdvise.cs
Type: application/octet-stream
Size: 728 bytes
Desc: 968966408-patch-Util_FileAdvise.cs
Url : http://forge.novell.com/pipermail/bsd-sharp-list/attachments/20070315/f22c1907/patch-Util_FileAdvise.obj
More information about the Bsd-sharp-list
mailing list