ID 381264 - Running reconnectMedia() on a clip will try to set a colorspace that does not exist

Follow

Problem summary
Running reconnectMedia() on a clip in Hiero will try to set a colorspace that does not exist. This will throw an error, like so:

Sequence 1: timeline_13: Input colorspace index (27) out of range


Customer reported version

Hiero 11.3v1


Customer reported platform
CentOS 7


Steps to reproduce


1) Open Hiero.

2) Import a clip and drag it onto the Timeline.

3) Running the following lines of code:

sequence = hiero.ui.activeSequence()

project = sequence.project()


for clip in project.clips():

clip.reconnectMedia(clip.mediaSource().fileinfos()[0].filename())

This should cause an error, like the following to occur, in the Viewer:



Reproduced by support

This bug has been reproduced in:
Hiero 11.3v2 - Windows 10 - CentOS 7 - macOS 10.13 (High Sierra)

Hiero 11.3v1 - Windows 10 - CentOS 7 - macOS 10.13 (High Sierra) - Regression


Unable to reproduce bug in:
Hiero 11.2v5 - Windows 10 - CentOS 7 - macOS 10.13 (High Sierra)


Earliest version tested
HIero 11.2v5
- This issue no longer appears in this version and has regressed


Expected behaviour
reconnectMedia() should set the colorspace to a value that exists.


Actual behaviour

Running reconnectMedia() on a clip will try to set a colorspace that does not exist, causing an error to occur in the Viewer. For example:



    We're sorry to hear that

    Please tell us why