| Reference | Downloads | Github

TextBox2 crashes when Korean input exceed certain length

In the latest textbox response, (v2021.1.4) Korean Input works flawlessly.
However, after the length of string input increases, it crashes like below.

"/Applications/", line 956, in draw
    gl.glVertex2f(self.vertices[0, 0], self.vertices[0, 1])
  File "/Applications/", line 1057, in vertices
    chrVerts = textbox.vertices[range(ii * 4, ii * 4 + 4)]
IndexError: index 28 is out of bounds for axis 0 with size 24

OS (e.g. Win10): MacOS 10.15.7
PsychoPy version (e.g. 1.84.x): v2021.1.4
Standard Standalone? (y/n) If not then what?:y
What are you trying to achieve?:
Proper input of Korean string

My gut feeling is that this is because of compound characters - each character is given 4 vertices to define its position, but if multiple characters become one compound character as they’re being inputted I can see that leading to indexing errors… Thanks for bringing this up, I’ll investigate further to see if my hunch is right

Could you give an example of a string you were typing when it crashed? Inputting random characters from the Hangul Jamo unicode block doesn’t replicate this error