ID 612843 - Adding an empty TrackItem to a VideoTrack using the Python command addTrackItem crashes Nuke Studio/Hiero

Follow

Problem summary
Adding an empty TrackItem to a VideoTrack using the Python command addTrackItem crashes Nuke Studio/Hiero
 
If the TrackItem has a Name and MediaType, then it does not crash
 
Customer reported version
hiero.15.1v5
 
Customer reported platform
rocky8
 
Steps to reproduce
 
1) Open Nuke Studio/Hiero

2) In the Script Editor, run the following code:
 

track = hiero.core.VideoTrack("VideoTrack")trackItem = hiero.core.TrackItem()track.addTrackItem(trackItem)
 
Expected behaviour
For the TrackItem to fail to be added to the VideoTrack, as it is invalid
 
Actual behaviour
Nuke Studio/Hiero crash
 
Workaround
Give the TrackItem a name and set the mediatype:
 
track = hiero.core.VideoTrack("VideoTrack")trackItem = hiero.core.TrackItem("test", hiero.core.TrackItem.MediaType.kVideo)track.addTrackItem(trackItem)
 
Reproduced by support
This bug has been reproduced in:
Nuke Studio 16.0v8 - Windows 11, macOS Sonoma
Nuke Studio 12.0v1 - Windows 11, macOS Sonoma
 
Earliest version tested
Nuke Studio 12.0v1 - This issue appears to be in all tested versions of the product
 

    We're sorry to hear that

    Please tell us why