Hi,

I was trying to run a pyhon script which deals with 3D images on Ubuntu 16.04, but I end with the following error:

X Error of failed request: GLXBadDrawable
Major opcode of failed request: 154 (GLX)
Minor opcode of failed request: 5 (X_GLXMakeCurrent)
Serial number of failed request: 43
Current serial number in output stream: 43

Can someone help with it? What is the reason for this error and how can I resolve it? I already tried updating my nvida driver from 384.130 to 390.77 but that did not help. Also as of now I have CUDA 8.0 with cudnn 6.0 installed.

I also went thoruigh the following thread but it does not seem to solve my issue:
https://ubuntuforums.org/showthread.php?t=1396959

Thanks a lot in advance.