-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pyblish QML failing to load from Maya after loading Houdin Engine plug-in #313
Comments
Thanks for the detailed summary @BigRoy, this seems like a hard one to debug! I think step one might be to confirm that it does happen on another machine; can you confirm? |
I reproduced the error on multiple Windows 10 machines here - and @davidlatwe was able to reproduce on Windows 10 (though he was unable to reproduce on Windows 7 - I am unable to test that myself though.). |
Keeping conversations in sync. |
We're still facing this issue whenever Houdini Engine is loaded in Maya (or has been loaded at least once during the current Maya session). It's odd behavior but I have no clue how to work towards a fix. Anyone else who is able to reproduce this or has some additional pointers on how to debug/resolve this? It is reproducable on multiple machines as stated above. |
I have encountered #301 today, I was using Nuke 11.3 (comercial version) and I believe this issue is related to #301. And what I have found were pretty much like what @BigRoy had above. It's really hard to solve starting from Then I thought, what if we change So before going deeper, what do you think of changing |
Sounds good. The only reason PySide2 wasn't supported from the start was because the QML support there wasn't finished. I haven't kept up to date with it, but I would imagine it's in a good position to switch now. The main difference should be those Once there, it'll also enable use of |
Issue
Under Windows 10 it seems that whenever the current Maya session has loaded the Houdini Engine plug-in that Pyblish QML fails to run afterwards. This is due to a DLL error on loading PyQt5. Even after unloading the Houdini Engine plug-in the problem remains for that Maya session, whenever Houdini has been active Pyblish QML will fail to run.
To reproduce
Reproducible on: Windows 10 + Maya 2018.5 + Houdini 17.0.416
We have been unable to reproduce the error on Windows 7 with the same Maya and Houdini - thus it seems to be related to something in Windows 10!
The basis of the error is also reproducible by doing:
In the opened python console (assuming that's also the Python interpreted used to run the QML in background) if you just do:
What I've tried..
Trying to strip the environment of anything related to Houdini/Qt/Maya as I run the subprocess command that reproduces the DLL error. Didn't work for me.
Here's some example code I tried:
Or instead of stripping from current environment, just take the SYSTEMROOT (so Python can actually run)
Again, no luck.
Whatever does fix it (manually)
However! when I open Process Explorer, right click the
python.exe
process and press "Restart" it reopens the Python with the exact same environment... and voila, PyQt5 can import correctly.It seems as if somehow Windows 10 is trying to use the DLL from Memory that was loaded in connection with the Houdini (in Maya) process making it fail to load the actual correct one for the Python process.
Any ideas on how this could be resolved?
Reference discussion on Pyblish Gitter:
Thanks to @davidlatwe for also confirming the issue on Windows 10 and being unable to reproduce it on Windows 7. Appreciate the time you took to investigate, cheers!
The text was updated successfully, but these errors were encountered: