ID 347423 - Opening the Export dialog after running code to delete a widget from ExportStuctureViewer, crashes Nuke due to PySide

Follow

Problem summary
Trying to delete the "Export To" widget from the ExportStuctureViewer using code, causes a crash due to PySide. 

Customer reported version
nuke.n/a

Customer reported platform

Steps to reproduce

1) launch NukeStudio and import some footage into the timeline

2) in the Script Editor run the following code

from hiero.ui import ProcessorUIBaseoriginalPopulateUI = ProcessorUIBase.populateUIdef populateUIOverride(self, *args):    originalPopulateUI(self, *args)    hlayout = self._exportStructureViewer.layout().itemAt(0)    items = hlayout.count()    for i in range(items):        hlayout.itemAt(i).hide()ProcessorUIBase.populateUI = populateUIOverride

3) after the code has been executed, right click on the timeline clip and select 'Export...' to open the Export dialog. 

Result: Nuke will crash before the dialog is opened. 

Workaround
Unknown. 

Reproduced by support
This bug has been reproduced in:

Nuke 11.1v3 - Windows 7 - CentOS 6.8 - MacOSX 10.13

Nuke 11.1v1 - Windows 7 

Nuke 11.0v1 - Windows 7 

Nuke 10.5v1 - Windows 7 

Nuke 10.0v1 - Windows 7

Nuke 9.0v1 - Windows 7 - CentOS 6.8 - MacOSX 10.13

Unable to reproduce bug in:

Hiero 1.9v1

Earliest version tested

Hiero 1.9v1

- The Hiero Export dialog is different to the NukeStudio Export dialog and this issue no longer appears in this version.

Expected behaviour
Nuke should not crash when running code to try and delete the 'Export To' widget from the 'Export' dialog. 

Actual behaviour
Nuke crashes after running code to delete the 'Export To' widget from the 'Export' dialog, due to a PySide bug. 

    We're sorry to hear that

    Please tell us why