OpenPype icon indicating copy to clipboard operation
OpenPype copied to clipboard

Maya: on exit there is a window left and maya is still running

Open m-u-r-p-h-y opened this issue 2 years ago • 3 comments

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.

image

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]

m-u-r-p-h-y avatar Jun 30 '22 14:06 m-u-r-p-h-y

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.

BigRoy avatar Jun 30 '22 14:06 BigRoy

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.

mayaWindow3

m-u-r-p-h-y avatar Jul 20 '22 13:07 m-u-r-p-h-y

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.

BigRoy avatar Aug 09 '22 14:08 BigRoy

Has anyone been able to solve this for Maya 2022?

BigRoy avatar Mar 11 '23 06:03 BigRoy