String widget segfault - why?

Hi,

I try to create a String widget with Blender Python API. But Blender crashes with a segmentation fault if I write some text into the String widget. It doesn’t crash immediatly, but after some editiing in it. Giving a default text expedite the crash. There are some “curious letters” in it before crash.

Here is how I created it:

String("Text: ", EVENT_NOEVENT, 400, 400, 100, 20, “”, 50, “Tooltip”)

I remember that I needed “Create” for other widgets to initialize numbers. I tried this for the string parameters, but Blender doesn’t accept this parameters. So where is the problem?

Blender 2.36

regards
Andreas

Sorry, my question was too fast :wink:

text_object.val in combination with a global text_object and text_object Create (“text”) did it. But it’s very annoying that Blender crashes everytime if I do such a mistake and all unsaved work is lost. So I need to save each time before I exec my script :frowning: Is there a possible solution? Perhaps autosave?

regards
Andreas