TeamViewer daemon crashes after login
I am using TeamViewer 12 to connect to a Linux host from a Mac. It generally works well enough, but after the connection is made and I login to the host, the TeamViewer daemon hangs or crashes, making the host appear offline. If I restart the daemon (sudo teamviewer daemon restart), I can reconnect and all is well. But obviously this is possible only if I have another way to access the host, making TeamViewer a bit useless... Any suggestions?
Details: TeamViewer version 12.0.85001 wine-1.6 running on CentOS 6.9.