Excellent, that solved our crash issue also, or at least in the quick test
I tried, I'll roll that into the pipeline management code now and try it on
a larger scale.

thanks

Mark

On 2 November 2015 at 15:48, Bob Loblaw <[email protected]>
wrote:

> Setting MAYA_RELEASE_PYTHON_GIL to 1 solved the problem for that simple
> test. Will have to see how it performs with a larger project code-base.
>
> Thanks for the help!
> Bob
>
>
> On Sat, Oct 31, 2015 at 3:20 PM, Paul Molodowitch <[email protected]>
> wrote:
>
>> Hah, agreed. Hmm, maybe I'll try that next time... ;)
>>
>> On Sun, Nov 1, 2015 at 8:39 AM Justin Israel <[email protected]>
>> wrote:
>>
>>> Well ya, I assumed from the name that is releases the GIL under *some*
>>> circumstance. But like you, I wanted to know the details of that
>>> circumstance. To me, having this undocumented option sounds like a
>>> work-around for a known potential flaw, and they just couldn't vet the
>>> solution as the right thing, so they figured they needed to make it
>>> available as a support option. Maybe if enough people need this support
>>> feature, it will become the default.
>>>
>>> They should have named it MAYA_MAKE_NOT_HANG.
>>>
>>> I wish I had $PROG_MAKE_NOT_CRASH for all of my applications :-)
>>>
>>>
>>> On Sun, Nov 1, 2015 at 10:18 AM Paul Molodowitch <[email protected]>
>>> wrote:
>>>
>>>> MAYA_RELEASE_PYTHON_GIL is an undocumented environment variable, AFAIK.
>>>> Presumably, it does exactly what it says it does - release's python's
>>>> global interpreter lock anytime a thread sleeps / relinquishes control -
>>>> and, presumably re-accquires it when it re-awakens - and, hopefully, does
>>>> it in such a way that it doesn't end up corrupting the python interpreter
>>>> stack.  Be curious to know how they do that, though, in case I never need
>>>> to do something similar...
>>>>
>>>> On Sun, Nov 1, 2015 at 7:42 AM Justin Israel <[email protected]>
>>>> wrote:
>>>>
>>>>> From what I hear, the parallel graph evaluation has caused a good deal
>>>>> of problems, for those that have written code that isn't threadsafe
>>>>>
>>>>> On Sun, 1 Nov 2015 9:35 AM Kurian O.S <[email protected]> wrote:
>>>>>
>>>>>> Actually autodesk started adding "features" without any documentation
>>>>>> or any release note which will affect too much at user end. We faced huge
>>>>>> issue with the new feature called "hideinoutliner". Seriously i will kill
>>>>>> that guy who added this in maya if i saw him. Its okay hideinoutliner but
>>>>>> why you hiding from every where ? like graph editor node editor 
>>>>>> hypergraph
>>>>>> every where.
>>>>>>
>>>>>> On Sat, Oct 31, 2015 at 1:12 PM, Justin Israel <
>>>>>> [email protected]> wrote:
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Sun, Nov 1, 2015 at 12:21 AM Paul Molodowitch <[email protected]>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hey there - we had a similar issue with a python plugin in 2016,
>>>>>>>> and it turned out to be related to the new multi threaded graph 
>>>>>>>> evaluation
>>>>>>>> and the python GIL. Try turning that off in the prefs and see if it 
>>>>>>>> works.
>>>>>>>>
>>>>>>>> If that is the cause, you can try a fix suggested by a fine fellow
>>>>>>>> at autodesk: set the environment variable $MAYA_RELEASE_PYTHON_GIL to 1
>>>>>>>> before launching maya, and hopefully it works.
>>>>>>>>
>>>>>>>> According to autodesk support, setting this on has no adverse side
>>>>>>>> effects, but I'm leery - if so, why not have it on by default? That 
>>>>>>>> said,
>>>>>>>> it's worked for us beautifully so far, without any noticeable issues...
>>>>>>>>
>>>>>>> Was there any extra documentation on the MAYA_RELEASE_PYTHON_GIL
>>>>>>> setting? I'm curious to know details of what it affects.
>>>>>>>
>>>>>>>
>>>>>>>>
>>>>>>>> On Sat, Oct 31, 2015, 3:36 AM Bob Loblaw <
>>>>>>>> [email protected]> wrote:
>>>>>>>>
>>>>>>>>> Interesting but inconclusive. Using the Legacy Viewport, the loop
>>>>>>>>> makes it through two calls to cmds.currentTime and then locks up on 
>>>>>>>>> the
>>>>>>>>> third. I saw similar behavior when trying to narrow down the issue. 
>>>>>>>>> The
>>>>>>>>> second and third time I try this experiment though, with the Legacy
>>>>>>>>> Viewport, the loop locks up immediately. Hm....
>>>>>>>>>
>>>>>>>>> It's surprising that the Viewport choice has any effect.
>>>>>>>>>
>>>>>>>>> Thanks for the suggestion.
>>>>>>>>>
>>>>>>>>> Bob
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Fri, Oct 30, 2015 at 6:46 AM, Mark Jackson <[email protected]>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> Can I ask if you're not in 2016 to turn off VP2 and try again. I
>>>>>>>>>> have a similar issue where running a plugin that snaps transforms 
>>>>>>>>>> over time
>>>>>>>>>> hangs Maya but ONLY in V2, in legacy VP all is fine.
>>>>>>>>>>
>>>>>>>>>> On 29 October 2015 at 17:03, Bob Loblaw <
>>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>
>>>>>>>>>>> Was anyone able to reproduce this issue? It's a blocker...
>>>>>>>>>>>
>>>>>>>>>>> Thanks,
>>>>>>>>>>> Bob
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> 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
>>>>>>>>>>> [email protected].
>>>>>>>>>>> To view this discussion on the web visit
>>>>>>>>>>> https://groups.google.com/d/msgid/python_inside_maya/CAN0Hdevj6FEA53UL9YyKcctV_7QrUpLr-RK0ZtqMuo2OZZXy4A%40mail.gmail.com
>>>>>>>>>>> <https://groups.google.com/d/msgid/python_inside_maya/CAN0Hdevj6FEA53UL9YyKcctV_7QrUpLr-RK0ZtqMuo2OZZXy4A%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 [email protected].
>>>>>>>>>> To view this discussion on the web visit
>>>>>>>>>> https://groups.google.com/d/msgid/python_inside_maya/CAGQH2FEyPZrr6qGQ%2BjL4MEVz9m-CZ1Yq15%3DSva67mLic8d9c_w%40mail.gmail.com
>>>>>>>>>> <https://groups.google.com/d/msgid/python_inside_maya/CAGQH2FEyPZrr6qGQ%2BjL4MEVz9m-CZ1Yq15%3DSva67mLic8d9c_w%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 [email protected].
>>>>>>>>> To view this discussion on the web visit
>>>>>>>>> https://groups.google.com/d/msgid/python_inside_maya/CAN0HdeuD5Y8Gb677%3DHm14K0-LZ9kSdu8hitq0zPjSLRBVVS6sA%40mail.gmail.com
>>>>>>>>> <https://groups.google.com/d/msgid/python_inside_maya/CAN0HdeuD5Y8Gb677%3DHm14K0-LZ9kSdu8hitq0zPjSLRBVVS6sA%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 [email protected].
>>>>>>>> To view this discussion on the web visit
>>>>>>>> https://groups.google.com/d/msgid/python_inside_maya/CAAssL7Yx%2B58uqiTYWYdLs6BiaCaM0ugzXnn6vpLiYiV-2qXdzQ%40mail.gmail.com
>>>>>>>> <https://groups.google.com/d/msgid/python_inside_maya/CAAssL7Yx%2B58uqiTYWYdLs6BiaCaM0ugzXnn6vpLiYiV-2qXdzQ%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 [email protected].
>>>>>>>
>>>>>> To view this discussion on the web visit
>>>>>>> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0azZ7WKq7vST83MVg32pNWL8-qfGPr3ENOQcJpd%3DKZtw%40mail.gmail.com
>>>>>>> <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0azZ7WKq7vST83MVg32pNWL8-qfGPr3ENOQcJpd%3DKZtw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>>> .
>>>>>>
>>>>>>
>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> --:: Kurian ::--
>>>>>>
>>>>>> --
>>>>>> 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 [email protected].
>>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/python_inside_maya/CANEMyhPavVkRmYE6%2BmZKYNqPqe6X5jrb5j8K82bjPBjx3NeQcQ%40mail.gmail.com
>>>>>> <https://groups.google.com/d/msgid/python_inside_maya/CANEMyhPavVkRmYE6%2BmZKYNqPqe6X5jrb5j8K82bjPBjx3NeQcQ%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 [email protected].
>>>>>
>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2BdV%2BucK5hf6F%2Bb7_d3kvs7DyFLOuuPBQmcM5mbjNQWg%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2BdV%2BucK5hf6F%2Bb7_d3kvs7DyFLOuuPBQmcM5mbjNQWg%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 [email protected].
>>>>
>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/python_inside_maya/CAAssL7bBknN9xpwiGAVay02Hqv42w%3DD2M6S9wh%2BwDqW6DCBFqw%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/python_inside_maya/CAAssL7bBknN9xpwiGAVay02Hqv42w%3DD2M6S9wh%2BwDqW6DCBFqw%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 [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3cjoDY8yPWARo8HmMisvs7WG7ep1wQZgtmNydCuGPPAA%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3cjoDY8yPWARo8HmMisvs7WG7ep1wQZgtmNydCuGPPAA%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 [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/CAAssL7aHbWdMzhB7VeReCaykoY28N4ASG2afZoR6QbEG6PunbQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/python_inside_maya/CAAssL7aHbWdMzhB7VeReCaykoY28N4ASG2afZoR6QbEG6PunbQ%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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAN0Hdes42VehHpd1KQL67WzBBXmVmX18_jMXgr7JymC6kMq1YQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CAN0Hdes42VehHpd1KQL67WzBBXmVmX18_jMXgr7JymC6kMq1YQ%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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAGQH2FF71FerVmCXOCKROrQaVTgw%3DOEp%2BjWY2CKCOb%2BGRjQOMQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to