Newsroom Update

Beginning in May, a special Today at Apple series titled “Made for Business” will offer small business owners and entrepreneurs free opportunities to learn how Apple products and services can support their growth and success. Learn more >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

ARD and screen sharing become unresponsive when switching users

I wanted to repost this question because surely I cannot be the only person who's had this problem.

I manage a number of Leopard (10.5.8) and Snow Leopard (10.6.1) servers and desktops via ARD. Whenever I'm sharing the screen of those servers and I return to the login window by switching users, the screen sharing window closes and I am unable to reconnect to screen sharing on the server until I reboot it. Killing all loginwindow processes from ssh also restores ARD's ability to reconnect to the server, but also obviously kills the sessions of users logged in.

I have made sure this is not a problem with my admin machine. I have followed Apple's instructions to remove ARD admin from my admin machine, cleared caches, repaired permissions, deleted preference files, and done all the usual troubleshooting steps. This leads me to believe that the problem lies with the servers and not the admin station.

On the servers, the following entries appear in the system log when the client attempts to reconnect:

Sep 26 21:09:38 Mac-mini AppleVNCServer[1540]: kCGErrorIllegalArgument: CGSGetDisplayBounds (display 503550)
Sep 26 21:09:38 Mac-mini com.apple.RemoteDesktop.agent[1523]: Sat Sep 26 21:09:38 Mac-mini.local AppleVNCServer[1540] <Error>: kCGErrorIllegalArgument: CGSGetDisplayBounds (display 503550)


I have found this problem only happens on servers that have no monitor plugged in.

What is causing screen sharing to become unresponsive? Is there any way to correct this issue?

Message was edited by: Aaron Adams

MacBook Pro, Mac OS X (10.6.1)

Posted on Sep 26, 2009 6:30 PM

Reply
23 replies

Sep 29, 2009 9:55 AM in response to Aaron Adams

Not isolated. It just happened here too, also a headless unit. I tried ARD running on 10.6.1 connecting to 10.5.8, switched users and nothing. Have blue screen when I connected a monitor to the affected machine. The target is unresponsive to local keyboard input as well (was connected prior to the lost video event), not just remote access. After logging out (killall -u <2nd user>) ARD produces no window. Screen Sharing paints a black window with nothing in it. There appears to be a bug in the windowserver (?) process.

Mw

Dec 2, 2009 3:46 AM in response to Aaron Adams

Yes, it has lately become very difficult to use screen sharing on the Mac. If you log out one user you will never be able to log in again remotely.

If you change network location then authentication will not work and let you back in from the new place (maybe happens because I never leaved the session properly, but another machine cannot connect via screen sharing either on the same local LAN afterwards).

You have to be very careful not shifting between Ethernet and Airport as that will break any connection attempts even if on the same LAN (this might have been so before and for good reasons, perhaps).

Copying files over the Internet via ARD has never really worked in any situation (with some of odd exceptions).

Moving windows on the remote machine has for many years resulted in having them snapped to the edges of the remote desktop ... .

Basically you have to have the remote machine connected all the time to keyboard, mouse and screen and have someone standing in front of it as ARD cannot be relied upon these days.

Jan 9, 2010 9:09 AM in response to Farcaller

I'm having the same problem with a recent Aluminum iMac, using Snow Leopard. I switch users via the fast user switching menu and the other user logs in, but the screen stays with the previous user. In addition, when I log out the current user, I can no longer control the machine at all.

This occurs when controlling over the internet. I forward ports 5900 and 3283, which used to always work when controlling the previous iMac.

Jan 9, 2010 9:28 AM in response to Aaron Adams

Here's the error I get once I disconnect and try to reconnect to ARD on the client Mac:

Jan 9 09:26:20 Aluminum-iMac AppleVNCServer[97396]: kCGErrorIllegalArgument: CGSGetDisplayBounds (display 786550)
Jan 9 09:26:20 Aluminum-iMac AppleVNCServer[97396]: setbackground error 268435459
Jan 9 09:26:20 Aluminum-iMac AppleVNCServer[97396]: IOPMAssertionCreate error -536870199
Jan 9 09:26:20 Aluminum-iMac AppleVNCServer[97396]: setbackground error to zero 268435459
Jan 9 09:26:20 Aluminum-iMac AppleVNCServer[97396]: kCGErrorIllegalArgument: CGSGetDisplayBounds (display 786550)
Jan 9 09:26:20 Aluminum-iMac AppleVNCServer[97396]: setbackground error 268435459
Jan 9 09:26:20 Aluminum-iMac AppleVNCServer[97396]: IOPMAssertionCreate error -536870199
Jan 9 09:26:21 Aluminum-iMac com.apple.launchd.peruser.501[99] (0x100207010.anonymous.SafariSyncClient[88002]): The following job tried to hijack the service "com.apple.Safari.SyncClient.IsRunning" from this job: com.apple.Safari
Jan 9 09:26:21 Aluminum-iMac com.apple.launchd.peruser.501[99] (com.apple.Safari[88004]): Exited with exit code: 1
Jan 9 09:26:21 Aluminum-iMac AppleVNCServer[97396]: setbackground error to zero 268435459

I currently can't recreate the problem of trying to switch users, since I can't log into the Mac remotely to test it.

Jan 15, 2010 3:00 PM in response to Aaron Adams

I just had the same problem. ARD on my Leopard machine, managing Snow Leopard on a Mac mini. I turned the curtain on, and forgot to disable the curtain when I logged out of the user account. The curtain screen stayed up, and ARD got no response, so I had to reboot the Snow Leopard mini. Seems like this should have been fixed in the last ARD release.

ARD and screen sharing become unresponsive when switching users

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.