- check the logs. There may be an obvious hint there as to the cause
- quit all programs, menu bar items, launchd scripts, etc, and check whether the problem persists
- create a new user and see if that user has the problem, too