Addicted to Spotlight, now buggy in Lion 10.7.4 on MacBook Mid 2007
I use my Mac a bit different than most might; since I'm a heavy keyboard user and can operate more efficiently this way than on the mouse, I use Spotlight very heavily. The best example is this: Any time I set up a new user on my Mac, I immediately remove everything from the dock since I prefer it only show the currently running apps (with exception to Terminal and Activity Monitor) and when I want to start a new app, I press Command+Space, type part of the name, and hit return once it's the top hit and highlighted. This has been my primary method of opening new apps since Leopard, and has worked flawlessly until Lion.
Since I upgraded to Lion, Spotlight has been buggy at best... often it does actually work fine. In many cases though I'll end up with no results in the list at all, sometimes the app I know is installed in the Applications folder doesn't appear (when it has before even on Lion) and the worst is when it shows the app I want, it's highlighted as the top hit, but hitting return does not do anything (I have to grab this archaic device I have called a mouse and click on the app).
This is more than mildly annoying, like I said, I rely on Spotlight.
I am not interested in hearing about alternative apps, I only want to get Spotlight working as it did before.
I checked under System Diagnostic Reports in Console.app but do not have any crashes for mds_* however performing a search for "spotlight" in All Messages does return some messages about mdwrite and one about mdimport, complaining about Assertion failure...
Like so:
Code:
6/12/12 7:22:58.949 PM mdwrite: *** Assertion failure in -[MDKeyRing _copyKeychain], /SourceCache/Spotlight/Spotlight-627.32/xpc-services/mdwrite/MDKeyRing.m:118
6/12/12 7:23:29.452 PM mdimport: Paths: id(501) (
"/Library/Spotlight/iWork.mdimporter",
"/System/Library/Spotlight/Font.mdimporter",
"/Library/Spotlight/Microsoft Office.mdimporter",
"/System/Library/Spotlight/Archives.mdimporter",
"/System/Library/Spotlight/Audio.mdimporter",
"/Library/Spotlight/ParallelsMD.mdimporter",
"/System/Library/Spotlight/Image.mdimporter",
"/System/Library/Spotlight/Application.mdimporter",
"/Applications/Evernote.app/Contents/Library/Spotlight/EvernoteSpotlightImporter.mdimporter",
"/System/Library/Spotlight/RichText.mdimporter",
"/Applications/Xcode.app/Contents/Library/Spotlight/uuid.mdimporter",
"/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/Library/Spotlight/MZSpotlight.mdimporter",
"/System/Library/Spotlight/CoreMedia.mdimporter",
"/System/Library/Spotlight/Chat.mdimporter",
"/System/Library/Spotlight/iPhoto.mdimporter",
"/System/Library/Spotlight/PS.mdimporter",
"/System/Library/Spotlight/Mail.mdimporter",
"/System/Library/Spotlight/vCard.mdimporter",
"/System/Library/Spotlight/PDF.mdimporter",
"/Library/Spotlight/GBSpotlightImporter.mdimporter",
"/System/Library/Spotlight/iPhoto8.mdimporter",
"/System/Library/Spotlight/Bookmarks.mdimporter",
"/System/Library/Spotlight/SystemPrefs.mdimporter",
"/Applications/ScreenFlow.app/Contents/Library/Spotlight/ScreenFlow.mdimporter",
"/System/Library/Spotlight/iCal.mdimporter",
"/Applications/Cyberduck.app/Contents/Library/Spotlight/Cyberduck Spotlight Importer.mdimporter",
"/System/Library/Spotlight/MIDI.mdimporter",
"/System/Library/Spotlight/QuartzComposer.mdimporter",
"/Applications/Colloquy.app/Contents/Library/Spotlight/Colloquy.mdimporter",
"/System/Library/Spotlight/Automator.mdimporter"
)
I should also note that I've had some other issues, like preferences not saving (remedied by removing all my personal and system-wide preferences files and copying in just those which I need) and with installing new apps (like Firefox, there was an existing Firefox.app and when I dragged in the new one, I was asked for root password and even though I entered it, correctly, it said the file could not be overwritten... remedied by deleting it manually first). Since I have these other issues it seems that the problem is likely not a fault in the Lion OS (not directly at least) so I am trying to find out what the culprit is and fix it ASAP, it has been slowing me down majorly and I've resorted to keeping some important apps on my dock...
My next step will be to boot into recovery partition and setting a new password for root and "reset home folder permissions and ACLs" so I'll post again or edit this with the results (first if it doesn't work I intend to do the same for my regular user accounts).
If none of that works, I'll post a full list of all apps installed on my system from System Information.
Any other recommendations (with exception of replacing Spotlight functionality through another app, or using some "antivirus" app) would be appreciated.
Edit (6/18/2012): On the 12th right after posting this I performed the password reset as mentioned above, first for root, then waited for Spotlight to rebuild, however unfortunately this did not seem to help much. Next I performed the password reset for my user, and again waited for Spotlight to rebuild, and this time the problem doesn't seem to appear as much, although every once in a while the app I want to open will appear as the Top Hit but the enter key will not open it... At least now it doesn't seem to be as bad as it was, and it doesn't slow me down nearly as much.
Unfortunately the problem still isn't gone completely, and in the Console app I can see errors for mdwrite, even if it's less often than before I hoped to get rid of this completely. I'm posting part of one of the logs for the mdwrite error, it seems to suggest the problem is stemming from the Keychain on the system. While I would love to continue tackling this issue, the chances of me getting the opportunity this month are fairly slim. In any case hopefully I'll eventually get to it and will re-edit this post with more updates if I do.
Code:
Application Specific Information:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Couldn't reset keychain settings! [osErr:100013]'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff8a8a8f56 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff8d2d9d5e objc_exception_throw + 43
2 CoreFoundation 0x00007fff8a8a8d8a +[NSException raise:format:arguments:] + 106
3 Foundation 0x00007fff8a08971f -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 169
4 mdwrite 0x00000001062c7564 mdwrite + 38244
5 mdwrite 0x00000001062c78dc mdwrite + 39132
6 mdwrite 0x00000001062c8a33 mdwrite + 43571
7 libdispatch.dylib 0x00007fff88ccc3f0 dispatch_once_f + 53
8 mdwrite 0x00000001062c82e4 mdwrite + 41700
9 mdwrite 0x00000001062c5de4 mdwrite + 32228
10 CoreFoundation 0x00007fff8a89aefc __invoking___ + 140
11 CoreFoundation 0x00007fff8a89ad94 -[NSInvocation invoke] + 132
12 CoreFoundation 0x00007fff8a89af64 -[NSInvocation invokeWithTarget:] + 52
13 mdwrite 0x00000001062c941c mdwrite + 46108
14 mdwrite 0x00000001062cb42a mdwrite + 54314
15 mdwrite 0x00000001062cb6ce mdwrite + 54990
16 libdispatch.dylib 0x00007fff88ccd497 _dispatch_source_invoke + 649
17 libdispatch.dylib 0x00007fff88cca143 _dispatch_queue_invoke + 71
18 libdispatch.dylib 0x00007fff88cca2a0 _dispatch_queue_drain + 210
19 libdispatch.dylib 0x00007fff88cca132 _dispatch_queue_invoke + 54
20 libdispatch.dylib 0x00007fff88cca2a0 _dispatch_queue_drain + 210
21 libdispatch.dylib 0x00007fff88cca132 _dispatch_queue_invoke + 54
22 libdispatch.dylib 0x00007fff88cc992c _dispatch_worker_thread2 + 198
23 libsystem_c.dylib 0x00007fff8c13c3da _pthread_wqthread + 316
24 libsystem_c.dylib 0x00007fff8c13db85 start_wqthread + 13
)
objc[43787]: garbage collection is OFF
abort() called
terminate called throwing an exception