Textbox leads to experiment crash -mac

OS: macOS Catalina 10.15.7
PsychoPy version: 2020 v2.8

Hi
I’ve been trying to use the textbox component but the experiment crashed when I run it.
Privacy settings are checked to collect input responses. Sharing the complete error message below…Please help me out!

2365.6867 INFO Loaded monitor calibration from [‘2020_01_28 21:12’]
0.3688 WARNING We strongly recommend you activate the PTB sound engine in PsychoPy prefs as the preferred audio engine. Its timing is vastly superior. Your prefs are currently set to use [‘sounddevice’, ‘PTB’, ‘pyo’, ‘pygame’] (in that order).
4.8475 WARNING User requested fullscreen with size [1024 768], but screen is actually [1440, 900]. Using actual size
7.0300 ERROR Unknown colorSpace: named
2020-11-24 03:07:04.124 python[2252:83312] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to (null)
Traceback (most recent call last):
File “/Users/sruzan/Desktop/Exp 1 Interruptions/E1Source_lastrun.py”, line 176, in
autoLog=True,
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/visual/textbox2/textbox2.py”, line 211, in init
self.text = text if text is not None else “”
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/tools/attributetools.py”, line 32, in set
newValue = self.func(obj, value)
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/visual/textbox2/textbox2.py”, line 293, in text
self._layout()
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/visual/textbox2/textbox2.py”, line 469, in _layout
self.glFont.upload()
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/visual/textbox2/fontmanager.py”, line 504, in upload
self.atlas.upload()
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/visual/textbox2/fontmanager.py”, line 301, in upload
gl.GL_ALPHA, gl.GL_UNSIGNED_BYTE, self.data)
ctypes.ArgumentError: argument 9: <class ‘TypeError’>: wrong type

Experiment ended.

I don’t have a solution to offer, but I can say I’m experiencing a very similar error in PsychoPy 2020 2.8 on my mac laptop running Catalina 10.15.3. This is in an experiment which was working fine on my office computer (Windows) a few days ago. Here is the full error message:

Traceback (most recent call last):
  File "/xxx_lastrun.py", line 123, in <module>
    autoLog=True,
  File "/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/visual/textbox2/textbox2.py", line 218, in __init__
    self.win.addEditable(self)
  File "/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/visual/window.py", line 954, in addEditable
    self.currentEditable = editable
  File "/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/visual/window.py", line 939, in currentEditable
    editable.hasFocus = True
  File "/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/visual/textbox2/textbox2.py", line 729, in hasFocus
    self.draw()
  File "/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/visual/textbox2/textbox2.py", line 513, in draw
    gl.glVertexPointer(2, gl.GL_FLOAT, 0, self.verticesPix)
ctypes.ArgumentError: argument 4: <class 'TypeError'>: wrong type
1 Like

I don’t know if you got this problem fixed but, even though I was using windows, I encountered a similar problem with a similar error message when I would add a textbox component to the builder. The fix in my situation was simply to update the version of pyschopy installed on my computer (2020.2.8 to 2020.2.10). I don’t know if this would work on Mac, or in your specific situation, but I suspect it might. Hope this helps.