How to resolve lock up after mouse click? I have a Mac Book Pro Retina display running OS X Yosemite and recently it has started acting up.  Occasionally, upon a trackpad click, the machine stops responding, you can move the pointer, but the keyboard does nothing and clicking the trackpad does nothing.  Holding down Command-Option-Esc does nothing.  I'm only able to hold down the power button until it forces a reboot when this arises.  Upon boot, the machine reports a graphics error:

A graphics problem has been detected.


  Click "Report" to submit a report about this problem to Apple. This information is collected anonymously. You won't be contacted about this report.


I reported the issue.

I ran the Apple Hardware Test (not the extended version though), but no errors are reported.  Using an external USB mouse has the same issue.

How can I go about resolving this issue?
A possible workaround is to disable graphics switching: 

Though this will affect battery life.