Skip to content

Crash Advanced Calibration: Invalid moviehandle #97

@iandol

Description

@iandol

Using readmeAdvancedCalibration_nonhuman_primate.m

Every so often (after another crash) I get:

Error in function OpenMovie: 	Usage error
Invalid moviehandle provided. No movie associated with this handle !!!

...

Error using Screen
Usage:

[ moviePtr [duration] [fps] [width] [height] [count] [aspectRatio] [hdrStaticMetaData]]=Screen('OpenMovie', windowPtr, moviefile [, async=0] [, preloadSecs=1] [,
specialFlags1=0][, pixelFormat=4][, maxNumberThreads=-1][, movieOptions]);

Error in VideoPlayer/openNextVid (line 197)
                [vpnt,vdur] = Screen('OpenMovie', obj.wpnt, char(obj.videos(id)), 0, 1, 2);
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in VideoPlayer/start (line 75)
                [obj.playingVid, obj.playingVidDur, obj.vidIndex] = obj.openNextVid(false);
                                                                    ^^^^^^^^^^^^^^^^^^^^^^
Error in readmeAdvancedCalibration_nonhuman_primate (line 187)
    vp.start();

Some cleanup state after a crash causes this. I don't quite understand it as OpenMovie doesn't accept moviehandles but filenames? If you run readmeAdvancedCalibration_nonhuman_primate.m again then no crash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions