__GI_raise(int sig) (/build/glibc-OTsEL5/glibc-2.27/sysdeps/unix/sysv/linux/raise.c:51) __GI_abort() (/build/glibc-OTsEL5/glibc-2.27/stdlib/abort.c:79) BKE_undosys_step_push_init_with_type(UndoStack * ustack, bContext * C, const char * name, const UndoType * ut) (/home/jacques/blender-git/blender/source/blender/blenkernel/intern/undo_system.c:458) ED_text_undo_push_init(bContext * C) (/home/jacques/blender-git/blender/source/blender/editors/space_text/text_undo.c:234) text_paste_exec(bContext * C, wmOperator * op) (/home/jacques/blender-git/blender/source/blender/editors/space_text/text_ops.c:843) wm_operator_invoke(bContext * C, wmOperatorType * ot, wmEvent * event, PointerRNA * properties, ReportList * reports, const _Bool poll_only, _Bool use_last_properties) (/home/jacques/blender-git/blender/source/blender/windowmanager/intern/wm_event_system.c:1452) wm_operator_call_internal(bContext * C, wmOperatorType * ot, PointerRNA * properties, ReportList * reports, const short context, const _Bool poll_only, wmEvent * event) (/home/jacques/blender-git/blender/source/blender/windowmanager/intern/wm_event_system.c:1687) WM_operator_call_py(bContext * C, wmOperatorType * ot, short context, PointerRNA * properties, ReportList * reports, const _Bool is_undo) (/home/jacques/blender-git/blender/source/blender/windowmanager/intern/wm_event_system.c:1787) pyop_call(PyObject * UNUSED_self, PyObject * args) (/home/jacques/blender-git/blender/source/blender/python/intern/bpy_operator.c:267) _PyMethodDef_RawFastCallKeywords (Unknown Source:0) _PyCFunction_FastCallKeywords (Unknown Source:0) _PyEval_EvalFrameDefault (Unknown Source:0) __pyx_f_18_pydevd_frame_eval_22pydevd_frame_evaluator_get_bytecode_while_frame_eval(PyFrameObject * __pyx_v_frame_obj, int __pyx_v_exc) (/io/ptvsd/src/ptvsd/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_evaluator.c:7206) _PyEval_EvalCodeWithName (Unknown Source:0) _PyFunction_FastCallDict (Unknown Source:0) _PyObject_Call_Prepend (Unknown Source:0) [Unknown/Just-In-Time compiled code] (Unknown Source:0) _PyObject_FastCallKeywords (Unknown Source:0) _PyEval_EvalFrameDefault (Unknown Source:0) __pyx_f_18_pydevd_frame_eval_22pydevd_frame_evaluator_get_bytecode_while_frame_eval(PyFrameObject * __pyx_v_frame_obj, int __pyx_v_exc) (/io/ptvsd/src/ptvsd/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_evaluator.c:7206) _PyEval_EvalCodeWithName (Unknown Source:0) PyEval_EvalCodeEx (Unknown Source:0) PyEval_EvalCode (Unknown Source:0) python_script_exec(bContext * C, const char * fn, struct Text * text, struct ReportList * reports, const _Bool do_jump) (/home/jacques/blender-git/blender/source/blender/python/intern/bpy_interface.c:476) BPY_execute_text(bContext * C, struct Text * text, struct ReportList * reports, const _Bool do_jump) (/home/jacques/blender-git/blender/source/blender/python/intern/bpy_interface.c:569) text_run_script(bContext * C, ReportList * reports) (/home/jacques/blender-git/blender/source/blender/editors/space_text/text_ops.c:708) text_run_script_exec(bContext * C, wmOperator * op) (/home/jacques/blender-git/blender/source/blender/editors/space_text/text_ops.c:747) wm_operator_invoke(bContext * C, wmOperatorType * ot, wmEvent * event, PointerRNA * properties, ReportList * reports, const _Bool poll_only, _Bool use_last_properties) (/home/jacques/blender-git/blender/source/blender/windowmanager/intern/wm_event_system.c:1452) wm_operator_call_internal(bContext * C, wmOperatorType * ot, PointerRNA * properties, ReportList * reports, const short context, const _Bool poll_only, wmEvent * event) (/home/jacques/blender-git/blender/source/blender/windowmanager/intern/wm_event_system.c:1653) WM_operator_name_call_ptr(bContext * C, wmOperatorType * ot, short context, PointerRNA * properties) (/home/jacques/blender-git/blender/source/blender/windowmanager/intern/wm_event_system.c:1701) ui_apply_but_funcs_after(bContext * C) (/home/jacques/blender-git/blender/source/blender/editors/interface/interface_handlers.c:806) ui_handler_region_menu(bContext * C, const wmEvent * event, void * UNUSED_userdata) (/home/jacques/blender-git/blender/source/blender/editors/interface/interface_handlers.c:10144) wm_handler_ui_call(bContext * C, wmEventHandler_UI * handler, const wmEvent * event, int always_pass) (/home/jacques/blender-git/blender/source/blender/windowmanager/intern/wm_event_system.c:623) wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) (/home/jacques/blender-git/blender/source/blender/windowmanager/intern/wm_event_system.c:2701) wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) (/home/jacques/blender-git/blender/source/blender/windowmanager/intern/wm_event_system.c:2947) wm_event_do_handlers(bContext * C) (/home/jacques/blender-git/blender/source/blender/windowmanager/intern/wm_event_system.c:3309) WM_main(bContext * C) (/home/jacques/blender-git/blender/source/blender/windowmanager/intern/wm.c:417) main(int argc, const char ** argv) (/home/jacques/blender-git/blender/source/creator/creator.c:500)
Jun 22 2019
Jun 21 2019
Jun 20 2019
Jun 18 2019
Jun 17 2019
current_character and select_end_character are directly pointing to text DNA curc, selc (and these can indeed inherit the "error" of unicode characters having a differrent length that one...)
Guess this could be resolved by making a rna property func that takes these into account using txt_utf8_offset_to_index or BLI_str_utf8_size...
Can check [might take a bit though...]
As far as I can tell the solution recommended by @Joseph Eagar (joeedh) works in this case. I will test it further but I was able to overcome the hard crashes I have been facing when ediitng the lattice in an operator.
Jun 16 2019
Okay, looks like the problem is with the undo system; if you manually exit editmode then push the understack, e.g.:
Jun 15 2019
Jun 14 2019
It seems like this bug not just affecting undo delete but also it crashes Blender after undoing lattice naming and other Lattice objct related operations
Jun 11 2019
Thanks for conforming the bug. Do you know a work around with the API so I can avoid the crash until this is fixed?
Backtrace is a bit misleading [since this is reproducable without animation_nodes enabled], but can confirm, checking...
Deleting from the UI has a valid Lattice->editlatt in lattice_undosys_poll / editlatt_object_from_context whereas doing this from python doesnt...
Jun 10 2019
closing as archived. @nBurn (nBurn) feel free to double check.
Jun 3 2019
Since it is not a bug (but a known limitation). Better close and continue on Devtalk.
Ah! I see...this explains why if I add all my code to the draw() function I see everything as it should be.Because the draw() function is what is getting the view3D OpenGL window context.
The problem is that I have no idea how to implement your suggested solution.
The problem with the code is that it disregards the fact that Blender works with more than one OpenGL context.
There is the OpenGL context offscreen and a context for each window.
The callback added to draw_handler_add runs in the offscreen context, but the rest of the code runs in the context of the window.
VBOs, Programs, Textures are shared between different contexts. But the VAO does not.
So a solution would be to create the VAO inside the callback with a lazy initialization.
Jun 2 2019
May 30 2019
May 29 2019
alright, figured id make this easier to test, here's a .blend with the script already loaded and ready to run, just make sure you change the filepath variable or make sure you have a 'video.mpg' file on the root of your D drive
May 27 2019
May 22 2019
May 17 2019
This is now addressed by the re-designed python API of the related calls. See the depsgraph python examples in the documentation.
May 16 2019
The issue here is the access to the non-evaluated dependency graph. This is now not possible after rBe693918d407. So now you need to do context.evaluated_depsgraph_get() when you need to communicate to it.
May 1 2019
Apr 28 2019
Apr 26 2019
Apr 24 2019
Apr 23 2019
To me this seems non-standard enough to not even have it as a preference, unless it's common in other REPL apps.
Hi, I'm aware of the possibility of adding emacs/bash/readline key shortcuts but would prefer to avoid this for the default keymap.
Apr 22 2019
Apr 21 2019
Apr 16 2019
Sounds reasonable, will check with others though [and commit if agreed upon]
We discussed solutions to this type of problem, @Sergey Sharybin (sergey) will probably be the one to implement it.
Apr 12 2019
Wow :D my first python fix! Thank you a lot, you are awesome!
Apr 11 2019
also note there was very similar T61264
Apr 5 2019
Apr 4 2019
I just tested today build 4th of april, and this file no longer crashes. It seems bug was fixed.
Apr 3 2019
I think that the root cause it probably the same as in T60766
Apr 2 2019
@Jose Conseco (joseconseco), in the future, please use the bug reporting form:
Apr 1 2019
Mar 31 2019
Thread 1 "blender" received signal SIGSEGV, Segmentation fault. 0x00007fffeba89c17 in ?? () from /lib64/libc.so.6 (gdb) bt #0 0x00007fffeba89c17 in ?? () from /lib64/libc.so.6 #1 0x00005555592b8755 in copy_m4_m4 (m1=0x7fffbc6a5a2c, m2=0x40) at /home/zed/prog/blender/source/blender/blenlib/intern/math_matrix.c:88 #2 0x0000555558015a95 in setTransformViewMatrices (t=0x7fffbc6a5708) at /home/zed/prog/blender/source/blender/editors/transform/transform.c:235 #3 0x00005555580762e9 in initTransInfo (C=0x7fffdc058188, t=0x7fffbc6a5708, op=0x7fffbc5dfec8, event=0x0) at /home/zed/prog/blender/source/blender/editors/transform/transform_generics.c:1681 #4 0x000055555801b1ac in initTransform (C=0x7fffdc058188, t=0x7fffbc6a5708, op=0x7fffbc5dfec8, event=0x0, mode=1) at /home/zed/prog/blender/source/blender/editors/transform/transform.c:2340 #5 0x0000555558086e01 in transformops_data (C=0x7fffdc058188, op=0x7fffbc5dfec8, event=0x0) at /home/zed/prog/blender/source/blender/editors/transform/transform_ops.c:370 #6 0x0000555558087092 in transform_exec (C=0x7fffdc058188, op=0x7fffbc5dfec8) at /home/zed/prog/blender/source/blender/editors/transform/transform_ops.c:463 #7 0x0000555557e63e48 in wm_operator_invoke (C=0x7fffdc058188, ot=0x7fffd6dfab88, event=0x0, properties=0x7fffffffcd90, reports=0x7fffb97fabb8, poll_only=false, use_last_properties=true) at /home/zed/prog/blender/source/blender/windowmanager/intern/wm_event_system.c:1353 #8 0x0000555557e6464b in wm_operator_call_internal (C=0x7fffdc058188, ot=0x7fffd6dfab88, properties=0x7fffffffcd90, reports=0x7fffb97fabb8, context=6, poll_only=false, event=0x0) at /home/zed/prog/blender/source/blender/windowmanager/intern/wm_event_system.c:1586 #9 0x0000555557e64899 in WM_operator_call_py (C=0x7fffdc058188, ot=0x7fffd6dfab88, context=6, properties=0x7fffffffcd90, reports=0x7fffb97fabb8, is_undo=false) at /home/zed/prog/blender/source/blender/windowmanager/intern/wm_event_system.c:1664 #10 0x00005555585af25d in pyop_call (UNUSED_self=<module at remote 0x7fffd7068688>, args=Python Exception <class 'gdb.error'> No type named PyUnicodeObject.: )
Mar 27 2019
Since last asking for information it has been 7 or more days, due to the policy of our bug tracker we will have to archive the report until the requested information is given.
(@Michael Demetriou (qwazix) : just reopen if you've checked and issues persist)
Mar 26 2019
This was really fast. Thank you very much, Campbell!
Mar 20 2019
Mar 19 2019
It's nice to hear you say that something is easy, related to node trees haha
@Jacques Lucke (JacquesLucke) I think this is fairly easy to add (just call the function adding sockets to group's nodetree instead in RNA code), trying it currently…
I'm pretty sure that this is not supposed to work.
I actually don't know the API to add sockets to groups, but I guess it has to be done "from the inside".
Confirmed, bpy.context.scene.node_tree.nodes['Group'].node_tree.inputs.new('NodeSocketColor','stuff') is working as expected (the direct access from Group node's inputs should be a shortcut to that one I think, or not allow this operation at all, checking code…)
Right, modal keymap handler isn't guaranteed to get all events - other modal operators and popups can swallow the events before they reach this modal operator.