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
