Why is my Blender UI glitchy when using rendered preview? When I enter rendered preview with cycles, the UI keeps turning black. GIF showing the problem.

I noticed that the problem isn't occurring when I change the "Window Draw Method" from "Automatic" to "Full" in System settings. However, when it is set to "Full", Blender keeps crashing when I try to enter rendered preview.

I'm using GPU rendering with a GTX 1060 6GB with the latest drivers.

I have tried rolling back the GPU drivers, but didn't help. I have also tried older versions of Blender, which didn't help either. 

Does anyone know why this is happening?

Edit: I just found this thread on reddit (https://www.reddit.com/r/blenderhelp/comments/6h7aoh/blender_constantly_crashing_and_freezing_on/), where somebody asked a similar question. And the answer was to turn off nvidia shadowplay, or instant replay or whatever it's called. And it worked!

Case closed!
I just found this thread on reddit (https://www.reddit.com/r/blenderhelp/comments/6h7aoh/blender_constantly_crashing_and_freezing_on/), where somebody asked a similar question. And the answer was to turn off nvidia shadowplay, or instant replay or whatever it's called. And it worked!

Case closed!