podgorskiy / bimpy

imgui for python
https://podgorskiy.github.io/bimpy/
MIT License
204 stars 32 forks source link

program crashes if you type quickly in multiline box #14

Closed LaineZ closed 4 years ago

LaineZ commented 5 years ago
import bimpy

ctx = bimpy.Context()

ctx.init(1024, 768, "very dummy text editor")

str = bimpy.String()
f = bimpy.Float()

while(not ctx.should_close()):
    with ctx:
        bimpy.begin("dummy edior")
        bimpy.text("type your text:")
        typing = bimpy.input_text_multiline("urls", str, 1000)
        if typing:
            print(str.value)

if you type very quick, program crashes with no error and exit code -1073741819 (0xC0000005)

222464 commented 5 years ago

I just tried your code, it doesn't seem to crash for me. OS: Manjaro Linux