HKUDS/DeepTutor · error · ManimRenderError

Rendered video artifact missing for visual review.

Error message

Rendered video artifact missing for visual review.

What it means

Raised in visual review when the render result contains no artifact of type 'video' — the pipeline expected a rendered video to sample review frames from, but the artifact list lacks one (e.g. an image-only render or an upstream render that produced nothing).

Solutions

  1. Ensure the upstream render step emits a video artifact with a valid filename before invoking visual review
  2. Check artifacts_dir contains the artifact file and that video_artifact.filename matches the on-disk name
  3. Fall back to reviewing rendered images directly when no video artifact exists
  4. Fail the capability early with a clear status if the render produced no video
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at deeptutor/agents/math_animator/visual_review.py:56 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of HKUDS/DeepTutor@3e82f13042 (2026-08-27). Data as JSON: /api/errors/b83476170d6ad2d9. Report an issue: GitHub.

Appendix: source

Thrown at deeptutor/agents/math_animator/visual_review.py:56

                for artifact in render_result.artifacts
            ]

        video_artifact = next(
            (artifact for artifact in render_result.artifacts if artifact.type == "video"), None
        )
        if video_artifact is None:
            return []

        video_path = self.artifacts_dir / video_artifact.filename
        frame_paths = await self._extract_video_frames(video_path)
        await self._emit_progress(
            f"Prepared {len(frame_paths)} review frame(s) from rendered video."
        )
        return [self._path_to_attachment(path) for path in frame_paths]

    async def _extract_video_frames(self, video_path: Path) -> list[Path]:
        if not video_path.exists():
            raise ManimRenderError("Rendered video artifact missing for visual review.")

        duration = await self._probe_duration(video_path)
        timestamps = self._choose_timestamps(duration)
        frame_paths: list[Path] = []
        for idx, timestamp in enumerate(timestamps, start=1):
            frame_path = self.review_dir / f"review_frame_{idx:02d}.png"
            command = [
                "ffmpeg",
                "-y",
                "-ss",
                f"{timestamp:.3f}",
                "-i",
                str(video_path),
                "-frames:v",
                "1",
                str(frame_path),
            ]
            await self._emit_progress(

View on GitHub (pinned to 3e82f13042)