You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am experiencing a deadlock when I call SetPythonAttrObject from within a C++ function invoked from Python. Is this something that should work currently? I have threading enabled, but everything UE-related is on the main thread. Other thread is running an async event loop that wouldn't be blocking.
Activity
unbit commentedon Oct 31, 2016
Disable threading support, it currently introduces lot of implications when the call stack is pretty complex
Pepin- commentedon Oct 31, 2016
Hmm, I'll see if I can work around this somehow... Unfortunately I need threading support for a framework I'm running alongside UEPython.
Pepin- commentedon Nov 1, 2016
For my purposes, this solution seems to work for now:
https://github.com/Pepin-/UnrealEnginePython/commit/c97d57b3ba8ecebf9f64ace76813ebc075bea0dd
rdeioris commentedon Nov 1, 2016
i think it is the only viable appeoach. i will refactor it a bit and i will merge. thanks
support callback-friendly GIL acquire/release, #68
rdeioris commentedon Nov 2, 2016
Can you try if the latest code fixes the issue ?
Pepin- commentedon Nov 2, 2016
Hi, I tried with your changes instead and they seem to crash the editor on my end...
rdeioris commentedon Nov 2, 2016
Are you using python2 or 3 ?
Pepin- commentedon Nov 2, 2016
python3
smarter gil manager, #68
rdeioris commentedon Nov 3, 2016
Please, try again with latest code, i have made the gil scope struct smarter
Pepin- commentedon Dec 2, 2016
Sorry for the delay. This new change seems to work!