The plug-in store turn, the Data Recovery area hold, the script grants
lock and the hang report file each released their file lock only by
closing the file. The lock stays held while any copy of the handle is
open, and a child process that any thread starts holds a copy until it
runs its program. While one was starting, the next turn on the plug-in
store waited, an app found its own recovery area busy, a grants change
timed out, and the next launch left a hang report alone.
Each holder now unlocks the file when it is dropped, as #9837 does for
the nightly session and the GPU start file. The engine's three locks
share one type, `store::LockedFile`. A left hang report that a launch
locks to read is held the same way.
Each new test keeps a copy of the handle open, drops the holder and
takes the lock again.
script::folder::list and script::startup::list measured the 250 ms
listing limit (MAX_SCAN) with a real Instant. script.listInstalled,
script.startup.run and the File > Scripts menu read the folders through
them, so a test that went through any of these got a truncated listing
and missing scripts whenever the disk stalled for 250 ms.
- folder::Clock is either Wall (the real time since the listing started,
the default) or Fixed (the same time at every check). Both list
functions take one.
- Session::set_script_listing_clock sets the clock the two commands and
the menu's listing job use; the app keeps the real clock.
- The script folder, startup script, scripts menu, script run and Safe
Mode tests list with a fixed zero time, so a slow disk cannot cut a
listing short. Direct listing calls use the test file's list helper.
- New tests check that script.listInstalled, script.startup.run and the
menu stop at the session's clock once it is past the limit and list
everything at the limit.
a_cancelled_export_stops_the_exporter cancelled from another thread after
a 300 ms sleep and asserted the elapsed time. The exporter now reports one
step before it loops forever, and the test's progress sink cancels the
token when that report arrives. The cancel lands while the exporter runs,
and the test asserts Err(Cancelled) and that the report arrived once. With
the cancel check between budget slices removed, the export ends at its
instruction budget instead and the test fails.
Three tests in crates/engine/src/tests/fontlist.rs read the process-wide
font database twice while other tests in the same binary add fonts and
composite fonts to it. A font added between the two reads made the
lists differ, and the installed-family filter did not hide it, because
fonts added with `add_font` count as installed. A stress run of the
engine's font tests failed 4 times in 60.
The font list, Show Similar Fonts and Refresh Font List tests now hold
`test_fonts::steady_fonts` across their reads, as the font menu's tests
do, and compare whole lists. The installed-family filter and the 20-try
generation loop are removed.
Random drew a separate share for the horizontal and the vertical scale,
so the same scale on both sides still came out uneven. Equal scales now
take one share; the five draws stay, so a seed keeps its moves and angle.
The area pass normalizes every closed path's geometry, and the Document
Info panel fetches `document.info` again after each edit. A request now
skips the pass (`pathArea` null) when its category is not `objects` or
it passes `pathArea: false`, and the panel asks for the area only while
it shows Objects or All Categories (the cache key records which).
Tests: the engine gives no area for another category or with
`pathArea: false`, and the panel's result has no area while another
category is shown, edits included. Docs: gaps, parity and mcp rows.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Docs conflicts: main's "Last updated" banner; both sides' evidence and
history rows, newest first.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A copy of a clip group's clipping path kept its clipping mark when pasted
outside the group, so Offset Path and the other path commands skipped it
and Offset Path's OK did nothing. Paste now clears the mark, and Release
Clipping Mask clears it on a selected path that clips nothing, which
repairs paths pasted before this fix.