ID 596598 - Nuke crashes when trying to add a QtWebEngineWidgets.QWebEngineView to a Nuke panel

Follow

Problem summary
Nuke crashes when trying to add a QtWebEngineWidgets.QWebEngineView to a Nuke panel.
 
This doesn't happen if you make a modal panel.
 
Customer reported version
nuke.16.0v1
 
Customer reported platform
Alma 8.9
 
Steps to reproduce
 
1) Launch Nuke

2) Run the following code in the Script Editor:
 

try:     from PySide2 import QtWidgets, QtWebEngineWidgets, QtCore except:     from PySide6 import QtWidgets, QtWebEngineWidgets, QtCore from nukescripts import panels class WebBrowserWidget(QtWidgets.QWidget):   def __init__(self):     super( WebBrowserWidget, self).__init__()     self.webView = QtWebEngineWidgets.QWebEngineView()     self.setLayout( QtWidgets.QVBoxLayout() )     self.layout().addWidget( self.webView ) panels.registerWidgetAsPanel('WebBrowserWidget', 'Test Window', 'testWindowWidget') temp = WebBrowserWidget() temp.show()
 
3) Expand the window that appears, you can see the white QWebEngineView widget
 
4) Right click a panel tab>Windows>Custom>Test Panel
 
Expected behaviour
Nuke should create a panel with the QWebEngineView widget in it
 
Actual behaviour
Nuke crashes
 
Workaround
Unknown.
 
Reproduced by support
This bug has been reproduced in:
Nuke 16.0v1 - Windows 10, Rocky 9 - regression
 
Unable to reproduce bug in:
Nuke 15.2v1 - Windows 10, Rocky 9
 
*Couldn't test on macOS due to QtWebEngineWidgets being missing, logged as bug: 551948
 
Earliest version tested
Nuke 15.2v1 - This issue doesn't appear in this version and has regressed
 

    We're sorry to hear that

    Please tell us why