Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I'm running snow leopard on a fairly new macbook pro 13" (september 2010).

Sometimes the black visualization showing the available spaces and the space I'm currently on doesn't disappear when I have switched between two spaces. When this happens, spaces seems to steals keyboard input from the application(s) on the space I have switched to. Sometimes the visualization disappears after I keep switch spaces some more, but sometimes I have to force a reboot.

Also, spaces seems quite slow at times.

Does anybody else experience the same thing, and is there anything to be done about it?

share|improve this question
    
I did experience this for ~ a week a few months ago. I forget if I did anything or not, but it went away eventually. Perhaps a reboot? –  user588 Oct 17 '10 at 20:56
    
There's a discussion in the apple forums here: discussions.apple.com/thread.jspa?threadID=2162220 about this issue, but no solution (yet). –  oyvindio Nov 3 '10 at 12:03
    
Here's an article on cnet which also describes the issue, but unfortunately no definite fix: reviews.cnet.com/8301-13727_7-20015817-263.html –  oyvindio Nov 3 '10 at 12:54
    
For the record: This has been theoretically fixed in 10.6.5. –  Martín Marconcini Nov 13 '10 at 16:41
    
For the record: This issue is still there in 10.6.5. –  oyvindio Nov 17 '10 at 12:15
show 2 more comments

4 Answers

I find that killing the Dock only sometimes makes the problem go away. Usually keyboard input returns, but if I switch spaces using the keyboard shortcuts, the visualisation sticks around & keyboard input is stolen again.

What I have found to work is putting the display to sleep. I've had the bottom right corner of the screen set to do that for ages, so it's quite convenient for me. I've never had this method fail; once the screen is awoken, the problem is gone & doesn't return when I switch spaces again.

To me this suggests that the problem isn't actually in Dock, it's in the system's EventTap subsystem, the bit that lets stuff like Spaces, Screen Sharing, LaunchBar, & Spotlight take keystrokes before the focussed application gets them. I've actually experienced a similar problem with Screen Sharing, where the system whose screen is being shared gets its keyboard input mangled if a modifier key is pressed on the viewing computer & not released until Screen Sharing has lost focus. It's sort of the reverse problem, but it indicates that perhaps the Spaces problem is the EventTap framework getting stuck in a similar way, never sending the message that Control isn't being held down any more.

share|improve this answer
add comment

I experience the same issue on a regular basis. Pressing CMD+W right after noticing that the spaces window will persist makes the window disappear most times.

If it doesn't, you can kill Dock from Activity Monitor (start it from the Applications folder in your Dock, select 'Dock' and click 'End Process' or the like). This always makes keyboard input work again, but the issue will reappear very soon.

If I could, I also would give bounty for this!

/Update: The Mac OS X 10.6.5 changelog suggests that this issue will be fixed in that version:

Addresses keyboard responsiveness issues in the Dock when Spaces is turned on.

share|improve this answer
    
This is as much as I gathered from the article on cnet and the forum post I linked; a workaround is to kill the Dock process one way or another, but nobody seems to know how to completely get rid of this issue - if it's even possible. Is there no solution? –  oyvindio Nov 10 '10 at 21:10
    
Update 2: 10.6.5 didn't fix it for me. –  MrMage Nov 24 '10 at 12:15
add comment

I haven't figured out the why of it, per se, but I have figured out a good way to get around it; I created an Applescript application that lives in my dock that allows me to kill the Dock when this happens (since the keyboard is no longer responsive at that point).

Create this script in the AppleScript editor and save it as an application somewhere:

set app_name to "Dock"
do shell script ("killall " & app_name)

Add it to your Dock, and when Spaces grabs all keyboard input you can click it to restart the Dock, which will allow you to proceed.

share|improve this answer
add comment
up vote 0 down vote accepted

This comment on the apple subreddit led me to this thread where people discuss this issue in relation to an application called Cinch. In the thread about this on the apple forums, people mention several other applications that might be causing this issue too.

What is causing this issue?

From what I can gather, this issue seems to be related to applications using Event Taps (an API that lets applications directly listen for keyboard and mouse events). I think there is either A) a bug in OS X where Event Taps sometimes stop working for whatever reason, or B) application programmers consistently have a hard time using Event Taps correctly.

What can I do about it?

If this is indeed caused by an OS X bug (this seems the most likely to me), this issue can't be fixed completely by end users. There is one thing you can do that might make it happen less frequently though: In the Cinch thread, there is a link to an application that lists all running applications that have Event Taps open. It looks like this:EventTaps

I figure that the more applications you are running that have an Event Tap open, the more often you'll end up with a clogged Event Tap somewhere, and you'll have the spaces issue happen more often as a consequence of this.

So, if you're having this issue, try running as few of the applications that show up in EventTaps.app as you can.

For whenever the issue does happen, kill the Dock using whatever method you find most convenient. I keep the AppleScript snippet that Chris R posted in his answer in an .app on my Desktop, and run it whenever spaces locks up.

share|improve this answer
    
Ironically, I had spaces lock up my keyboard 4 times while writing this. I think I made it angry. –  oyvindio Jun 5 '11 at 12:59
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.