Hi all I am having some trouble with Psychtoolbox-3 on MacOS Sierra, MATLAB 2015b. I am just revisiting my code after a 2 year break. I attempted to run my code, and the standard initial PsychToolBox screen appeared, followed by a black screen, followed by the program quitting itself. I received this error:
Invalid MEX-file ‘/Applications/Psychtoolbox/PsychBasic/Eyelink.mexmaci64’: dlopen(/Applications/Psychtoolbox/PsychBasic/Eyelink.mexmaci64, 6): Library not loaded: @executable_path/…/Frameworks/eyelink_core.framework/Versions/A/eyelink_core
Referenced from: /Applications/Psychtoolbox/PsychBasic/Eyelink.mexmaci64
Reason: image not found
I then decided to re-install PsychToolBox, however that seemed to have make matters worse. Upon installing, I received this error message:
INTERNAL PSYCHTOOLBOX ERROR
error: Psycherror_OpenGL
general description: OpenGL call returned an error
specific description: GL_INVALID_FRAMEBUFFER_OPERATION_EXT
module name: Screen
subfunction call: OpenWindow
file name: /Users/kleinerm/projects/OpenGLPsychtoolbox/Psychtoolbox-3/PsychSourceGL/Source/Common/Screen/PsychTextureSupport.c
function name: PsychCreateTexture
line number: 166
Screen() failed to work for some reason:
Now, when I try to run my code I don’t even get to the initial gray psychtoolbox screen. I receive the error:
Error in sca (line 30)
if Screen(‘WindowKind’, win) == 1
Error in Control_1 (line 272)
sca;
I used to be able to run this code fine two years ago. Any assistance is greatly appreciated :).
The original error seemed to suggest you did not have the eyelink SDK from SR installed, or that it could not be found. So installing that should fix it. Note that latest PTB is only supported (kinda) on the latest Mac OS release. So either go back to your previous version of PTB, or upgrade the mac (at the risk of all kinds of other problems coming in…)
Thank you for your help. I reverted to older PTB, which fixed half of the problem.
Now just wonering where I can download the eyelink SDK? Not sure what SR stands for…
Scratch that, I found SR but none of their software downloads seem relevant to me. Not looking for DataViewer, WebLink, or ExperimentBuilder. Is there a different SDK I should be downloading?
You need to get it from the following link at SR Researchs support forum - account required:
The eyelink_core.framework is the minimum needed for Psychtoolbox Eyelink() mex file to work.
Wrt. to the Screen() failure you encountered with PTB 3.0.17, so far all we know is that it is yet another bug in Apples shoddy macOS operating system, problem under investigation in this thread:
One workaround that may or may not work for the time being with PTB 3.0.17 is adding: Screen(‘Preference’,‘ConserveVRAM’, 512); to the top of a script. PTB 3.0.16 is unsupported since a months, so you would be on your own if you encountered further problems with it.