The PTB text functions still crash Matlab on my machine. Here's the
crash report when I run DrawSomeTextOSX:
Configuration:
MATLAB Version: 7.0.0.19901 (R14)
Operating System: Darwin 7.5.0 Darwin Kernel Version 7.5.0: Thu Aug
5 19:26:16 PDT 2004; root:xnu/xnu-517.7.21.obj~3/RELEASE_PPC Power
Macintosh
Window System: The XFree86 Project, Inc (40300000), display :0.0
Current Visual: 0x22 (class 4, depth 24)
Virtual Machine: Java 1.4.2_05 with "Apple Computer, Inc." Java
HotSpot(TM) Client VM
(mixed mode)
Default Charset: US-ASCII
r0 = a01905f4 r8 = a6bf7270 r16 = f0ffdd10 r24 = 1001fb08
r1 = f0ffc910 r9 = 0000001c r17 = 00000001 r25 = 000000ff
r2 = a01901f4 r10 = 00002052 r18 = f0ffdd70 r26 = 00000000
r3 = 00000000 r11 = 0f82c928 r19 = 00000001 r27 = 00000000
r4 = 1001fb08 r12 = 901abb7c r20 = 0009d342 r28 = 00000000
r5 = 000000ff r13 = 00000000 r21 = 00000000 r29 = 00000600
r6 = 00000600 r14 = 0e7026d0 r22 = 0156a850 r30 = f0ffc990
r7 = f0ffc530 r15 = 00000002 r23 = 00000000 r31 = 901abb8c
cr = 24044228 lr = 901abb8c xer = 00000004 ctr = 901abb7c
vrsave = 00000000
Stack Trace:
[0] CoreFoundation:0x901abbd0
[1] Screen.mexmac:0x0f820be4
[2] Screen.mexmac:0x0f8208a4
[3] Screen.mexmac:0x0f8212ec
[4] Screen.mexmac:0x0f81d3b4
[5] Screen.mexmac:0x0f8178e8
[6] libmex.dylib:mexRunMexFile + 116 bytes
[7] libmex.dylib:Mfh_mex::dispatch_file(int, mxArray_tag**, int,
mxArray_tag**) + 316 bytes
[8] libmwm_dispatcher.dylib:Mfh_file::dispatch_fh(int, mxArray_tag**,
int, mxArray_tag**) + 400 bytes
[9] libmwm_interpreter.dylib:inDispatchFromStack + 1628 bytes
[10] libmwm_interpreter.dylib:inCallFcnFromReference + 320 bytes
[11] libmwm_interpreter.dylib:inInterp(inDebugCheck, int, int,
opcodes, inPcodeNest_tag volatile*) + 4868 bytes
[12] libmwm_interpreter.dylib:inInterPcodeSJ(inDebugCheck, int, int,
opcodes, inPcodeNest_tag*) + 224 bytes
[13] libmwm_interpreter.dylib:inExecuteMFunctionOrScript(Mfh_mp*,
bool) + 852 bytes
[14] libmwm_interpreter.dylib:inExecCompScript + 480 bytes
[15] libmwm_dispatcher.dylib:Mfh_file::dispatch_fh(int,
mxArray_tag**, int, mxArray_tag**) + 400 bytes
[16] libmwm_interpreter.dylib:inDispatchFromStack + 1628 bytes
[17] libmwm_interpreter.dylib:inDispatchCall(char const*, int, int,
int, int*, int*) + 188 bytes
[18] libmwm_interpreter.dylib:inInterp(inDebugCheck, int, int,
opcodes, inPcodeNest_tag volatile*) + 3248 bytes
[19] libmwm_interpreter.dylib:inInterPcodeSJ(inDebugCheck, int, int,
opcodes, inPcodeNest_tag*) + 224 bytes
[20] libmwm_interpreter.dylib:in_local_call_eval_function(int*,
_pcodeheader*, int*, mxArray_tag**, inDebugCheck) + 176 bytes
[21]
libmwm_interpreter.dylib:inEvalStringWithIsVarFcn(_memory_context*,
char const*, unsigned long, EvalType, int, mxArray_tag**, inDebugCheck,
_pcodeheader*, int*, bool (*)(void*, char const*), void*) + 2896 bytes
[22] libmwm_interpreter.dylib:inEvalString + 56 bytes
[23] libmwm_interpreter.dylib:inEvalCmdWithLocalReturnandtype(char
const*, int*, inDebugCheck) + 116 bytes
[24] libmwbridge.dylib:mnParser + 520 bytes
[25] libmwmcr.dylib:mcrInstance::mnParser() + 104 bytes
[26] MATLAB:mcrMain(int, char**) + 400 bytes
[27] MATLAB:run_main(void*) + 24 bytes
[28] libSystem.B.dylib:0x900246e8
Error in ==> DrawSomeTextOSX at 28
Screen('TextFont',w, 'Courier');
It also fails using Matlab 6.5.1:
Configuration:
MATLAB Version: 6.5.1.200223 (R13) Service Pack 1
Operating System: Darwin 7.5.0 Darwin Kernel Version 7.5.0: Thu Aug
5 19:26:16 PDT 2004; root:xnu/xnu-517.7.21.obj~3/RELEASE_PPC Power
Macintosh
Window System: The XFree86 Project, Inc (40300000), display :0.0
Current Visual: 0x22 (class 4, depth 24)
Virtual Machine: Java 1.3.1 with "Apple Computer, Inc." Java
HotSpot(TM) Client VM
(mixed mode)
Segmentation violation occurred within signal handler.
Unable to complete stack trace (stack was probably corrupted)