Go to content Go to navigation Go to search

Josh's Posts Tagged ‘apple’

Safari Flipping Out? Try Clearing the Cache

Over the past few weeks Safari started chewing up the CPU and causing my MacBook Pro to sound like it’s going to take flight. This of course chews up the battery as well.

At first, I thought there was Flash running in one of the pages I load regularly since Flash has a number of issues running well on a Mac. My other thought was that one of the sites I visit regularly has some weird JavaScript bug. The CPU usage would just start climbing at some point; I couldn’t pin down what the cause was or the exact steps to recreate it.

So today I fire it up and Safari immediately starts to devour system resources. Fed up, I do all of the usual things: disabled plug-ins, moved the contents out of ~/Library/Safari, watched the Console for odd messages. Nothing seemed to do it.

Then in occurred to me to try something as a web developer I do all the time: Empty the Browser Cache. (Safari > Empty Cache…)

Disco! It seems once the cache gets to a certain point in Safari, it begins to struggle.

Sometimes the answer is simple.

Hope this helps.

Address Book Crashes

So sometime over the past week, when I launched Address Book on my Mac (running Leopard), the application hung. I would either get no Address Book window, a partially rendered window, or it would render but not respond to any selections.

I had been doing some development and testing with Microformats over the past week or so, exporting all manner of malformed hCards into my Address Book; I’d assumed I’d imported a corrupted card and it corrupted the entire SQLite3 file somehow. Either that or the often flakey syncing with Google Contacts hosed something.

My only other clue was an error in the Console app that occurred every time I tried to launch or interact with the Address Book:

[NSCFArray insertObject:atIndex:]: attempt to insert nil

Address Book Smart Group

After some hit-and-miss searching I finally came across the culprit and an easy fix. This was a relief over diff’ing a 3 month old back-up and manually retyping the missing entries back in, using my iPhone as my “back-up.” The bug turned out to be from the recent 10.5.5 OS X update. It seems if you have a Smart Group in your Address Book and your rules include “not a member of” “any group,” Address Book will hang and throw that error.

The diagnosis and solution came from one “Jean Christie” on the Apple Support forum thread: “Address Book hangs on open.” Thanks go to them for the fix.

The solution is pretty easy, depending on how buggy Address Book is acting.

  1. Open Address Book
  2. Right-click the Smart Group with the “not a member of” “any group” rule
  3. Change the rules to something like “name contains” “please work!
  4. Re-save the Smart Group (Note: this took me a few tries for the save to actually take)
  5. Once the save takes, delete the group
  6. Restart Address Book

If you’re having a similar issue and found this searching for a solution. I hope it helps.

My Delicious Bookmarks (2008-08-06 - 2008-08-11)

Recent links posted to Delicious:

del.icio.us Bookmarks (2008-06-17 - 2008-06-24)

del.icio.us Bookmarks (2008-06-11 - 2008-06-16)

Recent links for http://del.icio.us/quixado:

del.icio.us Bookmarks (2008-06-05 - 2008-06-09)

del.icio.us Bookmarks (2008-05-20 - 2008-05-23)

del.icio.us Bookmarks (2008-04-22 - 2008-04-30)

Recent links for http://del.icio.us/quixado:

del.icio.us Bookmarks (2008-04-14 - 2008-04-15)

Recent links for http://del.icio.us/quixado:

del.icio.us Bookmarks (2008-04-11 - 2008-04-12)

Recent links for http://del.icio.us/quixado:

qxbv