Sluggish iChat, Messages, Terminal, and Others in Mac OS X Lion
Posted by Ady on Sat, May 12, 2012
After about 60 days using my MacBook Pro running Mac OS X Lion (10.7.3), I saw some sluggishness in some apps. At first, it was Messages (iChat replacement for Mountain Lion). It went unresponsive and displays the rainbow wheel for a few seconds, enough to annoy an impatient user.
Then, the same behavior happened in Terminal. This is where I realize the common behavior. You know, when you press delete on an empty prompt, you get a bell. The default is the audible bell. When I change it to the visual bell, sluggishness disappeared.
On Messages, I had the default sound effect setting when messages are received or sent.
Boy was I right. In the log /var/log/system.log there were a bunch of these:
May 3 22:30:57 ADYMAC iChat[66352]: [Warning] Actions: Couldn't create SystemSound from /Applications/iChat.app/Contents/Resources/Received Message.aiff May 3 22:31:07 ADYMAC iChat[66352]: [Warning] Unable to find a sound action ID for /Applications/iChat.app/Contents/Resources/Received Message.aiff errorResult: 268435460 May 3 22:31:07 ADYMAC iChat[66352]: [Warning] Actions: Couldn't create SystemSound from /Applications/iChat.app/Contents/Resources/Received Message.aiff May 3 22:31:17 ADYMAC iChat[66352]: [Warning] Unable to find a sound action ID for /Applications/iChat.app/Contents/Resources/Received Message.aiff errorResult: 268435460
These are when I tried to change the system bell using the System Preferences application.
May 11 01:45:55 adymac System Preferences[44495]: Error 268435460 setting AlertSound May 11 01:53:22 adymac System Preferences[44678]: Error 268435460 setting AlertSound May 11 01:58:20 adymac System Preferences[44678]: Error 268435460 setting AlertSound May 11 01:58:25 adymac System Preferences[44678]: Error 268435460 setting AlertSound
And so I tried a lot of things, including logging out then in, inspecting the file permissions, and also ran the verify permission utility on the hard disk using Disk Utility. Nothing worked.
Finally, I saw that there was one process called coreaudiod
_coreaudiod 45197 0.0 0.1 2453172 5228 ?? Ss Fri02AM 0:10.52 /usr/sbin/coreaudiod
And so I tried killing it:
$ sudo killall coreaudiod
And as expected, it respawned itself and all audio effects were now working. Sluggishness and the dreaded rainbow wheel are gone.
Googling after, I saw that people mentioned that this may be a bug, and killing coreaudiod is only a workaround not the solution.
Come to think of it, it also caused unnecessary delay when making screen shots using the Command-Shift-4 key combination.
I hope this can save you some time.
Popularity: 1% [?]
Previous Articles
Sat, May 5, 2012
Build LFTP on Mac OS X Lion
If you’re a seasoned Linux SysAdmin, you’ll miss LFTP. It’s a really powerful FTP client. Yes, you can also install it using MacPorts or Fink but right now, this is much quicker for me. Here’s how I built LFTP 4.3.6 on my MacBook Pro. For the record, I’m on 10.7.3 Prerequisite: Apple developer tools (Xcode) [...]View Comments | Full article »
Thu, February 23, 2012
UniFi Phone Call Forwarding
If you’re here to look for the way to forward the phone that comes to UniFi to another phone number, I apologize. I don’t know how. I tried asking TM call center but they told me to call UniFi support for UniFi phone. For the record every time I try *61*XXXXXXXXXX# the automated voice response [...]View Comments | Full article »
Fri, February 17, 2012
Mac Messages Beta
Apple has just released the developer preview for OS X Mountain Lion yesterday and at the same time released the beta version of Messages, an upgrade of iChat. Here is the link to download Messages. Installation is straight forward but you will be warned that the machine will need to be restarted. After installation, the [...]Comments Off | Full article »
Thu, February 9, 2012
VirtueMart Custom Login Module in Joomla!
Here’s a short article on making a simple module to include on your Joomla! pages that displays login / logout links. I’m a Joomla! newbie so there might be better ways to accomplish this. I was helping a friend-client to accomplish redirection to the same page after logout. Here’s the basic code that you need [...]Comments Off | Full article »
Sun, January 22, 2012
Crocs Malaysia Warehouse Sale
I have always been a fan of Crocs shoes because of their lightness, durability and the airy design. As someone who suffers from athlete’s foot since the teen years, airy means better air circulation and dryer feet. Back in 2009 or 2010 we went to a Crocs warehouse sale in Ikano Power Center in Damansara. [...]Comments Off | Full article »
Sat, January 7, 2012
Leverage Browser Caching
In the previous post I wrote about enabling compression for your pages so that they would load faster to the visitor. Today I’m going to write about how you can make use of browser caching to save some bandwidth. Some people told me that their ISP or hosting provider requested that they upgrade the hosting [...]Comments Off | Full article »
Sat, December 24, 2011
Let Apache Compress Your Website
Website speed is one of the most important factor to make people like to visit more. In 2008, I wrote Compressing WordPress Output and this is done by adding one line to index.php The problem with that approach is that when you upgrade WordPress you have to manually add the line into index.php, and the [...]Comments Off | Full article »
Fri, December 9, 2011
Sparrow and Shortmail
I’ve been pushing the limits of my mid-2010 13″ MacBook Pro lately, running all sort of applications and leaving them running. There has been occasions where the machine will freeze while it struggles to schedule the CPU time to all of the applications. I use a lot of email, and by a lot I don’t [...]Comments Off | Full article »
Wed, November 30, 2011
O2 Broadband. Customer Loyalty. Rewarded
A friend living in the UK asked my opinion on which provider he should choose for his Internet needs. He showed me a few options and O2 Broadband is definitely the winner. I have heard about issues with customer support before but the truth is we’re all humans and we’re hard to be pleased. From [...]Comments Off | Full article »
Mon, November 7, 2011
Sleep Issues & Noisy Meleis
In 2006, I wrote about how I think I suffer from Narcolepsy. I’m still suffering from the same issue, and I can’t get any doctor to confirm the condition. Living in Malaysia, I don’t expect much since the doctors will always say it’s nothing until it’s too late and you’re on your deathbed. Now that [...]Comments Off | Full article »
Sat, July 23, 2011
Compiling flip on Mac OS X
I was looking for a simple utility that will work like dos2unix tool on Linux to convert endlines from DOS to UNIX. I was scraping some contents from a server running .NET and those ugly ^M characters appeared in vim. I found this https://ccrma.stanford.edu/~craig/utility/flip/, downloaded the PPC binary and used it happily for a while. [...]Comments Off | Full article »
Thu, May 5, 2011
Used Nikon D50 Kit For Sale
Since Mudah.my has decided to be Susah.my (again) I have decided to post this item here, on my own blog. This is my old DSLR, fully functioning and very much loved. It’s for sale as I have upgraded to a faster camera suitable for shooting children in normal and low lighting conditions. Here’s the same [...]Comments Off | Full article »
Sun, May 1, 2011
Problems Saving Alerts in MyProfiles
Let’s face it. iPhone/iPad “new mail” alerts sucks and if you have multiple email accounts set up you’ll never know which account received the new email. When you’re driving or having a meal, it’s convenient to know whether the email is from your boss, is an important alert from a system dying somewhere, or just [...]Comments Off | Full article »
Sun, May 1, 2011
First IKEA Hacking Project: VIKA AMON and LACK
My better half and I have been looking for a nice table as surface in our large kitchen but we couldn’t find any nice ones. Even IKEA products are too simple or too expensive. She found a website that she likes very much, IKEA Hackers and has been showing me many designs since. For her [...]Comments Off | Full article »


