MATLAB: Does MATLAB crash when trying to produce a plot, run BENCH, or PCOLOR

3d6atioglxx.dllbenchMATLABmeshopenglpackpcolorr12lcssegmenationservicesurfviolation

This may also include getting blank figure windows, or error messages such as the following:
Attempt to write a locked object
This happens when I am manipulating a plot, producing a 3D plot, or producing a plot with a large number of data points. Even running BENCH or producing reasonably sized PCOLOR plots leads to this.

Best Answer

If you are using a version from MATLAB 6.1 (R12.1) through MATLAB 7.0 (R14) under Windows, try using the generic OpenGL drivers provided by Windows. You can do this by executing the following command before creating graphics :
feature('usegenericopengl',1)
If you are using MATLAB 7 or newer, execute the following command instead:
opengl('software')
For more information, see the following:
As of MATLAB 6.0 (R12), OpenGL has become available as an additional rendering method to complement Zbuffer and painters. This method can utilize graphics hardware for accelerated performance when drawing large and complicated graphics. However, hardware is not necessary and many of the benefits of OpenGL can be obtained through software emulation. In the event that the OpenGL renderer has been picked by MATLAB's auto-selector and hardware is available, MATLAB will attempt to utilize it.
When utilizing the OpenGL rendering method, it is possible that an error may occur either in the driver or in our code, in which case MATLAB will crash or error out. When this happens there are several things that you can do to resolve the issue.
Please see the OpenGL description in the figure's 'Renderer' property here:
Specifically, the following sections will help diagnose and troubleshoot possible OpenGL conflicts:
Section 4: How can I tell if OpenGL is the source of problems while running MATLAB with graphics?
Section 6: Are there any known hardware or software incompatibilities?
Section 8: Will changing my graphics adapter's driver help resolve my problem?
Section 9: How can I Point my Computer to the desired software or hardware OpenGL?
Sections 1-3 provide a good background for understanding the MATLAB graphics renderers, and how to choose and select them.
For additional OpenGL related information, see the following URL: