After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 504192 - exception trying to access nautilus metadata
exception trying to access nautilus metadata
Status: RESOLVED FIXED
Product: beagle
Classification: Other
Component: General
0.3.1
Other Linux
: Normal normal
: ---
Assigned To: Beagle Bugs
Beagle Bugs
Depends on:
Blocks:
 
 
Reported: 2007-12-18 07:19 UTC by Götz Waschk
Modified: 2007-12-19 00:13 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Götz Waschk 2007-12-18 07:19:16 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]
Comment 1 Debajyoti Bera 2007-12-18 13:21:13 UTC
Do you have any 0 size or malformed xml file in ~/.nautlius/metafiles ?
Comment 2 Götz Waschk 2007-12-18 13:55:35 UTC
Indeed, there's a file file:%2F%2F%2Fhome.xml47MuvG by the length of 0.
Comment 3 Debajyoti Bera 2007-12-18 14:23:21 UTC
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 ?
Comment 4 Joe Shaw 2007-12-18 14:55:19 UTC
Doesn't really matter.  Let's just catch the exception and move on.
Comment 5 Debajyoti Bera 2007-12-18 16:49:45 UTC
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.
Comment 6 Joe Shaw 2007-12-18 17:03:46 UTC
ah, yeah, it probably should only index *.xml files.
Comment 7 Debajyoti Bera 2007-12-19 00:13:57 UTC
Ok. Checked in a fix in svn r4311 - which indexes only *.xml files and catches xml loading error. Should fix the problem.