ID 413798 - Nuke crashes when closing/clearing specific scripts

Follow

Problem summary
Nuke crashes when closing/clearing specific scripts

 

Customer reported version
Nuke 11.3v3

 

Customer reported platform
Windows 10

 

Steps to reproduce

1) In Nuke, open the attached script.

2) Open the Script Editor and run the following command: nuke.scriptClose()

 

Expected behavior
The script should close without crashing.

 

Actual behavior
The software will crash after running a nuke.scriptClear(), nuke.scriptClose() or nuke.scriptExit() command in the Script Editor. This also occurs when selecting File>Clear Script or File>Close Comp

 

Workaround
For nuke.scriptClear() and nuke.scriptClose(), if you call the command using PySide, then crash doesn't happen. This doesn't work for nuke.scriptExit():


from PySide2.QtWidgets import QPushButtonfrom PySide2 import QtCorebutton = QPushButton()button.clicked.connect(nuke.scriptClear)button.animateClick();loop = QtCore.QEventLoop()button.clicked.connect(loop.quit)loop.exec_()

 

from PySide2.QtCore import QTimerQTimer.singleShot(0, nuke.scriptClose)

 

Reproduced by support in:

Nuke 13.1v2 - Windows 10 - Linux CentOS 7 - macOS 10.15 (Catalina)

Nuke 13.1v1 - Windows 10

Nuke 13.0v1 - Windows 10

Nuke 12.2v2 - Windows 10

Nuke 12.2v1 - Windows 10 - Linux CentOS 7 - macOS 10.15 (Catalina)

Nuke 12.1v1 - Windows 10

Nuke 12.0v1 - Windows 10

Nuke 11.0v1 - Windows 10

 

Unable to reproduce bug in:

Nuke 12.1v5 - Linux CentOS 7 - macOS 10.15 (Catalina)

Nuke10.5v8 - Windows 10

 

Earliest version tested

Nuke 12.1v5 - Linux CentOS 7

Nuke10.5v8 - Windows 10

- This issue doesn't appear in this version and has regressed

    We're sorry to hear that

    Please tell us why