Why do I receive a segmentation violation related to OpenGL when I display surface plots in MATLAB 7.0 (R14)?

1 view (last 30 days)
I use the following code to create surface plots:
for 1 = 1:10
figure;
surf(peaks);
drawnow;
end
However, I receive the following error: ERROR: ------------------------------------------------------------------------ Segmentation violation detected at Fri Mar 21 12:11:59 2003 ------------------------------------------------------------------------ Configuration: MATLAB Version: 7.0.0.5523a (R14) Beta 1 Operating System: Microsoft Windows 2000 Window System: Version 5.0 (Build 2195: Service Pack 3) Processor ID: x86 Family 15 Model 2 Stepping 4, GenuineIntel Virtual Machine: Java 1.4.1_01 with Sun Microsystems Inc. Java HotSpot™ Client VM (mixed mode) Register State: EAX = 037909b8 EBX = c0240000 ECX = 03788000 EDX = 037880c0 ESI = 03788000 EDI = 27d0d9d0 EBP = 0149b204 ESP = 0149b160 EIP = 00000000 FLG = 00010206 Stack Trace: [0] atioglxx.dll:0x69034505(0x27e64318, 0x2830d590, 1, 0x2830d501) [1] glren.dll:private: void __thiscall glren::GLRenderEngine::processObjects(struct GObject_tag *)(0x2830d501, 0x20ea5930, 1, 1) + 92 bytes [2] glren.dll:private: void __thiscall glren::GLRenderEngine::RenderSceneRecursive(struct GObject_tag *)(0x27ff5e10, 0x27d16800, 0x20ea5930, 0) + 193 bytes [3] glren.dll:private: void __thiscall glren::GLRenderEngine::RenderScene(struct GObject_tag *)(1, 0x20ea5930, 0x0149b288, 0x7a0a6946) + 278 bytes <snip>
After the error, when I attempt to query OpenGL information using the following command:
opengl info
I receive the following error: ERROR: Could not query OpenGL info.
When I attempt to close MATLAB, MATLAB hangs.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 31 Jan 2017
This error is caused by incompatibility issues between MATLAB and the ATI Mobility Radeon 7500 graphics card.
To work around this issue, try installing the latest driver, or change your graphics card.
Alternatively, you can also use the generic software OpenGL Renderer for Windows. For instructions on how to change to software OpenGL Renderer, refer to the following technical note:

More Answers (0)

Categories

Find more on Graphics Performance in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!