Page MenuHome

addScriptLink() causes segfault
Closed, ArchivedPublic


Group: current SVN version
Resolution: Fixed
Category: Python

Stack trace:

#0 0x0836a332 in PyType_IsSubtype ()
#1 0x0835e3d4 in PyObject_GetAttr ()
#2 0x0838b636 in eval_frame ()
#3 0x0838d926 in fast_function ()
#4 0x0838d6d6 in call_function ()
#5 0x0838bb5e in eval_frame ()
#6 0x0838c67c in PyEval_EvalCodeEx ()
#7 0x0838efa7 in PyEval_EvalCode ()
#8 0x082f2e5c in RunPython (text=0x8689f14, globaldict=0x40bbdf0c)
at source/blender/python/BPY_interface.c:1204
#9 0x082f1dec in BPY_txt_do_python_Text (text=0x8689f14)
at source/blender/python/BPY_interface.c:513
#10 0x08182565 in run_python_script (st=0x868381c)
at source/blender/src/drawtext.c:963
#11 0x08182a30 in winqreadtextspace (sa=0x8683664, spacedata=0x868381c,
evt=0x40b864ac) at source/blender/src/drawtext.c:1240
#12 0x0813a49f in scrarea_do_winhandle (area=0x8683664, evt=0xbffff690)
at source/blender/src/spacetypes.c:140
#13 0x080d1721 in scrarea_dispatch_events (sa=0x8683664)
at source/blender/src/editscreen.c:551

To recreate:
(1) create an file "" in local directory
(2) load untitled.blend
(3) change variable to i=1
(4) press Alt-P twice

Same thing happens when linking the script to a scene.

If you run script as-is ("i=0"), second execution of script gives TypeError: expected string argument in line 11 (the Text.Load() method). I discovered that using a string variable in place of the literal string name works.



Event Timeline

This task was automatically closed as archived as part of migration, because the project or tracker this task belonged to is no longer active.