I may have figured out Safari crashing on Yosemite...

Discussion in 'OS X Yosemite (10.10)' started by aquila421, Aug 6, 2014.

  1. aquila421 macrumors newbie

    Joined:
    Aug 6, 2014
    #1
    Tried relentlessly to pinpoint the Safari issue. Im my case, it wasn't RAM, it wasn't CPU, but actually Safari claiming all unused HD space. Trust me, I still don't understand.

    Long story short, I eventually tried this command in terminal:

    Code:
    mv /Users/username/Library/Caches/com.apple.Safari /Users/username/Library/Caches/com.apple.SafariOLD
    Somehow, someway, I've been stable since.

    Can anyone confirm?

    PS, first post here. Hi all.
     
  2. The19th macrumors regular

    Joined:
    Jul 24, 2014
    Location:
    NorCal
    #2
    I'm not currently having any issues in Safari, but I cleaned up the terminal command to make it more generic, since not everyone has "username" as their Mac OS X account name.

    Code:
    mv ~/Library/Caches/com.apple.Safari ~/Library/Caches/com.apple.SafariOLD
    Additionally, I wonder if simply renaming it in the Finder would work before resorting to a terminal command:

    • Option-click the "Go" menu in the Finder, then select Library and navigate to Caches and rename the com.apple.Safari folder from there.
    • or press Command-Shift-G for Go to Folder… enter "~/Library/Caches" (without quotes) and rename the com.apple.Safari folder from there.
     
  3. melburstein, Aug 6, 2014
    Last edited: Aug 6, 2014

    melburstein macrumors regular

    melburstein

    Joined:
    Jul 3, 2012
    #3
    I regret to report that this did not solve the problem for me. I still get a Kernel Panic (see attached) every time an attempt is made to open Safari. :(
     

    Attached Files:

  4. boast macrumors 65816

    boast

    Joined:
    Nov 12, 2007
    Location:
    Phoenix
    #4
    Crash log shows it seems either your icloud local or icloud web database of your history is corrupt.

    *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** setObjectForKey: object cannot be nil (key: URL)'

    Looks like they use a hash table with the URL being the key. Somewhere there is an empty URL, and they didn't program Safari to catch the error, so the entire program crashes.

    I assume you already made a bug report on this, right?
     
  5. melburstein macrumors regular

    melburstein

    Joined:
    Jul 3, 2012
    #5
    Yes, I have submitted a report to Apple :).

    Is there anything I can do? Or do just have to wait?

    Thank you for your useful analysis.
     
  6. HarryT macrumors 6502

    HarryT

    Joined:
    Mar 21, 2013
    #6
    I saw this too.

    I used DaisyDisk because it said my startup drive was almost full - which was weird.

    Safari Cache had claimed 28gb of drive space. I simply deleted it in DaisyDisk and since then its been ok!
     
  7. boast macrumors 65816

    boast

    Joined:
    Nov 12, 2007
    Location:
    Phoenix
    #7
    Does Safari launch if you go to System Settings > iCloud > Safari and disable it?
     
  8. chrfr macrumors 603

    Joined:
    Jul 11, 2009
    #8
    Note that what you have is a crash in Safari, not a kernel panic.
    Does Safari crash in a different user account? Also, start the computer in safe mode once, then restart and try Safari again. Failing that, delete all the preferences for Safari.
     
  9. inket macrumors regular

    inket

    Joined:
    Dec 23, 2009
    #9
    If you have another OS X installation with a working Safari, open Safari there and clear History. (Does browser history even sync ? I only have one Apple device so I don't know)

    The stack trace mentions "Cloud History", anyways.

    If that doesn't work, you could try exporting your favorites & reading list, then clearing them so that there's nothing to sync and no reason to crash.
     
  10. HowEver macrumors 6502a

    HowEver

    Joined:
    May 10, 2005
    Location:
    Toronto
    #10
    The latest beta completely fixed the constant Safari crashing for me, finally.
     
  11. melburstein macrumors regular

    melburstein

    Joined:
    Jul 3, 2012
    #11
    I could no find System Settings, but I was able to go to
    System Preferences > iCloud > Safari
    and remove the check mark from Safari.

    Good News: I was able to launch Safari.
    Bad News: As soon as I click on the address bar, I get a spinning pinwheel.

    So, I think your suggestion works; but now I have a new problem.
     
  12. melburstein macrumors regular

    melburstein

    Joined:
    Jul 3, 2012
    #12
    So, how do I get the latest beta? I am not a developer, but I did subscribe to the public beta.
     
  13. melburstein macrumors regular

    melburstein

    Joined:
    Jul 3, 2012
    #13
    I have downloaded DaisyDisk (it is worth the $10 bucks).
     
  14. melburstein macrumors regular

    melburstein

    Joined:
    Jul 3, 2012
    #14
    Thank you for correcting me. I like to use the correct terminology. I appreciate your positive comment.
     
  15. melburstein, Aug 7, 2014
    Last edited: Aug 8, 2014

    melburstein macrumors regular

    melburstein

    Joined:
    Jul 3, 2012
    #15
    Drawing from a post in another thread, I did two MORE things:
    (1) Reset Disk Permissions using the Apple Disk Utility.
    (2) sudo update_dyld_shared_cache -force

    It worked. Safari Launches. No Pinwheel. THANK YOU boast. THANK YOU macuser1232. Thank you everyone.
     
  16. psudo macrumors newbie

    Joined:
    Aug 3, 2014
    #16
    Thankyou

    I'm a mac noobie and the suggestions in this thread solved my safari issues. Thank you!:):)
     

Share This Page