Skip to content

Player freezes when composition contains more than 30 clips #86

@remorses

Description

@remorses

Description

The player freezes after approximately 4 seconds of playback when a composition contains more than 30 clips, causing the entire web page to become unresponsive.

Reproduction Steps

  1. Create a composition with 40+ video clips
  2. Start playback
  3. After ~4 seconds, the player and web page will freeze

Key Observations

  • This issue occurs regardless of video duration - it always happens when there are many clips in the composition
  • The freeze timing is inversely related to the number of clips:
    • With 40 clips: freeze occurs after ~4 seconds
    • With 100 clips: freeze occurs after only ~2 seconds
    • With fewer clips (e.g., 20-30): playback may complete without freezing

Reproduction Code

See PR #87 for a minimal reproduction case that demonstrates this issue.

Environment

  • Browser: [All browsers tested]
  • diffusionstudio/core version: latest

Expected Behavior

The player should handle compositions with many clips without freezing, regardless of the number of clips.

Actual Behavior

The player and entire web page become unresponsive after a few seconds of playback when many clips are present in the composition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions