<html><head></head><body><div>thanks sergey, I'll see if I can dig deeper and find out what exactly happens.</div><div>On Tue, 2016-11-01 at 11:48 +0100, Sergey Sharybin wrote:</div><blockquote type="cite"><div dir="ltr">Hi,<div><br></div><div>Multiple handlers should not cause problems, they are executed sequentially. Doing stuff from drivers in new dependency graph might still have some threading issues.</div><div><br></div><div>in any case, hard to guess something. Just minimize the case and make a report i'd say.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 31, 2016 at 7:17 PM, Bassam Kurdali <span dir="ltr"><<a href="mailto:bassam@urchn.org" target="_blank">bassam@urchn.org</a>></span> wrote:<br><blockquote type="cite"><div style="word-wrap:break-word"><span class=""><div>can this happen from having multiple update handlers/ property updaters etc. in your scene? or is that guaranteed to execute in a sane way?</div><div>If the former I can expect to see these errors just from installing multiple addons, rather than a bug in a single addon, which feels wrong.</div><div><br></div><div>On Mon, 2016-10-31 at 17:10 +0100, Sergey Sharybin wrote:</div></span><div><div class="h5"><blockquote type="cite"><div dir="ltr">Hi,<div><br></div><div>AFAIR, such issues are usually happening when context is used from multiple threads. This is something you are not supposed to do actually, at least without knowing exactly what you're doing (such access is required for render engines to work but there we have special code which guarantees stability in the python bindings).</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 27, 2016 at 7:57 PM, Bassam Kurdali <span dir="ltr"><<a href="mailto:bassam@urchn.org" target="_blank">bassam@urchn.org</a>></span> wrote:<br><blockquote type="cite">Hi folks, I've been using animation nodes addon recently - overall,<br>
it's great, and quite ambitious, given blender's limitations, and while<br>
it mostly works great, there are a few problems (lockups due to some<br>
race condition I haven't figured out, occasional DAG errors, maybe more<br>
things). I'd like to help debugging this addon since it is so darn<br>
useful.<br>
<br>
One message I've been seeing a lot of recently on the console:<br>
<br>
ERROR: Python context internal state bug. this should not happen!<br>
<br>
So this seems to be connected to a sort of counter - py_call_level,<br>
which is a global variable in bpy_interface.c it gets incremented, or<br>
decremented in two functions - the latter in bpy_context_clear() in the<br>
same file. The error happens when the decrement goes less than zero.<br>
<br>
Any idea why/how this could be happening? I've only the fuzziest idea<br>
of what is going on, but it seems something in the addon, under some<br>
conditions, is managing to deepen the call level without having the<br>
counter increment?<br>
<br>
If anyone has a clue, it would be interesting to figure this one out.<br>
I'm a bit out of my depth currently.<br>
______________________________<wbr>_________________<br>
Bf-python mailing list<br>
<a href="mailto:Bf-python@blender.org" target="_blank">Bf-python@blender.org</a><br>
<a href="https://lists.blender.org/mailman/listinfo/bf-python" rel="noreferrer" target="_blank">https://lists.blender.org/mail<wbr>man/listinfo/bf-python</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_-5749110361731897806gmail_signature" data-smartmail="gmail_signature"><div><span style="color:rgb(102,102,102)">With best regards, Sergey Sharybin</span></div></div>
</div>
<pre>______________________________<wbr>_________________
Bf-python mailing list
<a href="mailto:Bf-python@blender.org" target="_blank">Bf-python@blender.org</a>
<a href="https://lists.blender.org/mailman/listinfo/bf-python" target="_blank">https://lists.blender.org/<wbr>mailman/listinfo/bf-python</a>
</pre></blockquote></div></div></div><br>______________________________<wbr>_________________<br>
Bf-python mailing list<br>
<a href="mailto:Bf-python@blender.org">Bf-python@blender.org</a><br>
<a href="https://lists.blender.org/mailman/listinfo/bf-python" rel="noreferrer" target="_blank">https://lists.blender.org/<wbr>mailman/listinfo/bf-python</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div><span style="color:rgb(102,102,102)">With best regards, Sergey Sharybin</span></div></div>
</div>
<pre>_______________________________________________
Bf-python mailing list
<a href="mailto:Bf-python@blender.org">Bf-python@blender.org</a>
<a href="https://lists.blender.org/mailman/listinfo/bf-python">https://lists.blender.org/mailman/listinfo/bf-python</a>
</pre></blockquote></body></html>