psychopy.org | Reference | Downloads | Github

WindowsError in TextStim: access violation reading 0x00000010

Hi there,

I am trying to run an attentional blink paradigm. However, after around 190 to 200 trials I receive this error message :
Traceback (most recent call last):
File “C:\Andre\Andre Paris\LaPsyDé\projects\SNARC in AB Johana Brout\attentional_blink_v3.py”, line 118, in
letter_text.draw()
File “C:\Program Files (x86)\PsychoPy3_PY2\lib\site-packages\psychopy\visual\text.py”, line 800, in draw
self._pygletTextObj.draw()
File “C:\Program Files (x86)\PsychoPy3_PY2\lib\site-packages\pyglet\font\text.py”, line 557, in draw
self.layout.draw()
File “C:\Program Files (x86)\PsychoPy3_PY2\lib\site-packages\pyglet\text\layout.py”, line 897, in draw
self.batch.draw()
File "C:\Program Files (x86)\PsychoPy3_PY2\lib\site-packages\pyglet\graphics_init
.py", line 560, in draw
func()
File "C:\Program Files (x86)\PsychoPy3_PY2\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_PY2\lib\site-packages\pyglet\graphics\vertexdomain.py”, line 316, in draw
glDrawArrays(mode, starts[0], sizes[0])
WindowsError: exception: access violation reading 0x00000010

It traces back to this code snippet which presents my list of letters:

letter_stream = random.sample(available_letters, stream_length) #available_letters is just a list of letters

for letter, color in zip(letter_stream, colors):
#letter_text.setText(letter) #originally I used this deprecated way of updating my TextStim
#letter_text.setColor(color)
letter_text.text= letter #now I use this one - does not change anything.
letter_text.color= color
letter_text.draw()
win.flip()
core.wait(letter_duration) #=0.04
win.flip()
core.wait(interstimulus_duration) # 0.01

What could go wrong here? I am running a windows10 Pro with 32GB RAM and a AMD Radeon T R7 450. Psychopy v3.0.0b10 for python 2.7

Any help is greatly appreciated.
André

problem solved. driver update did the magic.

-A