Commit Graph
5628 Commits
Author SHA1 Message Date
MeanTemperatureandClaude Opus 5.5 1855d02c47 fix(render): Fill keeps a scaled-up text layer's working image small (#4158) (#4159)
* fix(render): Fill keeps a scaled-up text layer's working image small (#4158)

A layer's effect stack skips the cover of the whole layer rectangle only
when every effect is in SKIPS_COVER. Fill was not, so a text layer with
Fill scaled up to ~900 % got a working image the size of the scaled layer
rectangle on every frame, and a render reached tens of GB.

Fill without Invert only recolours pixels the layer already has (masked
or not), so it now skips the cover too. Inverted, it paints the layer's
transparent area and keeps it. The check reads the instance's Invert
value, so EffectSpec gains skips_cover_for(params).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(render): a feathered Fill keeps the cover (#4158)

With a feather, a Fill mask edge outside the painted pixels still blurs
into them, so the coverage has to be computed beyond the painted bounds.
Keep the cover when either feather is set; unfeathered Fill (the default)
still skips it. Adds a covered-reference test with a feathered mask whose
edge lies just outside the painted content (fails without this change).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 08:52:51 +01:00
MeanTemperatureandClaude Opus 5.5 61e4f00138 CLI renders keep at most 1 GB of decoded footage frames (#4157) (#4167)
* CLI: a headless session's footage frames keep at most 1 GB (#4157)

Since #3301 the footage frames may fill the caches' whole common budget,
and since #3941 the CLI's budget is that of the installed RAM. A one-pass
render reads each frame about once, so it kept gigabytes of frames it never
read again and was killed under a cgroup memory limit.

Session::footage_cap caps the footage frames (and decoded planes) below
the common budget; apply_cache_budgets honours it, so a new memory reading
or a settings change keeps it. headless_session() sets it to
HEADLESS_MEDIA_CACHE (1 GB, the footage cache's default in 0.24). The
desktop app keeps the whole budget.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(host): a headless session's footage cap is exactly HEADLESS_MEDIA_CACHE (#4157)

Assert the cap itself (or the budget, if smaller) rather than only that it
is below the budget, which a wrong cap above 1 GB would also pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 08:43:24 +01:00
Valentin Klein 7e7118f1a5 Overwriting a render no longer freezes the app on projects with many footage files (#3330)
* #3328: output guard checks file identity only where an alias is possible

The output guard opened every footage file of the project, for every check
of an output that existed, on the UI thread: minutes for long sequences on
a network share. It now compares only the files that can be the output
(folders on the output's volume, folders holding symbolic links), keeps the
identities it learnt in the session (folders that changed are looked at
again; Reload Footage forgets them), and does no file system call while its
lock is held.

render.frame checks and writes with one guard. A control request whose
sender stopped waiting is not run, and one tick runs control requests for at
most a tenth of a second; the rest follow in order on the next ticks.

* #3328: output guard compares paths only, no file is opened

Comparing file identities still cost a file open per footage frame when
folders were on the output's volume, and caching them invited races (#3330
review). The guard now compares paths by name once resolved: absolute, dot
segments resolved, one separator, Windows verbatim prefixes as the plain
path, without case on Windows and macOS. A link or hard link to footage
under another name is no longer recognised; the reported data loss (#1743)
is the same-path case. Render queue duplicate outputs compare by name too.

* #3328: drop the link identity tests of the render queue; test and doc review fixes

* #3328: a mapped network drive and its UNC path are one place

On Windows the output guard resolves each drive letter's root once per guard
(std::fs::canonicalize of `X:\`) and compares a path on that letter as the
place it resolves to: a mapped network drive as its \server\share path, a
subst drive as its folder. A root that can't be resolved keeps its letter.

* #3328: drive roots are looked up only where they can matter, and kept a minute

A drive letter's root is resolved only when the output and the protected
files are not all on one letter, or not all UNC paths: footage and output on
one mapped drive never wait for a disconnected drive or an empty removable
one. Resolved roots, failures too, are kept process-wide for 60 s.

* #3328: the 13,000-frame guard test counts file system lookups instead of timing them

* #3328: note why only Windows counts lookups in the 13,000-frame guard test

* #3328: queued outputs collide under drive and UNC spellings

* #3328: queued sequences and subst drives compare by the place they name

* #3328: queued outputs keep their resolved places instead of resolving per comparison

* #3328: cache_bench's play request carries the abandoned flag (main's example met the new ControlRequest field)

* Refuse an output in a folder linked to a source's folder

An output whose name matches no protected file now has its folder resolved on disk, once per folder per guard, and is compared again by name. An output in render-alias/, a symbolic link or junction to plates/, no longer replaces plates/source.exr. No protected file is looked at.

* Resolve both folders, and only for a source with the output's file name

The footage path as imported may itself run through a link (macOS /var is /private/var, Windows 8.3 names), so resolving only the output's folder missed it. Now an output whose path matches nothing is compared again only with sources of the same file name, both folders resolved once per guard. An output named like no source asks the file system nothing.
2026-11-28 08:25:14 +01:00
Anubhav-Rai ffc0ad89da Reduce Project and Remove Unused Footage keep the media an Essential Graphics override shows (#4129) (#4164) 2026-11-28 07:55:33 +01:00
Anubhav-Rai 988a7a7685 export: a failed or panicked export removes the files it opened, as a cancel does (#4142) (#4224) 2026-11-28 07:42:36 +01:00
ki2pixel 5b755e2978 media: keep shared video decoders running across in-flight frames (#4196)
* media: keep the running decoder across in-flight frames

* media: keep a full GOP of decoded frames

* media: keep decoding across a draft switch

* media: run ProRes bands on the decode pool

* media: report shared decoder counters in gop_stats

* media: guard shared cancellation in MediaPool

* media: test sequential playback with B-frames

* media: count all shared decoder routes

* media: cache each picture's actual draft state

* media: remember draft switches across failed requests

* media: keep the requested picture through cache trimming
2026-11-28 07:36:48 +01:00
Dylan M. TaylorandFredApps 01a61a9462 ci: notify artcraft-services on release state changes (#4199)
* ci: notify artcraft-services on release state changes

* ci: pass only the dispatch token to the notify-services workflow

secrets: inherit hands the called workflow every repository secret, including
the signing credentials. The reusable workflow only reads
ARTCRAFT_SERVICES_DISPATCH_TOKEN, so map just that one.

---------

Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-27 09:19:54 -05:00
FredApps bfe6878d65 Merge pull request #3737 from vangel76/gpu-upload-budget-3731
GPU rendering is no longer slower than the CPU on comps with many large layers (up to about 10x faster)
2026-11-26 21:44:52 +01:00
FredApps 2b750011a7 Merge upstream main into gpu-upload-budget-3731 2026-11-26 21:17:44 +01:00
skylar taylor-barrick 225ab2f072 test(sam2): check transposed convolution with a rounding-aware oracle (#4124)
Merged within Executive 271's Fred-approved scope, on Fred's REST review 6076595648 given explicitly at 81a2ce21, with the fresh full bar verified at that head: CI green (Linux gate and all four instrumented shards, Sonar among them), CodeRabbit reviewed this head, zero unresolved threads. #4122 and #4123 are untouched by this.
2026-11-26 13:54:55 -06:00
NazarandFredApps 6002e6214f Helper host: video helper client with reply rules and gate tests (#4189)
* Helper host: video protocol types, reply rules and discovery

Part of RFC-0031, phase 1. The host side of docs/video-helper-protocol.md
that needs no process: the messages, what to do with each reply, and
finding the program. Starting the helper and the client come next.

- video::wire: encode.open/frame/flush/close, cancel, hello and the
  replies, as the page documents them; control lines are at most 1 MiB.
- video::jobs: job and frame ids, the 8 frame / 256 MiB budget and the
  "What EffectCraft does with each reply" table (accept, drop, job error,
  protocol break) as plain logic.
- video::check_hello and find_video_helper: the version and app_min
  checks, and the program is looked for only in helpers/ next to the
  executable. Effect-helper scans now skip it.

* Helper host: video helper client, stand-in helper and gate tests

Part of RFC-0031, phase 1. Starts a video helper and runs encode jobs
on it, following docs/video-helper-protocol.md and the reply rules
added in the previous commit.

- video::client: VideoHelper starts the program, checks its hello,
  opens encode jobs, sends pictures (waiting when 8 frames or 256 MiB
  are out), flushes, cancels and closes. Packets are copied out of the
  exchange file as they arrive. A crash, hang or broken reply stops the
  helper and fails the export; 3 stops turn it off. A refused job ends
  that job only.
- Stopping kills the helper process and waits at most 5 s, then drops
  the exchange file so a stray process can't touch a reused region. The
  spec no longer promises a process-group or job-object kill, which
  needs unsafe code; its wording follows what is implemented.
- tests/it/video.rs: a stand-in helper (this test binary, driven by a
  scenario) and 19 gate checks: crash, hang, bad and out-of-order
  replies, out-of-bounds packets, version mismatch, missing helper,
  lost device, packet_too_large as a job error, cancel, ignored
  cancel, 3 stops and retry.

* Helper host: harden the video client against a misbehaving helper

Review fixes on the video client and its tests.

- Packets in one reply may not add up to more than their region, so
  repeated references to the same bytes can't make the host copy them
  many times. The reader's queue is bounded; a helper that floods it
  waits on its own pipe.
- A picture is sized with checked arithmetic and refused over 256 MiB
  before any layout or exchange file growth; an encode.open that can't
  be written is refused before the job, its ids and regions exist.
- Waits end at their deadline even while replies keep arriving, a poll
  looks at a bounded number of late replies, the flush batch and
  encode.flushed share one timeout, and a timeout too long to represent
  no longer panics.
- close is private: a job is closed only after encode.flushed or
  cancelled. An unsent frame is given back when writing its planes
  fails; a failed copy of packets stops the helper without counting it
  as a crash.
- Contents/Helpers is searched only for an executable in
  Contents/MacOS. An incomplete base64 group is rejected.
- Tests assert the protocol diagnostic of each malformed reply and
  cover the flood, the flush deadline, oversized pictures and an
  oversized encode.open. The spec table drops every reply except
  cancelled for a failed job that has not been cancelled yet.

* Helper host: allow one encoder job at a time on a video helper

open_encoder accepted a second job while the first was open. If the
first job then reported an error while the client was waiting on the
second, the error was dropped and its caller only saw "no such video
job".

A second open is now refused with a request error until the first job
is finished or cancelled, so each job's error reaches its own caller.
The receiver state machine still tracks several jobs; only the client
API is single-job.

The gate test refuses a second open while one is active and accepts a
new one after finish and after cancel.

* Helper host: reject malformed base64 padding, align two protocol notes

base64_decode stripped every trailing "=", so "====" decoded to an
empty codec configuration that open_encoder then accepted. It now
accepts at most two "=" and only when the length is a multiple of 4.

The protocol page said job ids are never reused even after a restart,
but the counter is per process, and said nothing about replies that
were already queued when the frame timeout passed. Both now describe
what the client does.

* Helper host: fix two code comments about job id reuse

The comments on NEXT_JOB and Jobs::new said ids are never reused across
helper processes or restarts. The counter is per process and a new
helper starts from the highest id opened so far, so the comments now say
that, matching docs/video-helper-protocol.md.

* Helper host: cap the encoder delay a video helper may report

A helper-reported delay sized the flush region (and the exchange file) with
unchecked arithmetic. A delay over 64 is now a protocol break, the flush
region uses checked arithmetic, and the protocol page says so. Also moves a
test doc comment back onto the test it describes.

---------

Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-26 20:47:36 +01:00
FredApps 68fbd42ee4 Merge pull request #3721 from gmrmad1/fix/3668-render-queue-duplicate-shortcut
Render Queue: Ctrl+D duplicates the selected item (#3668)
2026-11-26 18:29:04 +01:00
FredApps b602fc35f5 Merge branch 'main' into fix/3668-render-queue-duplicate-shortcut 2026-11-26 17:54:25 +01:00
FredApps 175000fe98 Merge pull request #2956 from dotCooCoo/feat/import-photocraft
Import: PhotoCraft documents as footage or saved pixel layers
2026-11-26 17:54:10 +01:00
FredApps 995039c7aa Merge branch 'main' into feat/import-photocraft 2026-11-26 17:17:26 +01:00
FredApps f1beeb8a3a Merge pull request #2007 from MarekSpodBiedry/issue-1963
Offset all selected keyframes when a value is edited on one of them (#1963)
2026-11-26 17:17:11 +01:00
FredApps 6969ca541d Merge branch 'main' into issue-1963 2026-11-26 16:42:30 +01:00
FredApps 48ff5961cc Merge pull request #3259 from vangel76/camera-tools-2586
The camera tools offer After Effects' eight Orbit, Pan and Dolly variants in each slot's flyout
2026-11-26 16:42:14 +01:00
FredApps 52b1d18833 Merge branch 'main' into camera-tools-2586 2026-11-26 16:07:34 +01:00
FredApps e50caa8ef2 Merge pull request #3724 from vangel76/export-log-phases-3713
Export log shows where the time went: render, encode, write
2026-11-26 16:07:18 +01:00
FredApps c1758a2667 Merge branch 'main' into export-log-phases-3713 2026-11-26 15:30:33 +01:00
FredApps a999ce63af Merge pull request #3904 from vangel76/paste-text-style-3901
Pasted Source Text keyframes keep their font and colours
2026-11-26 15:30:17 +01:00
FredApps ac45c3fe9e Merge branch 'main' into paste-text-style-3901 2026-11-26 15:03:43 +01:00
FredApps 8087064fb9 Merge pull request #3842 from ChristopherLinnett/test/issue-2285-separated-motion-path
Viewer: a test draws the motion path of separated X/Y Position (#2285)
2026-11-26 15:03:27 +01:00
FredApps b77e13887a Merge branch 'main' into test/issue-2285-separated-motion-path 2026-11-26 14:30:48 +01:00
FredApps 50358c2e47 Merge pull request #3841 from ChristopherLinnett/test/issue-2286-dof-guard-tests
#2286: a failing test behind each Classic 3D depth-of-field bounding guard
2026-11-26 14:30:33 +01:00
FredApps a0be2a752f Merge branch 'main' into test/issue-2286-dof-guard-tests 2026-11-26 13:55:34 +01:00
FredApps 6485310ab0 Merge pull request #3837 from ChristopherLinnett/fix/issue-3808-interpret-footage-target
Interpret Footage: the dialog shows the footage the command will change (#3808)
2026-11-26 13:55:18 +01:00
FredApps 28fc5906d3 Merge main into fix/3668-render-queue-duplicate-shortcut
Conflict in crates/ui-egui/tests/it/ui_shortcut_scopes.rs: kept this PR's press/press_in split (press and release, shared context) and main's framework::install_headless call, now made on every context the tests create.
2026-11-26 19:26:23 +07:00
FredApps d56f2d058f Merge branch 'main' into fix/issue-3808-interpret-footage-target 2026-11-26 13:18:53 +01:00
FredApps ff41f29c6a Merge pull request #3777 from gmrmad1/contributors/gmrmad1
Contributors: add gmrmad1's name for the About window
2026-11-26 10:07:57 +01:00
FredApps 0760042742 Merge pull request #3993 from nazar-gavrylyk/docs/hardware-video-protocol
Docs: propose the video helper protocol for hardware encoding (RFC-0031)
2026-11-26 10:07:25 +01:00
FredApps e09d68ba01 Merge pull request #4121 from storytold/fix/media-unsupported-video-errors
fix(media): keep the shared decoder's unsupported-video errors
2026-11-26 10:05:28 +01:00
skylar taylor-barrick 89deb98175 Nightly: stop blocking a refused launch on macOS (#4177)
Nightly launch fix under Skylar's Exec 454: the Launcher's trailing `--` no longer reaches the file list where that applied, and a refused launch no longer blocks on macOS (the reason goes to stderr and the app exits 2). One doc comment was reworded so the app's `rfd`-use guard (#3084) keeps passing.
2026-11-26 01:59:20 -06:00
FredApps 8d9aaf1055 Reconcile PhotoCraft import with current EffectCraft dependencies 2026-11-26 08:54:52 +01:00
aiongg 47ab68c218 Merge pull request #4153 from aiongg/minimal-port-next
EffectCraft: move to craft-libs next (minimal port)
2026-11-25 23:09:14 -05:00
skylar taylor-barrick 9111eaa73c Switch on supervised nightlies on the nightly-signer branch (#4175)
Supervised nightly switch-on, merged under Skylar's explicit Nightly 758 override after green CI, CodeRabbit on this head with no open threads, Sonar passing, and an independent adversarial review with no blockers.
2026-11-25 21:05:26 -06:00
skylar taylor-barrick 5eccc055ce Use the shared nightly launcher template (#4169)
Renders the plain nightly tar's launcher from craft-common-actions' shared template.

Independent check: dylanmtaylor compared all 14 app launcher PRs byte for byte with the template rendered from the registry (https://github.com/storytold/craft-common-actions/pull/367#issuecomment-7172085284); this head was re-checked against craft-common-actions main 88148a5.
2026-11-25 16:16:58 -06:00
aiongg 984b10c5a6 Preview keeps its 46-point body under the 28-point tab strip; the examples install the UI runtime 2026-11-25 20:44:58 +00:00
aiongg fb5a5fd910 Floating windows carry the running channel's app id 2026-11-25 20:10:33 +00:00
aiongg 5bdbd2cf89 The font picker stays on the side it opened on 2026-11-25 20:10:33 +00:00
aiongg 805848551f Repin craft-libs to storytold next 8fa4db64a9 and egui to b9770908e; the media crates at filmcraft's rev, one craft-timeline 2026-11-25 19:14:41 +00:00
aiongg 9776fc722f Shift+Escape stays Shift+Escape when Shift is let go at once
As before the move to the craft-ui runtime, an Escape shortcut matches
the modifiers of its own press, not the ones held when the frame runs.
2026-11-25 18:28:37 +00:00
aiongg b74e746f3f Repin craft-libs to storytold next aa401985d 2026-11-25 15:51:18 +00:00
vangel76 6dbdefa987 Export timing: audio mux writes count as writing; a finish without timing clears the last one
The movie's audio step now times mixing and encoding as audio and muxing the encoded AAC/PCM
samples (and the AAC drain) as writing, as the timing contract says. A Finished update without
timing clears the item's earlier timing. New test: an_audio_mux_write_counts_as_writing.
2026-11-25 16:36:19 +01:00
aiongg 5c8a110c8f Copy, Cut and Paste pressed in a floating panel reach the app 2026-11-25 15:15:01 +00:00
aiongg c44f67531d The IME reset answers are one function beside the viewer's keyboard loop 2026-11-25 14:41:33 +00:00
aiongg 144982d678 The focused viewer keeps its focus at Escape 2026-11-25 14:26:45 +00:00
aiongg ea50d79108 A floating panel's window hands the main window only the keys and clipboard events no widget has 2026-11-25 14:23:42 +00:00
aiongg 121be81389 The focused Composition viewer leaves the keyboard to the app 2026-11-25 14:22:08 +00:00