Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Spotlight Hanging - MDSWorker Thread Exceptions

Hi,


I upgraded from Snow Leapord to Mavericks, and it is running very slowly. I noticed that Spotlight starts indexing and never finishes, it seems to stay stuck on 2 hours remaining. I have tried a few things, killing the Spotfire service, deleting the Spotfire-V100 directlry and restarting, and it happens every time.


I have excluded external USB drives from Spotfire, and have checked the integrity of the disk.


When I view the console logs I get loads of this kind of message.


Process: mds_stores [7105]

Path: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Support/mds_stores

Identifier: mds_stores

Version: 800.12

Code Type: X86-64 (Native)

Parent Process: launchd [1]

Responsible: mds_stores [7105]

User ID: 0



Date/Time: 2013-11-25 13:46:58.168 +0000

OS Version: Mac OS X 10.9 (13A603)

Report Version: 11

Anonymous UUID: 51677182-E53B-FDBB-5648-B45E5D30EA7F





Crashed Thread: 8 Dispatch queue: com.apple.metadata.spotlightindex



Exception Type: EXC_BAD_ACCESS (SIGSEGV)

Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000bad



VM Regions Near 0xbad:

-->

__TEXT 000000010a78b000-000000010a7c9000 [ 248K] r-x/rwx SM=COW /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Support/mds_stores



Application Specific Information:

[0x123db9000]/SourceCache/Spotlight_frameworks/Spotlight-800.12/index/common/Ter mTrie.c:258: failed assertion 'count<size' /private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T (hfs, t: 0x11, st: 0x1, f: 0x480d000)


Initializing



Thread 0:: Dispatch queue: com.apple.main-thread

0 libsystem_kernel.dylib 0x00007fff85cb1a1a mach_msg_trap + 10

1 libsystem_kernel.dylib 0x00007fff85cb0d18 mach_msg + 64

2 com.apple.CoreFoundation 0x00007fff85d2e315 __CFRunLoopServiceMachPort + 181

3 com.apple.CoreFoundation 0x00007fff85d2d939 __CFRunLoopRun + 1161

4 com.apple.CoreFoundation 0x00007fff85d2d275 CFRunLoopRunSpecific + 309

5 mds_stores 0x000000010a78f48a 0x10a78b000 + 17546

6 libdyld.dylib 0x00007fff88b295fd start + 1



Thread 1:: Dispatch queue: com.apple.libdispatch-manager

0 libsystem_kernel.dylib 0x00007fff85cb6662 kevent64 + 10

1 libdispatch.dylib 0x00007fff89fe143d _dispatch_mgr_invoke + 239

2 libdispatch.dylib 0x00007fff89fe1152 _dispatch_mgr_thread + 52



Thread 2:

0 libsystem_kernel.dylib 0x00007fff85cb5e6a __workq_kernreturn + 10

1 libsystem_pthread.dylib 0x00007fff85c61f08 _pthread_wqthread + 330

2 libsystem_pthread.dylib 0x00007fff85c64fb9 start_wqthread + 13



Thread 3:

0 libsystem_kernel.dylib 0x00007fff85cb5e6a __workq_kernreturn + 10

1 libsystem_pthread.dylib 0x00007fff85c61f08 _pthread_wqthread + 330

2 libsystem_pthread.dylib 0x00007fff85c64fb9 start_wqthread + 13



Thread 4:

0 libsystem_kernel.dylib 0x00007fff85cb5e6a __workq_kernreturn + 10

1 libsystem_pthread.dylib 0x00007fff85c61f08 _pthread_wqthread + 330

2 libsystem_pthread.dylib 0x00007fff85c64fb9 start_wqthread + 13



Thread 5:

0 libsystem_kernel.dylib 0x00007fff85cb1a6e semaphore_timedwait_trap + 10

1 libdispatch.dylib 0x00007fff89fe39da _dispatch_semaphore_wait_slow + 147

2 libdispatch.dylib 0x00007fff89fe0f08 _dispatch_worker_thread + 145

3 libsystem_pthread.dylib 0x00007fff85c60899 _pthread_body + 138

4 libsystem_pthread.dylib 0x00007fff85c6072a _pthread_start + 137

5 libsystem_pthread.dylib 0x00007fff85c64fc9 thread_start + 13



Thread 6:

0 libsystem_kernel.dylib 0x00007fff85cb1a6e semaphore_timedwait_trap + 10

1 libdispatch.dylib 0x00007fff89fe39da _dispatch_semaphore_wait_slow + 147

2 libdispatch.dylib 0x00007fff89fe0f08 _dispatch_worker_thread + 145

3 libsystem_pthread.dylib 0x00007fff85c60899 _pthread_body + 138

4 libsystem_pthread.dylib 0x00007fff85c6072a _pthread_start + 137

5 libsystem_pthread.dylib 0x00007fff85c64fc9 thread_start + 13



Thread 7:

0 libsystem_kernel.dylib 0x00007fff85cb1a6e semaphore_timedwait_trap + 10

1 libdispatch.dylib 0x00007fff89fe39da _dispatch_semaphore_wait_slow + 147

2 libdispatch.dylib 0x00007fff89fe0f08 _dispatch_worker_thread + 145

3 libsystem_pthread.dylib 0x00007fff85c60899 _pthread_body + 138

4 libsystem_pthread.dylib 0x00007fff85c6072a _pthread_start + 137

5 libsystem_pthread.dylib 0x00007fff85c64fc9 thread_start + 13



Thread 8 Crashed:: Dispatch queue: com.apple.metadata.spotlightindex

0 com.apple.spotlight.index 0x000000010a90742f TermTrieResolve + 4143

1 com.apple.spotlight.index 0x000000010a86b70c pushPropertyTermWithHash + 172

2 com.apple.spotlight.index 0x000000010a8681b8 getPropertyStringCallback + 280

3 com.apple.spotlight.index 0x000000010a887826 _CITokenizerGetTokens + 262

4 com.apple.spotlight.index 0x000000010a888321 CITokenizerGetTokens + 81

5 com.apple.spotlight.index 0x000000010a86937e invertValueToUpdateSet + 1806

6 com.apple.spotlight.index 0x000000010a8687c1 termUpdateSetProcessFields + 929

7 com.apple.spotlight.index 0x000000010a868bab TermUpdateSetAddDocumentInfo + 251

8 com.apple.spotlight.index 0x000000010a8575e8 setDocumentAttributes + 3368

9 com.apple.spotlight.index 0x000000010a843bac _CIUpdateContent + 736

10 com.apple.spotlight.index 0x000000010a8d611e ContentIndexUpdateContent + 127

11 com.apple.spotlight.index 0x000000010a8bf570 si_writeBackAndIndex + 2778

12 com.apple.spotlight.index 0x000000010a81132c setAttributes + 7383

13 com.apple.spotlight.index 0x000000010a7f9aa3 runLoop + 51

14 com.apple.spotlight.index 0x000000010a826bef work_fun + 739

15 libdispatch.dylib 0x00007fff89fdf2ad _dispatch_client_callout + 8

16 libdispatch.dylib 0x00007fff89fe168f _dispatch_queue_drain + 451

17 libdispatch.dylib 0x00007fff89fe29dd _dispatch_queue_invoke + 110

18 libdispatch.dylib 0x00007fff89fe1633 _dispatch_queue_drain + 359

19 libdispatch.dylib 0x00007fff89fe29dd _dispatch_queue_invoke + 110

20 libdispatch.dylib 0x00007fff89fe1633 _dispatch_queue_drain + 359

21 libdispatch.dylib 0x00007fff89fe29dd _dispatch_queue_invoke + 110

22 libdispatch.dylib 0x00007fff89fe0fa3 _dispatch_root_queue_drain + 75

23 libdispatch.dylib 0x00007fff89fe0eee _dispatch_worker_thread + 119

24 libsystem_pthread.dylib 0x00007fff85c60899 _pthread_body + 138

25 libsystem_pthread.dylib 0x00007fff85c6072a _pthread_start + 137

26 libsystem_pthread.dylib 0x00007fff85c64fc9 thread_start + 13




etc.



But also Spotfire entries like this:


folders/zz/zyxvpxvq6csfxvn_n0000000000000/T (hfs, t: 0x11, st: 0x1, f: 0x480d000)

Dec 14 11:13:02 imac ReportCrash[31559]: DebugSymbols was unable to start a spotlight query: spotlight is not responding or disabled.

Dec 14 11:16:18 imac mds[34]: (Normal) ImportServer: Ignoring blacklisted Spotlight importer plugin:/Developer/Applications/Xcode.app/Contents/Library/Spotlight/SourceCode. mdimporter uuid:548A3091-3C5D-498A-A329-B532A6C896BB version:1801

Dec 14 11:16:18 imac mds[34]: (Normal) ImportServer: Ignoring blacklisted Spotlight importer plugin:/Developer/Applications/Xcode.app/Contents/Library/Spotlight/SourceCode. mdimporter uuid:548A3091-3C5D-498A-A329-B532A6C896BB version:1801

Dec 14 11:16:30 imac mds_stores[31560]: /SourceCache/Spotlight_frameworks/Spotlight-800.12/index/common/TermTrie.c:258: failed assertion 'count<size' /private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T (hfs, t: 0x11, st: 0x1, f: 0x480d000)

Dec 14 11:16:30 imac ReportCrash[31605]: DebugSymbols was unable to start a spotlight query: spotlight is not responding or disabled.

Dec 14 11:16:31 imac mds_stores[31606]: (/.Spotlight-V100/Store-V2/12C6D9B3-01FC-48D7-ADF1-9CD4FEB86AFA)(Error) IndexGeneral in int _SIOpenIndex(SIRef *, int, SIVolumeParams *, SIVolumeParams *, uint32_t, CIDocCounts *, SIFileOps, SIIndexCallbacks *, SIPersistentIDStoreRef, _Bool *, int *):check_crash_state: 1 for /.Spotlight-V100/Store-V2/12C6D9B3-01FC-48D7-ADF1-9CD4FEB86AFA

Dec 14 11:16:50 imac mds_stores[31606]: (/private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T)(Warning) IndexSDB in void si_checkDuplicateOids(void *, Boolean):Starting index consistency check for /.Spotlight-V100/Store-V2/12C6D9B3-01FC-48D7-ADF1-9CD4FEB86AFA

Dec 14 11:16:50 iimac mds_stores[31606]: (/private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T)(Warning) IndexSDB in void si_checkDuplicateOids(void *, Boolean):Finished index consistency check for /.Spotlight-V100/Store-V2/12C6D9B3-01FC-48D7-ADF1-9CD4FEB86AFA. Missing deletes:0

Dec 14 11:26:13 imac mds[34]: (Normal) ImportServer: Ignoring blacklisted Spotlight importer plugin:/Developer/Applications/Xcode.app/Contents/Library/Spotlight/SourceCode. mdimporter uuid:548A3091-3C5D-498A-A329-B532A6C896BB version:1801

Dec 14 11:26:13 imac mds[34]: (Normal) ImportServer: Ignoring blacklisted Spotlight importer plugin:/Developer/Applications/Xcode.app/Contents/Library/Spotlight/




Any advice appreciated, this all worked perfectly before I went ot mavericks.


Regards


i

Mac OS 9.0.x, Spotlight Mavericks

Posted on Dec 14, 2013 3:57 AM

Reply
40 replies

Dec 22, 2013 1:24 PM in response to moira123

moira123 wrote:


I have a question about anti-virus using windows parrallell on the mac. I use it to run some programs but sometimes I have to download programs to use.

If your question has to do with what Mac anti-malware software will reliably protect your Parallels VM, the answer is none. Use a separate Windows A-V program running within the VM to do that.

Dec 22, 2013 2:24 PM in response to moira123

moira123 wrote:


So, run the anti virus software on the windows side?

Exactly.

For the vast majority of the time, parralells is shutdown. I hardly use it, just when I am video, photo or audio editing and like I said sometimes I have to download converters or codecs and stuff.

Not sure whether there's another question in there or not? Linc has already said:

An anti-virus app is not needed, and should not be relied upon, for protection against OS X malware. It's useful only for detecting Windows malware. Windows malware can't harm you directly (unless, of course, you use Windows.) Just don't pass it on to anyone else.

Which would, of course, include yourself. Although the Windows A-V software should eventually discover any malware you downloaded using OS X, if you feel a need to be warned earlier, then by all means check out these downloads using an OS X A-V package that includes signatures for Windows malware (e.g. ClamXav).

Dec 22, 2013 2:29 PM in response to peterk3

peterk3 wrote:


should I post my inquiry (Dec 20, 2013 8:52 PM) to another thread or create a new thread about my mds problem?

It is always preferable to start a new thread unless your problem is exactly the same as the OP's (same platform, OS X, apps, error messages, etc.) and is within a few days of the original post.

Mar 3, 2014 11:37 PM in response to Linc Davis

I believe my new Mac Mini Server is also a disaster after migrating from a 2007 iMac but who knows.


I sure am wondering why.


But without some explanation, though I may still be calling Apple Support, the basic conclusion drawn from the thread is that a clean Reinstall of OS X is what's needed here rather than get a Master's Degree in Spotlight.


What's annoying is spending time having to fix things. I was expecting to use my time programming, not researching why mdsCopyStoreInformation is failing.

Nov 10, 2014 8:04 PM in response to indy2005

In my case, the problem is a buggy Bookmarks.mdimporter module, and by the sounds of it yours is too. The exception raised is vague showing that the developers (Apple) did not pay a lot of attention to exception handling. Specifically, if an mdimporter dumps, the mdworker that is exec'ing it just dies with no useful info in the logs.


I had to find the problem by removing one-by-one the mdimporters from /System/Library/Spotlight and re-indexing with mdutil -E until I found the importer that was failing. I have yet to find the file that makes the Bookmarks.mdimporter fail because the debug info is so sparse. I have the advantage that I know exactly when it started to fail, but still cannot isolate the problem file because there is also no reasonable way to find which files are handled by Bookmarks.mdimporter.


It would also be nice if this system died in a graceful non-destructive way. In my case, the ****** mds system continued continuously trying to re-index for four days solid running up a total of over three terabytes of writes on the SSD - about 1% of their total life wasted. Most commercial-level programmers would make an effort to prevent repetitive failures from using system resource...

Spotlight Hanging - MDSWorker Thread Exceptions

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.