Thanks Paul, I spoke to the devs on Friday and apparently the GIL issue was solved in the latest drop of 2016. It turned out that the client rig in question was internally running Adam Mechley's shoulder solver and that was causing the hang and crashes in Parallel.
One thing that did come up was that running a tool which iterates time can run approx a third of the speed in parallel as it does in DG because apparently with the EM manager each time change will result in parallel evaluation of everything that is time dependent, rather than DG that just sets everything dirty. I did some tests on some of our pipeline and it really did speed things up switching to DG to compute. I was thinking of doing a simple context manager to switch on entry of a time related tool, then revert back to parallel on exit. Anybody else come across this? On 11 April 2016 at 18:27, Paul Molodowitch <elron...@gmail.com> wrote: > We had a similar situation, though it was with a third party python plugin > - it also would crash when changing the timeline, I believe. > > We asked autodesk about it, and were told about a secret environment > variable, MAYA_RELEASE_PYTHON_GIL, that if set to 1, would magically fix > our problem. We asked what the side effects were, and were told there were > none... Not sure why it's not on by default, then, and it still makes me > kind of nervous... but it seems to have worked well for us. Give it a > shot... > > - Paul > > On Sat, Apr 9, 2016 at 2:26 AM Marcus Ottosson <konstrukt...@gmail.com> > wrote: > >> Ok, that is still not a complete example. >> >> - Where is the rig? >> - Where are the import statements? >> >> # Traceback (most recent call last):# File "<maya console>", line 2, in >> <module># NameError: name 'apiAnim' is not defined # >> >> I had to go to Google to find out that MAnimControl is declared in >> maya.OpenMayaAnim, and MTime in maya.OpenMaya. >> >> from maya import OpenMaya, OpenMayaAnim >> for t in range(1,100): >> OpenMayaAnim.MAnimControl.setCurrentTime(OpenMaya.MTime(t)) >> >> Which works fine here, on Windows 8.1, Maya 2016. >> >> If you can’t narrow down your problem to a reproducible case, something I >> can copy/paste into my Maya script editor and see the exact same result as >> what you have, there is very little anyone can do. Include all imports, >> include any nodes you may have created and any particular Maya settings you >> may have set. >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Python Programming for Autodesk Maya" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to python_inside_maya+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAXCBRA43fw_BW0tmudgc15A0trjHyUmBDQcbFfOVWwFg%40mail.gmail.com >> <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAXCBRA43fw_BW0tmudgc15A0trjHyUmBDQcbFfOVWwFg%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to python_inside_maya+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/CAAssL7bXpy4eX40O9AYr5%3DgxtX0OFUfGHnx%3Dk8s2U5Yj%2BTmTfA%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAAssL7bXpy4eX40O9AYr5%3DgxtX0OFUfGHnx%3Dk8s2U5Yj%2BTmTfA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- ------------------------------------- Mark Jackson CEO / Technical Director red9consultancy.com -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAGQH2FG%2BRg6t_zxrAQaCvqovE%3DghMfHCHvjKOdq1QSZGTYYeEg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.