ID 334474 - Hiero crashes on file open if an exported clip includes the export script as a version

Follow

Problem summary
 
Hiero will crash loading a project that contains a clip that was generated via an export, if the clip is versioned and the associated export script was kept and subsequently treated as a version.

Customer reported version
nuke.11.1v1

Customer reported platform
centos7

Steps to reproduce

1) Open Hiero.

2) Import a clip (File > Import File(s)...) and drag it onto the Timeline. Ensure that this clip has a version number in the filename, in this case the clip is named test_v01.mov

3) Select the sequence in the bin view and navigate to File > Export. 

4) In the Export dialog, select the Transcode Shots DPX preset. Under Export Structure double click {shot}.####.{ext} and rename it to {shot}_{version}.####.{ext}

5) If the file is selected under the PATH tab, the Content tab should appear on the right side of the Export dialog. Under the Content tab, check the 'Keep Nuke Script' knob. All other settings can be left as default.



6) Now click Export. If no Project Root has been set, you should now be prompted to select a location to export to. Set the export location to an empty folder. In this case, a .dpx sequence and a .nk script have now been exported.

​ 

7) Once the export is finished, close the current project (File > Close Project).

8) Import (File > Import File(s)...) the .dpx sequence that was exported in step 5.

9) In the Bin View, scan for versions (Right Click the clip > Versions > Scan For Versions). The following dialog should appear.

​​

10) Save the project (File > Save Project As) and close Hiero.

11) Reopen Hiero, and then reopen the project either from the Recent Projects dialog or from the File menu. Hiero should now crash.

Workaround
Move or rename the .nk script once the export is finished. This will prevent it from being picked up by the version scanner.

Reproduced by support
This bug has been reproduced in:
Hiero 11.1v1 - Windows 10 - Linux CentOS 7 - Mac OSX El Capitan - Regression

Unable to reproduce bug in:
Nuke Studio 11.1v1 - Windows 10 - Linux CentOS 7 - Mac OSX El Capitan
Hiero 11.0v4 - Windows 10 - Linux CentOS 7 - Mac OSX El Capitan
Nuke Studio 11.0v4 - Windows 10 - Linux CentOS 7 - Mac OSX El Capitan

Earliest version tested
Nuke Studio 11.1v1 - Windows 10 - Linux CentOS 7 - Mac OSX El Capitan
Hiero 11.0v4 - Windows 10 - Linux CentOS 7 - Mac OSX El Capitan
Nuke Studio 11.0v4 - Windows 10 - Linux CentOS 7 - Mac OSX El Capitan

- This issue no longer appears in this version and has regressed
Expected behaviour
Hiero should not crash on file open if a project contains a clip with two versions that have the same version number.

Actual behaviour
Hiero crashes on file open if a project contains a clip with two versions that have the same version number.
 

    We're sorry to hear that

    Please tell us why