Re: NullReferenceException
- From: Stephan Hegel <stephan hegel gmx de>
- To: dashboard-hackers gnome org
- Cc: Joe Shaw <joe ximian com>
- Subject: Re: NullReferenceException
- Date: Tue, 27 Mar 2007 14:45:25 +0200
Hi Joe,
Joe Shaw wrote:
Weird, this doesn't help at all!
Can you try changing this code:
else
indexable = FileToIndexable ((FileInfo) file_or_dir_info);
inside IndexWorker() to this:
else {
Console.WriteLine ("file: {0}", (FileInfo) file_or_dir_info);
indexable = FileToIndexable ((FileInfo) file_or_dir_info);
}
And give it another try?
I gave it another go. The end of the logs look now like that:
...
2007-03-27 04:09:29: returning null
2007-03-27 04:09:29: file: /usr/local/www/Bookshelf/Graphics.Programming.Text.Book/gpbb57.pdf
2007-03-27 04:09:29: returning null
2007-03-27 04:09:29: file: /usr/local/www/Bookshelf/Graphics.Programming.Text.Book/gpbb58.pdf
2007-03-27 04:09:29: returning null
2007-03-27 04:09:29: file: /usr/local/www/Bookshelf/Graphics.Programming.Text.Book/gpbb59.pdf
2007-03-27 04:09:29: returning null
2007-03-27 04:09:29: file: /usr/local/www/Bookshelf/Graphics.Programming.Text.Book/gpbb60.pdf
2007-03-27 04:09:29: returning null
2007-03-27 04:09:29: file: <--!!!
2007-03-27 04:09:29: Debug: IndexWorker Done
2007-03-27 04:09:29: Warn: Exception caught while executing :Void IndexWorker()
2007-03-27 04:09:29: System.NullReferenceException: Object reference not set to an instance of an object
2007-03-27 04:09:29: at Beagle.Daemon.BuildIndex.FileToIndexable (System.IO.FileInfo file) [0x00000]
2007-03-27 04:09:29: at Beagle.Daemon.BuildIndex.IndexWorker () [0x00000]
2007-03-27 04:09:29: at (wrapper delegate-invoke) System.MulticastDelegate:invoke_void ()
2007-03-27 04:09:29: at Beagle.Util.ExceptionHandlingThread.ThreadStarted () [0x00000]
2007-03-27 04:09:31: Debug: Size: VmRSS=35.8 MB, size=3.36, 47.1%
2007-03-27 04:09:34: Debug: Size: VmRSS=48.3 MB, size=4.53, 70.5%
2007-03-27 04:09:36: Debug: Scanned 77711 files and directories in 6036 directories
2007-03-27 04:09:36: Debug: CrawlWorker Done
2007-03-27 04:09:38: Debug: Elapsed time 41.01s.
The line marked with <--!!! looks strange to me as there is no file name.
Looks like after the exception indexing is aborted.
Notes:
The concerned directory is full of PDFs (>70).
The file gpbb60.pdf is not the last file which should be indexed,
there are more: gpbb61 should be the next, actually.
beagle-extract-content can process all PDF files - one after the
other - without problems. I've just run a foreach loop over them.
Regards,
Stephan.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]