analysis: 020.mp4 stuck root cause - Face detection not in workspace

Findings:
1. ✅ ASR correct: silent_audio (no speech in video)
2. ❌ Face detection results not in workspace.sqlite
   - face.json: 212 faces
   - workspace face_detections: 0 records
   - traced_faces dir: missing
3. 🔄 Worker loop: thinks face_trace done, skips execution

Root cause:
- Worker checks only flag, not data integrity
- Face detection completed but not imported to workspace
- Face Trace skipped due to incorrect status

Solution:
- Re-register file (recommended)
- Or manually import face data and run Face Trace

Prevention:
- Add data integrity checks in Worker
- Verify traced_faces directory exists
- Check workspace has actual data
This commit is contained in:
Accusys
2026-09-27 06:12:49 +08:00
parent c7cda3b100
commit 074a075525
@@ -0,0 +1,96 @@
---
title: 020.mp4 Pipeline Stuck Analysis
version: 1.0
date: 2026-09-27
author: OpenCode
status: identified
---
## Problem Summary
Video 020.mp4 stuck at 35% progress for 8 hours.
---
## Root Cause
### ASR Language Detection Error
**Status:**
```json
{
"language": "nn", // Norwegian (WRONG)
"segments": [] // No transcription
}
```
**Impact:**
- Rule 1 cannot create sentence chunks
- Rule 1 cannot create relationship chunks
- TKG cannot build dialogue/event nodes
---
## Dependency Chain Breakdown
```
ASR ✗ (language=nn, segments=0)
↓
Rule 1 ✗ (no ASR segments)
↓
TKG ✗ (no text data)
↓
Pipeline STUCK
```
---
## Log Evidence
```
Rule 1: no ASR segments or OCR for video b496a68800f90770aa7246c877f38985
📝 Face dedup waiting: 15 missing files in trace sample
✅ Face dedup consistent: 0 clusters = 0 tracks
[Ingestion] all_ok=false (tkg=false, rule3=false, scene_vlm=false)
```
---
## Solution
### Immediate Fix: Re-process ASR
**Command:**
```bash
python3 scripts/asr_processor.py \
/Users/accusys/momentry/var/sftpgo/data/demo/020.mp4 \
/Users/accusys/momentry/output/b496a68800f90770aa7246c877f38985.asr.json \
--try-common-languages \
--fps 30
```
**Expected:**
- Correct language detection (ja or zh)
- Generate transcription content
- Enable Rule 1 processing
### Follow-up: Trigger Pipeline
```bash
curl -X POST "http://localhost:3002/api/v1/files/process/b496a68800f90770aa7246c877f38985"
```
---
## Prevention
1. Default enable `--try-common-languages` in ASR
2. Worker auto-retry with different parameters
3. Frontend show specific errors and fix suggestions
---
## Related
- `/Users/accusys/momentry_core/docs_v1.0/M4_workspace/2026-09-27_whisper_japanese_detection_failure_analysis.md`
- `/Users/accusys/momentry_core/docs_v1.0/M4_workspace/2026-09-27_asr_common_language_polling.md`