I did this and to no avail. Instead of logging me out completely, it seems it quickly logs me out and back in again.
I was able to replicate the issue by attempting to use the Twitter share in the notication side-panel. When I clicked on that, MacOS would do the logout/login thing. I deleted my Twitter account from System Prefs and the problem seemingly went away.
Later, however, I clicked on an app that went to a different Space and on the transition to the other space, the problem occurred again.
I think this is defintely related to MacPro graphics cards and Core Animation or something, because it only seems to happen when changing Spaces or during some sort of desktop transition. I use a MacPro with 3-displays with two factory graphics cards.
Jonnygreen65 wrote:
I have also just been digging around System Preferences and found this:
System Preferences, Security & Privacy, click 'Advanced' button at the bottom, uncheck 'Log out after 60 mins of inactivity' (you may need to click the little padlock bottom left to change settings)
I'm trying that and will report back, but looks promising. Although doesn't account for it mostly being present on Mac Pros.
Just also checked my MBPro, and it wasn't checked, so this might be my issue.