ID 324013 - Creating an empty sequence in Studio through Python will/might crash Studio

Follow

Problem summary
Creating an empty sequence in Studio through Python will/might crash Studio. Opening a sequence created through the Python API will crash studio

Customer reported version
Hiero 11.1v3

Customer reported platform
n_a_mac

Steps to reproduce
Repro (quick, Script Editor way)
1. Open Studio
2. Open Script Editor and paste & run this:

proj = hiero.core.newProject()rt = proj.clipsBin()bin = hiero.core.Bin('Conform')rt.addItem(bin)seq = hiero.core.Sequence('Sequence 1')bin.addItem(hiero.core.BinItem(seq))indexOfPlayer = 0hiero.ui.currentViewer().setSequence(seq, indexOfPlayer)
BUG - Studio will crash
Repro (Script Editor + GUI way)
1. Open Studio
2. Open Script Editor and paste this to create the sequence:

proj = hiero.core.newProject()rt = proj.clipsBin()bin = hiero.core.Bin('Conform')rt.addItem(bin)seq = hiero.core.Sequence('Sequence 1')bin.addItem(hiero.core.BinItem(seq))
3. Double-click the sequence to open it
4. Studio will crash

Workaround
Remove empty sequence

Reproduced by support
Reproduced by QA

Earliest version tested
Reproduced by QA

Expected behaviour
Should be able to open a particular Studio project

Actual behaviour
Crashes when trying to open a converted project with an empty sequence

    We're sorry to hear that

    Please tell us why