[Closed] 2020.1 PySide2 crash
Hello,
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()
app.installEventFilter(self)
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
Thanks
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 :
https://forums.autodesk.com/t5/3ds-max-forum/2020-1-pyside2-crash/m-p/8890999/highlight/true#M175925
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