psychopy.org | Reference | Downloads | Github

Trying to present videos and get the following error: Fatal Python error: (pygame parachute) Segmentation Fault

OS
PsychoPy version 1.83.01
Standard Standalone? y

What are you trying to achieve?:

I am trying to show 60 videos for 10 seconds each and get ratings on the videos. I am using avbin the present the videos and am using the Builder. Each of the videos is a different length, but at least 10 seconds. Resolution is 1920 x 1080.

What did you try to make it work?:

The task is working, but the timing starts to get jumpy towards the end and the crashes out with the following error: Fatal Python error: (pygame parachute) Segmentation Fault

I have tried changing when the ISI occurs (beginning or end of trial) and have changed when the video is set (either every repeat or every ISI). The same error occurs regardless. I have also tried force quitting each video after a response and not force quitting and let the whole 10 s video play, but same error either way.

Could you try one of the other backends? Both opencv and moviepy seem to have superior performance to avbin. But are they not working on your machine?

I wasn’t able to get it working with those. I just tried to change them again, however, and when I use moviepy, it errors out saying: AttributeError: ‘NoneType’ object has no attribute ‘to_soundarray’

I am not playing sound for any of the videos.

When i try opencv, it shows the video really quickly (not even 1 sec) and then disappears for about 10s then does the same thing with the next video. This is the error:

Running: /Users/stephanieleal/Dropbox/Stephanie/Jagust/Task/study2_lastrun.py #
20.0630 WARNING MovieStim2 dropping video frame index: 2
20.0658 WARNING MovieStim2 dropping video frame index: 3
20.0818 WARNING MovieStim2 dropping video frame index: 4
2016-08-16 14:49:21.894 python[94829:2015829] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/15/y3_b1l5x00z19_984dtq14d80000gr/T/org.psychopy.PsychoPy2.savedState

I downloaded opencv (I wasn’t sure if you needed to add anything before changing to opencv in the Builder) and tried running it again and got the following error:

Running: /Users/stephanieleal/Dropbox/Stephanie/Jagust/Task/study2_lastrun.py #
2016-08-16 14:52:33.706 python[94990:2034918] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/15/y3_b1l5x00z19_984dtq14d80000gr/T/org.psychopy.PsychoPy2.savedState
[000000011dd23718] mp4 demux error: cannot create chunks index
[000000011db2a538] core input error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 1000 ms)
[000000011db2a538] core input error: ES_OUT_RESET_PCR called

This time it played the video, but kept freezing so I had to exit (ESC) out.