Mac OS 9: Matlab 2.5.1 patch: anyone have it?

Hi all,
I've given up trying to work around the lack of a GetChar in the toolbox for Mac OS X and
have reverted to Matlab & PTB for Mac OS 9. However, the version of Matlab for OS 9
we've got in our lab is only 5.2.0, and 5.2.1 is recommended for use with the latest PTB.

I've scoured the Mathworks website and not found the 5.2.1 patch that is mentioned on
the PTB Mac OS 9 page. I called Mathworks tech support and talked to a technician, and
conversed over email. Here's what he finally said:

"There was a patch released for 5.2.0, but unfortunately we don't have that patch available
anymore for download or on the CD. We discontinued support for that long ago and it is
not possible for us to provide you that patch. I apologize for the inconvenience."

So... would anyone happen to still have the 5.2.1 patch? Please? Since Mathworks either
doesn't have it or is refusing to give it to people, I don't think they'd mind me trying to get
it from another user. Thanks very much,
Jason
Hi,

i can't help you with your Matlab-5 problem, but could you
explain what you're trying to do with GetChar and
that you absolutely can't do with KbName, KbWait and KbCheck?

Maybe if you explain your trial loop with a bit of example code,
someone can give you a hint for a good workaround on PTB-OSX?

best,
-mario

--- In psychtoolbox@yahoogroups.com, "Jason Finley" <uniace@m...>
wrote:
>
>
> Hi all,
> I've given up trying to work around the lack of a GetChar in the
toolbox for Mac OS X
and
> have reverted to Matlab & PTB for Mac OS 9. However, the version
of Matlab for OS 9
> we've got in our lab is only 5.2.0, and 5.2.1 is recommended for
use with the latest PTB.
>
> I've scoured the Mathworks website and not found the 5.2.1 patch
that is mentioned on
> the PTB Mac OS 9 page. I called Mathworks tech support and talked
to a technician, and
> conversed over email. Here's what he finally said:
>
> "There was a patch released for 5.2.0, but unfortunately we don't
have that patch
available
> anymore for download or on the CD. We discontinued support for
that long ago and it
is
> not possible for us to provide you that patch. I apologize for the
inconvenience."
>
> So... would anyone happen to still have the 5.2.1 patch? Please?
Since Mathworks either
> doesn't have it or is refusing to give it to people, I don't think
they'd mind me trying to
get
> it from another user. Thanks very much,
> Jason
Thanks, I'll try that. That could also be why I was having problems
with the text commands using 1.0.42 as well.

There is some error in PsychInitFontList?

keith

On Apr 12, 2005, at 4:54 PM, Gergely Csibra wrote:

>
>
> Something may be wrong with one of your fonts. Try to
> uninstall/deselect the nonstandard fonts in your
> system.
>
> Gergely Csibra
>
> --- Keith Schneider <kas@...> wrote:
>>
>> I just installed the latest version PTB 1.0.5 for
>> OSX, and now I can't
>> get much of anything to run.
>>
>> Even the simple program
>>
>> w=Screen('OpenWindow',0);
>> Screen('Close',w)
>>
>> causes Matlab to crash. Here is a crash report (if
>> that is helpful to
>> anyone).
>>
>> keith
>>
>> Date/Time: 2005-04-12 14:54:26 -0400
>> OS Version: 10.3.8 (Build 7U16)
>> Report Version: 2
>>
>> Command: MATLAB
>> Path: /Applications/MATLAB701/bin/mac/MATLAB
>> Version: ??? (???)
>> PID: 401
>> Thread: 1
>>
>> Exception: EXC_BAD_ACCESS (0x0001)
>> Codes: KERN_PROTECTION_FAILURE (0x0002) at
>> 0x00000000
>>
>> Thread 0:
>> 0 libSystem.B.dylib 0x900074c8
>> mach_msg_trap + 0x8
>> 1 libSystem.B.dylib 0x90007018 mach_msg +
>> 0x38
>> 2 com.apple.CoreFoundation 0x901916e0
>> __CFRunLoopRun + 0x350
>> 3 com.apple.CoreFoundation 0x90195e6c
>> CFRunLoopRunSpecific + 0x148
>> 4 com.apple.HIToolbox 0x927d5f60
>> RunCurrentEventLoopInMode +
>> 0xac
>> 5 com.apple.HIToolbox 0x927dc6c8
>> ReceiveNextEventCommon + 0x17c
>> 6 com.apple.HIToolbox 0x927fe6a0
>> BlockUntilNextEventMatchingListInMode + 0x60
>> 7 com.apple.AppKit 0x92dd2e44
>> _DPSNextEvent + 0x180
>> 8 com.apple.AppKit 0x92de98c8
>> -[NSApplication
>> nextEventMatchingMask:untilDate:inMode:dequeue:] +
>> 0x74
>> 9 com.apple.AppKit 0x92dfdc30
>> -[NSApplication run] + 0x21c
>> 10 libawt.jnilib 0x8108bb2c
>> +[AWTStarter startAWT:] + 0xd0
>> 11 com.apple.Foundation 0x90a1a790
>> __NSFireMainThreadPerform +
>> 0x108
>> 12 com.apple.CoreFoundation 0x901e4618
>> __CFRunLoopPerformPerform +
>> 0x88
>> 13 com.apple.CoreFoundation 0x90193c88
>> __CFRunLoopDoSources0 + 0x1fc
>> 14 com.apple.CoreFoundation 0x90191540
>> __CFRunLoopRun + 0x1b0
>> 15 com.apple.CoreFoundation 0x90195e6c
>> CFRunLoopRunSpecific + 0x148
>> 16 com.apple.CoreFoundation 0x901ff32c
>> CFRunLoopRun + 0x34
>> 17 MATLAB 0x00002568
>> __darwin_gcc3_preregister_frame_info + 0x15c
>> 18 MATLAB 0x00002650 main + 0xd0
>> 19 MATLAB 0x000021bc start +
>> 0x1bc
>> 20 MATLAB 0x00002030 start +
>> 0x30
>>
>> Thread 1 Crashed:
>> 0 com.apple.CoreFoundation 0x901abba8
>> CFStringGetCString + 0x54
>> 1 Screen.mexmac 0x0ec2154c
>> PsychInitFontList + 0x244
>> (PsychFontGlue.c:200)
>> 2 Screen.mexmac 0x0ec21200
>> PsychGetFontListHead + 0x48
>> (PsychFontGlue.c:82)
>> 3 Screen.mexmac 0x0ec21c18
>> PsychGetFontRecordFromFontFamilyNameAndFontStyle +
>> 0x40
>> (PsychFontGlue.c:353)
>> 4 Screen.mexmac 0x0ec1cf98
>> PsychInitTextRecordSettings +
>> 0xbc (PsychWindowTextGlue.c:51)
>> 5 Screen.mexmac 0x0ec0dfdc
>> PsychCreateWindowRecord +
>> 0x11c (WindowBank.c:188)
>> 6 Screen.mexmac 0x0ec106c0
>> PsychOpenOnscreenWindow + 0x38
>> (PsychWindowGlue.c:76)
>> 7 Screen.mexmac 0x0ec0ecdc
>> SCREENOpenWindow + 0x35c
>> (SCREENOpenWindow.c:137)
>> 8 Screen.mexmac 0x0ec16f68 mexFunction
>> + 0x754
>> (PsychScriptingGlue.c:301)
>> 9 libmex.dylib 0x011e5a88
>> mexRunMexFile + 0x74
>> 10 libmex.dylib 0x011e4a74
>> mexCreateSimpleFunctionHandle
>> + 0x5bc
>> 11 libmwm_dispatcher.dylib 0x007356ac
>> Mfh_file::dispatch_fh(int,
>> mxArray_tag**, int, mxArray_tag**) + 0x190
>> 12 libmwm_interpreter.dylib 0x01369e20
>> inDispatchFromStack + 0x64c
>> 13 libmwm_interpreter.dylib 0x0132b480
>> inCallFcnFromReference + 0x140
>> 14 libmwm_interpreter.dylib 0x01340074
>> inGetConstref + 0x20c4
>> 15 libmwm_interpreter.dylib 0x013409a0
>> inGetConstref + 0x29f0
>> 16 libmwm_interpreter.dylib 0x01340f28
>> inExecuteMFunctionOrScript(Mfh_mp*, bool) + 0x35c
>> 17 libmwm_interpreter.dylib 0x013776f4
>> inExecCompScript + 0x1e0
>> 18 libmwm_dispatcher.dylib 0x007356ac
>> Mfh_file::dispatch_fh(int,
>> mxArray_tag**, int, mxArray_tag**) + 0x190
>> 19 libmwm_interpreter.dylib 0x01369e20
>> inDispatchFromStack + 0x64c
>> 20 libmwm_interpreter.dylib 0x0133ea70
>> inGetConstref + 0xac0
>> 21 libmwm_interpreter.dylib 0x0133f8fc
>> inGetConstref + 0x194c
>> 22 libmwm_interpreter.dylib 0x013409a0
>> inGetConstref + 0x29f0
>> 23 libmwm_interpreter.dylib 0x0133a118
>> inSetInEval(bool) + 0x3b4
>> 24 libmwm_interpreter.dylib 0x0133c230
>> disableLightweightEval() +
>> 0x1424
>> 25 libmwm_interpreter.dylib 0x0133c48c
>> inEvalString + 0x30
>> 26 libmwm_interpreter.dylib 0x0133c528
>> inReclaimMemoryPools + 0x88
>> 27 libmwbridge.dylib 0x0055cf54 mnParser +
>> 0x208
>> 28 libmwmcr.dylib 0x0046a2a0
>> mcrInstance::mnParser() + 0x68
>> 29 MATLAB 0x00002814
>> mcrMain(int, char**) + 0x190
>> 30 MATLAB 0x000024a8
>> __darwin_gcc3_preregister_frame_info + 0x9c
>> 31 libSystem.B.dylib 0x900246e8
>> _pthread_body + 0x28
>>
>> Thread 2:
>> 0 libSystem.B.dylib 0x900074c8
>> mach_msg_trap + 0x8
>> 1 libSystem.B.dylib 0x90007018 mach_msg +
>> 0x38
>> 2 libjvm.dylib 0x98c621dc
>> JNI_CreateJavaVM_Impl + 0x44ec
>> 3 libjvm.dylib 0x98c62170
>> JNI_CreateJavaVM_Impl + 0x4480
>> 4 libjvm.dylib 0x98d5490c
>> JVM_UnloadLibrary + 0xb0fec
>> 5 libSystem.B.dylib 0x900246e8
>> _pthread_body + 0x28
>>
>> Thread 3:
>> 0 libSystem.B.dylib 0x900074c8
>> mach_msg_trap + 0x8
>> 1 libSystem.B.dylib 0x90007018 mach_msg +
>> 0x38
>> 2 libjvm.dylib 0x98b8a448
>> JVM_GetClassAccessFlags +
>> 0x11e8
>> 3 libjvm.dylib 0x98bbd0a4 __divdi3 +
>> 0x5094
>> 4 libjvm.dylib 0x98bd2ca0
>> JVM_GetMethodIxModifiers +
>> 0x4f0
>> 5 libjvm.dylib 0x98c7a48c
>> JVM_GetInterfaceVersion +
>> 0x17a4c
>> 6 libjvm.dylib 0x98d5490c
>> JVM_UnloadLibrary + 0xb0fec
>> 7 libSystem.B.dylib 0x900246e8
>> _pthread_body + 0x28
>>
>> Thread 4:
>> 0 libSystem.B.dylib 0x900074c8
>> mach_msg_trap + 0x8
>> 1 libSystem.B.dylib 0x90007018 mach_msg +
>> 0x38
>> 2 libjvm.dylib 0x98b8a3c8
>> JVM_GetClassAccessFlags +
>> 0x1168
>> 3 libjvm.dylib 0x98b84d28
>> _mh_dylib_header
> === message truncated ===
>
> Send instant messages to your online friends
> http://uk.messenger.yahoo.com
>
>
>
>
>
> Post your message to: psychtoolbox@yahoogroups.com
> Please indicate OS9, OSX, or WIN version, and include your full name.
> Denis Pelli, David Brainard, and Allen Ingling.
> http://psychtoolbox.org
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
I have isolated the problem with one "font" that was installed in my
/Library/Fonts folder. It is the "CommonBullets" Font suitcase. I'm
not sure exactly where this came from, but it may be part of an Adobe
package judging from its icon.

When this CommonBullets file is in my /Library/Fonts folder,
PsychInitFontList crashes. If I put CommonBullets in the trash,
PsychInitFontList works fine.

If anyone wants this file for debugging purposes (to see why
PsychInitFontList chokes on it), I'll be glad to send it.

keith

On Apr 12, 2005, at 8:05 PM, Mario Kleiner wrote:

>
>
>
> Yes and yes.
>
> I checked the source code. There's been no change to the relevant
> routines since multiple
> PTB-Versions, and your commands work perfectly well on our machine.
> Your old bug
> report about 'DrawText' et al. failing, takes the same path of
> execution --> All your font
> problems are probably caused by a crash in PsychInitFontList.
>
> If PsychInitFontList() fails to retrieve infos about some fonts on
> your system - which seems
> to be the case - it doesn't detect this properly (lack of error
> handling in a few rare spots)
> ---> crash!
>
> So PsychInitFontList() needs better error handling and you need to
> check if the fonts on
> your system are properly installed.
>
> best,
> -mario