PsychoPy version: first tried 1.90.2, but the same for 3.0.0b11, Standard Standalone
What did you try to make it work?:
tried multiple runs, reworked whole experiment (3x), tried to isolate the issue.
What specifically went wrong when you tried that?:
I got this error:
Traceback (most recent call last):
File “C:\Users\Martin\PsychoPy\FingerTTv3\FingerTTv3_lastrun.py”, line 356, in
File “C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\visual\window.py”, line 684, in flip
File “C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\visual\text.py”, line 800, in draw
File “C:\Program Files (x86)\PsychoPy3\lib\site-packages\pyglet\font\text.py”, line 557, in draw
File “C:\Program Files (x86)\PsychoPy3\lib\site-packages\pyglet\text\layout.py”, line 897, in draw
File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\pyglet\graphics_init.py", line 560, in draw
File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\pyglet\graphics_init.py", line 492, in
(lambda d, m: lambda: d.draw(m))(domain, mode))
File “C:\Program Files (x86)\PsychoPy3\lib\site-packages\pyglet\graphics\vertexdomain.py”, line 316, in draw
glDrawArrays(mode, starts, sizes)
OSError: exception: access violation reading 0x00000010
It seems that the error tend to occur after multiple trials (~100-150 trials)
Description of the expeirment
It has two routines and two loops
Routine: Trial - eight text items (digits) are presented, aligned horizontally at precise location. Also, there is one polygon (frame, square shape). The location of the square changes each keypress so it is under next text item (digit), sequentially from right to left and again.
The Position [x,y] of the moving frame set during every repeat from a xlsx file (column with name “Posit”), each trial, the position is updated:
The position in the xlsx file is like this, i.e., using normalized distances (-1,1):
The key_press is just to record the pressed key and decide whether it is correct.
The last item is a picture, which is present there. Size 709x353pix and 47.7kB.
The second routine FB is just a feedback with 0.1s duration. The picture stays the same (to avoid blinking). There is also this moving frame (which just changes color to red). And a bit of code, which is just to omit this red warning when the trial is correct. If not correct, then a variable Error increases by 1
continueRoutine = False
Error = Error+1
The trials_Keypress loop makes the frame to jump to the positions from xlsx. The second lool trials is just for blocking.
Please, any idea what is wrong? I got such error also in other experiments, sometimes it was enough to rework it or rebuild it again. Thank you!!!