ID 409405 - Versioning up a clip that resides in the same directory as a nuke script with the same name will crash Hiero 11.3

Follow

Problem summary
When versioning up a clip in Hiero, if the clip was exported with 'Keep Nuke Script' Hiero can crash when versioning up.

The cause of this issue appears to be related to building a new track from an export structure, and can occur when the export contains both the {ext} and {version} tokens. 

As the {ext} token is used to interpret any extension, there is a confusion between clips and scripts that are named the same. In collaboration with the {version} token, when versioning up and down will cause a crash.

When this occurs, the following error is created in the terminal window:
[Error] DDImageCodec::openInternal validate failed, reason: unable to fetch comp render information

Note: Prior to Hiero 11.3 releases, there was no crash and only the error message.

Customer reported version
nuke.n/a 11.3__11.3v3

Customer reported platform

Steps to reproduce
1) Open a Hiero session

2) Import a clip and drag into a new sequence

3) With the clip selected in the timeline, right-click and select 'Export...'

4) Within the 'Process as Shots' tab, select the 'Transcode Shots DPX' export preset and duplicate

5) With this new preset selected, alter the export structure to include the {version} token.
{shot}_{version}.####.{ext}

6) With the 'Keep Nuke Script' checkbox in the Content tab to the right selected, and ensuring that the 'Version token number' is set to '01', click Export.


7) On export, select a location, create a new folder and when prompted, click 'yes' to save the preset. (this will export the v001)

8) With the clip selected in the timeline, right-click and select 'Export' again, this time altering the 'Version token number' to '02' and re-export. (this will export the v002)

9) When both versions are exported, select the clip in the timeline, right-click and select 'Build Track' > 'From Export Structure'

10) Within the Export Preset drop down, select the 'Transcode Shots DPX1' preset we created earlier and 'Build' (this will create a new track using the versions)

11) Within this new 'VFX' track in the timeline find the 'Max version', by pressing 'Alt+Shift+Up'.
Result: Within your terminal window, you will now see the following error for the two Nuke scripts being called.
[Error] DDImageCodec::openInternal validate failed, reason: unable to fetch comp render information

12) With the VFX track selected again, version up and down using the 'Alt+Up' and 'Alt+Down' shortcut a few times.
Result: Hiero will crash.

Note: This issue also occurs in Nuke Studio, although the error occurs within the Viewer and only in the terminal after versioning up and down several times.

Expected behaviour
Hiero should not create an error or crash when more than one same named file is recognized, regardless of if its a clip or a script.

Actual behaviour
Hiero errors and crashes when versioning up and down when more than one version contains the same named file with different extensions.

Workaround
Removing the .nk script from the exported directory resolves the issue.

Reproduced by support
This bug has been reproduced in:
Hiero 12.1v1 - Windows 10
Hiero 12.0v2 - Windows 10
Hiero 12.0v1 - Windows 7 - CentOS 7 - MacOS 10.14.5
Hiero 11.3v4 - Windows 7
Hiero 11.3v1 - Windows 7
Hiero 11.2v1 - Windows 7
Hiero 11.1v1 - Windows 7
Hiero 11.0v1 - Windows 7
Hiero 10.5v1 - Windows 7
Hiero 10.0v1 - Windows 7
Hiero 9.0v7 - Windows 7 - CentOS 7 - MacOS 10.14.5

Unable to reproduce in:
Hiero 12.1v2 - Windows 10
Hiero 12.0v6 - Windows 10
Hiero 1.9v1 - Windows 7 - CentOS 7 - MacOS 10.14.5

Earliest version tested
Hiero 9.0v7
- This issue regressed in this version

    We're sorry to hear that

    Please tell us why