Backward-compatibility issue OS 0.27 with OpenGL backend
In opensesame 0.27 the self.experiment.resolution property has changed from a tuple to a function. If an experiment is run which has been built using the OpenGL backend in a version prior to 0.27, OS crashes with the message
File "...OSDIR....\openexp_canvas\opengl.py", line 116, in clear
surface = pygame.Surface(self.experiment.resolution)
ValueError: size needs to be (int width, int height)
The problem is solved if you change
surface = pygame.Surface(self.experiment.resolution)
on line 116 in openexp/_canvas/opengl.py to
surface = pygame.Surface(self.experiment.resolution() )


Comments
Thanks! → https://github.com/smathot/OpenSesame/commit/5e8c4b3b0cff64c0c5556cc2cce159c23ee59fee
Check out SigmundAI.eu for our OpenSesame AI assistant!