GNOME Bugzilla – Bug 504192
exception trying to access nautilus metadata
Last modified: 2007-12-19 00:13:57 UTC
This is on Mandriva Cooker i586 with beagle 0.3.1, mono 1.2.6 and nautilus 2.20.0. After 8 hours, my log dir is 2.6 GiB, this is the error that is written endlessly: 20071218 08:16:14.1378 14294 Beagle WARN EX: Caught exception in DoTaskReal 20071218 08:16:14.1378 14294 Beagle WARN EX: Tag: Crawling Nautilus Metadata 20071218 08:16:14.1378 14294 Beagle WARN EX: Creator: 20071218 08:16:14.1378 14294 Beagle WARN EX: Description: 20071218 08:16:14.1378 14294 Beagle WARN EX: Priority: Delayed (0) 20071218 08:16:14.1378 14294 Beagle WARN EX: System.Xml.XmlException: Document element did not appear. Line 1, position 1. 20071218 08:16:14.1378 14294 Beagle WARN EX: at Mono.Xml2.XmlTextReader.Read () [0x00000] 20071218 08:16:14.1378 14294 Beagle WARN EX: at System.Xml.XmlTextReader.Read () [0x00000] 20071218 08:16:14.1378 14294 Beagle WARN EX: at Mono.Xml.EntityResolvingXmlReader.Read () [0x00000] 20071218 08:16:14.1378 14294 Beagle WARN EX: at Mono.Xml.DTDValidatingReader.ReadContent () [0x00000] 20071218 08:16:14.1378 14294 Beagle WARN EX: at Mono.Xml.DTDValidatingReader.Read () [0x00000] 20071218 08:16:14.1378 14294 Beagle WARN EX: at Mono.Xml.Schema.XsdValidatingReader.Read () [0x00000] 20071218 08:16:14.1378 14294 Beagle WARN EX: at System.Xml.XmlValidatingReader.Read () [0x00000] 20071218 08:16:14.1378 14294 Beagle WARN EX: at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] 20071218 08:16:14.1378 14294 Beagle WARN EX: at System.Xml.XmlDocument.ReadNode (System.Xml.XmlReader reader) [0x00000] 20071218 08:16:14.1378 14294 Beagle WARN EX: at System.Xml.XmlDocument.Load (System.Xml.XmlReader xmlReader) [0x00000] 20071218 08:16:14.1378 14294 Beagle WARN EX: at System.Xml.XmlDocument.Load (System.IO.TextReader txtReader) [0x00000] 20071218 08:16:14.1378 14294 Beagle WARN EX: at Beagle.Util.NautilusTools+<>c__CompilerGenerated2.MoveNext () [0x00000] 20071218 08:16:14.1378 14294 Beagle WARN EX: at Beagle.Daemon.NautilusMetadataQueryable.NautilusMetadataQueryable.HasNextIndexable () [0x00000] 20071218 08:16:14.1378 14294 Beagle WARN EX: at Beagle.Daemon.LuceneQueryable+AddGeneratorTask.DoTaskReal () [0x00000] 20071218 08:16:14.1378 14294 Beagle WARN EX: at Beagle.Util.Scheduler+Task.DoTask () [0x00000]
Do you have any 0 size or malformed xml file in ~/.nautlius/metafiles ?
Indeed, there's a file file:%2F%2F%2Fhome.xml47MuvG by the length of 0.
Perils of spying on other's data :-/ The files looks like a temporary file from the name. Maybe nautilus failed while writing the xml file or maybe something changed internally in nautilus. Joe any thoughts ?
Doesn't really matter. Let's just catch the exception and move on.
I dont mind catching exceptions while indexing valid files but I was wondering whether the nautilus backend should only index *.xml and nothing else. Thats if the *.xmlabcd are actually temporary files. Running an inotify-test on the metafiles directory and then doing a bunch of nautilus operations would reveal whats going on.
ah, yeah, it probably should only index *.xml files.
Ok. Checked in a fix in svn r4311 - which indexes only *.xml files and catches xml loading error. Should fix the problem.