fix: stalled jobs, editor cancellation stops and GoPro DNG decoding

Owner review 1, phase 1 (docs/requests/2026-10-15-owner-review-1.md).

Thumbnail and proxy jobs over several sequences counted sequences while
they checkpointed inside one: the rate decayed until the time left
overflowed TimeSpan, the job failed while publishing progress and again
while saving it, and stayed Running. The throughput is now seeded by the
first window with progress, the time left is bounded (JobEta), saving
progress never throws, image passes count frames, and job speeds use the
right unit (bytes for verify and import).

The debugger stops in WicDecoderProvider.cs when presets changed were
cancelled preview decodes leaving synchronous thread-pool delegates; the
editor's sources, LatestRunner and the render node's proxy task now keep
them in their own tasks, and a cancellation is never an unreadable frame.

GoPro DNGs converted by Adobe software were classified GPR and read only
through their 8-bit preview, and Windows' preview-only DNG decoder was
reported as a native decode. A DNG is GPR only when its raw image is
VC-5, WIC decodes RAW only through the Raw Image Extension and never DNG,
analyses and previews take an adequate embedded preview by choice while
renders develop natively, and frames already indexed as GPR are
reclassified by the next light analysis.

Also records the owner's request (docs/requests), the BRIEF amendments
(§8.1, §8.2, new §24), DECISIONS, CHANGELOG, STATUS and ARCHITECTURE.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-10-16 10:20:26 +02:00
1 parent 19265b36c2
commit 34d03051f5
77 files changed
+785 -94

No files matched your search

@@ -0,0 +1,67 @@
# Owner review 1 (2026-10-15)
## Owner's text (verbatim, Italian)
> Ok, ottimo! Lo hai creato in modo fantastico. Ci sono un po' di cose da controllare:
> - la barra laterale allargala e dai la possibilità di comprimerla lasciando solo le icone
> - cambia modo di eseguire le attività, ovvero DEVONO essere eseguita una volta e il parallelismo decide quante foto
> elaborare nello stesso momento
> - Rivedi il menu di esportazione, così occupa troppo e si capiscono bene i dettagli delle esportazioni
> - C'è un errore quando seleziono alcuni preseti in @src/Titano.Core.Windows/Wic/WicDecoderProvider.cs
> - Dai la possibilità di aggiustare la maschera di ritaglio spostandola sull'immagine in modo da fare un ritaglio
> visuale in base alle proporzioni scelte
> - Aggiungi filtri semplici come specchio, capovolgimento, rotazione, ecc ecc
> - Cambia "Sequenza" in "Modifica", posso selezionare solo una sequenza alla volta da modificare e deve essere
> strutturata come un "percorso" da seguire dall'analisi approfondita della sequenza al suo completamento
>
> Fai domande se qualcosa non è chiaro e aggiorna tutta la documentazione in modo che utenti e IA future siano in
> grado di ricostruire il percorso delle modifiche.
> Esegui test approfonditi. All'avvio ci sono già dei time lapse importati. Aggiungi opzioni di esportazione e una
> libreria separata per i video finali.
>
> Modifiche da fare sia lato docker sia lato desktop.
## Interpretation
| Id | Request | Working interpretation |
|---|---|---|
| R1 | Sidebar | Desktop rail wider and collapsible to icons; the server admin panel's sidebar too. |
| R2 | Jobs | One job runs at a time; Parallelism = photos the running job processes at once. Desktop and server. |
| R3 | Export menu | The Export tab and the header's Render menu take too much space and do not make the export details clear (the "non" is missing in the text): compact and clearer. |
| R4 | WicDecoderProvider error | Reproduced: an `OperationCanceledException` from a superseded preview decode leaves a synchronous thread-pool delegate, so the debugger stops in `WicDecoderProvider.cs` (Just My Code). Found while reproducing: WIC decodes the owner's DNGs with Windows' preview-only DNG decoder and labels the 8-bit preview native, and every GoPro DNG is classified GPR, so the archive records them preview-only. |
| R5 | Visual crop | Move and resize the crop mask on the preview, locked to the chosen proportions. |
| R6 | Simple filters | Mirror, flip, 90° rotations, free straighten, colour filters. |
| R7 | Edit path | "Sequence" becomes "Edit" ("Modifica"); one sequence at a time; a guided path from the deep analysis to the finished video. |
| R8 | Export options | Advanced encoding, fades and hold, reverse and boomerang, single frame. |
| R9 | Videos library | One library of the finished videos, desktop and server. |
| R10 | Found in the owner's log | A multi-sequence Proxies job failed with `OverflowException` in `JobContext.Rate()` and stayed Running for 4 hours. |
## Questions and answers
| Question | Answer |
|---|---|
| How must jobs run? | One at a time; Parallelism = photos at once inside it. |
| How guided is the Edit path? | Guided steps, freely navigable (Previous/Next, every step clickable). |
| Which simple filters? | Mirror and flip, 90° rotations, straighten (free angle), colour filters. |
| Where does the videos library live? | Desktop + server, one library. |
| Crop proportions vs the export preset's? | The chosen proportions win; the preset adapts its resolution (4K at 9:16 = 2160×3840). |
| Which export options? | Advanced encoding (rate control, keyframes, B-frames, profile, standard resolutions); fades and hold last frame; reverse, boomerang and loop; single frame. |
| Where are the videos' files? | One list; files stay in each sequence's `exports/` and can be copied (hash-verified) to a separate videos folder (Docker: a `/videos` volume). Delete = trash, never erased. |
| How to decode the GoPro DNGs? | Full quality (Titano's native 16-bit decoding) for videos; the embedded preview for analysis and the editor preview. |
| A long background job runs and the user starts another job? | By default the new job is queued; pausing the running job lets the next one start. Settings get a priority queue by job kind: when on, a job of a higher kind pauses the running one without asking, and the paused job resumes by itself afterwards. |
| Rail width? | 200 px (web panel 256 px), collapse with ≡ or Ctrl+B, collapsed icons name their section in the tooltip. |
| How is the sequence chosen in Edit? | A picker inside Edit (searchable single choice) plus "Change sequence" in the header; the other ways to open stay. |
| Commits? | One commit per verified phase. |
## Delivery plan
| Phase | Content | State | Commit |
|---|---|---|---|
| 1 | Bugs: R10 job throughput/ETA and stuck jobs; R4 cancellation boundary, WIC decoder truth, GoPro DNG classification, decode policy (preview for analysis, native for renders) | done 2026-10-16: BRIEF §8.1, §8.2, §24; five DECISIONS rows dated 2026-10-16; all test suites, i18n check, format, package guard and xaml-lint green | phase 1 commit |
| 2 | R2 jobs one at a time, Parallelism = photos at once, priority queue with automatic pause/resume (desktop + server) | todo | |
| 3 | R1 rail and admin sidebar; R7 Edit section, picker, guided path | todo | |
| 4 | R5 visual crop, proportions win; R6 transforms, straighten, colour filters | todo | |
| 5 | R3 export panel and Render menu; R8 export options; R9 videos library (desktop, server API, admin page, copy folder, trash) | todo | |
| 6 | Docker/Unraid/deploy docs, BRIEF §24 amendments, full verification | todo | |
Each phase updates BRIEF (amended paragraphs), DECISIONS, CHANGELOG, STATUS and this file before its commit.
+12
View File
@@ -0,0 +1,12 @@
# Owner change requests
One file per request from the product owner, named `<date>-<slug>.md`. Each file keeps:
1. the owner's text, verbatim;
2. the working interpretation, numbered (R1, R2, …);
3. the questions asked and the owner's answers;
4. the delivery plan, phase by phase, with each phase's state, commit, BRIEF/DESIGN sections amended and DECISIONS rows.
A request amends the BRIEF: the amended paragraphs say so, and BRIEF §24 lists every amendment with the request that
made it. DECISIONS rows written for a request cite it (`R4`, `owner review 1`). Read the request file first to rebuild
why a part of Titano is the way it is.