Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Unexpected error when running experiment

There are many images in my experiment program (e.g., objects and scenes), so I embedded the images in the OpenSesame file pool. My program is 60 MB, but I have already reduced the size of each image. The program had already run successfully with eight participants without any problems. However, in the past two days, it produced errors twice in a row.

I don’t know why this problem occurred, and I also don’t know how to debug it, because the program itself can run and no bugs.....

this is the detailed error message: 

An UnexpectedError is raised when an error occurred that OpenSesame does not recognize. This can happen when there is a bug in a plugin, one of the underlying Python libraries, or in OpenSesame itself. This should not happen! If you experinence this error often, please report it on the support forum.


 File "C:\Users\Research\Desktop\Zehan\opensesame_4.0.24-py311-win64-1\Lib\site-packages\psychopy\tools\attributetools.py", line 27, in __set__

  newValue = self.func(obj, value)

        ^^^^^^^^^^^^^^^^^^^^^

 File "C:\Users\Research\Desktop\Zehan\opensesame_4.0.24-py311-win64-1\Lib\site-packages\psychopy\visual\image.py", line 384, in image

  self.isLumImage = self._createTexture(

           ^^^^^^^^^^^^^^^^^^^^

 File "C:\Users\Research\Desktop\Zehan\opensesame_4.0.24-py311-win64-1\Lib\site-packages\psychopy\visual\basevisual.py", line 1125, in _createTexture

  intensity = numpy.array(im)

        ^^^^^^^^^^^^^^^

 File "C:\Users\Research\Desktop\Zehan\opensesame_4.0.24-py311-win64-1\Lib\site-packages\PIL\Image.py", line 696, in __array_interface__

  new["data"] = self.tobytes()

         ^^^^^^^^^^^^^^

 File "C:\Users\Research\Desktop\Zehan\opensesame_4.0.24-py311-win64-1\Lib\site-packages\PIL\Image.py", line 775, in tobytes

  return b"".join(output)

      ^^^^^^^^^^^^^^^^

MemoryError


Comments

  • edited May 10

    Hi @Zehan

    Without seeing your experiment file and images, I can't be sure, but my first guess is that, since it's a 'memory error', the issue may be that one of your image manipulations is too demanding for your device (i.e., not enough RAM). Does the error occur for a specific combination of parameters/stimuli/conditions or for a specific trial each time? Is anything else running on your computer at the same time?

    You could also try updating OpenSesame to the latest version, switching the backend to legacy or xpyriment, or restart your computer before each session.

    Let me know how it goes!

    Claire

Sign In or Register to comment.