Hi Joe,

Joe Shaw wrote:
> What's strange is that there isn't any line number information in this
> trace, considering that the beagle-build-index process runs with
> Mono's debug turned on, and your previous report did have line
> numbers.
> 
> Would you mind adding some debug Console.WriteLine()s to the code to
> see if we can track down the exact line where the problem is
> occurring?
> 
> In the FileToIndexable() method in BuildIndex.cs, change this block of 
> code:
> 
> if (!file.Exists || Ignore (file) || fa_store.IsUpToDateAndFiltered
> (file.FullName))
>     return null;
> 
> to:
> 
> if (!file.Exists || Ignore (file) || fa_store.IsUpToDateAndFiltered
> (file.FullName)) {
>     Console.WriteLine ("returning null");
>     return null;
> }
> 
> and after every other line in the function, add something like:
> 
>     Console.WriteLine ("1");
> 
> (and increment the number each time.)
I've patched the method as described above and there are a lot of of 1,2,3,
4.5 and 6 console printouts but at the end the of the logs it looks like
this:

... (tons of returning null) ...
2007-03-26 17:52:10: returning null
2007-03-26 17:52:10: returning null
2007-03-26 17:52:10: returning null
2007-03-26 17:52:10: returning null
2007-03-26 17:52:10: returning null
2007-03-26 17:52:10: returning null
2007-03-26 17:52:10: returning null
2007-03-26 17:52:10: returning null
2007-03-26 17:52:10: returning null
2007-03-26 17:52:10: returning null
2007-03-26 17:52:10: returning null
2007-03-26 17:52:10: Debug: IndexWorker Done
2007-03-26 17:52:10: Warn: Exception caught while executing :Void IndexWorker()
2007-03-26 17:52:10: System.NullReferenceException: Object reference not set to 
an instance of an object
2007-03-26 17:52:10: at Beagle.Daemon.BuildIndex.FileToIndexable 
(System.IO.FileInfo file) [0x00000]
2007-03-26 17:52:10: at Beagle.Daemon.BuildIndex.IndexWorker () [0x00000]
2007-03-26 17:52:10: at (wrapper delegate-invoke) 
System.MulticastDelegate:invoke_void ()
2007-03-26 17:52:10: at Beagle.Util.ExceptionHandlingThread.ThreadStarted () 
[0x00000]
2007-03-26 17:52:12: Debug: Size: VmRSS=36.0 MB, size=3.38, 47.6%
2007-03-26 17:52:15: Debug: Size: VmRSS=43.4 MB, size=4.08, 61.5%
2007-03-26 17:52:18: Debug: Scanned 77711 files and directories in 6036 
directories
2007-03-26 17:52:18: Debug: CrawlWorker Done
2007-03-26 17:52:18: Debug: Elapsed time 24.92s.

Regards,
    Stephan.
_______________________________________________
Dashboard-hackers mailing list
Dashboard-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/dashboard-hackers

Reply via email to