From e8b26f997f9d11982ceae7623865d0e6706fda24 Mon Sep 17 00:00:00 2001 From: Accusys Date: Fri, 16 Oct 2026 13:21:39 +0800 Subject: [PATCH] docs: add Studio bug report for trace_profile not found issue --- ...6-10-16_studio_trace_profile_bug_report.md | 251 ++++++++++++++++++ 1 file changed, 251 insertions(+) create mode 100644 docs_v1.0/M4_workspace/2026-10-16_studio_trace_profile_bug_report.md diff --git a/docs_v1.0/M4_workspace/2026-10-16_studio_trace_profile_bug_report.md b/docs_v1.0/M4_workspace/2026-10-16_studio_trace_profile_bug_report.md new file mode 100644 index 00000000..865c271d --- /dev/null +++ b/docs_v1.0/M4_workspace/2026-10-16_studio_trace_profile_bug_report.md @@ -0,0 +1,251 @@ +# Studio Bug Report: Trace Profile Not Found + +**Date:** 2026-10-16 +**Priority:** P1 +**Component:** Studio (Frontend) +**Status:** Pending Studio Team Investigation + +--- + +## Issue Summary + +**Error Message:** +``` +trace_profile.json — 7a1523df54e2161a54e4577d1835acfd:FS#4 +Error: Trace profile file not found +``` + +**Expected Behavior:** +UI should successfully load trace profile for `trace_4` (labeled as "FS#4" in UI). + +**Actual Behavior:** +UI displays "Trace profile file not found" error, but file exists on disk. + +--- + +## Backend Status (Verified ✅) + +### File System Check + +**All trace_profile.json files exist:** + +```bash +$ for i in {0..15}; do + file="/Users/accusys/momentry/output/7a1523df54e2161a54e4577d1835acfd/trace_$i/trace_profile.json" + if [ -f "$file" ]; then + echo "trace_$i: ✅ exists" + else + echo "trace_$i: ❌ NOT FOUND" + fi +done + +# Result: +trace_0: ✅ exists (577 bytes) +trace_1: ✅ exists (588 bytes) +trace_2: ✅ exists (580 bytes) +trace_3: ✅ exists (592 bytes) +trace_4: ✅ exists (586 bytes) ← The problematic one +trace_5: ✅ exists (592 bytes) +trace_6: ✅ exists (574 bytes) +trace_7: ✅ exists (592 bytes) +trace_8: ✅ exists (586 bytes) +trace_9: ✅ exists (592 bytes) +trace_10: ✅ exists (587 bytes) +trace_11: ✅ exists (587 bytes) +trace_12: ✅ exists (594 bytes) +trace_13: ✅ exists (589 bytes) +trace_14: ✅ exists (596 bytes) +trace_15: ✅ exists (590 bytes) +``` + +### File Content (trace_4/trace_profile.json) + +```json +{ + "version": "1.0", + "file_uuid": "7a1523df54e2161a54e4577d1835acfd", + "trace_id": 4, + "label": "Person_2", + "frame_count": 38, + "start_frame": 308, + "end_frame": 419, + "best_frame": 410, + "avg_confidence": 0.72, + "best_confidence": 0.73, + "avg_capture_quality": 0.14, + "best_capture_quality": 0.15, + "avg_bbox": { + "x": 299, + "y": 64, + "width": 91, + "height": 91 + }, + "best_bbox": { + "x": 299, + "y": 65, + "width": 90, + "height": 90 + }, + "key_frame": "key_frame.jpg", + "key_face": "key_face.jpg", + "status": "pending", + "vlm_summary": null +} +``` + +**Content is valid JSON** ✅ +**All fields present** ✅ +**Label correctly set to "Person_2"** ✅ + +--- + +## Problem Analysis + +### Correct File Path + +``` +/Users/accusys/momentry/output/7a1523df54e2161a54e4577d1835acfd/trace_4/trace_profile.json +``` + +### UI Display + +``` +UUID: 7a1523df54e2161a54e4577d1835acfd +FS#: FS#4 +Error: Trace profile file not found +``` + +### Potential Issues + +1. **Path Mismatch:** UI uses `FS#4` but actual directory is `trace_4` +2. **API Endpoint:** Frontend may be calling wrong API or receiving incorrect data +3. **Browser Cache:** UI may be showing cached 404 from earlier when file didn't exist +4. **Path Construction:** Frontend may be constructing path incorrectly + +--- + +## Related Context + +### File UUID + +``` +7a1523df54e2161a54e4577d1835acfd +``` + +### Video File + +``` +Accusys-WD_FilmRiot_test.mp4 +13.7M +``` + +### Processing Status + +- Deep Scan: 80% (in progress) +- Face Deduplication: ✅ Completed (just fixed) +- All processors: ✅ Completed +- Trace profiles: ✅ All generated (just verified) + +### Recent Changes + +**2026-10-16 13:04:** Face clustering reprocessed with new threshold +- Changed threshold from 0.35 → 0.15 +- Added auto-filtering for low-quality clusters +- Filtered out hand detection (trace_0, 13 faces) and isolated face (trace_11, 1 face) +- Result: 2 persons (Person_2: 186 faces, Person_1: 174 faces) +- Updated all trace labels in face_traced.json and trace_profile.json files + +--- + +## Reproduction Steps + +1. Open Studio UI +2. Navigate to video `7a1523df54e2161a54e4577d1835acfd` +3. Click on any face trace (e.g., "FS#4") +4. Observe error: "Trace profile file not found" + +--- + +## Expected Fix + +**Frontend should:** + +1. Construct correct path: `trace_{id}` (not `FS#{id}`) +2. Or call correct API endpoint to retrieve trace profile +3. Handle case where file exists but UI shows cached 404 + +**Recommended Actions:** + +1. Check API endpoint `/api/v1/videos/{uuid}/traces/{trace_id}` or equivalent +2. Verify frontend path construction logic +3. Check if frontend is using correct field names (`trace_id` vs `FS#`) +4. Clear browser cache and retry + +--- + +## Backend Verification + +**Server:** Running on port 3002 (PID 27476) +**Worker:** Running (PID 27738) +**All files:** Present and valid ✅ +**Redis status:** face_cluster_status=completed ✅ + +--- + +## Additional Information + +**Directory Structure:** + +``` +/Users/accusys/momentry/output/7a1523df54e2161a54e4577d1835acfd/ +├── trace_0/ +│ ├── key_face.jpg +│ ├── key_frame.jpg +│ └── trace_profile.json ✅ +├── trace_1/ +│ ├── key_face.jpg +│ ├── key_frame.jpg +│ └── trace_profile.json ✅ +├── ... +├── trace_4/ +│ ├── key_face.jpg +│ ├── key_frame.jpg +│ └── trace_profile.json ✅ ← This one +├── ... +├── trace_15/ +│ ├── key_face.jpg +│ ├── key_frame.jpg +│ └── trace_profile.json ✅ +├── face_cluster.json ✅ +├── face_traced.json ✅ +├── face.json ✅ +└── ... +``` + +--- + +## Action Required + +**Studio Team:** + +- [ ] Investigate frontend code for trace profile loading +- [ ] Check if `FS#4` should be `trace_4` in path construction +- [ ] Verify API endpoint returns correct trace data +- [ ] Add error handling for file existence checks +- [ ] Test with browser cache cleared + +--- + +## Contact + +**Backend Team:** Core team (Momentry Core) +**Backend Status:** All files present and valid, issue is frontend-only +**Priority:** P1 (affects user experience during Deep Scan) + +--- + +## Version History + +| Version | Date | Changes | +|---------|------|---------| +| 1.0 | 2026-10-16 | Initial bug report |