Tuesday, November 20, 2012

A Possible Issue Running Console Apps from Real Studio

On OS X 10.8.2 you may run into an OS X bug in how Apple Events are handled.

When you try to run a console application in debug mode using Real Studio on OS X, the IDE sends an Apple Event targeting Terminal to run your debug app inside a terminal window. On 10.8.2 there is a system process that mediates the sending of Apple Events to other processes (such as Terminal).

Unfortunately, sometimes this system process gets "stuck" such that the IDE never gets a reply that the console application was launched. This means you may have to Force Quit the IDE.

Sadly it's unpredictable as to when or if this process will do this.

If you do a Google search for "10.8.2 appleeventsd" you will find this bug in OS X mentioned in a number of places.

You can read about it on a few blogs that have noted this issue: A workaround for AESSendMessage hanging on OS X 10.8.2

This bug has already been sent to Apple: http://www.openradar.me/12424662

It's also being discussed on the relevant Apple Developer Forums https://devforums.apple.com/message/744795 (Pay attention to the posts by Eskimo1)

Should this problem occur for you, it appears that killing the appleeventsd daemon using Activity Monitor will fix the issue temporarily.

Hopefully this is something that Apple will be able to address in the next update to OS X 10.8.

No comments: