Why do I receive a segmentation violation in MATLAB 7.0.1 (R14SP1) when I export an OpenGL figure?

3 views (last 30 days)
While running MATLAB 7.0.1 (R14SP1), MATLAB will crash while attempting to export an OpenGL figure using the PRINT command multiple times. I use the following syntax to export the figure:
print -djpeg temp.jpg
This behavior is not consistent. Sometimes I receive a crash dump, and sometimes MATLAB just exits. The crash dump is as follows:
------------------------------------------------------------------------
Segmentation violation detected at Mon Oct 18 11:20:49 2004
------------------------------------------------------------------------
Configuration:
MATLAB Version: 7.0.1.24704 (R14) Service Pack 1
Operating System: Microsoft Windows XP
Window System: Version 5.1 (Build 2600: Service Pack 2)
Processor ID: x86 Family 15 Model 2 Stepping 9, GenuineIntel
Virtual Machine: Java 1.4.2_04 with Sun Microsystems Inc. Java HotSpot(TM) Client VM
(mixed mode)
Default Charset: ibm-5348_P100-1997
Register State:
EAX = 00000000 EBX = 00074870
ECX = 0000001f EDX = 00074970
ESI = 00000000 EDI = 00079758
EBP = 00cd6dec ESP = 00cd6de0
EIP = 5f1f62cc FLG = 00210246
[0] OPENGL32.dll:0x5f1f62cc(63, 0x000794d8 "GLGC", 17157, 0)
[1] OPENGL32.dll:0x5f1ea454(0x000794d8 "GLGC", 0x00079758 "ÍÌL>ÍÌL>ÍÌL>", 0x0007a4a0 "f3#Af3#Af3#A", 63)
[2] OPENGL32.dll:0x5f1eaa44(63, 0x000794d8 "GLGC", 0x5f1e988b, 0)
[3] OPENGL32.dll:0x5f1eaa95(389608, 389608, 1, 0x00cd6f3c)
[4] OPENGL32.dll:0x5f1ddc16(520256, 0x000794d8 "GLGC", 0x5f1fcab4, 0x7ffdeb68)
[5] OPENGL32.dll:0x5f1fd111(0, 0x000794d8 "GLGC", 0, 0)
[6] OPENGL32.dll:0x5f17c5c0(2896, 0x10a837f8, 383, 0x014d41a0)
[7] glren.dll:void __cdecl renderPatchSubobjFace(class glren::GLRenderEngine *,int,class glren::patch_sorting_data *,bool)(0x014d4150, 11, 0x10a837f8, 0x10a46900) + 17 bytes
<snip>
This happens regardless of whether I use hardware or software OpenGL.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This bug has been fixed in Release 2006b (R2006b). For previous product releases, read below for any possible workarounds:
We have verified that there is a memory leak in the PRINT command in MATLAB 7.0.1 (R14SP1).
To work around this issue, set the figure renderer to 'Zbuffer' or 'Painters' if this change does not alter the appearance of the figure drastically. To set the renderer to 'Zbuffer' or 'Painters' on the current figure, use the following commands:
set(gcf, 'renderer', 'zbuffer');
set(gcf, 'renderer', 'painters');
Other than the above, there are no known workarounds.

More Answers (0)

Categories

Find more on Graphics Performance in Help Center and File Exchange

Products


Release

R14SP1

Community Treasure Hunt

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

Start Hunting!