# TextBox2 crashes when Korean input exceed certain length

**URL:** <https://discourse.psychopy.org/t/textbox2-crashes-when-korean-input-exceed-certain-length/22717>\
**Category:** Builder\
**Tags:** textbox\
**Created:** [May 2, 2021, 4:56am UTC](https://discourse.psychopy.org/t/textbox2-crashes-when-korean-input-exceed-certain-length/22717 "2021-05-02T04:56:32Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![cnsla](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/cnsla/32/6292_2.png) [@cnsla](https://discourse.psychopy.org/u/cnsla)\
**Post date:** [May 25, 2021, 1:10pm UTC](https://discourse.psychopy.org/t/textbox2-crashes-when-korean-input-exceed-certain-length/22717/6 "2021-05-25T13:10:39Z")

</div>

Oh, Thanks @TParsons, I should mention that the issue is (and was) MacOS specific, at very first time.  
I am sorry.  
Due to different way dealing with ‘compound characters’ in Windows and MacOS, textbox of PsychoPy has not been function with MacOS+Korean combination for a long time, as mentioned below.

> [@Get the unicode string input in Psychopy?](https://discourse.psychopy.org/t/get-the-unicode-string-input-in-psychopy/8497/4):
>
> OK, so we’re talking international keyboard handling rather than Unicode strings per se. Yes, that can be a bit creaky. Have you tried PsychoPy’s new Keyboard class?[https://www.psychopy.org/api/hardware/keyboard.html](https://www.psychopy.org/api/hardware/keyboard.html) It supersedes the event module and provides much better timing. I’m not sure if it will handle the actual returned characters any differently, but at least it is more likely that we can get changes made to the source code if required.

> [@Keyboard api with different language input](https://discourse.psychopy.org/t/keyboard-api-with-different-language-input/8590/3):
>
> These are quite different situations: when you are typing text into a text field, quite complicated things are being considered. Pushing the A key results in a letter a unless the shift key is held down, when you get a A. If you push either ctrl or command then no letter is typed at all, and a quite different event occurs. PsychoPy, meanwhile, is operating at a very low level, being concerned with things like when a particular key is pushed, and also when it is released. We don’t wait for the …

Now the issue seems resolved, but unexpected crash after several random key inputs.  
(I tried to figure out the rule, but couldn’t find.)

---

_[View the full topic](https://discourse.psychopy.org/t/textbox2-crashes-when-korean-input-exceed-certain-length/22717)._
