Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
How could the spotlight indexer be crashing our app?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How could the spotlight indexer be crashing our app?



We are getting a bunch of reports of random crashes from our users who have upgraded to 10.6, even when they are not using the program at all.

Here is a typical one:

Thread 5 Crashed: Dispatch queue: Query work queue
0 com.apple.Metadata 0x95db784a _MDQueryGetIndexAndGroupOfResultWithStoreAndOid + 418
1 com.apple.Metadata 0x95db7136 _MDUpdateResultInQuery + 109
2 com.apple.Metadata 0x95db61b9 processUpdatesLocked + 949
3 com.apple.Metadata 0x95db5bdf tryProcessUpdates + 338
4 com.apple.Metadata 0x95db4d61 _MDQueryCallback + 362
5 com.apple.Metadata 0x95db4bda doQueryResultsCallback + 133
6 com.apple.Metadata 0x95db4b47 _XQueryResultsCallback + 234
7 com.apple.Metadata 0x95db4862 MDSClientCallbacks_server + 125
8 com.apple.Metadata 0x95db47d0 _queryMigCallback + 91
9 libSystem.B.dylib 0x9928356a mach_msg_server_once + 448
10 com.apple.Metadata 0x95db476e ___MDQueryExecute_block_invoke_3 + 106
11 libSystem.B.dylib 0x992832bc _dispatch_source_latch_and_call + 62
12 libSystem.B.dylib 0x99276160 _dispatch_source_invoke + 210
13 libSystem.B.dylib 0x99274ce1 _dispatch_queue_invoke + 163
14 libSystem.B.dylib 0x9927521d _dispatch_queue_drain + 258
15 libSystem.B.dylib 0x99274c70 _dispatch_queue_invoke + 50
16 libSystem.B.dylib 0x99274a86 _dispatch_worker_thread2 + 234
17 libSystem.B.dylib 0x99274511 _pthread_wqthread + 390
18 libSystem.B.dylib 0x99274356 start_wqthread + 30


Thread 5 crashed with X86 Thread State (32-bit):
  eax: 0x00000000  ebx: 0x95db76b6  ecx: 0x00000000  edx: 0x00000000
  edi: 0x1c988390  esi: 0x00000000  ebp: 0xb0138aa8  esp: 0xb0138a50
   ss: 0x0000001f  efl: 0x00010246  eip: 0x95db784a   cs: 0x00000017
   ds: 0x0000001f   es: 0x0000001f   fs: 0x0000001f   gs: 0x00000037
  cr2: 0x00000000

As far as I can see, this must be the spotlight indexer running this thread, but I am really confused about this because my understanding was that the spotlight mdimporter that we put in our application bundle is a completely separate program which is run by spotlight periodically to index our files, so what is it doing being in the memory space of the running app? We do not use any NSMetadataQuery objects or anything like that in our application.

It does seem that Spotlight doesn't like our mdimporter because it is complaining that it "does not match current 64 bit architecture" (and I can't get it to work even if I compile it for *only* 64bit intel, but that's another story), but surely there should be no way the spotlight importer could crash our app?

Am I completely misunderstanding this crash report?

Gideon


_______________________________________________ Do not post admin requests to the list. They will be ignored. Spotlight-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.