OpenSesame icon indicating copy to clipboard operation
OpenSesame copied to clipboard

Psychopy backend in multiprocess throws ignored errors

Open MichlF opened this issue 5 years ago • 3 comments

When either using psychopy or psychopy legacy backend, OpenSesame throws every time a canvas is shown an error:

Exception ignored in: <function Window.del at 0x00000282F123DC18> Traceback (most recent call last): File "C:\Users\Michl\Anaconda3\envs\opensesame-py3\lib\site-packages\psychopy\visual\window.py", line 576, in del if self._closed is False: AttributeError: 'Window' object has no attribute '_closed'

Even though the error is ignored and has no apparent influence on how the experiment functions, this spamming makes debugging very difficult (especially when using the print function to continuously monitor variables).

Not sure whether this may even cause a more serious error down the line but would it be possible to suppress these errors (either entirely or after x occurences)?

I am using Open Sesame 3.3.3, Win10 and the Opensesame installation via Anaconda distribution.

MichlF avatar Jul 12 '20 11:07 MichlF

This error seems to come from PsychoPy. I don't see it myself. What version of PsychoPy are you using?

smathot avatar Jul 13 '20 08:07 smathot

Actually, I am not getting this error myself anymore after continuing to code with the version of the experiment. However, in the version attached for this issue I am still getting this error. So you might be getting the error using this experiment.

import psychopy
print(psychopy.__version__)

2020.1.2

MichlF avatar Jul 13 '20 09:07 MichlF

The experiment that you attached to the other issue doesn't contain the stimuli (it contains hardcoded paths to your system), so I cannot run it. Could you attach an experiment here that illustrates the issue? Then I'll see if I can reproduce the problem.

smathot avatar Jul 16 '20 08:07 smathot