{"record":{"id":"b83476170d6ad2d9","repo":"HKUDS/DeepTutor","slug":"rendered-video-artifact-missing-for-visual-review","errorCode":null,"errorMessage":"Rendered video artifact missing for visual review.","messagePattern":"Rendered video artifact missing for visual review\\.","errorType":"exception","errorClass":"ManimRenderError","httpStatus":null,"severity":"error","filePath":"deeptutor/agents/math_animator/visual_review.py","lineNumber":56,"sourceCode":"                for artifact in render_result.artifacts\n            ]\n\n        video_artifact = next(\n            (artifact for artifact in render_result.artifacts if artifact.type == \"video\"), None\n        )\n        if video_artifact is None:\n            return []\n\n        video_path = self.artifacts_dir / video_artifact.filename\n        frame_paths = await self._extract_video_frames(video_path)\n        await self._emit_progress(\n            f\"Prepared {len(frame_paths)} review frame(s) from rendered video.\"\n        )\n        return [self._path_to_attachment(path) for path in frame_paths]\n\n    async def _extract_video_frames(self, video_path: Path) -> list[Path]:\n        if not video_path.exists():\n            raise ManimRenderError(\"Rendered video artifact missing for visual review.\")\n\n        duration = await self._probe_duration(video_path)\n        timestamps = self._choose_timestamps(duration)\n        frame_paths: list[Path] = []\n        for idx, timestamp in enumerate(timestamps, start=1):\n            frame_path = self.review_dir / f\"review_frame_{idx:02d}.png\"\n            command = [\n                \"ffmpeg\",\n                \"-y\",\n                \"-ss\",\n                f\"{timestamp:.3f}\",\n                \"-i\",\n                str(video_path),\n                \"-frames:v\",\n                \"1\",\n                str(frame_path),\n            ]\n            await self._emit_progress(","sourceCodeStart":38,"sourceCodeEnd":74,"githubUrl":"https://github.com/HKUDS/DeepTutor/blob/3e82f130422a813cdd73c10b21a44e9325f5821a/deeptutor/agents/math_animator/visual_review.py#L38-L74","documentation":"Error \"Rendered video artifact missing for visual review.\" thrown in HKUDS/DeepTutor.","triggerScenarios":"Thrown at deeptutor/agents/math_animator/visual_review.py:56 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3e82f130422a813cdd73c10b21a44e9325f5821a","analyzedAt":"2026-08-27T06:57:25.364Z","schemaVersion":2},"datasetVersion":"2026-08-27T08:17:20.692Z"}