Safari 12 Crashes Spotlight in Sierra—Here’s the Fix


(Matt Neuburg) #3

Wow, great tip! I’ve been experiencing the crash, and I’d also noticed that it only happens when the spotlight search contains certain letters. Moreover, I had a different workaround: don’t use the Spotlight window, just use the Search field in the Finder (or use NotLight, of course). In other words, the bug is the Spotlight window only. But your solution is better.


(Adam Engst) #4

Thanks, Matt! Not having a Sierra Mac handy, I couldn’t test this as fully as I would have liked—I was wondering about the Search field in Finder windows. I’ll tweak the article to work these facts in.

Now I’m wondering what the letters are that crash Spotlight. And I’m getting flashbacks to “Letterman” from Sesame Street. :slight_smile:


(mstrickland) #5

I have the same problem with 10.12.6 where Finder crashes when accessing a WEBLOC file under some ways. I have yet to find a solution.

One quirk is a double click of a WEBLOC on the desktop launches Safari but if inside a folder/directory it crashes Finder but does not launch Safari. I can right click a WEBLOC file and select “Open With” and it works anywhere.


(Lawrence Seiford) #6

Thanks for this tip. Fixed the problem for me. Yet another reason I subscribe to TidBITS!


(Diane D) #7

I was not having an issue with specific letters. Most of the time it would crash, but sometimes it wouldn’t.

I found that if I hit Command-space and waited, I could then type a letter and wait for the list to show up. If my choice was there, I could arrow down. If not I’d try the next letter and repeat.

This often worked, but not always.

I posted the issue to the group on Sept 20 but didn’t get any replies. (I wrote it as “timing out” vs crashing)

Diane


(B. Jefferson Le Blanc) #8

I haven’t had the problem—because I don’t use Spotlight from the menu bar. I almost always use the Finder window search field. But I used your tip to turn off Bookmarks and History anyway, just to be safe. Thanks for the tip.


(Adam Engst) #9

I’m seeing a number of people reporting this in the Apple Support Communities, but no real solutions.

https://discussions.apple.com/thread/8547433
https://discussions.apple.com/thread/8543117
https://discussions.apple.com/thread/8546050
https://discussions.apple.com/thread/8543288


(Matt Neuburg) #10

I do also see the Quick Look issue; I’m glad I’m not alone.

A comment over on Macintouch suggests that unchecking Other in the Spotlight Search Results pref pane may be needed, in addition to Bookmarks & History.


(randalltrini) #11

I had the same issue, after upgrading to Safari on Macbook Pro running regular Sierra. This tip saved me from going crazy! Thank you so much!


(Gary Gibson) #12

I had to downgrade back to Safari 11.1.2 because of the .webloc problem. Just clicking on a .webloc file with the pointer is enough to crash the Finder in my case. I didn’t even get to the point where I could try to invoke QuickLook. It even happens on a fresh Sierra install on which you immediately apply Apple software updates. This problem is very hard to miss, so I am saddened and alarmed that Apple managed to miss it during QA testing. What’s worse is that this is STILL NOT FIXED in Safari 12.0.1.


(Diane D) #13

Gary, there was a solution that worked for me, but I thought it was in this thread. No luck for you?

Diane


(TomR) #14

I am having same problems with MacOS 10.12.6.
The suggestions here (unchecking a few items in Spotlight) did not work for me.
Anything that invokes Quicklook of a Webloc item on my MacBookPro crashes Finder. AND the same thing happens in PathFinder, crashing that file manager app also! So it must be specific to Quick Look. Tom


(Adam Engst) #17

Yes, this seems to be an ongoing bug with Safari 12. I’m not aware of any fix, apart from upgrading to 10.13 High Sierra, where the problem doesn’t occur.


(mimetic) #18

With Spotlight, I think it has to do with web content being the first search result. The crash also happens to me when using either Quicklook or Cover Flow on .webloc files.


(Yves_paris) #19

I am happy to finally find the fix above. I am still reluctant to move to High Sierra because of the change in file format that presumably makes going back challenging, and the fear of the expected drop of performance with most system upgrades. It was so annoying to get repeated crashes that I had just formatted my drive, made a fresh install of Sierra and imported my data back (several hours total) just to find the problem was not solved. Finally the tip above made the job, only a few seconds… Actions in the wrong order ! Thanks anyway.


(Al Varnell) #20

I haven’t seen any valid complaints about APFS with SSD’s, in fact most of us are reporting increased performance from them. The only users that I know of that had to revert to HFS+ were HDD and Fusion Drive owners that were involved in early testing. I personally have had zero issues involving SSD APFS.

The only real issue has been for drive utility developers in receiving details late and somewhat incomplete in order for them to properly update their apps. Most are at least partially compatible at this time, with DiskWarrior still holding out.

-Al-


(David Rostenne) #21

Thanks for the thread… it did not solve the issue for me, but at least I now know why this is happening on my machine! :wink:

If you’re in list or icon view mode and double click on the .webloc file it opens fine, but trying to preview it in any mode causes the Finder to crash. Being in column causes Finder to crash immediately as I have preview column enabled. Once I turn that off I can also open .webloc files safely.

I also tried turning the various items in Spotlight preferences and have seen no change.

This thread: https://discussions.apple.com/thread/2464089 has a link to WebFinagler http://www.markdouma.com/developer/WeblocFinagler.zip which will bulk convert .webloc files to Windows compatible .url files which do not crash the Finder.

For those of you comfortable on the command line there’s also https://www.flagsoft.com/cmswp/en/software/webloc2url-sh-convert-webloc-to-url-files/

Now to avoid spending the afternoon figuring out how to wholesale convert every single .webloc file on my mac to .url files… hmm. I’m sure I could do it with find and xargs …

Cheers,

Dave


(Chris-Alvarado) #22

SOLUTION
-currently working for OS X 10.12.6
-Finder doesn’t crash when .weblock is clicked.
-Safari is able to launch the url.
-However, Quicklook views .weblocs as plain text files, bypassing the web preview generation.

Overview
Step 1
File: /System/Library/QuickLook/Web.qlgenerator/Contents.info.plist
Remove: <string>com.apple.weblocation</string>

Step 2
File: /System/Library/QuickLook/Text.qlgenerator/Contents.info.plist
Add: <string>com.apple.internet-location</string>
Location:

<string>QLGenerator</string>
<key>LSItemContentTypes</key>
<array>
	<string>public.data</string>
	<string>com.apple.internet-location</string> <!-- sierra-webloc-crashfix  -->
</array>

Step 3
Copy File: /System/Library/QuickLook/Text.qlgenerator
Move Copy:/Library/QuickLook/Text.qlgenerator

Step 4
Terminal Command: qlmanage -r

*Make sure to backup edited files as a failsafe.


(Jammy) #23

I’m not sure your directions are complete. Don’t you first have to disable SIP to edit these files? When I try to save with BBedit I just get an error that it can’t save it maybe because I have SIP enabled?

Also, like someone else has mentioned in another thread, I don’t see the existence of the com.apple.weblocation string in the plist.

Also, where you say “Location:” doesn’t match up with what I see in my plist. Do I paste everything you wrote here in the plist somewhere?

<string>QLGenerator</string><key>LSItemContentTypes</key>
<array>
	<string>public.data</string>
	<string>com.apple.internet-location</string> <!-- sierra-webloc-crashfix  -->
</array>

OR just this part somewhere?

<string>com.apple.internet-location<string>

Very confusing.


(Gary Gibson) #24

Hooray! It looks like Safari 12.0.3 finally fixed my running problem with Safari 12! This is the first Safari 12 update I tried that didn’t introduce the .webloc crashing problem (see my 11/21/2018 entry above). I tested with both a fresh Sierra (10.12.6) install, and my fully up to date copy of Sierra that I had downgraded back to Safari 11.1.2. In both cases updating to Safari 12.0.3 did NOT introduce the .webloc crashing that I encountered after every previous Safari 12 update (12, 12.0.1, and 12.0.2).

The curse has lifted!