TeamViewer halts on Linux Ubuntu 16.04

Options

after installing the Ubuntu gui on Ubuntu server (to make it Ubuntu desktop), when i login with TeamViewer the screen freezes after login and the session closes.

 

i have tried installing the GPU driver and it did not resove the issue, this is what i get in the log file :

2019/02/11 07:51:20.746 15018 **Please do not post TeamViewer IDs**35616 DX0!! X Error 3 on :0, Req 3.0 [X_GetWindowAttributes] (#93 r**Please do not post TeamViewer IDs**): BadWindow (invalid Window parameter), Errorcode=11
2019/02/11 07:51:20.746 15018 **Please do not post TeamViewer IDs**35616 DX0!! X Error 3 on :0, Req 3.0 [X_GetWindowAttributes] (#95 r0): BadWindow (invalid Window parameter), Errorcode=11
2019/02/11 07:51:20.746 15018 **Please do not post TeamViewer IDs**35616 DX0!! GuiWindowCheckLin::CheckForValidGUIWindows: n(-1) !IsViewable, m(-1) count 6, Errorcode=11
2019/02/11 07:51:20.837 15025 **Please do not post TeamViewer IDs**23008 GX0!!!Crash: Coredump '/home/ubuntu/.local/share/teamviewer13/logfiles/TeamViewer_FI_13.2.26559_2019-02-11-075119.amd64.core' could not been written. Error 14, Errorcode=14
2019/02/11 07:51:20.837 15025 **Please do not post TeamViewer IDs**23008 GX0 Process received fatal SIGABRT
2019/02/11 07:51:20.847 15018 **Please do not post TeamViewer IDs**41440 DX0!! X Error 3 on :0, Req 3.0 [X_GetWindowAttributes] (#100 r**Please do not post TeamViewer IDs**): BadWindow (invalid Window parameter), Errorcode=11
2019/02/11 07:51:20.847 15018 **Please do not post TeamViewer IDs**41440 DX0!! X Error 3 on :0, Req 3.0 [X_GetWindowAttributes] (#102 r0): BadWindow (invalid Window parameter), Errorcode=11
2019/02/11 07:51:20.847 15018 **Please do not post TeamViewer IDs**41440 DX0!! GuiWindowCheckLin::CheckForValidGUIWindows: n(-1) !IsViewable, m(-1) count 7, Errorcode=11
2019/02/11 07:51:20.902 15018 **Please do not post TeamViewer IDs**38208 DX0!! MonitorInfo: WorkingArea: Property error 14 (3), Errorcode=11
2019/02/11 07:51:20.944 15018 **Please do not post TeamViewer IDs**34144 DX0 Received Control_DisconnectIPC processtype=2
2019/02/11 07:51:20.944 15018 **Please do not post TeamViewer IDs**41440 DX0 Received Control_TerminateProcess
2019/02/11 07:51:20.945 15018 **Please do not post TeamViewer IDs**54144 DX0 ==== Close Desktop! ====
2019/02/11 07:51:20.948 15018 **Please do not post TeamViewer IDs**12256 DX0!! GuiWindowCheckLin::CheckForValidGUIWindows: n(-1) No GUI process is running, m(-1) count 0, Errorcode=11
2019/02/11 07:51:20.950 15018 **Please do not post TeamViewer IDs**38208 DX0 DesktopThread ended
2019/02/11 07:51:20.951 15018 **Please do not post TeamViewer IDs**54144 DX0 DesktopThread stopped
2019/02/11 07:51:20.951 15018 **Please do not post TeamViewer IDs**54144 DX0 ==== Desktop closed already! ====
2019/02/11 07:51:20.951 15018 **Please do not post TeamViewer IDs**54144 DX0 interprocessbase::SecureNetwork destroyed
2019/02/11 07:51:20.977 15018 **Please do not post TeamViewer IDs**04960 DX0 CTcpProcessConnector::HandleRead(): Socket gracefully closed (PID=1335)
2019/02/11 07:51:20.977 15018 **Please do not post TeamViewer IDs**04960 DX0 CTcpProcessConnector::CloseConnection(): PID=1335
2019/02/11 07:51:20.977 15018 **Please do not post TeamViewer IDs**04960 DX0 InterProcessBase::EventFunctionInternal(): IPC-Connection Closed
2019/02/11 07:51:20.977 15018 **Please do not post TeamViewer IDs**04960 DX0 CTcpProcessConnector::CloseConnection(): PID=1335
2019/02/11 07:51:20.978 15018 **Please do not post TeamViewer IDs**04960 DX0 CTcpProcessConnector::CloseConnection(): Shutdown socket returned error 107: Transport endpoint is not connected
2019/02/11 07:51:20.979 15018 **Please do not post TeamViewer IDs**54144 DX0 Shutting down System DBus