2020.1 PySide2 crash



We were testing to port our pipeline on 2020.1 and found an issue with the PySide2 embedded.

Could someone test if executing the following code make your max crash.

import MaxPlus

from PySide2 import QtCore, QtWidgets

class CustomWidget(QtWidgets.QWidget):

    def __init__(self, parent=None):
        super(CustomWidget, self).__init__(parent=parent)
        app = QtCore.QCoreApplication.instance()

    def eventFilter(self, object_, event):
        Override the QObject event filter function.
        return False

custom_widget = CustomWidget(parent=MaxPlus.GetQMaxMainWindow())

The crash happens when installing an eventfilter on the app , defining the eventFilter method and catching the first event It works

Hint: It does not crash when executed with 3dsmaxpy.exe and a base QtWidgets.QApplication instance



Is this test dependent on Update 1?
I tested without Update 1 and it crashed with recovery option.


I don’t know we have not tested it.
This is the official response from Autodesk :

I hope they will fix it on the 2020.2, in the meantime if you have a problem with this, you can use a PySide 1 QApplication