Switching between full screen apps sometimes fail

Hi,

I have disabled transitions in the preferences in order to do fast switching between full screen apps using Cmd-tab and it worked fine before I upgraded to Yosemite.
Now I sometimes end up on the top left desktop when switching, but the menu bar suggests that I have changed to the correct application. If it happens to be Chrome I have switched to it will be shown if I press Cmd-r to reload the current tab.

If I enable transitions again the problem goes away.

Regards,
Jacob

Hi,

I have attempted to mitigate this issue in the latest builds of TotalSpaces2, what version do you have?

I am using 2.2.9. Do you have nightly builds I can try or something similar?

/Jacob

You may try http://downloads.binaryage.com/TotalSpaces2-2.2.12.dmg

Let me know if there is any improvement.

Thanks, but the problems seems to have disappeared after I installed the 10.10.1 OSX update. So it might have been an OSX problem.

And now it showed up again :frowning:
I have tried to update to the 2.2.12, but it does not seem to work at all. Even downgrading to 2.2.9 does not work.
Does not work means that totalspaces is ignored and I cannot setup transitions for instance.
When I go to the preferences / layouts it tells me that I need 16 desktops; it used to be nine. When I click the Add Desktops button it shows an error (Could not create all requested desktops. The system limit is 16 (plus specials)). The component above just shows a black square and the controls for adding rows and columns, but the desktops are not shown as they used to be.

I have tried to restart and uninstall Totalspaces using the uninstaller, but I cannot get it to work again.

Any ideas?

Hi,

Worrying that 2.2.12 did not work for you.

To revert to 2.2.9 you would need to uninstall 2.2.12 (using the uninstaller that comes on the dmg) and then re-install 2.2.9.

But before you do that, do you have the possibility to send me the Console.app logs when you quit and restart TotalSpaces 2.2.12 ? That would be helpful because I’d like to figure out what the problem is.

I have tried to uninstall 2.2.12 and reinstall 2.2.9 and it did not seem to work either, but I will try again and report back.

Here is the log:

26/11/14 10:35:38,247 NotificationCenter[466]: Dock connection interrupted!
26/11/14 10:35:38,247 NotificationCenter[466]: disconnect 0x600000304260
26/11/14 10:35:38,248 NotificationCenter[466]: Dock connection invalid!
26/11/14 10:35:38,248 NotificationCenter[466]: disconnect 0x0
26/11/14 10:35:38,253 com.apple.xpc.launchd[1]: (com.apple.Dock.agent[15759]) Service exited with abnormal code: 1
26/11/14 10:35:39,224 sandboxd[16840]: ([394]) storeuid(394) deny mach-lookup com.apple.dock.server
26/11/14 10:35:39,273 sandboxd[16840]: ([394]) storeuid(394) deny mach-lookup com.apple.dock.server
26/11/14 10:35:39,575 com.apple.xpc.launchd[1]: (com.apple.imfoundation.IMRemoteURLConnectionAgent) The _DirtyJetsamMemoryLimit key is not available on this platform.
26/11/14 10:35:39,914 NotificationCenter[466]: reconnecting, dock back alive
26/11/14 10:35:40,139 sandboxd[16840]: ([394]) storeuid(394) deny mach-lookup com.apple.dock.server
26/11/14 10:35:44,734 locationd[55]: Location icon should now be in state 'Active’
26/11/14 10:35:46,000 kernel[0]: LS(4228) m3b121173:1537 :0xffffff802111aa50 error:22
26/11/14 10:35:47,498 locationd[55]: Location icon should now be in state 'Inactive’
26/11/14 10:35:47,748 TotalSpaces2[16863]: Detected FastSwitch2 version 2.2.12
26/11/14 10:35:47,749 TotalSpaces2[16863]: TotalSpaces2.app is carrying FastSwitch2 version 2.2.12
26/11/14 10:35:47,810 TotalSpaces2[16863]: Inject called: waitingToInject: 0 injectionBackoff: 0
26/11/14 10:35:47,842 Dock[16856]: TotalSpacesInjector v1.1.6 received init event
26/11/14 10:35:47,849 Dock[16856]: Loaded bundle from path: /Library/ScriptingAdditions/TotalSpaces.osax/Contents/Resources/TotalSpaces.bundle
26/11/14 10:35:47,849 Dock[16856]: TotalSpacesInjector: Installing TotalSpaces …
26/11/14 10:35:47,849 Dock[16856]: [TotalSpaces] FastSwitch2 © 2011-2014 Switchstep is association with BinaryAge
26/11/14 10:35:47,849 Dock[16856]: [TotalSpaces] FastSwitch2 is being initialized
26/11/14 10:35:47,850 Dock[16856]: [TotalSpaces] Yosemite detected
26/11/14 10:35:47,853 Dock[16856]: [TotalSpaces] Object fail
26/11/14 10:35:47,853 Dock[16856]: [TotalSpaces] FastSwitch2 failed to initialize
26/11/14 10:35:47,855 Dock[16856]: Loaded bundle from path: /Library/ScriptingAdditions/TotalSpaces.osax/Contents/Resources/GridZoom.bundle
26/11/14 10:35:47,856 TotalSpaces2[16863]: Monitoring Dock 16856
26/11/14 10:35:48,857 TotalSpaces2[16863]: Connecting Dock, backoff: 1
26/11/14 10:35:48,858 TotalSpaces2[16863]: Failed to register connection
26/11/14 10:35:49,859 TotalSpaces2[16863]: Connecting Dock, backoff: 2
26/11/14 10:35:49,860 TotalSpaces2[16863]: Failed to register connection
26/11/14 10:35:51,861 TotalSpaces2[16863]: Connecting Dock, backoff: 4
26/11/14 10:35:51,861 TotalSpaces2[16863]: Failed to register connection
26/11/14 10:35:55,863 TotalSpaces2[16863]: Connecting Dock, backoff: 8
26/11/14 10:35:55,864 TotalSpaces2[16863]: Failed to register connection
26/11/14 10:36:03,865 TotalSpaces2[16863]: Connecting Dock, backoff: 8
26/11/14 10:36:03,865 TotalSpaces2[16863]: Failed to register connection
26/11/14 10:36:11,867 TotalSpaces2[16863]: Connecting Dock, backoff: 8
26/11/14 10:36:11,867 TotalSpaces2[16863]: Failed to register connection
26/11/14 10:36:19,868 TotalSpaces2[16863]: Connecting Dock, backoff: 8
26/11/14 10:36:19,869 TotalSpaces2[16863]: Failed to register connection
26/11/14 10:36:27,870 TotalSpaces2[16863]: Connecting Dock, backoff: 8
26/11/14 10:36:27,871 TotalSpaces2[16863]: Failed to register connection

And it keeps logging the last two lines

Reverting to 2.2.9 works fine, I must have mixed up the dmg files when I tried earlier.

I still think that it might be an OSX problem as I have experienced it when totalspaces was not working during the past couple of days, but it occurs less frequent when transitions are enabled.

Thanks. I can see that the Dock plugin fails to initialise correctly - this is very useful info - I don’t know why yet, I’ll need to come up with a hypothesis. I appreciate you testing it, I’ll get back to you.

Yes, when transitions are enabled the app has more time to become active and the additional switches don’t happen. I can look at extending the timeouts too (there is indeed code in 2.2.9 to address this, but I think it’s better in later builds.)

I will be happy test other builds as well and if you need further information just let me know.

Thanks!

You may try this version

http://downloads.binaryage.com/TotalSpaces2-2.2.13.dmg

I would really appreciate any feedback. Probably I’ll push it on the pre-release channel soon.

It works! And the switch problem seems to also be related to the number of desktops. During the multiple installs I ended up having 16 desktops in one row, but I have now managed to get it down to 3x3 again and the switch problem seems to occur even less frequently now. So thanks a lot :smile:

I have appended the log from the initial startup of totalspaces 2.2.13

27/11/14 14:01:05,195 TotalSpaces2[19057]: Installing the TotalSpaces2 scripting addition to /Library/ScriptingAdditions
27/11/14 14:01:05,241 TotalSpaces2[19057]: Sparkle: releaseFromQuarantine
27/11/14 14:01:09,300 authexec[19062]: executing /usr/sbin/chown
27/11/14 14:01:09,323 authexec[19066]: executing /bin/mv
27/11/14 14:01:09,326 TotalSpaces2[19057]: Sparkle: releaseFromQuarantine after installing
27/11/14 14:01:09,439 TotalSpacesCrashWatcher[19068]: Watching ‘/Users/jacob/Library/Logs/DiagnosticReports’ for recent crash reports with prefix 'TotalSpaces2’
27/11/14 14:01:09,501 TotalSpaces2[19057]: Inject called: waitingToInject: 0 injectionBackoff: 0
27/11/14 14:01:09,553 TotalSpaces2[19057]: Monitoring Dock 18996
27/11/14 14:01:09,583 NotificationCenter[466]: Dock connection interrupted!
27/11/14 14:01:09,583 NotificationCenter[466]: disconnect 0x6080003003f0
27/11/14 14:01:09,584 NotificationCenter[466]: Dock connection invalid!
27/11/14 14:01:09,584 NotificationCenter[466]: disconnect 0x0
27/11/14 14:01:09,592 TotalSpaces2[19057]: Dock pid 18996 terminated
27/11/14 14:01:09,597 com.apple.xpc.launchd[1]: (com.apple.Dock.agent[18996]) Service exited with abnormal code: 1
27/11/14 14:01:10,042 TotalSpaces2[19057]: Sparkle: ===== TotalSpaces2 =====
27/11/14 14:01:10,554 TotalSpaces2[19057]: Connecting Dock, backoff: 1
27/11/14 14:01:10,554 TotalSpaces2[19057]: Failed to register connection
27/11/14 14:01:10,886 sandboxd[18323]: ([394]) storeuid(394) deny mach-lookup com.apple.dock.server
27/11/14 14:01:10,918 sandboxd[18323]: ([394]) storeuid(394) deny mach-lookup com.apple.dock.server
27/11/14 14:01:10,969 com.apple.xpc.launchd[1]: (com.apple.imfoundation.IMRemoteURLConnectionAgent) The _DirtyJetsamMemoryLimit key is not available on this platform.
27/11/14 14:01:11,555 TotalSpaces2[19057]: Connecting Dock, backoff: 2
27/11/14 14:01:11,555 TotalSpaces2[19057]: Failed to register connection
27/11/14 14:01:11,585 NotificationCenter[466]: reconnecting, dock back alive
27/11/14 14:01:11,718 sandboxd[18323]: ([394]) storeuid(394) deny mach-lookup com.apple.dock.server
27/11/14 14:01:13,557 TotalSpaces2[19057]: Connecting Dock, backoff: 4
27/11/14 14:01:13,557 TotalSpaces2[19057]: Failed to register connection
27/11/14 14:01:14,594 TotalSpaces2[19057]: Inject called: waitingToInject: 0 injectionBackoff: 0
27/11/14 14:01:14,611 TotalSpaces2[19057]: Monitoring Dock 19071
27/11/14 14:01:14,628 Dock[19071]: TotalSpacesInjector v1.1.6 received init event
27/11/14 14:01:14,637 Dock[19071]: Loaded bundle from path: /Library/ScriptingAdditions/TotalSpaces.osax/Contents/Resources/TotalSpaces.bundle
27/11/14 14:01:14,637 Dock[19071]: TotalSpacesInjector: Installing TotalSpaces …
27/11/14 14:01:14,637 Dock[19071]: [TotalSpaces] FastSwitch2 © 2011-2014 Switchstep is association with BinaryAge
27/11/14 14:01:14,638 Dock[19071]: [TotalSpaces] FastSwitch2 is being initialized
27/11/14 14:01:14,638 Dock[19071]: [TotalSpaces] Yosemite detected
27/11/14 14:01:14,645 Dock[19071]: [TotalSpaces] FastSwitch2 ready v2.2.13
27/11/14 14:01:14,660 Dock[19071]: Loaded bundle from path: /Library/ScriptingAdditions/TotalSpaces.osax/Contents/Resources/GridZoom.bundle
27/11/14 14:01:15,612 TotalSpaces2[19057]: Connecting Dock, backoff: 8
27/11/14 14:01:15,613 TotalSpaces2[19057]: Dock connected
27/11/14 14:01:17,559 TotalSpaces2[19057]: Connecting Dock, backoff: 1
27/11/14 14:01:17,560 TotalSpaces2[19057]: Dock connected

The issue came back after a while but less frequent. It sill bothered me so I tried to change some settings and it finally disappeared when I removed the tick in the Displays have separate spaces checkbox in System preferences | Mission Control.
It is kind of odd because I dont have an external display.

/Jacob

Indeed that is a bit of an odd result, but good if it works.

I am also continually trying to improve the protection against these bogus desktop switches, there should be some progress in the next release.