ID 335273 - Clip.setSourceMediaColourTransform function within Hiero 11.0 and 11.1 releases, will cause a segfault crash and not an exception error

Follow

Problem summary
When calling the 'Clip.setSourceMediaColourTransform' function within Hiero 11.0 or 11.1 releases, if the clip is offline or cannot be located a segfault occurs, not the expected exception message.

Note: This issue was fixed within 10.5v6 release for the 10.5 releases, but the issue has re-appeared in the 11.0 and 11.1 releases.

Customer reported version
Hiero 11.1.1

Customer reported platform
centos6

Steps to reproduce

1) Open up new Hiero project (11.0 or 11.1 release)

2) Create a 'Script Editor' tab in the UI

3) Paste and run the following code snippet ('ctrl + enter' with text selected)

from hiero.core import (Clip, MediaSource)c = Clip(MediaSource('/path/to/offline_file.dpx'))c.setSourceMediaColourTransform('rec709')
Result: Segfault crash, instead of running an exception or error in script editor.

Workaround
 
It is possible to avoid the issue using a try/except statement, this will avoid the segfault crash through running an exception that parses it through a loop first.
 
This below example would be the workaround for the above issue:
 

from hiero.core import (Clip, MediaSource)c = Clip(MediaSource('/path/to/offline_file.dpx'))try:  c.sourceMediaColourTransform()  c.setSourceMediaColourTransform('rec709')except:  print 'could not find color transform!'

Reproduced by support

This bug has been reproduced in:
Hiero 11.1v2 - Windows 7 - MacOSX 10.13 - CentOS 6.9
Hiero 11.1v1 - Windows 7 - MacOSX 10.13 - CentOS 6.9
Hiero 11.0v4 - Windows 7 - MacOSX 10.13 - CentOS 6.9
Hiero 11.0v1 - Windows 7 - MacOSX 10.13 - CentOS 6.9 - regression

Hiero 10.5v5 - Windows 7 - MacOSX 10.13 - CentOS 6.9
Hiero 10.5v1 - Windows 7 - MacOSX 10.13 - CentOS 6.9
Hiero 10.0v6 - Windows 7 - MacOSX 10.13 - CentOS 6.9
Hiero 10.0v1 - Windows 7 - MacOSX 10.13 - CentOS 6.9 - regression

Unable to reproduce bug in:
Hiero 10.5v7 - Windows 7 - MacOSX 10.13 - CentOS 6.9 (receive exception)
Hiero 10.5v6 - Windows 7 - MacOSX 10.13 - CentOS 6.9 (receive exception)

Hiero 9.0v9 - Windows 7 - MacOSX 10.13 - CentOS 6.9 (receive exception)
Hiero 1.9v1 - Windows 7 - MacOSX 10.13 - CentOS 6.9 (receive exception)
Hiero 1.8v2 - Windows 7 - MacOSX 10.13 - CentOS 6.9 (receive exception)

Earliest version tested
Hiero 1.8v2
- This issue appears to be in several versions of the product.

Expected behaviour
When calling the 'Clip.setSourceMediaColourTransform' function, if the clip is offline, this should create an exception error not a segfault crash.

Actual behaviour
When calling the 'Clip.setSourceMediaColourTransform' function, if the clip is offline, this creates a segfault crash.

    We're sorry to hear that

    Please tell us why