GNOME Bugzilla – Bug 341501
beagle throws an exception
Last modified: 2007-02-14 22:25:13 UTC
Please describe the problem: I was reindexing all my home directory using 2.6 and monitoring the current-Indexer. I found this exception that killed the indexerd.. beagled launched a new one 060511 2217040082 21758 Beagle DEBUG: Done crawling '/home/alejo/docs/MyVisor' 060511 2217068220 21758 Beagle DEBUG: Caught ResponseMessageException: Exception has been thrown by the target of an invocation. 060511 2217068223 21758 Beagle DEBUG: Exception was unexpected. Details: Beagle.ResponseMessageException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Xml.XmlException: Document element did not appear. Line 1, position 1. 060511 2217068223 21758 Beagle DEBUG: in [0x0014e] (at /home/ingo/mono-1.1.13.6/mcs/class/System.XML/System.Xml/XmlTextReader.cs:595) System.Xml.XmlTextReader:Read () 060511 2217068223 21758 Beagle DEBUG: in [0x0002c] (at /home/ingo/mono-1.1.13.6/mcs/class/System.XML/System.Xml/XmlReader.cs:538) System.Xml.XmlReader:MoveToContent () 060511 2217068223 21758 Beagle DEBUG: in <0x00019> Mono.GeneratedSerializers.Literal.GeneratedReader:ReadRoot_ResponseWrapper () 060511 2217068223 21758 Beagle DEBUG: in <0x00000> <unknown method> 060511 2217068223 21758 Beagle DEBUG: in (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[]) 060511 2217068223 21758 Beagle DEBUG: in [0x00044] (at /home/ingo/mono-1.1.13.6/mcs/class/corlib/System.Reflection/MonoMethod.cs:127) System.Reflection.MonoMethod:Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)--- End of inner exception stack trace --- 060511 2217068223 21758 Beagle DEBUG: 060511 2217068223 21758 Beagle DEBUG: in [0x0006b] (at /home/ingo/mono-1.1.13.6/mcs/class/corlib/System.Reflection/MonoMethod.cs:133) System.Reflection.MonoMethod:Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) 060511 2217068223 21758 Beagle DEBUG: in [0x00006] (at /home/ingo/mono-1.1.13.6/mcs/class/corlib/System.Reflection/MethodBase.cs:87) System.Reflection.MethodBase:Invoke (System.Object obj, System.Object[] parameters) 060511 2217068223 21758 Beagle DEBUG: in [0x00035] (at /home/ingo/mono-1.1.13.6/mcs/class/System.XML/System.Xml.Serialization/XmlSerializer.cs:334) System.Xml.Serialization.XmlSerializer:Deserialize (System.Xml.Serialization.XmlSerializationReader reader) 060511 2217068223 21758 Beagle DEBUG: in [0x0002e] (at /home/ingo/mono-1.1.13.6/mcs/class/System.XML/System.Xml.Serialization/XmlSerializer.cs:322) System.Xml.Serialization.XmlSerializer:Deserialize (System.Xml.XmlReader xmlReader) 060511 2217068223 21758 Beagle DEBUG: in [0x00010] (at /home/ingo/mono-1.1.13.6/mcs/class/System.XML/System.Xml.Serialization/XmlSerializer.cs:303) System.Xml.Serialization.XmlSerializer:Deserialize (System.IO.Stream stream) 060511 2217068223 21758 Beagle DEBUG: in [0x000cf] (at /home/jose/devel/build-area/beagle-0.2.6/BeagleClient/Client.cs:365) Beagle.Client:Send (Beagle.RequestMessage request)--- End of inner exception stack trace --- 060511 2217068223 21758 Beagle DEBUG: 060511 2217068223 21758 Beagle DEBUG: in [0x00112] Beagle.Client:Send (Beagle.RequestMessage request) 060511 2217068223 21758 Beagle DEBUG: in [0x0000e] (at /home/jose/devel/build-area/beagle-0.2.6/BeagleClient/Message.cs:172) Beagle.RequestMessage:Send () 060511 2217068223 21758 Beagle DEBUG: in [0x00037] (at /home/jose/devel/build-area/beagle-0.2.6/beagled/RemoteIndexer.cs:146) Beagle.Daemon.RemoteIndexer:SendRequest (Beagle.Daemon.RemoteIndexerRequest request) Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
Can you reliably reproduce this error?
I am goint to try to reproduce it but first, later, when beagled end the indexing i recived this error in the beagle terminal in (wrapper managed-to-native) Beagle.Util.ExifEntry:exif_entry_get_value (System.Runtime.InteropServices.HandleRef,byte[],int) <0x4> in (wrapper managed-to-native) Beagle.Util.ExifEntry:exif_entry_get_value (System.Runtime.InteropServices.HandleRef,byte[],int) <0xfffffe6b> in Beagle.Util.ExifEntry:get_Value () (at /home/jose/devel/build-area/beagle-0.2.6/Util/ExifData.cs:708) in Beagle.Util.ExifData:LookupFirstValue (Beagle.Util.ExifTag) (at /home/jose/devel/build-area/beagle-0.2.6/Util/ExifData.cs:857) in Beagle.Filters.FilterJpeg:PullImageProperties () (at /home/jose/devel/build-area/beagle-0.2.6/Filters/FilterJpeg.cs:118) in Beagle.Filters.FilterImage:DoPullProperties () (at /home/jose/devel/build-area/beagle-0.2.6/Filters/FilterImage.cs:74) in Beagle.Daemon.Filter:Open (System.IO.FileSystemInfo) (at /home/jose/devel/build-area/beagle-0.2.6/beagled/Filter.cs:520) in Beagle.Daemon.Filter:Open (string) (at /home/jose/devel/build-area/beagle-0.2.6/beagled/Filter.cs:551) in Beagle.Daemon.FilterFactory:FilterIndexable (Beagle.Indexable,Beagle.Daemon.TextCache,Beagle.Daemon.Filter&) (at /home/jose/devel/build-area/beagle-0.2.6/beagled/FilterFactory.cs:281) in Beagle.Daemon.LuceneIndexingDriver:Flush_Unlocked (Beagle.Daemon.IndexerRequest) (at /home/jose/devel/build-area/beagle-0.2.6/beagled/LuceneIndexingDriver.cs:259) in Beagle.Daemon.LuceneIndexingDriver:Flush (Beagle.Daemon.IndexerRequest) (at /home/jose/devel/build-area/beagle-0.2.6/beagled/LuceneIndexingDriver.cs:90) in Beagle.IndexHelper.RemoteIndexerExecutor:Execute (Beagle.RequestMessage) (at /home/jose/devel/build-area/beagle-0.2.6/beagled/IndexHelper/RemoteIndexerExecutor.cs:69) in Beagle.Daemon.ConnectionHandler:HandleConnection () (at /home/jose/devel/build-area/beagle-0.2.6/beagled/Server.cs:275) in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void () <0x299> in Beagle.Util.ExceptionHandlingThread:ThreadStarted () (at /home/jose/devel/build-area/beagle-0.2.6/Util/ExceptionHandlingThread.cs:54) in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void () <0xffffff90> in (wrapper runtime-invoke) System.Object:runtime_invoke_void (object,intptr,intptr,intptr) <0x1b292a7> Native stacktrace: /usr/lib/libmono.so.0(mono_handle_native_sigsegv+0xeb) [0xa7e6592b] /usr/lib/libmono.so.0 [0xa7e2670d] [0xffffe440] /lib/tls/i686/cmov/libc.so.6(__dcgettext+0x3d) [0xa7bea49d] /usr/lib/libexif.so.12(exif_entry_get_value+0x2478) [0xa56f00d8] [0xa5723d09] [0xa5723afc] [0xa5722f5a] [0xa571ad8d] [0xa571a629] [0xa5b4a929] [0xa5b4a713] [0xa5c0a8de] [0xa5cdbf70] [0xa5cdad7b] [0xa5cfd81f] [0xa5f21104] [0xa631a940] [0xa631abaa] [0xa631a940] [0xa631a8a1] /usr/lib/libmono.so.0 [0xa7e43b20] /usr/lib/libmono.so.0(mono_runtime_invoke+0x33) [0xa7ea8703] /usr/lib/libmono.so.0(mono_runtime_delegate_invoke+0x46) [0xa7ea99f6] /usr/lib/libmono.so.0 [0xa7edc776] /usr/lib/libmono.so.0 [0xa7f2a482] /usr/lib/libmono.so.0(GC_start_routine+0x63) [0xa7f46013] /lib/tls/i686/cmov/libpthread.so.0 [0xa7d34e60] /lib/tls/i686/cmov/libc.so.6(__clone+0x5e) [0xa7c988ee] I hope it help
Error in comment #2 is probably a different bug. Can you file that one on its own so we can track it separately? I'm interested in getting the exact error you got in the original post, that is: 060511 2217068220 21758 Beagle DEBUG: Caught ResponseMessageException: Exception has been thrown by the target of an invocation. 060511 2217068223 21758 Beagle DEBUG: Exception was unexpected. Details: Beagle.ResponseMessageException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Xml.XmlException: Document element did not appear. Line 1, position 1. Thanks.
Created attachment 66136 [details] log from beagle HEre are the logs of beagle using --debug-memory I am trying to reproduce it and find if is certain file thats causing the exception i hope to be helpfull
Ok, it looks like the index helper process crashed for some reason on an attachment in your email, specifically this one: email://local@local/Inbox;uid=8977#1 Can you open that email in evolution like so: evolution email://local@local/Inbox;uid=8977 And then save that email to disk (File -> Save Message) and attach it to the bug? Hopefully we can then track it down a bit more easily.
Created attachment 66571 [details] the evil file I found the file.... The problem is a jpg file (the attach). I reported it long time ago in bug 335178 . I think that i filled a bug in libexiff but i never went to verify it... in that bug a beagle manteiner told me that it was very little to do becouse the problem was in libexiff. i hope this can be usefull
reopening as requested information has been provided.
This should be fixed, sorry this one was stuck in limbo.