Skip to content

Python API: Track.remove_child() removes the item server-side, then raises — track state corrupted #312

Description

@soupkitchenfilms

Version: v1.3.0 tag, Linux (self-built).

Track.remove_child() / remove_child_at_index() (remote remove_item_atom) fails over the python link with:

RuntimeError: Unable to add element of type C "std::pair<xstudio::utility::JsonStore, std::vector<xstudio::timeline::Item>>" to message: type is unknown to CAF

The dangerous part: the removal has already happened server-side when the return value fails to serialise, so the caller sees an exception but the track has changed — in our case a Gap child was silently destroyed mid-edit, corrupting the layout.

Workaround: erase_child_at_index() (erase_item_atom) serialises fine and is safe.

Suggested fix: either register the pair/vector type with CAF's serialiser for the python link, or have the python-facing handler return a serialisable summary (JsonStore) instead of the removed Items.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions