Skip navigation

Safari Will Not Quit

12462 Views 8 Replies Latest reply: Dec 26, 2011 8:41 PM by Ninthwave RSS
Peace Freak! Level 1 Level 1 (145 points)
Currently Being Moderated
Jul 24, 2011 9:41 AM

Since upgrading to Lion I am unable to quit Safari from the Safari/Quit Safari menu. I get a beach ball that spins forever. The only way around it is to force quit.

 

I tried removing all the Safari related preferences in my home/library but no luck.

 

I then tried logging into a different user account. Safari quits every time without a problem! So the problem is in my account.

 

I am using Version 5.1 (7534.48.3)

 

Would appreciate any input that might help resolving this issue!

MacBook Pro 2.26 GHz, Mac OS X (10.6.5), 4 GB Ram
  • sharpfeng Calculating status...
    Currently Being Moderated
    Jul 27, 2011 5:49 AM (in response to Peace Freak!)

    THANK YOU so much! This has been driving me nuts; I am so glad I found this!

  • reegello Calculating status...
    Currently Being Moderated
    Aug 26, 2011 5:08 PM (in response to Peace Freak!)

    oh yes! it worked for me as well! thank you very much!

    that's weird, nevertheless. do you know what is this database.db good for?

  • jfaughnan Level 3 Level 3 (780 points)
    Currently Being Moderated
    Oct 10, 2011 6:45 PM (in response to Peace Freak!)

    PF, you are a genius. When I restarted after removing Databases.db Safari opened with a very large number of windows -- perhaps more than it can display. I spent some time closing windows; option close removed all but about 20 that I had to close one at a time, some full screen, some not.

     

    Safari now quits properly.

     

    Nasty bug, presumably related to the open all windows on crash/restart "feature". I remember that feature from OS/2(!), it was a bad idea then too.

  • AndrewJBarton Calculating status...
    Currently Being Moderated
    Oct 11, 2011 10:35 AM (in response to Peace Freak!)

    Over the last week, I have been experiencing exactly the same problem and have just managed to solve it.

    The error reports which are generated are the same as yours (differing only in the computer hardware details), so I won't include them here. I have uninstalled and reinstalled Safari 5.1, done the same for all the Safari extensions and even reinstalled OSX 10.7 (Lion) all without success.

     

    What I found in my case, was that one of the tabs in the Safari webpages I opened was corrupted.  I believe that you mentioned that you too have a corrupted page/tab which is causing the crashes ?

    Although I could open all the pages when Safari is restarted, clicking on a link from my email caused Safari to crash. In addition, trying to close the corrupted tab, the page it was attached to or even to close completely Safari caused it to crash.

     

    Every time it crashes, Safari saves its "state"  ready to be reloaded when it restarts. This "feature" has to be addressed in order to fix things.

     

    Using the Apple file manager to remove the following information should solve your problem.

    Follow these steps

    Make sure that Safari is not running (or don't restart it if it has crashed)

    Remove the contents of the directory {HOME}/Library/Saved Application State/com.applle.Safari.saved.State/

    Remove the file {HOME}/Library/Safari/LastSession.plist

    When you restart Safari, it will no longer load up the corrupted page or crash and should also open pages when you click email links.

     

    If you wish to be more subtle and preserve most of your previously opened pages

    Follow these steps

    Make sure that Safari is not running (or don't restart it if it has crashed)

    Remove the contents of the directory {HOME}/Library/Saved Application State/com.applle.Safari.saved.State/

    Edit the file {HOME}/Library/Safari/LastSession.plist to remove the reference to the corrupted page and resave it. I managed to edit the file using Apple's Xcode editor but other software such as PListBuddy may work.

    When you restart Safari, it will no longer load up the corrupted page or crash and should also open pages when you click email links.

     

    I hope that this sorts your problem out and I also hope that Apple reads these messages (in addition to all the crash reports which have been sent to them). Corrupted pages/tabs should not cause the entire browser to crash. Very annoying.

     

    regards

     

    Andrew

  • Sesquius Calculating status...
    Currently Being Moderated
    Dec 1, 2011 8:35 PM (in response to Peace Freak!)

    Thank you so much for this thread! This problem just recently popped up for me and it was quite frustrating to have four tabs and no way to close them. Then I realized I had another problem on my hand, the quit on Safari was greyed out.

     

    But, by following instructions, I deleted plug-ins and now Safari works again. On top of that, when I restarted Safari a multitude of windows popped up. Again, thanks so much for helping me solve the problem.

  • Ninthwave Calculating status...
    Currently Being Moderated
    Dec 26, 2011 8:41 PM (in response to Peace Freak!)

    PF you *are* a genius, having same problem and your solution worked like a charm.  Thank you! 

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.