Skip to content

Inspector: fixes media reference crashes - #167

Merged
timlehr merged 2 commits into
OpenTimelineIO:mainfrom
timlehr:tlehr/mediaRefInspectorFix
Sep 11, 2026
Merged

timlehr merged 2 commits into
OpenTimelineIO:mainfrom
timlehr:tlehr/mediaRefInspectorFix

Conversation

@timlehr

@timlehr timlehr commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

Occasionally there could be media reference inspector related crashes in our production files. I tracked down a couple of issues:

  1. new otio::MediaReference*[] was never delete[]d. DrawInspector runs every frame and leaked continuously while a clip stayed selected. Replaced with std::vector.

  2. ImGui derives each widgets internal ID by hashing its label. Empty string at the root of a window hashes to the same ID as the window itself. ImGui explicitly guards against this.

Code assist disclosure

Assisted-by: Claude:claude-opus-4-8 [debugging]

Occasionally there could be media reference inspector related crashes:

1. new otio::MediaReference*[] was never delete[]d. DrawInspector runs every frame and leaked continuously while a clip stayed selected. Replaced with std::vector.

2. ImGui derives each widgets internal ID by hashing its label. Empty string at the root of a window hashes to the same ID as the window itself. ImGui explicitly guards against this.

Signed-off-by: Tim Lehr <tim.lehr@disneyanimation.com>
@timlehr
timlehr merged commit 624951e into OpenTimelineIO:main Sep 11, 2026
12 checks passed
@timlehr
timlehr deleted the tlehr/mediaRefInspectorFix branch September 11, 2026 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants