OpenPype
OpenPype copied to clipboard
Maya: on exit there is a window left and maya is still running
Describe the bug Under certain conditions there is a window left open on Maya exit and the process is not finished, consuming a lot of memory (depending on the scene content before closing it)
To Reproduce Steps to reproduce the behavior:
It is extremely random and very hard to consistently reproduce. So far it happens in the case of publish which ends up with fail and closing Maya. It was reported by other users as well.
Expected behavior Maya should exit and close all subprocesses in a clean way
Desktop (please complete the following information):
- OS: Windows
- Host: Maya2022
[cuID:2janfxk]
We've only ever had this occur with Maya 2022. Not sure if it happens in Maya 2023 too though. But would definitely love this solved.
I finally managed to somehow replicate the issue. Even though this was for sure not the case of previous crashes, this is the only way I was able to reproduce this. Even though the success rate is not 100% as you need to hit some specific validator (probably) to achieve the behavior.
Reproduced in Maya 2022 here too.
I was also able to reproduce this with just using the Loader and not using the Pyblish window at all. Thus it doesn't seem the issue is solely related to the Pyblish UI.
What I did was:
- Open Loader
- Reference Alembic
- Open Manager
- Close Maya
Pop-up appeared. I didn't close the loader+manager UIs by the way.
Then I opened five Maya sessions. And then did the following five times:
- Open Loader
- Reference Alembic
- Close Maya
Pop-up appeared once out of those five. So was also reproducable.
Was unable to reproduce with any of the following
Open + Close maya
With just Open Maya -> Close Maya I was unable to reproduce it.
Import Pymel
I thought loader (load alembic) + pyblish have in common that they both import pymel.
So I just did start maya, import pymel, close maya with code like from pymel.core import *
or from pymel.all import *
but no luck on reproducing it either.
Simple Qt usage
from Qt import QtWidgets
button = QtWidgets.QPushButton("button")
button.show()
Ran this each time after Maya start, then close. Pop-up didn't show.
Open OpenPype Loader, Close Maya
Whenever I didn't load anything with the loader than the pop-up wouldn't show. I couldn't reproduce it.
Has anyone been able to solve this for Maya 2022?