psychopy.org | Reference | Downloads | Github

Urgent issue, movie crashes after some trials, internal error appears

Operating System: Windows-10-10.0.19041-SP0
PsychoPy 2020.2.10 (I have also tried to set the “lastest” version and I get the same error).

What are you trying to achieve?:

I have an experiment whose main task consists of a loop with a waiting phase (cross 1 second), a routine with a movie (using moviepy, set every repeat and the movie files are taken from an excel file - but I also tried to use only one file but set every repeat and I have the same error-), another routine that follows with another video (set every repeat, and the file is decided depending on when the participant pressed in the previous Routine), and finally a text component with feedback. Always after 7 trials, the screen freezes completely in the waiting phase, and I have to force it to close (because it stays infinitely frozen). When I look at the runner, the message of exception ignored in … appears several times. And in the last exception ignored message only in line 499 appeared.

Exception ignored in: <bound method MovieStim3.__del__ of <psychopy.visual.movie3.MovieStim3 object at 0x000001E7220E2FD0>>
Traceback (most recent call last):
  File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\visual\movie3.py", line 499, in __del__
    self._unload()
  File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\visual\movie3.py", line 476, in _unload
    self.clearTextures()
  File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\visual\basevisual.py", line 1020, in clearTextures
    GL.glDeleteTextures(1, self._texID)
OSError: exception: access violation reading 0x0000000000000000
Exception ignored in: <bound method MovieStim3.__del__ of <psychopy.visual.movie3.MovieStim3 object at 0x000001E7243009E8>>
Traceback (most recent call last):
  File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\visual\movie3.py", line 499, in __del__
    self._unload()
##### Experiment ended. #####

image

I got an internal error saying “PsychoPy encountered an unhandled internal error! Please send the report under “Details” to the developers with a description of what you were doing with the software when the error occurred”:

Traceback (most recent call last):
  File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\runner\scriptProcess.py", line 123, in whileRunningFile
    self.onProcessEnded()
  File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\runner\runner.py", line 514, in onProcessEnded
    ScriptProcess.onProcessEnded(self)
  File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\runner\scriptProcess.py", line 140, in onProcessEnded
    self.app.runner.stdOut.write(buff)
AttributeError: 'NoneType' object has no attribute 'stdOut'

I have checked these lines and this is what is there:

line 123 self.interpolate = interpolate

line 140 self.loadMovie(self.filename)

line 514

image

I guess Psychopy is having problems with loading a new video, but I don’t know how to fix it.

It is curious because it is an experiment that connects two computers through the Python socket module, and both computers crash at the same time (and the same error appears).

If anyone has the same problem (movie crashes after a few trials), my solution was to run the experiment using the command line (python name_experiment_lastrun.py), instead of running the experiment from the Psychopy runner/builder.

1 Like