Ilya from Apple Store

Q: Safari Freezes when I try to quit.

Every time I hit ⌘ + Q in Safari it freezes it completely and goes unresponsive, so far I have done every thing possible to fix this issue. I made a video if you don't understand what I'm talking about. I contacted Apple and they told me to do a Time Machine back up than do a complete OS reinstall. I reinstalled OS X from the recovery menu and than I migrated to my Time Machine back but Safari still doesn't work when I hit quit. I also tried everything here I deleted all the Safari caches, preference files, application saved states. I also started getting this message while using Safari, the message says Im running out of RAM but my RAM monitor shows that I have perfectly enough.  I tried in Safe Mode too but I can't quit there either. Whenever I login with my moms account its totally fine and everything is normal. Here is the Error Message also when I force quit Safari. I'm gonna head out to the Apple Store on Thursday I was just wondering if anyone could help me out here until I head out.

10.10.3 MacBook Pro (Retina, 13-inch, Mid 2014) Safari: Version 8.0.5 (10600.5.17)

Thanks

MacBook Pro (Retina, 13-inch, Mid 2014), OS X Yosemite (10.10.2), null

Posted on May 12, 2015 8:02 PM

Close

Q: Safari Freezes when I try to quit.

  • All replies
  • Helpful answers

Page 1 Next
  • by Linc Davis,Helpful

    Linc Davis Linc Davis May 12, 2015 9:15 PM in response to Ilya from Apple Store
    Level 10 (208,037 points)
    Applications
    May 12, 2015 9:15 PM in response to Ilya from Apple Store

    Back up all data before proceeding.

    Quit Safari if it’s running. Then select

               Force Quit…

    from the menu bar. A small window will open with a list of running applications. Safari may appear in that list, even though you quit it. If so, select it and press return. Close the window.

    Step 1

    Hold down the option key and select

              Go Library

    from the Finder menu bar. Delete the following items from the Library folder (some may not exist):

              Caches/com.apple.Safari

              Caches/com.apple.Safari.SearchHelper

              Caches/com.apple.SafariServices

              Caches/com.apple.WebKit.PluginProcess

              Caches/com.apple.WebProcess

              Caches/Metadata/Safari

              Preferences/com.apple.WebKit.PluginHost.plist

              Preferences/com.apple.WebKit.PluginProcess.plist

              Saved Application State/com.apple.Safari.savedState

    Leave the Library folder open. Try Safari again. If the problem is solved, stop here. Close the Library folder. If you still have a problem, continue.

    Step 2

    Move the following items from the open Library folder to the Desktop (again, some may not exist):

              Cookies/Cookies.binarycookies

              Internet Plug-Ins

              Preferences/ByHost/com.apple.Safari.*.plist

              Preferences/com.apple.Safari.Extensions.plist

              Preferences/com.apple.Safari.LSSharedFileList.plist

              Preferences/com.apple.Safari.plist

              Preferences/com.apple.WebFoundation.plist

              PubSub/Database

              Safari

              SyncedPreferences/com.apple.Safari.plist

    Here, "*" stands for a long string of letters, numbers, and dashes.

    Note 1: You are not moving the Safari application. You’re moving a folder named “Safari.”

    Note 2: This step will remove your Safari extensions, if any, and their settings. If you choose to reinstall them, do so one at a time, testing each time to make sure you haven’t restored the problem.

    Try again. Your settings and bookmarks will be lost. The default set of bookmarks will be restored. Delete them all.

    If Safari is now working normally (apart from the lost settings), look inside the “Safari” folder on the Desktop for a file named “Bookmarks.plist”. Select

              File Import Bookmarks...

    from the Safari menu bar. Import from that file. Recreate the rest of your Safari settings. You can then delete the items you moved to the Desktop.

    If the issue is still not resolved, quit Safari again and put all the items you moved to the Desktop back where they were, overwriting the newer ones that may have been created in their place. You don’t need to replace the files you deleted in Step 1. Stop here and post again.

    If you don’t like the results of the last step, you can undo it completely by quitting Safari and restoring the items you moved or deleted in that step from your backup, overwriting any that were created in their place.

  • by Ilya from Apple Store,

    Ilya from Apple Store Ilya from Apple Store May 12, 2015 9:46 PM in response to Linc Davis
    Level 1 (0 points)
    May 12, 2015 9:46 PM in response to Linc Davis

    Thanks man, but I already saw this same answer posted on another question too and you were the one answering that time too, Ive already tried all these steps every single one. I'm not sure whats going on, I think I'm just gonna take it to the Apple Store.

    By the way how long have you been on this support page your like every where on everything I search up.

  • by Linc Davis,

    Linc Davis Linc Davis May 13, 2015 6:04 AM in response to Ilya from Apple Store
    Level 10 (208,037 points)
    Applications
    May 13, 2015 6:04 AM in response to Ilya from Apple Store

    If you synchronize Safari with iCloud, disable that synchronization in the iCloud preference pane and test.

  • by Ilya from Apple Store,

    Ilya from Apple Store Ilya from Apple Store May 13, 2015 10:08 AM in response to Linc Davis
    Level 1 (0 points)
    May 13, 2015 10:08 AM in response to Linc Davis

    I already did that didn't work.

  • by Linc Davis,

    Linc Davis Linc Davis May 13, 2015 12:18 PM in response to Ilya from Apple Store
    Level 10 (208,037 points)
    Applications
    May 13, 2015 12:18 PM in response to Ilya from Apple Store

    What else have you done that you didn't choose to mention?

  • by Ilya from Apple Store,

    Ilya from Apple Store Ilya from Apple Store May 13, 2015 3:31 PM in response to Linc Davis
    Level 1 (0 points)
    May 13, 2015 3:31 PM in response to Linc Davis

    I also posted this question on here and someone suggested deleting Boom 2. I did that and it didn't do anything. Would you like me to list all the Applications I have?

  • by Linc Davis,

    Linc Davis Linc Davis May 13, 2015 4:58 PM in response to Ilya from Apple Store
    Level 10 (208,037 points)
    Applications
    May 13, 2015 4:58 PM in response to Ilya from Apple Store

    1. This procedure is a diagnostic test. It changes nothing, for better or worse, and therefore will not, in itself, solve the problem. But with the aid of the test results, the solution may take a few minutes, instead of hours or days.

    The test works on OS X 10.7 ("Lion") and later. I don't recommend running it on older versions of OS X. It will do no harm, but it won't do much good either.

    Don't be put off by the complexity of these instructions. The process is much less complicated than the description. You do harder tasks with the computer all the time.

    2. If you don't already have a current backup, back up all data before doing anything else. The backup is necessary on general principle, not because of anything in the test procedure. Backup is always a must, and when you're having any kind of trouble with the computer, you may be at higher than usual risk of losing data, whether you follow these instructions or not.

    There are ways to back up a computer that isn't fully functional. Ask if you need guidance.

    3. Below are instructions to run a UNIX shell script, a type of program. As I wrote above, it changes nothing. It doesn't send or receive any data on the network. All it does is to generate a human-readable report on the state of the computer. That report goes nowhere unless you choose to share it. If you prefer, you can act on it yourself without disclosing the contents to me or anyone else.

    You should be wondering whether you can believe me, and whether it's safe to run a program at the behest of a stranger. In general, no, it's not safe and I don't encourage it.

    In this case, however, there are a couple of ways for you to decide whether the program is safe without having to trust me. First, you can read it. Unlike an application that you download and click to run, it's transparent, so anyone with the necessary skill can verify what it does.

    You may not be able to understand the script yourself. But variations of it have been posted on this website thousands of times over a period of years. The site is hosted by Apple, which does not allow it to be used to distribute harmful software. Any one of the millions of registered users could have read the script and raised the alarm if it was harmful. Then I would not be here now and you would not be reading this message. See, for example, this discussion.

    Another indication that the test is safe can be found in this thread, and this one, for example, where the comment in which I suggested it was recommended by one of the Apple Community Specialists, as explained here.

    Nevertheless, if you can't satisfy yourself that these instructions are safe, don't follow them. Ask for other options.

    4. Here's a general summary of what you need to do, if you choose to proceed:

    ☞ Copy a particular line of text to the Clipboard.

    ☞ Paste into the window of another application.

    ☞ Wait for the test to run. It usually takes a few minutes.

    ☞ Paste the results, which will have been copied automatically, back into a reply on this page.

    These are not specific instructions; just an overview. The details are in parts 7 and 8 of this comment. The sequence is: copy, paste, wait, paste again. You don't need to copy a second time.

    5. Try to test under conditions that reproduce the problem, as far as possible. For example, if the computer is sometimes, but not always, slow, run the test during a slowdown.

    You may have started up in safe mode. If the system is now in safe mode and works well enough in normal mode to run the test, restart as usual. If you can only test in safe mode, do that.

    6. If you have more than one user, and the one affected by the problem is not an administrator, then please run the test twice: once while logged in as the affected user, and once as an administrator. The results may be different. The user that is created automatically on a new computer when you start it for the first time is an administrator. If you can't log in as an administrator, test as the affected user. Most personal Macs have only one user, and in that case this section doesn’t apply. Don't log in as root.

    7. Load this linked web page (on the website "Pastebin.") The title of the page is "Diagnostic Test." Below the title is a text box headed by three small icons. The one on the right represents a clipboard. Click that icon to select the text, then copy it to the Clipboard on your computer by pressing the key combination command-C.

    If the text doesn't highlight when you click the icon, select it by triple-clicking anywhere inside the box. Don't select the whole page, just the text in the box.

    8. Launch the built-in Terminal application in any of the following ways:

    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)

    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.

    ☞ Open LaunchPad and start typing the name.

    Click anywhere in the Terminal window to activate it. Paste from the Clipboard into the window by pressing command-V, then press return. The text you pasted should vanish immediately.

    9. If you see an error message in the Terminal window such as "Syntax error" or "Event not found," enter

    exec bash

    and press return. Then paste the script again.

    10. If you're logged in as an administrator, you'll be prompted for your login password. Nothing will be displayed when you type it. You will not see the usual dots in place of typed characters. Make sure caps lock is off. Type carefully and then press return. You may get a one-time warning to be careful. If you make three failed attempts to enter the password, the test will run anyway, but it will produce less information. If you don't know the password, or if you prefer not to enter it, just press return three times at the password prompt. Again, the script will still run.

    If you're not logged in as an administrator, you won't be prompted for a password. The test will still run. It just won't do anything that requires administrator privileges.

    11. The test may take a few minutes to run, depending on how many files you have and the speed of the computer. A computer that's abnormally slow may take longer to run the test. While it's running, a series of lines will appear in the Terminal window like this:

    [Process started]
            Part 1 of 8 done at … sec
            …
            Part 8 of 8 done at … sec
            The test results are on the Clipboard.
            Please close this window.
    [Process completed]

    The intervals between parts won't be exactly equal, but they give a rough indication of progress. The total number of parts may be different from what's shown here.

    Wait for the final message "Process completed" to appear. If you don't see it within about ten minutes, the test probably won't complete in a reasonable time. In that case, press the key combination control-C or command-period to stop it and go to the next step. You'll have incomplete results, but still something.

    12. When the test is complete, or if you stopped it because it was taking too long, quit Terminal. The results will have been copied to the Clipboard automatically. They are not shown in the Terminal window. Please don't copy anything from there. All you have to do is start a reply to this comment and then paste by pressing command-V again.

    At the top of the results, there will be a line that begins with the words "Start time." If you don't see that, but instead see a mass of gibberish, you didn't wait for the "Process completed" message to appear in the Terminal window. Please wait for it and try again.

    If any private information, such as your name or email address, appears in the results, anonymize it before posting. Usually that won't be necessary.

    13. When you post the results, you might see an error message on the web page: "You have included content in your post that is not permitted," or "The message contains invalid characters." That's a bug in the forum software. Please post the test results on Pastebin, then post a link here to the page you created.

    14. This is a public forum, and others may give you advice based on the results of the test. They speak for themselves, not for me. The test itself is harmless, but whatever else you're told to do may not be. For others who choose to run it, I don't recommend that you post the test results on this website unless I asked you to.

    ______________________________________________________________

    Copyright © 2014, 2015 by Linc Davis. As the sole author of this work (including the referenced "Diagnostic Test"), I reserve all rights to it except as provided in the Use Agreement for the Apple Support Communities website ("ASC"). Readers of ASC may copy it for their own personal use. Neither the whole nor any part may be redistributed.

  • by etresoft,

    etresoft etresoft May 13, 2015 5:09 PM in response to Ilya from Apple Store
    Level 7 (29,380 points)
    May 13, 2015 5:09 PM in response to Ilya from Apple Store

    Hello Ilya,

    If the problem goes away on your mom's account, then it is limited to your account. It must be some software that only you are running. The most likely candidates are a Safari extension, Internet Plug-in, or application. I wrote a little diagnostic program to list all of those. Download EtreCheck from http://www.etresoft.com/etrecheck, run it, and paste the results here. EtreCheck is perfectly safe to run, does not ask for your password to install, and is signed with my Apple Developer ID. Hopefully, your EtreCheck report will list some known trouble-makers that can be easily removed.

     

     

    Disclaimer: Although EtreCheck is free, there are other links on my site that could give me some form of compensation, financial or otherwise.

  • by Ilya from Apple Store,

    Ilya from Apple Store Ilya from Apple Store May 13, 2015 7:55 PM in response to etresoft
    Level 1 (0 points)
    May 13, 2015 7:55 PM in response to etresoft

    I did the EtreCheck and it gave me this result. I'm hoping you guys can help .

  • by Linc Davis,

    Linc Davis Linc Davis May 13, 2015 8:01 PM in response to Ilya from Apple Store
    Level 10 (208,037 points)
    Applications
    May 13, 2015 8:01 PM in response to Ilya from Apple Store

    I have no use for "etrecheck." If you would like my help, please post the information I asked for, not what somebody else asked for.

  • by Ilya from Apple Store,

    Ilya from Apple Store Ilya from Apple Store May 13, 2015 8:10 PM in response to Linc Davis
    Level 1 (0 points)
    May 13, 2015 8:10 PM in response to Linc Davis

    I am doing yours too, I did his first cause it was quicker. I am open to any help and appreciate everything you guys post.

  • by Ilya from Apple Store,

    Ilya from Apple Store Ilya from Apple Store May 13, 2015 8:24 PM in response to Linc Davis
    Level 1 (0 points)
    May 13, 2015 8:24 PM in response to Linc Davis
  • by Linc Davis,

    Linc Davis Linc Davis May 13, 2015 8:46 PM in response to Ilya from Apple Store
    Level 10 (208,037 points)
    Applications
    May 13, 2015 8:46 PM in response to Ilya from Apple Store

    I'm assuming that all the facts are as you've stated in this thread.

    A

    Some of your user files (not system files) have incorrect permissions or are locked. This procedure will unlock those files and reset their ownership, permissions, and access controls to the default. If you've intentionally set special values for those attributes, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it, but you do need to follow the instructions below.

    Back up all data before proceeding.

    Step 1

    If you have more than one user, and the one in question is not an administrator, then go to Step 2.

    Enter the following command in the Terminal window in the same way as before (triple-click, copy, and paste):

    sudo find ~ $TMPDIR.. -exec chflags -h nouchg,nouappnd,noschg,nosappnd {} + -exec chown -h $UID {} + -exec chmod +rw {} + -exec chmod -h -N {} + -type d -exec chmod -h +x {} + 2>&-

    You'll be prompted for your login password, which won't be displayed when you type it. Type carefully and then press return. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.

    The command may take several minutes to run, depending on how many files you have. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.

    Step 2 (optional)

    Take this step only if you have trouble with Step 1, if you prefer not to take it, or if it doesn't solve the problem.

    Start up in Recovery mode. When the OS X Utilities screen appears, select

              Utilities Terminal

    from the menu bar. A Terminal window will open. In that window, type this:

    resetp

    Press the tab key. The partial command you typed will automatically be completed to this:

    resetpassword

    Press return. A Reset Password window will open. You’re not going to reset a password.

    Select your startup volume ("Macintosh HD," unless you gave it a different name) if not already selected.

    Select your username from the menu labeled Select the user account if not already selected.

    Under Reset Home Directory Permissions and ACLs, click the Reset button.

    Select

               Restart

    from the menu bar.

    B

    Back up all data.

    Run the following command in the same way as before. It moves to the Trash "semaphore" files that have not been cleaned up by the system and may be interfering with normal operation. The files are empty; they contain no data. There will be no output this time.

    find L*/{Con*/*/Data/L*/,}Pref* -type f -size 0c -name *.plist.??????? -exec mv {} .Trash/ \; 2>&-

    Log out or restart the computer and empty the Trash.

    C

    If there's no improvement after the above steps, continue.

    Please sign out of iCloud in its preference pane and see whether there's any change. No data will be removed from the servers, and you can retrieve it by signing back in. That said, you should always have a current archive of the data for safety's sake, even if you don't sign out.

    If you use iCloud Keychain, when you sign back in to iCloud follow one of the procedures described in this support article to set it up on an additional device.

    D

    "Google Chrome" is using excessive resources. That may be why you got the warning about running out of application memory.

    E

    You've made modifications, such as hacking the hosts file to block Adobe activation servers and installing "Little Snitch." Those modifications are questionable, but they're not causing the problem, if the information you've provided is accurate.

  • by Ilya from Apple Store,

    Ilya from Apple Store Ilya from Apple Store May 13, 2015 8:45 PM in response to Linc Davis
    Level 1 (0 points)
    May 13, 2015 8:45 PM in response to Linc Davis

    I'm heading out to the Apple Store tomorrow any way is it worth doing this? You think I should do it or just let them do it tomorrow.

Page 1 Next