# PTB error in Mac OSX

**URL:** https://psychtoolbox.discourse.group/t/ptb-error-in-mac-osx/503
**Category:** Uncategorized
**Created:** [January 18, 2013, 9:10am UTC](https://psychtoolbox.discourse.group/t/ptb-error-in-mac-osx/503 "2013-01-18T09:10:53Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![zhyuxuan2000](https://avatars.discourse-cdn.com/v4/letter/z/898d66/32.png) [@zhyuxuan2000](https://psychtoolbox.discourse.group/u/zhyuxuan2000)
#### Post date: [January 18, 2013, 9:10am UTC](https://psychtoolbox.discourse.group/t/ptb-error-in-mac-osx/503/1 "2013-01-18T09:10:53Z")

</div>

Hi,   
Whenever a PTB windown is opened (e.g., run DotDemo or DriftDemo), the screen goes black and the demo won't proceed.The cursor can be seen and moved but there is no way to switch back to other programs or matlab command window. Typing 'Close All' or 'Screen('CloseAll') does not work. The only way to regain control is to force a restart using the power key. Auditory demos run well.   
  
My system (64 bit):   
Mac OS X Lion 10.7.5  
2.3 GHz Intel Core i5  
Intel HD Graphics 3000 384 MB  
5 GB memory  
  
Matlab: R2010a  
  
Psychtoolbox:3.0.10; recently donwloaded and updated.No error in the process of downloading or updating.   
  
Does anyone have similar experiences or have an idea of how to fix it?  
  
Thanks in advance.  
  
Yu-Xuan

---

<div class="post-metadata">

### Author: ![matthdub](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@matthdub](https://psychtoolbox.discourse.group/u/matthdub)
#### Post date: [January 18, 2013, 12:48pm UTC](https://psychtoolbox.discourse.group/t/ptb-error-in-mac-osx/503/2 "2013-01-18T12:48:02Z")

</div>

Hi Yu-Xuan,  
  
  

> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), "zhyuxuan2000" wrote:  
> \>  
> \> Hi,   
> \> Whenever a PTB windown is opened (e.g., run DotDemo or DriftDemo), the screen goes black and the demo won't proceed.The cursor can be seen and moved but there is no way to switch back to other programs or matlab command window. Typing 'Close All' or 'Screen('CloseAll') does not work. The only way to regain control is to force a restart using the power key. Auditory demos run well.   
> \>   
> \> My system (64 bit):   
> \> Mac OS X Lion 10.7.5  
> \> 2.3 GHz Intel Core i5  
> \> Intel HD Graphics 3000 384 MB  
> \> 5 GB memory  
> \>   
> \> Matlab: R2010a  
> \>   
> \> Psychtoolbox:3.0.10; recently donwloaded and updated.No error in the process of downloading or updating.   
> \>   
> \> Does anyone have similar experiences or have an idea of how to fix it?  
>    
>    
> I don't experience this problem, using the same Matlab (R2010a 64 bit) and most recent psychtoolbox version, on Mac OS 10.8.2 (MacBook Pro 2.8Ghz Intel Core 2 Duo, 4 G RAM, NVIDIA GeForce 9400M 256 Mo), irrespective of the loading of the custom PsychtoolboxKernelDriver. I also tested it using octave (3.6.2, obtained via Homebrew), and PsychtoolboxKernelDriver. No problem either.   
>    
> Sorry to not help more  
> Best,   
>    
> Matthieu

---

<div class="post-metadata">

### Author: ![elladawu](https://avatars.discourse-cdn.com/v4/letter/e/71c47a/32.png) [@elladawu](https://psychtoolbox.discourse.group/u/elladawu)
#### Post date: [January 18, 2013, 3:05pm UTC](https://psychtoolbox.discourse.group/t/ptb-error-in-mac-osx/503/3 "2013-01-18T15:05:48Z")

</div>

does the Psychtoolbox splash screen appear before the screen goes black, or does it go straight to black?  
  
also, is your machine a Mac Mini or a MacBook Pro?  
  
another handy shortcut is Shift+Option+Command+Escape. if you hold that combination down for a few seconds, it quits the active/frontmost application. this sometimes works when you can't even get to the Force Quit Applications dialog using the Option+Command+Escape combo...  
  
however generally it is more useful to get back to the MATLAB command window so you can see any error output or do debugging.  
  
there are some more tips here:  
  
[http://psychtoolbox.org/FaqHowDoIExitScreen](http://psychtoolbox.org/FaqHowDoIExitScreen)  
  
  
  
  

> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), Dagmar Fraser wrote:  
> \>  
> \>   
> \> Try ALT + CMD + ESC - should enable you to select and force quit any application.  
> \>   
> \>   
> \> On 18 Jan 2013, at 12:48, Matthieu Dubois wrote:  
> \>   
> \>   
> \>   
> \> Hi Yu-Xuan,  
> \>   
> \> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com) , "zhyuxuan2000" wrote:  
> \> \>  
> \> \> Hi,  
> \> \> Whenever a PTB windown is opened (e.g., run DotDemo or DriftDemo), the screen goes black and the demo won't proceed.The cursor can be seen and moved but there is no way to switch back to other programs or matlab command window. Typing 'Close All' or 'Screen('CloseAll') does not work. The only way to regain control is to force a restart using the power key. Auditory demos run well.  
> \> \>  
> \> \> My system (64 bit):  
> \> \> Mac OS X Lion 10.7.5  
> \> \> 2.3 GHz Intel Core i5  
> \> \> Intel HD Graphics 3000 384 MB  
> \> \> 5 GB memory  
> \> \>  
> \> \> Matlab: R2010a  
> \> \>  
> \> \> Psychtoolbox:3.0.10; recently donwloaded and updated.No error in the process of downloading or updating.  
> \> \>  
> \> \> Does anyone have similar experiences or have an idea of how to fix it?  
> \>   
> \> I don't experience this problem, using the same Matlab (R2010a 64 bit) and most recent psychtoolbox version, on Mac OS 10.8.2 (MacBook Pro 2.8Ghz Intel Core 2 Duo, 4 G RAM, NVIDIA GeForce 9400M 256 Mo), irrespective of the loading of the custom PsychtoolboxKernelDriver. I also tested it using octave (3.6.2, obtained via Homebrew), and PsychtoolboxKernelDriver. No problem either.  
> \>   
> \> Sorry to not help more  
> \> Best,  
> \>   
> \> Matthieu  
> \>

---

<div class="post-metadata">

### Author: ![zhyuxuan2000](https://avatars.discourse-cdn.com/v4/letter/z/898d66/32.png) [@zhyuxuan2000](https://psychtoolbox.discourse.group/u/zhyuxuan2000)
#### Post date: [January 20, 2013, 7:11am UTC](https://psychtoolbox.discourse.group/t/ptb-error-in-mac-osx/503/4 "2013-01-20T07:11:28Z")

</div>

Thank elladawu and Dagmar. The shortcut keys work. Now I can quit matlab from the keyboard. However, the problem remains.  
  
My computer is a Macbook pro.  
The window goes black whenever the function Screen ('OpenWindow') is called. But some other Screen functions that can be called without an open window are fine, such as Screen('Screens');  
  
AssertOpenGL and IntializePsychSound go well. There is no Psychtoolbox splash screen before it goes black.   
  
Any clues/ideas as how to go ahead?  
  
Yuxuan  
  
  
  
  
  

> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), "elladawu" wrote:  
> \>  
> \> does the Psychtoolbox splash screen appear before the screen goes black, or does it go straight to black?  
> \>   
> \> also, is your machine a Mac Mini or a MacBook Pro?  
> \>   
> \> another handy shortcut is Shift+Option+Command+Escape. if you hold that combination down for a few seconds, it quits the active/frontmost application. this sometimes works when you can't even get to the Force Quit Applications dialog using the Option+Command+Escape combo...  
> \>   
> \> however generally it is more useful to get back to the MATLAB command window so you can see any error output or do debugging.  
> \>   
> \> there are some more tips here:  
> \>   
> \> [http://psychtoolbox.org/FaqHowDoIExitScreen](http://psychtoolbox.org/FaqHowDoIExitScreen)  
> \>   
> \>   
> \>   
> \>   
> \> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), Dagmar Fraser wrote:  
> \> \>  
> \> \>   
> \> \> Try ALT + CMD + ESC - should enable you to select and force quit any application.  
> \> \>   
> \> \>   
> \> \> On 18 Jan 2013, at 12:48, Matthieu Dubois wrote:  
> \> \>   
> \> \>   
> \> \>   
> \> \> Hi Yu-Xuan,  
> \> \>   
> \> \> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com) , "zhyuxuan2000" wrote:  
> \> \> \>  
> \> \> \> Hi,  
> \> \> \> Whenever a PTB windown is opened (e.g., run DotDemo or DriftDemo), the screen goes black and the demo won't proceed.The cursor can be seen and moved but there is no way to switch back to other programs or matlab command window. Typing 'Close All' or 'Screen('CloseAll') does not work. The only way to regain control is to force a restart using the power key. Auditory demos run well.  
> \> \> \>  
> \> \> \> My system (64 bit):  
> \> \> \> Mac OS X Lion 10.7.5  
> \> \> \> 2.3 GHz Intel Core i5  
> \> \> \> Intel HD Graphics 3000 384 MB  
> \> \> \> 5 GB memory  
> \> \> \>  
> \> \> \> Matlab: R2010a  
> \> \> \>  
> \> \> \> Psychtoolbox:3.0.10; recently donwloaded and updated.No error in the process of downloading or updating.  
> \> \> \>  
> \> \> \> Does anyone have similar experiences or have an idea of how to fix it?  
> \> \>   
> \> \> I don't experience this problem, using the same Matlab (R2010a 64 bit) and most recent psychtoolbox version, on Mac OS 10.8.2 (MacBook Pro 2.8Ghz Intel Core 2 Duo, 4 G RAM, NVIDIA GeForce 9400M 256 Mo), irrespective of the loading of the custom PsychtoolboxKernelDriver. I also tested it using octave (3.6.2, obtained via Homebrew), and PsychtoolboxKernelDriver. No problem either.  
> \> \>   
> \> \> Sorry to not help more  
> \> \> Best,  
> \> \>   
> \> \> Matthieu  
> \> \>  
> \>

---

<div class="post-metadata">

### Author: ![dcnieho](https://avatars.discourse-cdn.com/v4/letter/d/779978/32.png) [@dcnieho](https://psychtoolbox.discourse.group/u/dcnieho)
#### Post date: [January 20, 2013, 8:58am UTC](https://psychtoolbox.discourse.group/t/ptb-error-in-mac-osx/503/5 "2013-01-20T08:58:11Z")

</div>

Is there no output on the matlab command window? Run it with verbosity at 10 or something high like that and see what output you get. It probably gets stuck somewhere somehow. Even if no errors occur, the output will be helpful to see where things stop

 

Best,

Dee  
  

> 

On Sun, Jan 20, 2013 at 3:11 PM, zhyuxuan2000 \<[zhyuxuan2000@...](mailto:zhyuxuan2000@...)\> wrote:  

> Thank elladawu and Dagmar. The shortcut keys work. Now I can quit matlab from the keyboard. However, the problem remains.  
>   
> My computer is a Macbook pro.  
> The window goes black whenever the function Screen ('OpenWindow') is called. But some other Screen functions that can be called without an open window are fine, such as Screen('Screens');  
>   
> AssertOpenGL and IntializePsychSound go well. There is no Psychtoolbox splash screen before it goes black.   
>   
> Any clues/ideas as how to go ahead?  
>   
> Yuxuan
> 
>   
>   
> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox%40yahoogroups.com), "elladawu" wrote:  
> \>  
> \> does the Psychtoolbox splash screen appear before the screen goes black, or does it go straight to black?  
> \>   
> \> also, is your machine a Mac Mini or a MacBook Pro?  
> \>   
> \> another handy shortcut is Shift+Option+Command+Escape. if you hold that combination down for a few seconds, it quits the active/frontmost application. this sometimes works when you can't even get to the Force Quit Applications dialog using the Option+Command+Escape combo...  
> \>   
> \> however generally it is more useful to get back to the MATLAB command window so you can see any error output or do debugging.  
> \>   
> \> there are some more tips here:  
> \>   
> \> [http://psychtoolbox.org/FaqHowDoIExitScreen](http://psychtoolbox.org/FaqHowDoIExitScreen)  
> \>   
> \>   
> \>   
> \>   
> \> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox%40yahoogroups.com), Dagmar Fraser wrote:  
> \> \>  
> \> \>   
> \> \> Try ALT + CMD + ESC - should enable you to select and force quit any application.  
> \> \>   
> \> \>   
> \> \> On 18 Jan 2013, at 12:48, Matthieu Dubois wrote:  
> \> \>   
> \> \>   
> \> \>   
> \> \> Hi Yu-Xuan,  
> \> \>   
> \> \> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox%40yahoogroups.com) , "zhyuxuan2000" wrote:  
> \> \> \>  
> \> \> \> Hi,  
> \> \> \> Whenever a PTB windown is opened (e.g., run DotDemo or DriftDemo), the screen goes black and the demo won't proceed.The cursor can be seen and moved but there is no way to switch back to other programs or matlab command window. Typing 'Close All' or 'Screen('CloseAll') does not work. The only way to regain control is to force a restart using the power key. Auditory demos run well.  
> \> \> \>  
> \> \> \> My system (64 bit):  
> \> \> \> Mac OS X Lion 10.7.5  
> \> \> \> 2.3 GHz Intel Core i5  
> \> \> \> Intel HD Graphics 3000 384 MB  
> \> \> \> 5 GB memory  
> \> \> \>  
> \> \> \> Matlab: R2010a  
> \> \> \>  
> \> \> \> Psychtoolbox:3.0.10; recently donwloaded and updated.No error in the process of downloading or updating.  
> \> \> \>  
> \> \> \> Does anyone have similar experiences or have an idea of how to fix it?  
> \> \>   
> \> \> I don't experience this problem, using the same Matlab (R2010a 64 bit) and most recent psychtoolbox version, on Mac OS 10.8.2 (MacBook Pro 2.8Ghz Intel Core 2 Duo, 4 G RAM, NVIDIA GeForce 9400M 256 Mo), irrespective of the loading of the custom PsychtoolboxKernelDriver. I also tested it using octave (3.6.2, obtained via Homebrew), and PsychtoolboxKernelDriver. No problem either.  
> \> \>   
> \> \> Sorry to not help more  
> \> \> Best,  
> \> \>   
> \> \> Matthieu  
> \> \>  
> \>

---

<div class="post-metadata">

### Author: ![zhyuxuan2000](https://avatars.discourse-cdn.com/v4/letter/z/898d66/32.png) [@zhyuxuan2000](https://psychtoolbox.discourse.group/u/zhyuxuan2000)
#### Post date: [January 20, 2013, 9:57am UTC](https://psychtoolbox.discourse.group/t/ptb-error-in-mac-osx/503/6 "2013-01-20T09:57:59Z")

</div>

I run the following code:  
  
diary tryRecord.txt  
AssertOpenGL;   
old\_Verbosity=Screen('Preference', 'Verbosity', 10);  
old\_VisualDebuglevel=Screen('Preference', 'VisualDebuglevel', 1);   
w=Screen('OpenWindow',0);  
diary off  
  
And get the following record from the diary   
  
  
old\_Verbosity =  
  
 10  
  
PTB-DEBUG: PsychGetScreenDepths(): mode 0 : w x h = 1280 x 800, fps = 0, depths = 32  
PTB-DEBUG: PsychGetScreenDepths(): mode 1 : w x h = 1152 x 720, fps = 0, depths = 32  
PTB-DEBUG: PsychGetScreenDepths(): mode 2 : w x h = 1024 x 768, fps = 0, depths = 32  
PTB-DEBUG: PsychGetScreenDepths(): mode 3 : w x h = 1024 x 768, fps = 0, depths = 32  
PTB-DEBUG: PsychGetScreenDepths(): mode 4 : w x h = 1024 x 640, fps = 0, depths = 32  
PTB-DEBUG: PsychGetScreenDepths(): mode 5 : w x h = 800 x 600, fps = 0, depths = 32  
PTB-DEBUG: PsychGetScreenDepths(): mode 6 : w x h = 800 x 600, fps = 0, depths = 32  
PTB-DEBUG: PsychGetScreenDepths(): mode 7 : w x h = 800 x 500, fps = 0, depths = 32  
PTB-DEBUG: PsychGetScreenDepths(): mode 8 : w x h = 640 x 480, fps = 0, depths = 32  
PTB-DEBUG: PsychGetScreenDepths(): mode 9 : w x h = 640 x 480, fps = 0, depths = 32  
PTB-DEBUG: PsychGetScreenDepths(): mode 10 : w x h = 720 x 480, fps = 0, depths = 32  
PTB-DEBUG: PsychGetScreenDepths(): mode 11 : w x h = 720 x 480, fps = 0, depths = 32  
PTB-DEBUG: In PsychCaptureScreen(): After display capture for screen 0 (Old CGDisplayId 0x42730c0). Reenumerating all displays...  
PTB-DEBUG: In PsychCaptureScreen(): After display capture for screen 0 (New CGDisplayId 0x42730c0). Reenumeration done.  
PTB-WARNING: In font initialization: Failed to convert fontFMName CF string to char string. Defective font?!? Skipped this entry...  
PTB-WARNING: In font initialization: Failed to retrieve font family name for font... Defective font?!? Skipped this entry...  
PTB-WARNING: In font initialization: Failed to retrieve font family name for font... Defective font?!? Skipped this entry...  
PTB-WARNING: In font initialization: Failed to retrieve font family name for font... Defective font?!? Skipped this entry...  
PTB-WARNING: In font initialization: Failed to retrieve font family name for font... Defective font?!? Skipped this entry...  
  
------------------------------------------------------------------------  
 Segmentation violation detected at Sun Jan 20 17:51:22 2013  
------------------------------------------------------------------------  
  
Configuration:  
 MATLAB Version: 7.10.0.499 (R2010a)  
 MATLAB License: 161051  
 Operating System: Darwin 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE\_X86\_64 x86\_64  
 Window System: The X.Org Foundation (11006000), display /tmp/launch-c8gnAU/org.x:0  
 Current Visual: 0x22 (class 4, depth 24)  
 Processor ID: x86 Family 6 Model 10 Stepping 7, GenuineIntel  
 Virtual Machine: Java 1.6.0\_37-b06-434-11M3909 with Apple Inc. Java HotSpot(TM) 64-Bit Server VM mixed mode  
 Default Encoding: ISO-8859-1  
  
Fault Count: 1  
  
Register State:  
 rax = 00000000 rbx = 00000600  
 rcx = 00000600 rdx = 000000ff  
 rsi = 295e9610 rdi = 00000000  
 rbp = 11fd11c0 rsp = 11fd1160  
 r8 = 00000804 r9 = 11fd104c  
 r10 = 90040100 r11 = 11fd1060  
 r12 = 295e9610 r13 = 00000000  
 r14 = 295e9610 r15 = 00000000  
 rip = 8fe3d16c flg = 00010246  
 cs = 0000002b fs = 00000000  
 gs = 00000000  
  
Stack Trace:  
 [0] CoreFoundation:CFStringGetCString~ + 44 bytes  
 [1] Screen.mexmaci64:PsychGetFontListHead~ + 465 bytes  
 [2] Screen.mexmaci64:PsychGetFontRecordFromFontFamilyNameAndFontStyle~ + 34 bytes  
 [3] Screen.mexmaci64:PsychInitTextRecordSettings~ + 102 bytes  
 [4] Screen.mexmaci64:PsychCreateWindowRecord~ + 415 bytes  
 [5] Screen.mexmaci64:PsychOpenOnscreenWindow~ + 221 bytes  
 [6] Screen.mexmaci64:SCREENOpenWindow~ + 1386 bytes  
 [7] Screen.mexmaci64:mexFunction~ + 502 bytes  
 [8] libmex.dylib:mexRunMexFile + 90 bytes  
 [9] libmex.dylib:Mfh\_mex::runMexFileWithSignalProtection(int, mxArray\_tag\*\*, int, mxArray\_tag\*\*) + 137 bytes  
 [10] libmex.dylib:Mfh\_mex::dispatch\_file(int, mxArray\_tag\*\*, int, mxArray\_tag\*\*) + 276 bytes  
 [11] libmwm\_dispatcher.dylib:Mfh\_file::dispatch\_fh(int, mxArray\_tag\*\*, int, mxArray\_tag\*\*) + 321 bytes  
 [12] libmwm\_interpreter.dylib:inDispatchFromStack(int, char const\*, int, int) + 1030 bytes  
 [13] libmwm\_interpreter.dylib:inDispatchCall(char const\*, int, long, int, int\*, int\*) + 166 bytes  
  

> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), "Diederick C. Niehorster" wrote:  
> \>  
> \> Is there no output on the matlab command window? Run it with verbosity at  
> \> 10 or something high like that and see what output you get. It probably  
> \> gets stuck somewhere somehow. Even if no errors occur, the output will be  
> \> helpful to see where things stop  
> \>   
> \> Best,  
> \> Dee  
> \>   
> \> On Sun, Jan 20, 2013 at 3:11 PM, zhyuxuan2000 wrote:  
> \>   
> \> \> \*\*  
> \> \>  
> \> \>  
> \> \> Thank elladawu and Dagmar. The shortcut keys work. Now I can quit matlab  
> \> \> from the keyboard. However, the problem remains.  
> \> \>  
> \> \> My computer is a Macbook pro.  
> \> \> The window goes black whenever the function Screen ('OpenWindow') is  
> \> \> called. But some other Screen functions that can be called without an open  
> \> \> window are fine, such as Screen('Screens');  
> \> \>  
> \> \> AssertOpenGL and IntializePsychSound go well. There is no Psychtoolbox  
> \> \> splash screen before it goes black.  
> \> \>  
> \> \> Any clues/ideas as how to go ahead?  
> \> \>  
> \> \> Yuxuan  
> \> \>  
> \> \>  
> \> \> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), "elladawu" wrote:  
> \> \> \>  
> \> \> \> does the Psychtoolbox splash screen appear before the screen goes black,  
> \> \> or does it go straight to black?  
> \> \> \>  
> \> \> \> also, is your machine a Mac Mini or a MacBook Pro?  
> \> \> \>  
> \> \> \> another handy shortcut is Shift+Option+Command+Escape. if you hold that  
> \> \> combination down for a few seconds, it quits the active/frontmost  
> \> \> application. this sometimes works when you can't even get to the Force Quit  
> \> \> Applications dialog using the Option+Command+Escape combo...  
> \> \> \>  
> \> \> \> however generally it is more useful to get back to the MATLAB command  
> \> \> window so you can see any error output or do debugging.  
> \> \> \>  
> \> \> \> there are some more tips here:  
> \> \> \>  
> \> \> \> [http://psychtoolbox.org/FaqHowDoIExitScreen](http://psychtoolbox.org/FaqHowDoIExitScreen)  
> \> \> \>  
> \> \> \>  
> \> \> \>  
> \> \> \>  
> \> \> \> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), Dagmar Fraser wrote:  
> \> \> \> \>  
> \> \> \> \>  
> \> \> \> \> Try ALT + CMD + ESC - should enable you to select and force quit any  
> \> \> application.  
> \> \> \> \>  
> \> \> \> \>  
> \> \> \> \> On 18 Jan 2013, at 12:48, Matthieu Dubois wrote:  
> \> \> \> \>  
> \> \> \> \>  
> \> \> \> \>  
> \> \> \> \> Hi Yu-Xuan,  
> \> \> \> \>  
> \> \> \> \> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com) , "zhyuxuan2000" wrote:  
> \> \> \> \> \>  
> \> \> \> \> \> Hi,  
> \> \> \> \> \> Whenever a PTB windown is opened (e.g., run DotDemo or DriftDemo),  
> \> \> the screen goes black and the demo won't proceed.The cursor can be seen and  
> \> \> moved but there is no way to switch back to other programs or matlab  
> \> \> command window. Typing 'Close All' or 'Screen('CloseAll') does not work.  
> \> \> The only way to regain control is to force a restart using the power key.  
> \> \> Auditory demos run well.  
> \> \> \> \> \>  
> \> \> \> \> \> My system (64 bit):  
> \> \> \> \> \> Mac OS X Lion 10.7.5  
> \> \> \> \> \> 2.3 GHz Intel Core i5  
> \> \> \> \> \> Intel HD Graphics 3000 384 MB  
> \> \> \> \> \> 5 GB memory  
> \> \> \> \> \>  
> \> \> \> \> \> Matlab: R2010a  
> \> \> \> \> \>  
> \> \> \> \> \> Psychtoolbox:3.0.10; recently donwloaded and updated.No error in the  
> \> \> process of downloading or updating.  
> \> \> \> \> \>  
> \> \> \> \> \> Does anyone have similar experiences or have an idea of how to fix  
> \> \> it?  
> \> \> \> \>  
> \> \> \> \> I don't experience this problem, using the same Matlab (R2010a 64 bit)  
> \> \> and most recent psychtoolbox version, on Mac OS 10.8.2 (MacBook Pro 2.8Ghz  
> \> \> Intel Core 2 Duo, 4 G RAM, NVIDIA GeForce 9400M 256 Mo), irrespective of  
> \> \> the loading of the custom PsychtoolboxKernelDriver. I also tested it using  
> \> \> octave (3.6.2, obtained via Homebrew), and PsychtoolboxKernelDriver. No  
> \> \> problem either.  
> \> \> \> \>  
> \> \> \> \> Sorry to not help more  
> \> \> \> \> Best,  
> \> \> \> \>  
> \> \> \> \> Matthieu  
> \> \> \> \>  
> \> \> \>  
> \> \>  
> \> \>   
> \> \>  
> \>

---

<div class="post-metadata">

### Author: ![zhyuxuan2000](https://avatars.discourse-cdn.com/v4/letter/z/898d66/32.png) [@zhyuxuan2000](https://psychtoolbox.discourse.group/u/zhyuxuan2000)
#### Post date: [January 20, 2013, 10:01am UTC](https://psychtoolbox.discourse.group/t/ptb-error-in-mac-osx/503/7 "2013-01-20T10:01:50Z")

</div>

Hi, Matthieu,  
  
I also got no problem when trying my code on a 64 bit Macbook pro retina, Mountain Lion 10.8.X.  
  
I am thinking of upgrading my operation system to 10.8 if finding no other way out. Do you think it sensible?  
  
Yuxuan  
  
  
  

> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), "Matthieu Dubois" wrote:  
> \>  
> \> Hi Yu-Xuan,  
> \>   
> \>   
> \> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), "zhyuxuan2000" wrote:  
> \> \>  
> \> \> Hi,   
> \> \> Whenever a PTB windown is opened (e.g., run DotDemo or DriftDemo), the screen goes black and the demo won't proceed.The cursor can be seen and moved but there is no way to switch back to other programs or matlab command window. Typing 'Close All' or 'Screen('CloseAll') does not work. The only way to regain control is to force a restart using the power key. Auditory demos run well.   
> \> \>   
> \> \> My system (64 bit):   
> \> \> Mac OS X Lion 10.7.5  
> \> \> 2.3 GHz Intel Core i5  
> \> \> Intel HD Graphics 3000 384 MB  
> \> \> 5 GB memory  
> \> \>   
> \> \> Matlab: R2010a  
> \> \>   
> \> \> Psychtoolbox:3.0.10; recently donwloaded and updated.No error in the process of downloading or updating.   
> \> \>   
> \> \> Does anyone have similar experiences or have an idea of how to fix it?  
> \>   
> \>   
> \> I don't experience this problem, using the same Matlab (R2010a 64 bit) and most recent psychtoolbox version, on Mac OS 10.8.2 (MacBook Pro 2.8Ghz Intel Core 2 Duo, 4 G RAM, NVIDIA GeForce 9400M 256 Mo), irrespective of the loading of the custom PsychtoolboxKernelDriver. I also tested it using octave (3.6.2, obtained via Homebrew), and PsychtoolboxKernelDriver. No problem either.   
> \>   
> \> Sorry to not help more  
> \> Best,   
> \>   
> \> Matthieu  
> \>

---

<div class="post-metadata">

### Author: ![elladawu](https://avatars.discourse-cdn.com/v4/letter/e/71c47a/32.png) [@elladawu](https://psychtoolbox.discourse.group/u/elladawu)
#### Post date: [January 20, 2013, 10:05am UTC](https://psychtoolbox.discourse.group/t/ptb-error-in-mac-osx/503/8 "2013-01-20T10:05:53Z")

</div>

hey, it looks like a font problem.  
  
firstly, try resetting the font cache. you can use this free program to do it:  
  
[http://www.jamapi.com/pr/fn/](http://www.jamapi.com/pr/fn/)  
  
  
  

> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), "zhyuxuan2000" wrote:  
> \>  
> \> Hi, Matthieu,  
> \>   
> \> I also got no problem when trying my code on a 64 bit Macbook pro retina, Mountain Lion 10.8.X.  
> \>   
> \> I am thinking of upgrading my operation system to 10.8 if finding no other way out. Do you think it sensible?  
> \>   
> \> Yuxuan  
> \>   
> \>   
> \>   
> \> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), "Matthieu Dubois" wrote:  
> \> \>  
> \> \> Hi Yu-Xuan,  
> \> \>   
> \> \>   
> \> \> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), "zhyuxuan2000" wrote:  
> \> \> \>  
> \> \> \> Hi,   
> \> \> \> Whenever a PTB windown is opened (e.g., run DotDemo or DriftDemo), the screen goes black and the demo won't proceed.The cursor can be seen and moved but there is no way to switch back to other programs or matlab command window. Typing 'Close All' or 'Screen('CloseAll') does not work. The only way to regain control is to force a restart using the power key. Auditory demos run well.   
> \> \> \>   
> \> \> \> My system (64 bit):   
> \> \> \> Mac OS X Lion 10.7.5  
> \> \> \> 2.3 GHz Intel Core i5  
> \> \> \> Intel HD Graphics 3000 384 MB  
> \> \> \> 5 GB memory  
> \> \> \>   
> \> \> \> Matlab: R2010a  
> \> \> \>   
> \> \> \> Psychtoolbox:3.0.10; recently donwloaded and updated.No error in the process of downloading or updating.   
> \> \> \>   
> \> \> \> Does anyone have similar experiences or have an idea of how to fix it?  
> \> \>   
> \> \>   
> \> \> I don't experience this problem, using the same Matlab (R2010a 64 bit) and most recent psychtoolbox version, on Mac OS 10.8.2 (MacBook Pro 2.8Ghz Intel Core 2 Duo, 4 G RAM, NVIDIA GeForce 9400M 256 Mo), irrespective of the loading of the custom PsychtoolboxKernelDriver. I also tested it using octave (3.6.2, obtained via Homebrew), and PsychtoolboxKernelDriver. No problem either.   
> \> \>   
> \> \> Sorry to not help more  
> \> \> Best,   
> \> \>   
> \> \> Matthieu  
> \> \>  
> \>

---

<div class="post-metadata">

### Author: ![zhyuxuan2000](https://avatars.discourse-cdn.com/v4/letter/z/898d66/32.png) [@zhyuxuan2000](https://psychtoolbox.discourse.group/u/zhyuxuan2000)
#### Post date: [January 21, 2013, 9:37am UTC](https://psychtoolbox.discourse.group/t/ptb-error-in-mac-osx/503/9 "2013-01-21T09:37:16Z")

</div>

Ha! Restoring the font files resolves the problem.Thank you very, very much for saving me many more days of anguish!  
  
  

> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), "elladawu" wrote:  
> \>  
> \>   
> \> hmmm, maybe it's a corrupt font installed in your system.  
> \>   
> \> start up Font Book (it's in your Applications folder), and running the Validate function on all the installed fonts...  
> \>   
> \>   
> \> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), "zhyuxuan2000" wrote:  
> \> \>  
> \> \> The problem persists after running FontNuke, including a deep traversal.  
> \> \>   
> \> \>   
> \> \> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), "elladawu" wrote:  
> \> \> \>  
> \> \> \> hey, it looks like a font problem.  
> \> \> \>   
> \> \> \> firstly, try resetting the font cache. you can use this free program to do it:  
> \> \> \>   
> \> \> \> [http://www.jamapi.com/pr/fn/](http://www.jamapi.com/pr/fn/)  
> \> \> \>   
> \> \> \>   
> \> \> \>   
> \> \> \> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), "zhyuxuan2000" wrote:  
> \> \> \> \>  
> \> \> \> \> Hi, Matthieu,  
> \> \> \> \>   
> \> \> \> \> I also got no problem when trying my code on a 64 bit Macbook pro retina, Mountain Lion 10.8.X.  
> \> \> \> \>   
> \> \> \> \> I am thinking of upgrading my operation system to 10.8 if finding no other way out. Do you think it sensible?  
> \> \> \> \>   
> \> \> \> \> Yuxuan  
> \> \> \> \>   
> \> \> \> \>   
> \> \> \> \>   
> \> \> \> \> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), "Matthieu Dubois" wrote:  
> \> \> \> \> \>  
> \> \> \> \> \> Hi Yu-Xuan,  
> \> \> \> \> \>   
> \> \> \> \> \>   
> \> \> \> \> \> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), "zhyuxuan2000" wrote:  
> \> \> \> \> \> \>  
> \> \> \> \> \> \> Hi,   
> \> \> \> \> \> \> Whenever a PTB windown is opened (e.g., run DotDemo or DriftDemo), the screen goes black and the demo won't proceed.The cursor can be seen and moved but there is no way to switch back to other programs or matlab command window. Typing 'Close All' or 'Screen('CloseAll') does not work. The only way to regain control is to force a restart using the power key. Auditory demos run well.   
> \> \> \> \> \> \>   
> \> \> \> \> \> \> My system (64 bit):   
> \> \> \> \> \> \> Mac OS X Lion 10.7.5  
> \> \> \> \> \> \> 2.3 GHz Intel Core i5  
> \> \> \> \> \> \> Intel HD Graphics 3000 384 MB  
> \> \> \> \> \> \> 5 GB memory  
> \> \> \> \> \> \>   
> \> \> \> \> \> \> Matlab: R2010a  
> \> \> \> \> \> \>   
> \> \> \> \> \> \> Psychtoolbox:3.0.10; recently donwloaded and updated.No error in the process of downloading or updating.   
> \> \> \> \> \> \>   
> \> \> \> \> \> \> Does anyone have similar experiences or have an idea of how to fix it?  
> \> \> \> \> \>   
> \> \> \> \> \>   
> \> \> \> \> \> I don't experience this problem, using the same Matlab (R2010a 64 bit) and most recent psychtoolbox version, on Mac OS 10.8.2 (MacBook Pro 2.8Ghz Intel Core 2 Duo, 4 G RAM, NVIDIA GeForce 9400M 256 Mo), irrespective of the loading of the custom PsychtoolboxKernelDriver. I also tested it using octave (3.6.2, obtained via Homebrew), and PsychtoolboxKernelDriver. No problem either.   
> \> \> \> \> \>   
> \> \> \> \> \> Sorry to not help more  
> \> \> \> \> \> Best,   
> \> \> \> \> \>   
> \> \> \> \> \> Matthieu  
> \> \> \> \> \>  
> \> \> \> \>  
> \> \> \>  
> \> \>  
> \>
