[Bsd-sharp-list] beagle on FreeBSD: contents indexing ; frontend bug

Tom McLaughlin tmclaugh at sdf.lonestar.org
Fri Mar 16 22:43:45 MDT 2007


On Thu, 2007-03-15 at 14:46 -0700, Must Karu wrote:
> 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. 
> 

Thanks, I saw that once before and meant to look into it.  I updated the
port to 0.2.16.3 and added the patch.

> 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. 
> 

I can't even get the daemon to keep running.  Something changes in
gmime/gmime# causing it to die while trying to index my evo mailboxes.
I dropped gmime/gmime# back a version and it went away which was how I
saw the posix_fadvise problem.

I look at Beagle only every once in a while so anyone is welcome to keep
looking at it if interested.

tom

> 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
> _______________________________________________ Bsd-sharp-list mailing list Bsd-sharp-list at forge.novell.com Home Page: http://www.mono-project.com/Mono:FreeBSD Project Site: http://forge.novell.com/mailman/listinfo/bsd-sharp-list IRC: #BSD-Sharp on irc.freenode.org
-- 
| tmclaugh at sdf.lonestar.org             tmclaugh at FreeBSD.org |
| FreeBSD                                   http://www.FreeBSD.org |
| BSD#                    http://www.mono-project.com/Mono:FreeBSD |



More information about the Bsd-sharp-list mailing list