Re: Static index - questions



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I don't know if this is related, but there have been issues with the
1.2.x series, I think most of them were fixed in 1.2.2, but maybe we
just uncovered another. However, while this is helpful, is there any way
you could give us a little more context we can fix the underlying
problem, which is null file objects, however, that said. The attached
patch _should_ stop the crash and allow you to keep indexing. If you get
more errors please attach them as well.

Cheers,
Kevin Kubasik

Stephan Hegel wrote:
> Hi,
> 
> D Bera wrote:
>> Is this with recent CVS ? Can you run with --mono-debug - that will
>> print line numbers ?
> beagle-build-index doesn't have an option called --mono-debug. How to
> call beagle-build-index with this option ? The script itself invokes
> mono already with --debug ...
> 
> However, in another case the crash was a bit more verbose, hope it is
> what you are looking for:
> 
> System.NullReferenceException: Object reference not set to an instance of an object
>    at Beagle.Daemon.BuildIndex.FileToIndexable (System.IO.FileInfo file) [0x00000]
>    at Beagle.Daemon.BuildIndex.IndexWorker () [0x0005e] in /home/steve/cvs.svn/beagle/beagled/BuildIndex.cs:522
>    at (wrapper delegate-invoke) System.MulticastDelegate:invoke_void ()
>    at Beagle.Util.ExceptionHandlingThread.ThreadStarted () [0x00064] in 
> /home/steve/cvs.svn/beagle/Util/ExceptionHandlingThread.cs:53
> 
> Beagle is from yesterday morning's CVS. Mono is version 1.2.2.
> 
> Regards,
>     Stephan.
> 
> 
> _______________________________________________
> Dashboard-hackers mailing list
> Dashboard-hackers gnome org
> http://mail.gnome.org/mailman/listinfo/dashboard-hackers
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIVAwUBRYDAPv3xZFNDM330AQKq+BAAq4Uw/ioCJTsXLLO3xYlvC0/xuHaLrlOz
dF/KM+1v+I8IWEAdo0A07dqhzqgt5H6iOGdnpVnmyRfxLiJh4X9GCQn3hf/JYtXa
GyXdbMrYB5gEaK4NiXd5nd+pjnxOktdgn9yhcfAhwbCeAdfe49IdkM8oZkbREO4U
W/lzLVXJaS3NyoeG//C/ysdHHCxjx/QIM3ZCZTElsG7BzxHBybsLX19r1cD8clQT
h5ToYOFAuT/tnpQ08jAA30dFjd2Snz6WzvgveqCbhgVxvRP+oe56O1Mf4JrIYT/r
FLYc5BR6mMtnY/jv5V2sjsR/hAqIIkTp90MKpPOUGjzEB+GKfnjL4vCFL7DRmJbw
giomtcFslztwGiDTbXfinR98ALGbsT/qEYabBIHBkRufxMol0nkROeHbgi48NSY4
v7COM5olAiDIASjbYyHxL8JVJ8QEWRVC86aeiqXGa4xyjYZ8iPvpZweS42c2VbH6
+EnjRKSE3y3AqLoEbokprRwDvKefD7tqOquI12bJgWCSzvzee5PNoVexHScWfxOe
pPTZxxA1glTVKFaEqx/lkejqok/X8l5tZdYju1t9cExN/ZH1EJB0VzEOoxcefgSW
7qGI1yWTVilszcdHyCSNBdbGtd26aUwxcUVdf17c854QExo2qIXn2zOl8Fp8Z4TL
/tjeAJ6uTFc=
=PC3Y
-----END PGP SIGNATURE-----
=== modified file 'beagled/BuildIndex.cs'
--- beagled/BuildIndex.cs	2006-12-12 23:58:28 +0000
+++ beagled/BuildIndex.cs	2006-12-14 03:05:20 +0000
@@ -515,7 +515,10 @@
 				while (!shutdown) {
 					if (pending_files.Count > 0) {
 						Object file_or_dir_info = pending_files.Dequeue ();
-
+						
+						if (file_or_dir_info == null)
+							continue;
+						
 						if (file_or_dir_info is DirectoryInfo)
 							indexable = DirectoryToIndexable ((DirectoryInfo) file_or_dir_info, modified_directories);
 						else

Attachment: simple_null_check.diff.sig
Description: Binary data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]