ubuntu18.04 运行代码出错

请问下面错误该如何解决

X Error of failed request:  BadAccess (attempt to access private resource denied)
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  5 (X_GLXMakeCurrent)
  Serial number of failed request:  187
  Current serial number in output stream:  187