justingardner / mgl

A suite of mex/m files for displaying psychophysics stimuli
http://justingardner.net/mgl
Other
18 stars 22 forks source link

Starting on a clean system #50

Closed justingardner closed 2 years ago

justingardner commented 2 years ago

When starting on a clean system, we get the following error. This seems to be a simple matter that the sandbox directory has not been created and can be resolved by running the executable directly. The proper behavior should be that if the sandbox isn't created, mglOpen creates it - or waits for it to be created by running the app.

Index exceeds the number of array elements. Index must not exceed 0.

Error in mglMetalExecutableName (line 37) mglMetalSandbox = sandboxDirInfo(1).folder;

Error in mglMetalOpen (line 44) [mglMetalApp, mglMetalSandbox] = mglMetalExecutableName;

Error in mglOpen (line 142) mglMetalOpen(whichScreen);

Error in mglTestClearScreen (line 22) mglOpen();

Error in mglRenderingDemo (line 32) feval(testName, true);

37 mglMetalSandbox = sandboxDirInfo(1).folder;

ISSUE SOLVED: Run the mglMetal.app executable inside mgl/metal/binary/

benjamin-heasly commented 2 years ago

Cool, this should be resoled in 82f869f35b839426875ba74a6e360a55641914e7. We just needed to construct the sandbox dir path without assuming it already exists.